(function(){"use strict";class p7e{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(()=>{throw v.stack?UL.isErrorNoTelemetry(v)?new UL(v.message+` `+v.stack):new Error(v.message+` `+v.stack):v},0)}}emit(v){this.listeners.forEach(x=>{x(v)})}onUnexpectedError(v){this.unexpectedErrorHandler(v),this.emit(v)}onUnexpectedExternalError(v){this.unexpectedErrorHandler(v)}}const f7e=new p7e;function eB(_){m7e(_)||f7e.onUnexpectedError(_)}function B$(_){if(_ instanceof Error){const{name:v,message:x,cause:F}=_,$=_.stacktrace||_.stack;return{$isError:!0,name:v,message:x,stack:$,noTelemetry:UL.isErrorNoTelemetry(_),cause:F?B$(F):void 0,code:_.code}}return _}const G$="Canceled";function m7e(_){return _ instanceof Cye?!0:_ instanceof Error&&_.name===G$&&_.message===G$}class Cye extends Error{constructor(){super(G$),this.name=this.message}}class UL extends Error{constructor(v){super(v),this.name="CodeExpectedError"}static fromError(v){if(v instanceof UL)return v;const x=new UL;return x.message=v.message,x.stack=v.stack,x}static isErrorNoTelemetry(v){return v.name==="CodeExpectedError"}}class A_ extends Error{constructor(v){super(v||"An unexpected bug occurred."),Object.setPrototypeOf(this,A_.prototype)}}function h7e(_,v="Unreachable"){throw new Error(v)}function _7e(_,v="unexpected state"){if(!_)throw typeof v=="string"?new A_(`Assertion Failed: ${v}`):v}function tB(_){if(!_()){debugger;_(),eB(new A_("Assertion Failed"))}}function Nye(_,v){let x=0;for(;x<_.length-1;){const F=_[x],$=_[x+1];if(!v(F,$))return!1;x++}return!0}function g7e(_){return typeof _=="string"}function y7e(_){return!!_&&typeof _[Symbol.iterator]=="function"}var nB;(function(_){function v(jn){return!!jn&&typeof jn=="object"&&typeof jn[Symbol.iterator]=="function"}_.is=v;const x=Object.freeze([]);function F(){return x}_.empty=F;function*$(jn){yield jn}_.single=$;function ge(jn){return v(jn)?jn:$(jn)}_.wrap=ge;function Le(jn){return jn||x}_.from=Le;function*Ke(jn){for(let Bi=jn.length-1;Bi>=0;Bi--)yield jn[Bi]}_.reverse=Ke;function ae(jn){return!jn||jn[Symbol.iterator]().next().done===!0}_.isEmpty=ae;function bt(jn){return jn[Symbol.iterator]().next().value}_.first=bt;function et(jn,Bi){let Io=0;for(const Un of jn)if(Bi(Un,Io++))return!0;return!1}_.some=et;function Ye(jn,Bi){let Io=0;for(const Un of jn)if(!Bi(Un,Io++))return!1;return!0}_.every=Ye;function Pn(jn,Bi){for(const Io of jn)if(Bi(Io))return Io}_.find=Pn;function*Hn(jn,Bi){for(const Io of jn)Bi(Io)&&(yield Io)}_.filter=Hn;function*cr(jn,Bi){let Io=0;for(const Un of jn)yield Bi(Un,Io++)}_.map=cr;function*Gn(jn,Bi){let Io=0;for(const Un of jn)yield*Bi(Un,Io++)}_.flatMap=Gn;function*ki(...jn){for(const Bi of jn)y7e(Bi)?yield*Bi:yield Bi}_.concat=ki;function bo(jn,Bi,Io){let Un=Io;for(const ul of jn)Un=Bi(Un,ul);return Un}_.reduce=bo;function Vn(jn){let Bi=0;for(const Io of jn)Bi++;return Bi}_.length=Vn;function*hn(jn,Bi,Io=jn.length){for(Bi<-jn.length&&(Bi=0),Bi<0&&(Bi+=jn.length),Io<0?Io+=jn.length:Io>jn.length&&(Io=jn.length);Bi1)throw new AggregateError(v,"Encountered errors while disposing of store");return Array.isArray(_)?[]:_}else if(_)return _.dispose(),_}function v7e(..._){return rB(()=>Mye(_))}class b7e{constructor(v){this._isDisposed=!1,this._fn=v}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function rB(_){return new b7e(_)}class m8{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{Mye(this._toDispose)}finally{this._toDispose.clear()}}add(v){if(!v||v===h8.None)return v;if(v===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?m8.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(v),v}delete(v){if(v){if(v===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(v),v.dispose()}}}class h8{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new m8,this._store}dispose(){this._store.dispose()}_register(v){if(v===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(v)}}class Ju{static{this.Undefined=new Ju(void 0)}constructor(v){this.element=v,this.next=Ju.Undefined,this.prev=Ju.Undefined}}class T7e{constructor(){this._first=Ju.Undefined,this._last=Ju.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Ju.Undefined}clear(){let v=this._first;for(;v!==Ju.Undefined;){const x=v.next;v.prev=Ju.Undefined,v.next=Ju.Undefined,v=x}this._first=Ju.Undefined,this._last=Ju.Undefined,this._size=0}unshift(v){return this._insert(v,!1)}push(v){return this._insert(v,!0)}_insert(v,x){const F=new Ju(v);if(this._first===Ju.Undefined)this._first=F,this._last=F;else if(x){const ge=this._last;this._last=F,F.prev=ge,ge.next=F}else{const ge=this._first;this._first=F,F.next=ge,ge.prev=F}this._size+=1;let $=!1;return()=>{$||($=!0,this._remove(F))}}shift(){if(this._first!==Ju.Undefined){const v=this._first.element;return this._remove(this._first),v}}pop(){if(this._last!==Ju.Undefined){const v=this._last.element;return this._remove(this._last),v}}_remove(v){if(v.prev!==Ju.Undefined&&v.next!==Ju.Undefined){const x=v.prev;x.next=v.next,v.next.prev=x}else v.prev===Ju.Undefined&&v.next===Ju.Undefined?(this._first=Ju.Undefined,this._last=Ju.Undefined):v.next===Ju.Undefined?(this._last=this._last.prev,this._last.next=Ju.Undefined):v.prev===Ju.Undefined&&(this._first=this._first.next,this._first.prev=Ju.Undefined);this._size-=1}*[Symbol.iterator](){let v=this._first;for(;v!==Ju.Undefined;)yield v.element,v=v.next}}const S7e=globalThis.performance.now.bind(globalThis.performance);class iB{static create(v){return new iB(v)}constructor(v){this._now=v===!1?Date.now:S7e,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 V$;(function(_){_.None=()=>h8.None;function v(hi,Vt){return Pn(hi,()=>{},0,void 0,!0,void 0,Vt)}_.defer=v;function x(hi){return(Vt,za=null,Zi)=>{let la=!1,Ki;return Ki=hi(vc=>{if(!la)return Ki?Ki.dispose():la=!0,Vt.call(za,vc)},null,Zi),la&&Ki.dispose(),Ki}}_.once=x;function F(hi,Vt){return _.once(_.filter(hi,Vt))}_.onceIf=F;function $(hi,Vt,za){return et((Zi,la=null,Ki)=>hi(vc=>Zi.call(la,Vt(vc)),null,Ki),za)}_.map=$;function ge(hi,Vt,za){return et((Zi,la=null,Ki)=>hi(vc=>{Vt(vc),Zi.call(la,vc)},null,Ki),za)}_.forEach=ge;function Le(hi,Vt,za){return et((Zi,la=null,Ki)=>hi(vc=>Vt(vc)&&Zi.call(la,vc),null,Ki),za)}_.filter=Le;function Ke(hi){return hi}_.signal=Ke;function ae(...hi){return(Vt,za=null,Zi)=>{const la=v7e(...hi.map(Ki=>Ki(vc=>Vt.call(za,vc))));return Ye(la,Zi)}}_.any=ae;function bt(hi,Vt,za,Zi){let la=za;return $(hi,Ki=>(la=Vt(la,Ki),la),Zi)}_.reduce=bt;function et(hi,Vt){let za;const Zi={onWillAddFirstListener(){za=hi(la.fire,la)},onDidRemoveLastListener(){za?.dispose()}},la=new OE(Zi);return Vt?.add(la),la.event}function Ye(hi,Vt){return Vt instanceof Array?Vt.push(hi):Vt&&Vt.add(hi),hi}function Pn(hi,Vt,za=100,Zi=!1,la=!1,Ki,vc){let lf,wm,RT,Ui=0,nh;const HA={leakWarningThreshold:Ki,onWillAddFirstListener(){lf=hi(x8=>{Ui++,wm=Vt(wm,x8),Zi&&!RT&&(rh.fire(wm),wm=void 0),nh=()=>{const r2=wm;wm=void 0,RT=void 0,(!Zi||Ui>1)&&rh.fire(r2),Ui=0},typeof za=="number"?(RT&&clearTimeout(RT),RT=setTimeout(nh,za)):RT===void 0&&(RT=null,queueMicrotask(nh))})},onWillRemoveListener(){la&&Ui>0&&nh?.()},onDidRemoveLastListener(){nh=void 0,lf.dispose()}},rh=new OE(HA);return vc?.add(rh),rh.event}_.debounce=Pn;function Hn(hi,Vt=0,za){return _.debounce(hi,(Zi,la)=>Zi?(Zi.push(la),Zi):[la],Vt,void 0,!0,void 0,za)}_.accumulate=Hn;function cr(hi,Vt=(Zi,la)=>Zi===la,za){let Zi=!0,la;return Le(hi,Ki=>{const vc=Zi||!Vt(Ki,la);return Zi=!1,la=Ki,vc},za)}_.latch=cr;function Gn(hi,Vt,za){return[_.filter(hi,Vt,za),_.filter(hi,Zi=>!Vt(Zi),za)]}_.split=Gn;function ki(hi,Vt=!1,za=[],Zi){let la=za.slice(),Ki=hi(wm=>{la?la.push(wm):lf.fire(wm)});Zi&&Zi.add(Ki);const vc=()=>{la?.forEach(wm=>lf.fire(wm)),la=null},lf=new OE({onWillAddFirstListener(){Ki||(Ki=hi(wm=>lf.fire(wm)),Zi&&Zi.add(Ki))},onDidAddFirstListener(){la&&(Vt?setTimeout(vc):vc())},onDidRemoveLastListener(){Ki&&Ki.dispose(),Ki=null}});return Zi&&Zi.add(lf),lf.event}_.buffer=ki;function bo(hi,Vt){return(Zi,la,Ki)=>{const vc=Vt(new hn);return hi(function(lf){const wm=vc.evaluate(lf);wm!==Vn&&Zi.call(la,wm)},void 0,Ki)}}_.chain=bo;const Vn=Symbol("HaltChainable");class hn{constructor(){this.steps=[]}map(Vt){return this.steps.push(Vt),this}forEach(Vt){return this.steps.push(za=>(Vt(za),za)),this}filter(Vt){return this.steps.push(za=>Vt(za)?za:Vn),this}reduce(Vt,za){let Zi=za;return this.steps.push(la=>(Zi=Vt(Zi,la),Zi)),this}latch(Vt=(za,Zi)=>za===Zi){let za=!0,Zi;return this.steps.push(la=>{const Ki=za||!Vt(la,Zi);return za=!1,Zi=la,Ki?la:Vn}),this}evaluate(Vt){for(const za of this.steps)if(Vt=za(Vt),Vt===Vn)break;return Vt}}function ga(hi,Vt,za=Zi=>Zi){const Zi=(...lf)=>vc.fire(za(...lf)),la=()=>hi.on(Vt,Zi),Ki=()=>hi.removeListener(Vt,Zi),vc=new OE({onWillAddFirstListener:la,onDidRemoveLastListener:Ki});return vc.event}_.fromNodeEventEmitter=ga;function ho(hi,Vt,za=Zi=>Zi){const Zi=(...lf)=>vc.fire(za(...lf)),la=()=>hi.addEventListener(Vt,Zi),Ki=()=>hi.removeEventListener(Vt,Zi),vc=new OE({onWillAddFirstListener:la,onDidRemoveLastListener:Ki});return vc.event}_.fromDOMEventEmitter=ho;function gl(hi,Vt){let za;const Zi=new Promise((la,Ki)=>{const vc=x(hi)(la,null,Vt);za=()=>vc.dispose()});return Zi.cancel=za,Zi}_.toPromise=gl;function jn(hi,Vt){return hi(za=>Vt.fire(za))}_.forward=jn;function Bi(hi,Vt,za){return Vt(za),hi(Zi=>Vt(Zi))}_.runAndSubscribe=Bi;class Io{constructor(Vt,za){this._observable=Vt,this._counter=0,this._hasChanged=!1;const Zi={onWillAddFirstListener:()=>{Vt.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{Vt.removeObserver(this)}};this.emitter=new OE(Zi),za&&za.add(this.emitter)}beginUpdate(Vt){this._counter++}handlePossibleChange(Vt){}handleChange(Vt,za){this._hasChanged=!0}endUpdate(Vt){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Un(hi,Vt){return new Io(hi,Vt).emitter.event}_.fromObservable=Un;function ul(hi){return(Vt,za,Zi)=>{let la=0,Ki=!1;const vc={beginUpdate(){la++},endUpdate(){la--,la===0&&(hi.reportChanges(),Ki&&(Ki=!1,Vt.call(za)))},handlePossibleChange(){},handleChange(){Ki=!0}};hi.addObserver(vc),hi.reportChanges();const lf={dispose(){hi.removeObserver(vc)}};return Zi instanceof m8?Zi.add(lf):Array.isArray(Zi)&&Zi.push(lf),lf}}_.fromObservableLight=ul})(V$||(V$={}));class oB{static{this.all=new Set}static{this._idPool=0}constructor(v){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${v}_${oB._idPool++}`,oB.all.add(this)}start(v){this._stopWatch=new iB,this.listenerCount=v}stop(){if(this._stopWatch){const v=this._stopWatch.elapsed();this.durations.push(v),this.elapsedOverall+=v,this.invocationCount+=1,this._stopWatch=void 0}}}let E7e=-1;class j${static{this._idPool=1}constructor(v,x,F=(j$._idPool++).toString(16).padStart(3,"0")){this._errorHandler=v,this.threshold=x,this.name=F,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(v,x){const F=this.threshold;if(F<=0||x{const ge=this._stacks.get(v.value)||0;this._stacks.set(v.value,ge-1)}}getMostFrequentStack(){if(!this._stacks)return;let v,x=0;for(const[F,$]of this._stacks)(!v||x<$)&&(v=[F,$],x=$);return v}}class U${static create(){const v=new Error;return new U$(v.stack??"")}constructor(v){this.value=v}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class A7e extends Error{constructor(v,x){super(v),this.name="ListenerLeakError",this.stack=x}}class I7e extends Error{constructor(v,x){super(v),this.name="ListenerRefusalError",this.stack=x}}class H${constructor(v){this.value=v}}const x7e=2;class OE{constructor(v){this._size=0,this._options=v,this._leakageMon=this._options?.leakWarningThreshold?new j$(v?.onListenerError??eB,this._options?.leakWarningThreshold??E7e):void 0,this._perfMon=this._options?._profName?new oB(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(v,x,F)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const Ke=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Ke);const ae=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],bt=new I7e(`${Ke}. HINT: Stack shows most frequent listener (${ae[1]}-times)`,ae[0]);return(this._options?.onListenerError||eB)(bt),h8.None}if(this._disposed)return h8.None;x&&(v=v.bind(x));const $=new H$(v);let ge;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&($.stack=U$.create(),ge=this._leakageMon.check($.stack,this._size+1)),this._listeners?this._listeners instanceof H$?(this._deliveryQueue??=new R7e,this._listeners=[this._listeners,$]):this._listeners.push($):(this._options?.onWillAddFirstListener?.(this),this._listeners=$,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const Le=rB(()=>{ge?.(),this._removeListener($)});return F instanceof m8?F.add(Le):Array.isArray(F)&&F.push(Le),Le},this._event}_removeListener(v){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 x=this._listeners,F=x.indexOf(v);if(F===-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--,x[F]=void 0;const $=this._deliveryQueue.current===this;if(this._size*x7e<=x.length){let ge=0;for(let Le=0;Le0}}class R7e{constructor(){this.i=-1,this.end=0}enqueue(v,x,F){this.i=0,this.end=F,this.current=v,this.value=x}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function D7e(){return globalThis._VSCODE_NLS_MESSAGES}function Pye(){return globalThis._VSCODE_NLS_LANGUAGE}const C7e=Pye()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Lye(_,v){let x;return v.length===0?x=_:x=_.replace(/\{(\d+)\}/g,(F,$)=>{const ge=$[0],Le=v[ge];let Ke=F;return typeof Le=="string"?Ke=Le:(typeof Le=="number"||typeof Le=="boolean"||Le===void 0||Le===null)&&(Ke=String(Le)),Ke}),C7e&&(x="["+x.replace(/[aouei]/g,"$&$&")+"]"),x}function xs(_,v,...x){return Lye(typeof _=="number"?N7e(_,v):v,x)}function N7e(_,v){const x=D7e()?.[_];if(typeof x!="string"){if(typeof v=="string")return v;throw new Error(`!!! NLS MISSING: ${_} !!!`)}return x}const HL="en";let q$=!1,J$=!1,K$=!1,aB,X$=HL,kye=HL,M7e,BA;const iN=globalThis;let qy;typeof iN.vscode<"u"&&typeof iN.vscode.process<"u"?qy=iN.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(qy=process);const P7e=typeof qy?.versions?.electron=="string"&&qy?.type==="renderer";if(typeof qy=="object"){q$=qy.platform==="win32",J$=qy.platform==="darwin",K$=qy.platform==="linux",K$&&qy.env.SNAP&&qy.env.SNAP_REVISION,qy.env.CI||qy.env.BUILD_ARTIFACTSTAGINGDIRECTORY||qy.env.GITHUB_WORKSPACE,aB=HL,X$=HL;const _=qy.env.VSCODE_NLS_CONFIG;if(_)try{const v=JSON.parse(_);aB=v.userLocale,kye=v.osLocale,X$=v.resolvedLanguage||HL,M7e=v.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!P7e?(BA=navigator.userAgent,q$=BA.indexOf("Windows")>=0,J$=BA.indexOf("Macintosh")>=0,(BA.indexOf("Macintosh")>=0||BA.indexOf("iPad")>=0||BA.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,K$=BA.indexOf("Linux")>=0,BA?.indexOf("Mobi")>=0,X$=Pye()||HL,aB=navigator.language.toLowerCase(),kye=aB):console.error("Unable to resolve platform.");const _8=q$,L7e=J$,WE=BA,k7e=typeof iN.postMessage=="function"&&!iN.importScripts;(()=>{if(k7e){const _=[];iN.addEventListener("message",x=>{if(x.data&&x.data.vscodeScheduleAsyncWork)for(let F=0,$=_.length;F<$;F++){const ge=_[F];if(ge.id===x.data.vscodeScheduleAsyncWork){_.splice(F,1),ge.callback();return}}});let v=0;return x=>{const F=++v;_.push({id:F,callback:x}),iN.postMessage({vscodeScheduleAsyncWork:F},"*")}}return _=>setTimeout(_)})();const w7e=!!(WE&&WE.indexOf("Chrome")>=0);WE&&WE.indexOf("Firefox")>=0,!w7e&&WE&&WE.indexOf("Safari")>=0,WE&&WE.indexOf("Edg/")>=0,WE&&WE.indexOf("Android")>=0;function O7e(_){return _}class W7e{constructor(v,x){this.lastCache=void 0,this.lastArgKey=void 0,typeof v=="function"?(this._fn=v,this._computeKey=O7e):(this._fn=x,this._computeKey=v.getCacheKey)}get(v){const x=this._computeKey(v);return this.lastArgKey!==x&&(this.lastArgKey=x,this.lastCache=this._fn(v)),this.lastCache}}var oN;(function(_){_[_.Uninitialized=0]="Uninitialized",_[_.Running=1]="Running",_[_.Completed=2]="Completed"})(oN||(oN={}));class Y${constructor(v){this.executor=v,this._state=oN.Uninitialized}get value(){if(this._state===oN.Uninitialized){this._state=oN.Running;try{this._value=this.executor()}catch(v){this._error=v}finally{this._state=oN.Completed}}else if(this._state===oN.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function F7e(_){return _.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function z7e(_){return _.source==="^"||_.source==="^$"||_.source==="$"||_.source==="^\\s*$"?!1:!!(_.exec("")&&_.lastIndex===0)}function B7e(_){return _.split(/\r\n|\r|\n/)}function G7e(_){for(let v=0,x=_.length;v=0;x--){const F=_.charCodeAt(x);if(F!==32&&F!==9)return x}return-1}function wye(_){return _>=65&&_<=90}function j7e(_,v){const x=Math.min(_.length,v.length);let F;for(F=0;FJSON.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,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,1523,96,8242,96,1370,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,118002,50,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,118003,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,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,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,118008,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,118009,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,117974,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,117975,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,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,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,117977,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,117978,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,117979,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,117980,71,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,117981,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,117983,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,117984,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,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,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,117985,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,117986,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,117987,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,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,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,117989,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,117990,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,117991,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,117992,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,117993,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,117994,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,117995,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,71910,87,71919,87,117996,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,117997,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,117998,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,71909,90,66293,90,65338,90,8484,90,8488,90,117999,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,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,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,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,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,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[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,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,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,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,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,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,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,65292,44,65297,49,65307,59,65311,63],"pl":[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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,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,65297,49],"zh-hant":[8211,45,65374,126,8218,44,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]}'))}static{this.cache=new W7e({getCacheKey:JSON.stringify},v=>{function x(et){const Ye=new Map;for(let Pn=0;Pn!et.startsWith("_")&&Object.hasOwn(ge,et));Le.length===0&&(Le=["_default"]);let Ke;for(const et of Le){const Ye=x(ge[et]);Ke=$(Ke,Ye)}const ae=x(ge._common),bt=F(ae,Ke);return new hR(bt)})}static getInstance(v){return hR.cache.get(Array.from(v))}static{this._locales=new Y$(()=>Object.keys(hR.ambiguousCharacterData.value).filter(v=>!v.startsWith("_")))}static getLocales(){return hR._locales.value}constructor(v){this.confusableDictionary=v}isAmbiguous(v){return this.confusableDictionary.has(v)}getPrimaryConfusable(v){return this.confusableDictionary.get(v)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class aN{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,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,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],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this._data=void 0}static getData(){return this._data||(this._data=new Set([...Object.values(aN.getRawData())].flat())),this._data}static isInvisibleCharacter(v){return aN.getData().has(v)}static get codePoints(){return aN.getData()}}const Q$="default",Y7e="$initialize";class $7e{constructor(v,x,F,$,ge){this.vsWorker=v,this.req=x,this.channel=F,this.method=$,this.args=ge,this.type=0}}class Oye{constructor(v,x,F,$){this.vsWorker=v,this.seq=x,this.res=F,this.err=$,this.type=1}}class Q7e{constructor(v,x,F,$,ge){this.vsWorker=v,this.req=x,this.channel=F,this.eventName=$,this.arg=ge,this.type=2}}class Z7e{constructor(v,x,F){this.vsWorker=v,this.req=x,this.event=F,this.type=3}}class eze{constructor(v,x){this.vsWorker=v,this.req=x,this.type=4}}class tze{constructor(v){this._workerId=-1,this._handler=v,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(v){this._workerId=v}async sendMessage(v,x,F){const $=String(++this._lastSentReq);return new Promise((ge,Le)=>{this._pendingReplies[$]={resolve:ge,reject:Le},this._send(new $7e(this._workerId,$,v,x,F))})}listen(v,x,F){let $=null;const ge=new OE({onWillAddFirstListener:()=>{$=String(++this._lastSentReq),this._pendingEmitters.set($,ge),this._send(new Q7e(this._workerId,$,v,x,F))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete($),this._send(new eze(this._workerId,$)),$=null}});return ge.event}handleMessage(v){!v||!v.vsWorker||this._workerId!==-1&&v.vsWorker!==this._workerId||this._handleMessage(v)}createProxyToRemoteChannel(v,x){const F={get:($,ge)=>(typeof ge=="string"&&!$[ge]&&(Fye(ge)?$[ge]=Le=>this.listen(v,ge,Le):Wye(ge)?$[ge]=this.listen(v,ge,void 0):ge.charCodeAt(0)===36&&($[ge]=async(...Le)=>(await x?.(),this.sendMessage(v,ge,Le)))),$[ge])};return new Proxy(Object.create(null),F)}_handleMessage(v){switch(v.type){case 1:return this._handleReplyMessage(v);case 0:return this._handleRequestMessage(v);case 2:return this._handleSubscribeEventMessage(v);case 3:return this._handleEventMessage(v);case 4:return this._handleUnsubscribeEventMessage(v)}}_handleReplyMessage(v){if(!this._pendingReplies[v.seq]){console.warn("Got reply to unknown seq");return}const x=this._pendingReplies[v.seq];if(delete this._pendingReplies[v.seq],v.err){let F=v.err;if(v.err.$isError){const $=new Error;$.name=v.err.name,$.message=v.err.message,$.stack=v.err.stack,F=$}x.reject(F);return}x.resolve(v.res)}_handleRequestMessage(v){const x=v.req;this._handler.handleMessage(v.channel,v.method,v.args).then($=>{this._send(new Oye(this._workerId,x,$,void 0))},$=>{$.detail instanceof Error&&($.detail=B$($.detail)),this._send(new Oye(this._workerId,x,void 0,B$($)))})}_handleSubscribeEventMessage(v){const x=v.req,F=this._handler.handleEvent(v.channel,v.eventName,v.arg)($=>{this._send(new Z7e(this._workerId,x,$))});this._pendingEvents.set(x,F)}_handleEventMessage(v){if(!this._pendingEmitters.has(v.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(v.req).fire(v.event)}_handleUnsubscribeEventMessage(v){if(!this._pendingEvents.has(v.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(v.req).dispose(),this._pendingEvents.delete(v.req)}_send(v){const x=[];if(v.type===0)for(let F=0;F{v(F,$)},handleMessage:(F,$,ge)=>this._handleMessage(F,$,ge),handleEvent:(F,$,ge)=>this._handleEvent(F,$,ge)}),this.requestHandler=x(this)}onmessage(v){this._protocol.handleMessage(v)}_handleMessage(v,x,F){if(v===Q$&&x===Y7e)return this.initialize(F[0]);const $=v===Q$?this.requestHandler:this._localChannels.get(v);if(!$)return Promise.reject(new Error(`Missing channel ${v} on worker thread`));const ge=$[x];if(typeof ge!="function")return Promise.reject(new Error(`Missing method ${x} on worker thread channel ${v}`));try{return Promise.resolve(ge.apply($,F))}catch(Le){return Promise.reject(Le)}}_handleEvent(v,x,F){const $=v===Q$?this.requestHandler:this._localChannels.get(v);if(!$)throw new Error(`Missing channel ${v} on worker thread`);if(Fye(x)){const ge=$[x];if(typeof ge!="function")throw new Error(`Missing dynamic event ${x} on request handler.`);const Le=ge.call($,F);if(typeof Le!="function")throw new Error(`Missing dynamic event ${x} on request handler.`);return Le}if(Wye(x)){const ge=$[x];if(typeof ge!="function")throw new Error(`Missing event ${x} on request handler.`);return ge}throw new Error(`Malformed event name ${x}`)}getChannel(v){if(!this._remoteChannels.has(v)){const x=this._protocol.createProxyToRemoteChannel(v);this._remoteChannels.set(v,x)}return this._remoteChannels.get(v)}async initialize(v){this._protocol.setWorkerId(v)}}let zye=!1;function rze(_){if(zye)throw new Error("WebWorker already initialized!");zye=!0;const v=new nze(x=>globalThis.postMessage(x),x=>_(x));return globalThis.onmessage=x=>{v.onmessage(x.data)},v}class _R{constructor(v,x,F,$){this.originalStart=v,this.originalLength=x,this.modifiedStart=F,this.modifiedLength=$}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new Y$(()=>new Uint8Array(256));function Bye(_,v){return(v<<5)-v+_|0}function ize(_,v){v=Bye(149417,v);for(let x=0,F=_.length;x0||this.m_modifiedCount>0)&&this.m_changes.push(new _R(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(v,x){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,x),this.m_originalCount++}AddModifiedElement(v,x){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,x),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 gR{constructor(v,x,F=null){this.ContinueProcessingPredicate=F,this._originalSequence=v,this._modifiedSequence=x;const[$,ge,Le]=gR._getElements(v),[Ke,ae,bt]=gR._getElements(x);this._hasStrings=Le&&bt,this._originalStringElements=$,this._originalElementsOrHash=ge,this._modifiedStringElements=Ke,this._modifiedElementsOrHash=ae,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(v){return v.length>0&&typeof v[0]=="string"}static _getElements(v){const x=v.getElements();if(gR._isStringArray(x)){const F=new Int32Array(x.length);for(let $=0,ge=x.length;$=v&&$>=F&&this.ElementsAreEqual(x,$);)x--,$--;if(v>x||F>$){let Ye;return F<=$?(qL.Assert(v===x+1,"originalStart should only be one more than originalEnd"),Ye=[new _R(v,0,F,$-F+1)]):v<=x?(qL.Assert(F===$+1,"modifiedStart should only be one more than modifiedEnd"),Ye=[new _R(v,x-v+1,F,0)]):(qL.Assert(v===x+1,"originalStart should only be one more than originalEnd"),qL.Assert(F===$+1,"modifiedStart should only be one more than modifiedEnd"),Ye=[]),Ye}const Le=[0],Ke=[0],ae=this.ComputeRecursionPoint(v,x,F,$,Le,Ke,ge),bt=Le[0],et=Ke[0];if(ae!==null)return ae;if(!ge[0]){const Ye=this.ComputeDiffRecursive(v,bt,F,et,ge);let Pn=[];return ge[0]?Pn=[new _R(bt+1,x-(bt+1)+1,et+1,$-(et+1)+1)]:Pn=this.ComputeDiffRecursive(bt+1,x,et+1,$,ge),this.ConcatenateChanges(Ye,Pn)}return[new _R(v,x-v+1,F,$-F+1)]}WALKTRACE(v,x,F,$,ge,Le,Ke,ae,bt,et,Ye,Pn,Hn,cr,Gn,ki,bo,Vn){let hn=null,ga=null,ho=new Vye,gl=x,jn=F,Bi=Hn[0]-ki[0]-$,Io=-1073741824,Un=this.m_forwardHistory.length-1;do{const ul=Bi+v;ul===gl||ul=0&&(bt=this.m_forwardHistory[Un],v=bt[0],gl=1,jn=bt.length-1)}while(--Un>=-1);if(hn=ho.getReverseChanges(),Vn[0]){let ul=Hn[0]+1,hi=ki[0]+1;if(hn!==null&&hn.length>0){const Vt=hn[hn.length-1];ul=Math.max(ul,Vt.getOriginalEnd()),hi=Math.max(hi,Vt.getModifiedEnd())}ga=[new _R(ul,Pn-ul+1,hi,Gn-hi+1)]}else{ho=new Vye,gl=Le,jn=Ke,Bi=Hn[0]-ki[0]-ae,Io=1073741824,Un=bo?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const ul=Bi+ge;ul===gl||ul=et[ul+1]?(Ye=et[ul+1]-1,cr=Ye-Bi-ae,Ye>Io&&ho.MarkNextChange(),Io=Ye+1,ho.AddOriginalElement(Ye+1,cr+1),Bi=ul+1-ge):(Ye=et[ul-1],cr=Ye-Bi-ae,Ye>Io&&ho.MarkNextChange(),Io=Ye,ho.AddModifiedElement(Ye+1,cr+1),Bi=ul-1-ge),Un>=0&&(et=this.m_reverseHistory[Un],ge=et[0],gl=1,jn=et.length-1)}while(--Un>=-1);ga=ho.getChanges()}return this.ConcatenateChanges(hn,ga)}ComputeRecursionPoint(v,x,F,$,ge,Le,Ke){let ae=0,bt=0,et=0,Ye=0,Pn=0,Hn=0;v--,F--,ge[0]=0,Le[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const cr=x-v+($-F),Gn=cr+1,ki=new Int32Array(Gn),bo=new Int32Array(Gn),Vn=$-F,hn=x-v,ga=v-F,ho=x-$,jn=(hn-Vn)%2===0;ki[Vn]=v,bo[hn]=x,Ke[0]=!1;for(let Bi=1;Bi<=cr/2+1;Bi++){let Io=0,Un=0;et=this.ClipDiagonalBound(Vn-Bi,Bi,Vn,Gn),Ye=this.ClipDiagonalBound(Vn+Bi,Bi,Vn,Gn);for(let hi=et;hi<=Ye;hi+=2){hi===et||hiIo+Un&&(Io=ae,Un=bt),!jn&&Math.abs(hi-hn)<=Bi-1&&ae>=bo[hi])return ge[0]=ae,Le[0]=bt,Vt<=bo[hi]&&Bi<=1448?this.WALKTRACE(Vn,et,Ye,ga,hn,Pn,Hn,ho,ki,bo,ae,x,ge,bt,$,Le,jn,Ke):null}const ul=(Io-v+(Un-F)-Bi)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Io,ul))return Ke[0]=!0,ge[0]=Io,Le[0]=Un,ul>0&&Bi<=1448?this.WALKTRACE(Vn,et,Ye,ga,hn,Pn,Hn,ho,ki,bo,ae,x,ge,bt,$,Le,jn,Ke):(v++,F++,[new _R(v,x-v+1,F,$-F+1)]);Pn=this.ClipDiagonalBound(hn-Bi,Bi,hn,Gn),Hn=this.ClipDiagonalBound(hn+Bi,Bi,hn,Gn);for(let hi=Pn;hi<=Hn;hi+=2){hi===Pn||hi=bo[hi+1]?ae=bo[hi+1]-1:ae=bo[hi-1],bt=ae-(hi-hn)-ho;const Vt=ae;for(;ae>v&&bt>F&&this.ElementsAreEqual(ae,bt);)ae--,bt--;if(bo[hi]=ae,jn&&Math.abs(hi-Vn)<=Bi&&ae<=ki[hi])return ge[0]=ae,Le[0]=bt,Vt>=ki[hi]&&Bi<=1448?this.WALKTRACE(Vn,et,Ye,ga,hn,Pn,Hn,ho,ki,bo,ae,x,ge,bt,$,Le,jn,Ke):null}if(Bi<=1447){let hi=new Int32Array(Ye-et+2);hi[0]=Vn-et+1,JL.Copy2(ki,et,hi,1,Ye-et+1),this.m_forwardHistory.push(hi),hi=new Int32Array(Hn-Pn+2),hi[0]=hn-Pn+1,JL.Copy2(bo,Pn,hi,1,Hn-Pn+1),this.m_reverseHistory.push(hi)}}return this.WALKTRACE(Vn,et,Ye,ga,hn,Pn,Hn,ho,ki,bo,ae,x,ge,bt,$,Le,jn,Ke)}PrettifyChanges(v){for(let x=0;x0,Ke=F.modifiedLength>0;for(;F.originalStart+F.originalLength<$&&F.modifiedStart+F.modifiedLength=0;x--){const F=v[x];let $=0,ge=0;if(x>0){const Ye=v[x-1];$=Ye.originalStart+Ye.originalLength,ge=Ye.modifiedStart+Ye.modifiedLength}const Le=F.originalLength>0,Ke=F.modifiedLength>0;let ae=0,bt=this._boundaryScore(F.originalStart,F.originalLength,F.modifiedStart,F.modifiedLength);for(let Ye=1;;Ye++){const Pn=F.originalStart-Ye,Hn=F.modifiedStart-Ye;if(Pn<$||Hnbt&&(bt=Gn,ae=Ye)}F.originalStart-=ae,F.modifiedStart-=ae;const et=[null];if(x>0&&this.ChangesOverlap(v[x-1],v[x],et)){v[x-1]=et[0],v.splice(x,1),x++;continue}}if(this._hasStrings)for(let x=1,F=v.length;x0&&Hn>ae&&(ae=Hn,bt=Ye,et=Pn)}return ae>0?[bt,et]:null}_contiguousSequenceScore(v,x,F){let $=0;for(let ge=0;ge=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[v])}_OriginalRegionIsBoundary(v,x){if(this._OriginalIsBoundary(v)||this._OriginalIsBoundary(v-1))return!0;if(x>0){const F=v+x;if(this._OriginalIsBoundary(F-1)||this._OriginalIsBoundary(F))return!0}return!1}_ModifiedIsBoundary(v){return v<=0||v>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[v])}_ModifiedRegionIsBoundary(v,x){if(this._ModifiedIsBoundary(v)||this._ModifiedIsBoundary(v-1))return!0;if(x>0){const F=v+x;if(this._ModifiedIsBoundary(F-1)||this._ModifiedIsBoundary(F))return!0}return!1}_boundaryScore(v,x,F,$){const ge=this._OriginalRegionIsBoundary(v,x)?1:0,Le=this._ModifiedRegionIsBoundary(F,$)?1:0;return ge+Le}ConcatenateChanges(v,x){const F=[];if(v.length===0||x.length===0)return x.length>0?x:v;if(this.ChangesOverlap(v[v.length-1],x[0],F)){const $=new Array(v.length+x.length-1);return JL.Copy(v,0,$,0,v.length-1),$[v.length-1]=F[0],JL.Copy(x,1,$,v.length,x.length-1),$}else{const $=new Array(v.length+x.length);return JL.Copy(v,0,$,0,v.length),JL.Copy(x,0,$,v.length,x.length),$}}ChangesOverlap(v,x,F){if(qL.Assert(v.originalStart<=x.originalStart,"Left change is not less than or equal to right change"),qL.Assert(v.modifiedStart<=x.modifiedStart,"Left change is not less than or equal to right change"),v.originalStart+v.originalLength>=x.originalStart||v.modifiedStart+v.modifiedLength>=x.modifiedStart){const $=v.originalStart;let ge=v.originalLength;const Le=v.modifiedStart;let Ke=v.modifiedLength;return v.originalStart+v.originalLength>=x.originalStart&&(ge=x.originalStart+x.originalLength-v.originalStart),v.modifiedStart+v.modifiedLength>=x.modifiedStart&&(Ke=x.modifiedStart+x.modifiedLength-v.modifiedStart),F[0]=new _R($,ge,Le,Ke),!0}else return F[0]=null,!1}ClipDiagonalBound(v,x,F,$){if(v>=0&&v<$)return v;const ge=F,Le=$-F-1,Ke=x%2===0;if(v<0){const ae=ge%2===0;return Ke===ae?0:1}else{const ae=Le%2===0;return Ke===ae?$-1:$-2}}}class Zc{constructor(v,x){this.lineNumber=v,this.column=x}with(v=this.lineNumber,x=this.column){return v===this.lineNumber&&x===this.column?this:new Zc(v,x)}delta(v=0,x=0){return this.with(Math.max(1,this.lineNumber+v),Math.max(1,this.column+x))}equals(v){return Zc.equals(this,v)}static equals(v,x){return!v&&!x?!0:!!v&&!!x&&v.lineNumber===x.lineNumber&&v.column===x.column}isBefore(v){return Zc.isBefore(this,v)}static isBefore(v,x){return v.lineNumberF||v===F&&x>$?(this.startLineNumber=F,this.startColumn=$,this.endLineNumber=v,this.endColumn=x):(this.startLineNumber=v,this.startColumn=x,this.endLineNumber=F,this.endColumn=$)}isEmpty(){return ss.isEmpty(this)}static isEmpty(v){return v.startLineNumber===v.endLineNumber&&v.startColumn===v.endColumn}containsPosition(v){return ss.containsPosition(this,v)}static containsPosition(v,x){return!(x.lineNumberv.endLineNumber||x.lineNumber===v.startLineNumber&&x.columnv.endColumn)}static strictContainsPosition(v,x){return!(x.lineNumberv.endLineNumber||x.lineNumber===v.startLineNumber&&x.column<=v.startColumn||x.lineNumber===v.endLineNumber&&x.column>=v.endColumn)}containsRange(v){return ss.containsRange(this,v)}static containsRange(v,x){return!(x.startLineNumberv.endLineNumber||x.endLineNumber>v.endLineNumber||x.startLineNumber===v.startLineNumber&&x.startColumnv.endColumn)}strictContainsRange(v){return ss.strictContainsRange(this,v)}static strictContainsRange(v,x){return!(x.startLineNumberv.endLineNumber||x.endLineNumber>v.endLineNumber||x.startLineNumber===v.startLineNumber&&x.startColumn<=v.startColumn||x.endLineNumber===v.endLineNumber&&x.endColumn>=v.endColumn)}plusRange(v){return ss.plusRange(this,v)}static plusRange(v,x){let F,$,ge,Le;return x.startLineNumberv.endLineNumber?(ge=x.endLineNumber,Le=x.endColumn):x.endLineNumber===v.endLineNumber?(ge=x.endLineNumber,Le=Math.max(x.endColumn,v.endColumn)):(ge=v.endLineNumber,Le=v.endColumn),new ss(F,$,ge,Le)}intersectRanges(v){return ss.intersectRanges(this,v)}static intersectRanges(v,x){let F=v.startLineNumber,$=v.startColumn,ge=v.endLineNumber,Le=v.endColumn;const Ke=x.startLineNumber,ae=x.startColumn,bt=x.endLineNumber,et=x.endColumn;return Fbt?(ge=bt,Le=et):ge===bt&&(Le=Math.min(Le,et)),F>ge||F===ge&&$>Le?null:new ss(F,$,ge,Le)}equalsRange(v){return ss.equalsRange(this,v)}static equalsRange(v,x){return!v&&!x?!0:!!v&&!!x&&v.startLineNumber===x.startLineNumber&&v.startColumn===x.startColumn&&v.endLineNumber===x.endLineNumber&&v.endColumn===x.endColumn}getEndPosition(){return ss.getEndPosition(this)}static getEndPosition(v){return new Zc(v.endLineNumber,v.endColumn)}getStartPosition(){return ss.getStartPosition(this)}static getStartPosition(v){return new Zc(v.startLineNumber,v.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(v,x){return new ss(this.startLineNumber,this.startColumn,v,x)}setStartPosition(v,x){return new ss(v,x,this.endLineNumber,this.endColumn)}collapseToStart(){return ss.collapseToStart(this)}static collapseToStart(v){return new ss(v.startLineNumber,v.startColumn,v.startLineNumber,v.startColumn)}collapseToEnd(){return ss.collapseToEnd(this)}static collapseToEnd(v){return new ss(v.endLineNumber,v.endColumn,v.endLineNumber,v.endColumn)}delta(v){return new ss(this.startLineNumber+v,this.startColumn,this.endLineNumber+v,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(v,x=v){return new ss(v.lineNumber,v.column,x.lineNumber,x.column)}static lift(v){return v?new ss(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):null}static isIRange(v){return!!v&&typeof v.startLineNumber=="number"&&typeof v.startColumn=="number"&&typeof v.endLineNumber=="number"&&typeof v.endColumn=="number"}static areIntersectingOrTouching(v,x){return!(v.endLineNumberv.startLineNumber}toJSON(){return this}}function jye(_){return _<0?0:_>255?255:_|0}function KL(_){return _<0?0:_>4294967295?4294967295:_|0}class Z${constructor(v){const x=jye(v);this._defaultValue=x,this._asciiMap=Z$._createAsciiMap(x),this._map=new Map}static _createAsciiMap(v){const x=new Uint8Array(256);return x.fill(v),x}set(v,x){const F=jye(x);v>=0&&v<256?this._asciiMap[v]=F:this._map.set(v,F)}get(v){return v>=0&&v<256?this._asciiMap[v]:this._map.get(v)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class aze{constructor(v,x,F){const $=new Uint8Array(v*x);for(let ge=0,Le=v*x;gex&&(x=ae),Ke>F&&(F=Ke),bt>F&&(F=bt)}x++,F++;const $=new aze(F,x,0);for(let ge=0,Le=v.length;ge=this._maxCharCode?0:this._states.get(v,x)}}let eQ=null;function lze(){return eQ===null&&(eQ=new sze([[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]])),eQ}let g8=null;function cze(){if(g8===null){g8=new Z$(0);const _=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let x=0;x<_.length;x++)g8.set(_.charCodeAt(x),1);const v=".,;:";for(let x=0;x$);if($>0){const Ke=x.charCodeAt($-1),ae=x.charCodeAt(Le);(Ke===40&&ae===41||Ke===91&&ae===93||Ke===123&&ae===125)&&Le--}return{range:{startLineNumber:F,startColumn:$+1,endLineNumber:F,endColumn:Le+2},url:x.substring($,Le+1)}}static computeLinks(v,x=lze()){const F=cze(),$=[];for(let ge=1,Le=v.getLineCount();ge<=Le;ge++){const Ke=v.getLineContent(ge),ae=Ke.length;let bt=0,et=0,Ye=0,Pn=1,Hn=!1,cr=!1,Gn=!1,ki=!1;for(;bt=0?($+=F?1:-1,$<0?$=v.length-1:$%=v.length,v[$]):null}}const Uye=Object.freeze(function(_,v){const x=setTimeout(_.bind(v),0);return{dispose(){clearTimeout(x)}}});var lB;(function(_){function v(x){return x===_.None||x===_.Cancelled||x instanceof cB?!0:!x||typeof x!="object"?!1:typeof x.isCancellationRequested=="boolean"&&typeof x.onCancellationRequested=="function"}_.isCancellationToken=v,_.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:V$.None}),_.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Uye})})(lB||(lB={}));class cB{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?Uye:(this._emitter||(this._emitter=new OE),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class uze{constructor(v){this._token=void 0,this._parentListener=void 0,this._parentListener=v&&v.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new cB),this._token}cancel(){this._token?this._token instanceof cB&&this._token.cancel():this._token=lB.Cancelled}dispose(v=!1){v&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof cB&&this._token.dispose():this._token=lB.None}}class nQ{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(v,x){this._keyCodeToStr[v]=x,this._strToKeyCode[x.toLowerCase()]=v}keyCodeToStr(v){return this._keyCodeToStr[v]}strToKeyCode(v){return this._strToKeyCode[v.toLowerCase()]||0}}const dB=new nQ,rQ=new nQ,iQ=new nQ,pze=new Array(230),fze=Object.create(null),mze=Object.create(null);(function(){const _="",v=[[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",_,_]],x=[],F=[];for(const $ of v){const[ge,Le,Ke,ae,bt,et,Ye,Pn,Hn]=$;if(F[Le]||(F[Le]=!0,fze[Ke]=Le,mze[Ke.toLowerCase()]=Le),!x[ae]){if(x[ae]=!0,!bt)throw new Error(`String representation missing for key code ${ae} around scan code ${Ke}`);dB.define(ae,bt),rQ.define(ae,Pn||bt),iQ.define(ae,Hn||Pn||bt)}et&&(pze[et]=ae)}})();var Hye;(function(_){function v(Ke){return dB.keyCodeToStr(Ke)}_.toString=v;function x(Ke){return dB.strToKeyCode(Ke)}_.fromString=x;function F(Ke){return rQ.keyCodeToStr(Ke)}_.toUserSettingsUS=F;function $(Ke){return iQ.keyCodeToStr(Ke)}_.toUserSettingsGeneral=$;function ge(Ke){return rQ.strToKeyCode(Ke)||iQ.strToKeyCode(Ke)}_.fromUserSettings=ge;function Le(Ke){if(Ke>=98&&Ke<=113)return null;switch(Ke){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return dB.keyCodeToStr(Ke)}_.toElectronAccelerator=Le})(Hye||(Hye={}));function hze(_,v){const x=(v&65535)<<16>>>0;return(_|x)>>>0}var qye={};let XL;const oQ=globalThis.vscode;if(typeof oQ<"u"&&typeof oQ.process<"u"){const _=oQ.process;XL={get platform(){return _.platform},get arch(){return _.arch},get env(){return _.env},cwd(){return _.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?XL={get platform(){return process.platform},get arch(){return process.arch},get env(){return qye},cwd(){return qye.VSCODE_CWD||process.cwd()}}:XL={get platform(){return _8?"win32":L7e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const uB=XL.cwd,_ze=XL.env,gze=XL.platform,yze=65,vze=97,bze=90,Tze=122,sN=46,Oh=47,Jy=92,GA=58,Sze=63;class Jye extends Error{constructor(v,x,F){let $;typeof x=="string"&&x.indexOf("not ")===0?($="must not be",x=x.replace(/^not /,"")):$="must be";const ge=v.indexOf(".")!==-1?"property":"argument";let Le=`The "${v}" ${ge} ${$} of type ${x}`;Le+=`. Received type ${typeof F}`,super(Le),this.code="ERR_INVALID_ARG_TYPE"}}function Eze(_,v){if(_===null||typeof _!="object")throw new Jye(v,"Object",_)}function Lf(_,v){if(typeof _!="string")throw new Jye(v,"string",_)}const yR=gze==="win32";function $l(_){return _===Oh||_===Jy}function aQ(_){return _===Oh}function VA(_){return _>=yze&&_<=bze||_>=vze&&_<=Tze}function pB(_,v,x,F){let $="",ge=0,Le=-1,Ke=0,ae=0;for(let bt=0;bt<=_.length;++bt){if(bt<_.length)ae=_.charCodeAt(bt);else{if(F(ae))break;ae=Oh}if(F(ae)){if(!(Le===bt-1||Ke===1))if(Ke===2){if($.length<2||ge!==2||$.charCodeAt($.length-1)!==sN||$.charCodeAt($.length-2)!==sN){if($.length>2){const et=$.lastIndexOf(x);et===-1?($="",ge=0):($=$.slice(0,et),ge=$.length-1-$.lastIndexOf(x)),Le=bt,Ke=0;continue}else if($.length!==0){$="",ge=0,Le=bt,Ke=0;continue}}v&&($+=$.length>0?`${x}..`:"..",ge=2)}else $.length>0?$+=`${x}${_.slice(Le+1,bt)}`:$=_.slice(Le+1,bt),ge=bt-Le-1;Le=bt,Ke=0}else ae===sN&&Ke!==-1?++Ke:Ke=-1}return $}function Aze(_){return _?`${_[0]==="."?"":"."}${_}`:""}function Kye(_,v){Eze(v,"pathObject");const x=v.dir||v.root,F=v.base||`${v.name||""}${Aze(v.ext)}`;return x?x===v.root?`${x}${F}`:`${x}${_}${F}`:F}const Yg={resolve(..._){let v="",x="",F=!1;for(let $=_.length-1;$>=-1;$--){let ge;if($>=0){if(ge=_[$],Lf(ge,`paths[${$}]`),ge.length===0)continue}else v.length===0?ge=uB():(ge=_ze[`=${v}`]||uB(),(ge===void 0||ge.slice(0,2).toLowerCase()!==v.toLowerCase()&&ge.charCodeAt(2)===Jy)&&(ge=`${v}\\`));const Le=ge.length;let Ke=0,ae="",bt=!1;const et=ge.charCodeAt(0);if(Le===1)$l(et)&&(Ke=1,bt=!0);else if($l(et))if(bt=!0,$l(ge.charCodeAt(1))){let Ye=2,Pn=Ye;for(;Ye2&&$l(ge.charCodeAt(2))&&(bt=!0,Ke=3));if(ae.length>0)if(v.length>0){if(ae.toLowerCase()!==v.toLowerCase())continue}else v=ae;if(F){if(v.length>0)break}else if(x=`${ge.slice(Ke)}\\${x}`,F=bt,bt&&v.length>0)break}return x=pB(x,!F,"\\",$l),F?`${v}\\${x}`:`${v}${x}`||"."},normalize(_){Lf(_,"path");const v=_.length;if(v===0)return".";let x=0,F,$=!1;const ge=_.charCodeAt(0);if(v===1)return aQ(ge)?"\\":_;if($l(ge))if($=!0,$l(_.charCodeAt(1))){let Ke=2,ae=Ke;for(;Ke2&&$l(_.charCodeAt(2))&&($=!0,x=3));let Le=x0&&$l(_.charCodeAt(v-1))&&(Le+="\\"),!$&&F===void 0&&_.includes(":")){if(Le.length>=2&&VA(Le.charCodeAt(0))&&Le.charCodeAt(1)===GA)return`.\\${Le}`;let Ke=_.indexOf(":");do if(Ke===v-1||$l(_.charCodeAt(Ke+1)))return`.\\${Le}`;while((Ke=_.indexOf(":",Ke+1))!==-1)}return F===void 0?$?`\\${Le}`:Le:$?`${F}\\${Le}`:`${F}${Le}`},isAbsolute(_){Lf(_,"path");const v=_.length;if(v===0)return!1;const x=_.charCodeAt(0);return $l(x)||v>2&&VA(x)&&_.charCodeAt(1)===GA&&$l(_.charCodeAt(2))},join(..._){if(_.length===0)return".";let v,x;for(let ge=0;ge<_.length;++ge){const Le=_[ge];Lf(Le,"path"),Le.length>0&&(v===void 0?v=x=Le:v+=`\\${Le}`)}if(v===void 0)return".";let F=!0,$=0;if(typeof x=="string"&&$l(x.charCodeAt(0))){++$;const ge=x.length;ge>1&&$l(x.charCodeAt(1))&&(++$,ge>2&&($l(x.charCodeAt(2))?++$:F=!1))}if(F){for(;$=2&&(v=`\\${v.slice($)}`)}return Yg.normalize(v)},relative(_,v){if(Lf(_,"from"),Lf(v,"to"),_===v)return"";const x=Yg.resolve(_),F=Yg.resolve(v);if(x===F||(_=x.toLowerCase(),v=F.toLowerCase(),_===v))return"";if(x.length!==_.length||F.length!==v.length){const cr=x.split("\\"),Gn=F.split("\\");cr[cr.length-1]===""&&cr.pop(),Gn[Gn.length-1]===""&&Gn.pop();const ki=cr.length,bo=Gn.length,Vn=kiVn?Gn.slice(hn).join("\\"):ki>Vn?"..\\".repeat(ki-1-hn)+"..":"":"..\\".repeat(ki-hn)+Gn.slice(hn).join("\\")}let $=0;for(;$<_.length&&_.charCodeAt($)===Jy;)$++;let ge=_.length;for(;ge-1>$&&_.charCodeAt(ge-1)===Jy;)ge--;const Le=ge-$;let Ke=0;for(;KeKe&&v.charCodeAt(ae-1)===Jy;)ae--;const bt=ae-Ke,et=Leet){if(v.charCodeAt(Ke+Pn)===Jy)return F.slice(Ke+Pn+1);if(Pn===2)return F.slice(Ke+Pn)}Le>et&&(_.charCodeAt($+Pn)===Jy?Ye=Pn:Pn===2&&(Ye=3)),Ye===-1&&(Ye=0)}let Hn="";for(Pn=$+Ye+1;Pn<=ge;++Pn)(Pn===ge||_.charCodeAt(Pn)===Jy)&&(Hn+=Hn.length===0?"..":"\\..");return Ke+=Ye,Hn.length>0?`${Hn}${F.slice(Ke,ae)}`:(F.charCodeAt(Ke)===Jy&&++Ke,F.slice(Ke,ae))},toNamespacedPath(_){if(typeof _!="string"||_.length===0)return _;const v=Yg.resolve(_);if(v.length<=2)return _;if(v.charCodeAt(0)===Jy){if(v.charCodeAt(1)===Jy){const x=v.charCodeAt(2);if(x!==Sze&&x!==sN)return`\\\\?\\UNC\\${v.slice(2)}`}}else if(VA(v.charCodeAt(0))&&v.charCodeAt(1)===GA&&v.charCodeAt(2)===Jy)return`\\\\?\\${v}`;return v},dirname(_){Lf(_,"path");const v=_.length;if(v===0)return".";let x=-1,F=0;const $=_.charCodeAt(0);if(v===1)return $l($)?_:".";if($l($)){if(x=F=1,$l(_.charCodeAt(1))){let Ke=2,ae=Ke;for(;Ke2&&$l(_.charCodeAt(2))?3:2,F=x);let ge=-1,Le=!0;for(let Ke=v-1;Ke>=F;--Ke)if($l(_.charCodeAt(Ke))){if(!Le){ge=Ke;break}}else Le=!1;if(ge===-1){if(x===-1)return".";ge=x}return _.slice(0,ge)},basename(_,v){v!==void 0&&Lf(v,"suffix"),Lf(_,"path");let x=0,F=-1,$=!0,ge;if(_.length>=2&&VA(_.charCodeAt(0))&&_.charCodeAt(1)===GA&&(x=2),v!==void 0&&v.length>0&&v.length<=_.length){if(v===_)return"";let Le=v.length-1,Ke=-1;for(ge=_.length-1;ge>=x;--ge){const ae=_.charCodeAt(ge);if($l(ae)){if(!$){x=ge+1;break}}else Ke===-1&&($=!1,Ke=ge+1),Le>=0&&(ae===v.charCodeAt(Le)?--Le===-1&&(F=ge):(Le=-1,F=Ke))}return x===F?F=Ke:F===-1&&(F=_.length),_.slice(x,F)}for(ge=_.length-1;ge>=x;--ge)if($l(_.charCodeAt(ge))){if(!$){x=ge+1;break}}else F===-1&&($=!1,F=ge+1);return F===-1?"":_.slice(x,F)},extname(_){Lf(_,"path");let v=0,x=-1,F=0,$=-1,ge=!0,Le=0;_.length>=2&&_.charCodeAt(1)===GA&&VA(_.charCodeAt(0))&&(v=F=2);for(let Ke=_.length-1;Ke>=v;--Ke){const ae=_.charCodeAt(Ke);if($l(ae)){if(!ge){F=Ke+1;break}continue}$===-1&&(ge=!1,$=Ke+1),ae===sN?x===-1?x=Ke:Le!==1&&(Le=1):x!==-1&&(Le=-1)}return x===-1||$===-1||Le===0||Le===1&&x===$-1&&x===F+1?"":_.slice(x,$)},format:Kye.bind(null,"\\"),parse(_){Lf(_,"path");const v={root:"",dir:"",base:"",ext:"",name:""};if(_.length===0)return v;const x=_.length;let F=0,$=_.charCodeAt(0);if(x===1)return $l($)?(v.root=v.dir=_,v):(v.base=v.name=_,v);if($l($)){if(F=1,$l(_.charCodeAt(1))){let Ye=2,Pn=Ye;for(;Ye0&&(v.root=_.slice(0,F));let ge=-1,Le=F,Ke=-1,ae=!0,bt=_.length-1,et=0;for(;bt>=F;--bt){if($=_.charCodeAt(bt),$l($)){if(!ae){Le=bt+1;break}continue}Ke===-1&&(ae=!1,Ke=bt+1),$===sN?ge===-1?ge=bt:et!==1&&(et=1):ge!==-1&&(et=-1)}return Ke!==-1&&(ge===-1||et===0||et===1&&ge===Ke-1&&ge===Le+1?v.base=v.name=_.slice(Le,Ke):(v.name=_.slice(Le,ge),v.base=_.slice(Le,Ke),v.ext=_.slice(ge,Ke))),Le>0&&Le!==F?v.dir=_.slice(0,Le-1):v.dir=v.root,v},sep:"\\",delimiter:";",win32:null,posix:null},Ize=(()=>{if(yR){const _=/\\/g;return()=>{const v=uB().replace(_,"/");return v.slice(v.indexOf("/"))}}return()=>uB()})(),Ky={resolve(..._){let v="",x=!1;for(let F=_.length-1;F>=0&&!x;F--){const $=_[F];Lf($,`paths[${F}]`),$.length!==0&&(v=`${$}/${v}`,x=$.charCodeAt(0)===Oh)}if(!x){const F=Ize();v=`${F}/${v}`,x=F.charCodeAt(0)===Oh}return v=pB(v,!x,"/",aQ),x?`/${v}`:v.length>0?v:"."},normalize(_){if(Lf(_,"path"),_.length===0)return".";const v=_.charCodeAt(0)===Oh,x=_.charCodeAt(_.length-1)===Oh;return _=pB(_,!v,"/",aQ),_.length===0?v?"/":x?"./":".":(x&&(_+="/"),v?`/${_}`:_)},isAbsolute(_){return Lf(_,"path"),_.length>0&&_.charCodeAt(0)===Oh},join(..._){if(_.length===0)return".";const v=[];for(let x=0;x<_.length;++x){const F=_[x];Lf(F,"path"),F.length>0&&v.push(F)}return v.length===0?".":Ky.normalize(v.join("/"))},relative(_,v){if(Lf(_,"from"),Lf(v,"to"),_===v||(_=Ky.resolve(_),v=Ky.resolve(v),_===v))return"";const x=1,F=_.length,$=F-x,ge=1,Le=v.length-ge,Ke=$Ke){if(v.charCodeAt(ge+bt)===Oh)return v.slice(ge+bt+1);if(bt===0)return v.slice(ge+bt)}else $>Ke&&(_.charCodeAt(x+bt)===Oh?ae=bt:bt===0&&(ae=0));let et="";for(bt=x+ae+1;bt<=F;++bt)(bt===F||_.charCodeAt(bt)===Oh)&&(et+=et.length===0?"..":"/..");return`${et}${v.slice(ge+ae)}`},toNamespacedPath(_){return _},dirname(_){if(Lf(_,"path"),_.length===0)return".";const v=_.charCodeAt(0)===Oh;let x=-1,F=!0;for(let $=_.length-1;$>=1;--$)if(_.charCodeAt($)===Oh){if(!F){x=$;break}}else F=!1;return x===-1?v?"/":".":v&&x===1?"//":_.slice(0,x)},basename(_,v){v!==void 0&&Lf(v,"suffix"),Lf(_,"path");let x=0,F=-1,$=!0,ge;if(v!==void 0&&v.length>0&&v.length<=_.length){if(v===_)return"";let Le=v.length-1,Ke=-1;for(ge=_.length-1;ge>=0;--ge){const ae=_.charCodeAt(ge);if(ae===Oh){if(!$){x=ge+1;break}}else Ke===-1&&($=!1,Ke=ge+1),Le>=0&&(ae===v.charCodeAt(Le)?--Le===-1&&(F=ge):(Le=-1,F=Ke))}return x===F?F=Ke:F===-1&&(F=_.length),_.slice(x,F)}for(ge=_.length-1;ge>=0;--ge)if(_.charCodeAt(ge)===Oh){if(!$){x=ge+1;break}}else F===-1&&($=!1,F=ge+1);return F===-1?"":_.slice(x,F)},extname(_){Lf(_,"path");let v=-1,x=0,F=-1,$=!0,ge=0;for(let Le=_.length-1;Le>=0;--Le){const Ke=_[Le];if(Ke==="/"){if(!$){x=Le+1;break}continue}F===-1&&($=!1,F=Le+1),Ke==="."?v===-1?v=Le:ge!==1&&(ge=1):v!==-1&&(ge=-1)}return v===-1||F===-1||ge===0||ge===1&&v===F-1&&v===x+1?"":_.slice(v,F)},format:Kye.bind(null,"/"),parse(_){Lf(_,"path");const v={root:"",dir:"",base:"",ext:"",name:""};if(_.length===0)return v;const x=_.charCodeAt(0)===Oh;let F;x?(v.root="/",F=1):F=0;let $=-1,ge=0,Le=-1,Ke=!0,ae=_.length-1,bt=0;for(;ae>=F;--ae){const et=_.charCodeAt(ae);if(et===Oh){if(!Ke){ge=ae+1;break}continue}Le===-1&&(Ke=!1,Le=ae+1),et===sN?$===-1?$=ae:bt!==1&&(bt=1):$!==-1&&(bt=-1)}if(Le!==-1){const et=ge===0&&x?1:ge;$===-1||bt===0||bt===1&&$===Le-1&&$===ge+1?v.base=v.name=_.slice(et,Le):(v.name=_.slice(et,$),v.base=_.slice(et,Le),v.ext=_.slice($,Le))}return ge>0?v.dir=_.slice(0,ge-1):x&&(v.dir="/"),v},sep:"/",delimiter:":",win32:null,posix:null};Ky.win32=Yg.win32=Yg,Ky.posix=Yg.posix=Ky,yR?Yg.normalize:Ky.normalize,yR?Yg.resolve:Ky.resolve,yR?Yg.relative:Ky.relative,yR?Yg.dirname:Ky.dirname,yR?Yg.basename:Ky.basename,yR?Yg.extname:Ky.extname,yR?Yg.sep:Ky.sep;const xze=/^\w[\w\d+.-]*$/,Rze=/^\//,Dze=/^\/\//;function Cze(_,v){if(!_.scheme&&v)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${_.authority}", path: "${_.path}", query: "${_.query}", fragment: "${_.fragment}"}`);if(_.scheme&&!xze.test(_.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(_.path){if(_.authority){if(!Rze.test(_.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(Dze.test(_.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Nze(_,v){return!_&&!v?"file":_}function Mze(_,v){switch(_){case"https":case"http":case"file":v?v[0]!==aS&&(v=aS+v):v=aS;break}return v}const Ku="",aS="/",Pze=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class lN{static isUri(v){return v instanceof lN?!0:!v||typeof v!="object"?!1:typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function"}constructor(v,x,F,$,ge,Le=!1){typeof v=="object"?(this.scheme=v.scheme||Ku,this.authority=v.authority||Ku,this.path=v.path||Ku,this.query=v.query||Ku,this.fragment=v.fragment||Ku):(this.scheme=Nze(v,Le),this.authority=x||Ku,this.path=Mze(this.scheme,F||Ku),this.query=$||Ku,this.fragment=ge||Ku,Cze(this,Le))}get fsPath(){return sQ(this,!1)}with(v){if(!v)return this;let{scheme:x,authority:F,path:$,query:ge,fragment:Le}=v;return x===void 0?x=this.scheme:x===null&&(x=Ku),F===void 0?F=this.authority:F===null&&(F=Ku),$===void 0?$=this.path:$===null&&($=Ku),ge===void 0?ge=this.query:ge===null&&(ge=Ku),Le===void 0?Le=this.fragment:Le===null&&(Le=Ku),x===this.scheme&&F===this.authority&&$===this.path&&ge===this.query&&Le===this.fragment?this:new YL(x,F,$,ge,Le)}static parse(v,x=!1){const F=Pze.exec(v);return F?new YL(F[2]||Ku,fB(F[4]||Ku),fB(F[5]||Ku),fB(F[7]||Ku),fB(F[9]||Ku),x):new YL(Ku,Ku,Ku,Ku,Ku)}static file(v){let x=Ku;if(_8&&(v=v.replace(/\\/g,aS)),v[0]===aS&&v[1]===aS){const F=v.indexOf(aS,2);F===-1?(x=v.substring(2),v=aS):(x=v.substring(2,F),v=v.substring(F)||aS)}return new YL("file",x,v,Ku,Ku)}static from(v,x){return new YL(v.scheme,v.authority,v.path,v.query,v.fragment,x)}static joinPath(v,...x){if(!v.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let F;return _8&&v.scheme==="file"?F=lN.file(Yg.join(sQ(v,!0),...x)).path:F=Ky.join(v.path,...x),v.with({path:F})}toString(v=!1){return lQ(this,v)}toJSON(){return this}static revive(v){if(v){if(v instanceof lN)return v;{const x=new YL(v);return x._formatted=v.external??null,x._fsPath=v._sep===Xye?v.fsPath??null:null,x}}else return v}}const Xye=_8?1:void 0;class YL extends lN{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=sQ(this,!1)),this._fsPath}toString(v=!1){return v?lQ(this,!0):(this._formatted||(this._formatted=lQ(this,!1)),this._formatted)}toJSON(){const v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=Xye),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}}const Yye={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 $ye(_,v,x){let F,$=-1;for(let ge=0;ge<_.length;ge++){const Le=_.charCodeAt(ge);if(Le>=97&&Le<=122||Le>=65&&Le<=90||Le>=48&&Le<=57||Le===45||Le===46||Le===95||Le===126||v&&Le===47||x&&Le===91||x&&Le===93||x&&Le===58)$!==-1&&(F+=encodeURIComponent(_.substring($,ge)),$=-1),F!==void 0&&(F+=_.charAt(ge));else{F===void 0&&(F=_.substr(0,ge));const Ke=Yye[Le];Ke!==void 0?($!==-1&&(F+=encodeURIComponent(_.substring($,ge)),$=-1),F+=Ke):$===-1&&($=ge)}}return $!==-1&&(F+=encodeURIComponent(_.substring($))),F!==void 0?F:_}function Lze(_){let v;for(let x=0;x<_.length;x++){const F=_.charCodeAt(x);F===35||F===63?(v===void 0&&(v=_.substr(0,x)),v+=Yye[F]):v!==void 0&&(v+=_[x])}return v!==void 0?v:_}function sQ(_,v){let x;return _.authority&&_.path.length>1&&_.scheme==="file"?x=`//${_.authority}${_.path}`:_.path.charCodeAt(0)===47&&(_.path.charCodeAt(1)>=65&&_.path.charCodeAt(1)<=90||_.path.charCodeAt(1)>=97&&_.path.charCodeAt(1)<=122)&&_.path.charCodeAt(2)===58?v?x=_.path.substr(1):x=_.path[1].toLowerCase()+_.path.substr(2):x=_.path,_8&&(x=x.replace(/\//g,"\\")),x}function lQ(_,v){const x=v?Lze:$ye;let F="",{scheme:$,authority:ge,path:Le,query:Ke,fragment:ae}=_;if($&&(F+=$,F+=":"),(ge||$==="file")&&(F+=aS,F+=aS),ge){let bt=ge.indexOf("@");if(bt!==-1){const et=ge.substr(0,bt);ge=ge.substr(bt+1),bt=et.lastIndexOf(":"),bt===-1?F+=x(et,!1,!1):(F+=x(et.substr(0,bt),!1,!1),F+=":",F+=x(et.substr(bt+1),!1,!0)),F+="@"}ge=ge.toLowerCase(),bt=ge.lastIndexOf(":"),bt===-1?F+=x(ge,!1,!0):(F+=x(ge.substr(0,bt),!1,!0),F+=ge.substr(bt))}if(Le){if(Le.length>=3&&Le.charCodeAt(0)===47&&Le.charCodeAt(2)===58){const bt=Le.charCodeAt(1);bt>=65&&bt<=90&&(Le=`/${String.fromCharCode(bt+32)}:${Le.substr(3)}`)}else if(Le.length>=2&&Le.charCodeAt(1)===58){const bt=Le.charCodeAt(0);bt>=65&&bt<=90&&(Le=`${String.fromCharCode(bt+32)}:${Le.substr(2)}`)}F+=x(Le,!0,!1)}return Ke&&(F+="?",F+=x(Ke,!1,!1)),ae&&(F+="#",F+=v?ae:$ye(ae,!1,!1)),F}function Qye(_){try{return decodeURIComponent(_)}catch{return _.length>3?_.substr(0,3)+Qye(_.substr(3)):_}}const Zye=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function fB(_){return _.match(Zye)?_.replace(Zye,v=>Qye(v)):_}class Kv extends ss{constructor(v,x,F,$){super(v,x,F,$),this.selectionStartLineNumber=v,this.selectionStartColumn=x,this.positionLineNumber=F,this.positionColumn=$}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(v){return Kv.selectionsEqual(this,v)}static selectionsEqual(v,x){return v.selectionStartLineNumber===x.selectionStartLineNumber&&v.selectionStartColumn===x.selectionStartColumn&&v.positionLineNumber===x.positionLineNumber&&v.positionColumn===x.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(v,x){return this.getDirection()===0?new Kv(this.startLineNumber,this.startColumn,v,x):new Kv(v,x,this.startLineNumber,this.startColumn)}getPosition(){return new Zc(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Zc(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(v,x){return this.getDirection()===0?new Kv(v,x,this.endLineNumber,this.endColumn):new Kv(this.endLineNumber,this.endColumn,v,x)}static fromPositions(v,x=v){return new Kv(v.lineNumber,v.column,x.lineNumber,x.column)}static fromRange(v,x){return x===0?new Kv(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):new Kv(v.endLineNumber,v.endColumn,v.startLineNumber,v.startColumn)}static liftSelection(v){return new Kv(v.selectionStartLineNumber,v.selectionStartColumn,v.positionLineNumber,v.positionColumn)}static selectionsArrEqual(v,x){if(v&&!x||!v&&x)return!1;if(!v&&!x)return!0;if(v.length!==x.length)return!1;for(let F=0,$=v.length;F<$;F++)if(!this.selectionsEqual(v[F],x[F]))return!1;return!0}static isISelection(v){return!!v&&typeof v.selectionStartLineNumber=="number"&&typeof v.selectionStartColumn=="number"&&typeof v.positionLineNumber=="number"&&typeof v.positionColumn=="number"}static createWithDirection(v,x,F,$,ge){return ge===0?new Kv(v,x,F,$):new Kv(F,$,v,x)}}const eve=Object.create(null);function De(_,v){if(g7e(v)){const x=eve[v];if(x===void 0)throw new Error(`${_} references an unknown codicon: ${v}`);v=x}return eve[_]=v,{id:_}}const kze={add:De("add",6e4),plus:De("plus",6e4),gistNew:De("gist-new",6e4),repoCreate:De("repo-create",6e4),lightbulb:De("lightbulb",60001),lightBulb:De("light-bulb",60001),repo:De("repo",60002),repoDelete:De("repo-delete",60002),gistFork:De("gist-fork",60003),repoForked:De("repo-forked",60003),gitPullRequest:De("git-pull-request",60004),gitPullRequestAbandoned:De("git-pull-request-abandoned",60004),recordKeys:De("record-keys",60005),keyboard:De("keyboard",60005),tag:De("tag",60006),gitPullRequestLabel:De("git-pull-request-label",60006),tagAdd:De("tag-add",60006),tagRemove:De("tag-remove",60006),person:De("person",60007),personFollow:De("person-follow",60007),personOutline:De("person-outline",60007),personFilled:De("person-filled",60007),sourceControl:De("source-control",60008),mirror:De("mirror",60009),mirrorPublic:De("mirror-public",60009),star:De("star",60010),starAdd:De("star-add",60010),starDelete:De("star-delete",60010),starEmpty:De("star-empty",60010),comment:De("comment",60011),commentAdd:De("comment-add",60011),alert:De("alert",60012),warning:De("warning",60012),search:De("search",60013),searchSave:De("search-save",60013),logOut:De("log-out",60014),signOut:De("sign-out",60014),logIn:De("log-in",60015),signIn:De("sign-in",60015),eye:De("eye",60016),eyeUnwatch:De("eye-unwatch",60016),eyeWatch:De("eye-watch",60016),circleFilled:De("circle-filled",60017),primitiveDot:De("primitive-dot",60017),closeDirty:De("close-dirty",60017),debugBreakpoint:De("debug-breakpoint",60017),debugBreakpointDisabled:De("debug-breakpoint-disabled",60017),debugHint:De("debug-hint",60017),terminalDecorationSuccess:De("terminal-decoration-success",60017),primitiveSquare:De("primitive-square",60018),edit:De("edit",60019),pencil:De("pencil",60019),info:De("info",60020),issueOpened:De("issue-opened",60020),gistPrivate:De("gist-private",60021),gitForkPrivate:De("git-fork-private",60021),lock:De("lock",60021),mirrorPrivate:De("mirror-private",60021),close:De("close",60022),removeClose:De("remove-close",60022),x:De("x",60022),repoSync:De("repo-sync",60023),sync:De("sync",60023),clone:De("clone",60024),desktopDownload:De("desktop-download",60024),beaker:De("beaker",60025),microscope:De("microscope",60025),vm:De("vm",60026),deviceDesktop:De("device-desktop",60026),file:De("file",60027),more:De("more",60028),ellipsis:De("ellipsis",60028),kebabHorizontal:De("kebab-horizontal",60028),mailReply:De("mail-reply",60029),reply:De("reply",60029),organization:De("organization",60030),organizationFilled:De("organization-filled",60030),organizationOutline:De("organization-outline",60030),newFile:De("new-file",60031),fileAdd:De("file-add",60031),newFolder:De("new-folder",60032),fileDirectoryCreate:De("file-directory-create",60032),trash:De("trash",60033),trashcan:De("trashcan",60033),history:De("history",60034),clock:De("clock",60034),folder:De("folder",60035),fileDirectory:De("file-directory",60035),symbolFolder:De("symbol-folder",60035),logoGithub:De("logo-github",60036),markGithub:De("mark-github",60036),github:De("github",60036),terminal:De("terminal",60037),console:De("console",60037),repl:De("repl",60037),zap:De("zap",60038),symbolEvent:De("symbol-event",60038),error:De("error",60039),stop:De("stop",60039),variable:De("variable",60040),symbolVariable:De("symbol-variable",60040),array:De("array",60042),symbolArray:De("symbol-array",60042),symbolModule:De("symbol-module",60043),symbolPackage:De("symbol-package",60043),symbolNamespace:De("symbol-namespace",60043),symbolObject:De("symbol-object",60043),symbolMethod:De("symbol-method",60044),symbolFunction:De("symbol-function",60044),symbolConstructor:De("symbol-constructor",60044),symbolBoolean:De("symbol-boolean",60047),symbolNull:De("symbol-null",60047),symbolNumeric:De("symbol-numeric",60048),symbolNumber:De("symbol-number",60048),symbolStructure:De("symbol-structure",60049),symbolStruct:De("symbol-struct",60049),symbolParameter:De("symbol-parameter",60050),symbolTypeParameter:De("symbol-type-parameter",60050),symbolKey:De("symbol-key",60051),symbolText:De("symbol-text",60051),symbolReference:De("symbol-reference",60052),goToFile:De("go-to-file",60052),symbolEnum:De("symbol-enum",60053),symbolValue:De("symbol-value",60053),symbolRuler:De("symbol-ruler",60054),symbolUnit:De("symbol-unit",60054),activateBreakpoints:De("activate-breakpoints",60055),archive:De("archive",60056),arrowBoth:De("arrow-both",60057),arrowDown:De("arrow-down",60058),arrowLeft:De("arrow-left",60059),arrowRight:De("arrow-right",60060),arrowSmallDown:De("arrow-small-down",60061),arrowSmallLeft:De("arrow-small-left",60062),arrowSmallRight:De("arrow-small-right",60063),arrowSmallUp:De("arrow-small-up",60064),arrowUp:De("arrow-up",60065),bell:De("bell",60066),bold:De("bold",60067),book:De("book",60068),bookmark:De("bookmark",60069),debugBreakpointConditionalUnverified:De("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:De("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:De("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:De("debug-breakpoint-data-unverified",60072),debugBreakpointData:De("debug-breakpoint-data",60073),debugBreakpointDataDisabled:De("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:De("debug-breakpoint-log-unverified",60074),debugBreakpointLog:De("debug-breakpoint-log",60075),debugBreakpointLogDisabled:De("debug-breakpoint-log-disabled",60075),briefcase:De("briefcase",60076),broadcast:De("broadcast",60077),browser:De("browser",60078),bug:De("bug",60079),calendar:De("calendar",60080),caseSensitive:De("case-sensitive",60081),check:De("check",60082),checklist:De("checklist",60083),chevronDown:De("chevron-down",60084),chevronLeft:De("chevron-left",60085),chevronRight:De("chevron-right",60086),chevronUp:De("chevron-up",60087),chromeClose:De("chrome-close",60088),chromeMaximize:De("chrome-maximize",60089),chromeMinimize:De("chrome-minimize",60090),chromeRestore:De("chrome-restore",60091),circleOutline:De("circle-outline",60092),circle:De("circle",60092),debugBreakpointUnverified:De("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:De("terminal-decoration-incomplete",60092),circleSlash:De("circle-slash",60093),circuitBoard:De("circuit-board",60094),clearAll:De("clear-all",60095),clippy:De("clippy",60096),closeAll:De("close-all",60097),cloudDownload:De("cloud-download",60098),cloudUpload:De("cloud-upload",60099),code:De("code",60100),collapseAll:De("collapse-all",60101),colorMode:De("color-mode",60102),commentDiscussion:De("comment-discussion",60103),creditCard:De("credit-card",60105),dash:De("dash",60108),dashboard:De("dashboard",60109),database:De("database",60110),debugContinue:De("debug-continue",60111),debugDisconnect:De("debug-disconnect",60112),debugPause:De("debug-pause",60113),debugRestart:De("debug-restart",60114),debugStart:De("debug-start",60115),debugStepInto:De("debug-step-into",60116),debugStepOut:De("debug-step-out",60117),debugStepOver:De("debug-step-over",60118),debugStop:De("debug-stop",60119),debug:De("debug",60120),deviceCameraVideo:De("device-camera-video",60121),deviceCamera:De("device-camera",60122),deviceMobile:De("device-mobile",60123),diffAdded:De("diff-added",60124),diffIgnored:De("diff-ignored",60125),diffModified:De("diff-modified",60126),diffRemoved:De("diff-removed",60127),diffRenamed:De("diff-renamed",60128),diff:De("diff",60129),diffSidebyside:De("diff-sidebyside",60129),discard:De("discard",60130),editorLayout:De("editor-layout",60131),emptyWindow:De("empty-window",60132),exclude:De("exclude",60133),extensions:De("extensions",60134),eyeClosed:De("eye-closed",60135),fileBinary:De("file-binary",60136),fileCode:De("file-code",60137),fileMedia:De("file-media",60138),filePdf:De("file-pdf",60139),fileSubmodule:De("file-submodule",60140),fileSymlinkDirectory:De("file-symlink-directory",60141),fileSymlinkFile:De("file-symlink-file",60142),fileZip:De("file-zip",60143),files:De("files",60144),filter:De("filter",60145),flame:De("flame",60146),foldDown:De("fold-down",60147),foldUp:De("fold-up",60148),fold:De("fold",60149),folderActive:De("folder-active",60150),folderOpened:De("folder-opened",60151),gear:De("gear",60152),gift:De("gift",60153),gistSecret:De("gist-secret",60154),gist:De("gist",60155),gitCommit:De("git-commit",60156),gitCompare:De("git-compare",60157),compareChanges:De("compare-changes",60157),gitMerge:De("git-merge",60158),githubAction:De("github-action",60159),githubAlt:De("github-alt",60160),globe:De("globe",60161),grabber:De("grabber",60162),graph:De("graph",60163),gripper:De("gripper",60164),heart:De("heart",60165),home:De("home",60166),horizontalRule:De("horizontal-rule",60167),hubot:De("hubot",60168),inbox:De("inbox",60169),issueReopened:De("issue-reopened",60171),issues:De("issues",60172),italic:De("italic",60173),jersey:De("jersey",60174),json:De("json",60175),kebabVertical:De("kebab-vertical",60176),key:De("key",60177),law:De("law",60178),lightbulbAutofix:De("lightbulb-autofix",60179),linkExternal:De("link-external",60180),link:De("link",60181),listOrdered:De("list-ordered",60182),listUnordered:De("list-unordered",60183),liveShare:De("live-share",60184),loading:De("loading",60185),location:De("location",60186),mailRead:De("mail-read",60187),mail:De("mail",60188),markdown:De("markdown",60189),megaphone:De("megaphone",60190),mention:De("mention",60191),milestone:De("milestone",60192),gitPullRequestMilestone:De("git-pull-request-milestone",60192),mortarBoard:De("mortar-board",60193),move:De("move",60194),multipleWindows:De("multiple-windows",60195),mute:De("mute",60196),noNewline:De("no-newline",60197),note:De("note",60198),octoface:De("octoface",60199),openPreview:De("open-preview",60200),package:De("package",60201),paintcan:De("paintcan",60202),pin:De("pin",60203),play:De("play",60204),run:De("run",60204),plug:De("plug",60205),preserveCase:De("preserve-case",60206),preview:De("preview",60207),project:De("project",60208),pulse:De("pulse",60209),question:De("question",60210),quote:De("quote",60211),radioTower:De("radio-tower",60212),reactions:De("reactions",60213),references:De("references",60214),refresh:De("refresh",60215),regex:De("regex",60216),remoteExplorer:De("remote-explorer",60217),remote:De("remote",60218),remove:De("remove",60219),replaceAll:De("replace-all",60220),replace:De("replace",60221),repoClone:De("repo-clone",60222),repoForcePush:De("repo-force-push",60223),repoPull:De("repo-pull",60224),repoPush:De("repo-push",60225),report:De("report",60226),requestChanges:De("request-changes",60227),rocket:De("rocket",60228),rootFolderOpened:De("root-folder-opened",60229),rootFolder:De("root-folder",60230),rss:De("rss",60231),ruby:De("ruby",60232),saveAll:De("save-all",60233),saveAs:De("save-as",60234),save:De("save",60235),screenFull:De("screen-full",60236),screenNormal:De("screen-normal",60237),searchStop:De("search-stop",60238),server:De("server",60240),settingsGear:De("settings-gear",60241),settings:De("settings",60242),shield:De("shield",60243),smiley:De("smiley",60244),sortPrecedence:De("sort-precedence",60245),splitHorizontal:De("split-horizontal",60246),splitVertical:De("split-vertical",60247),squirrel:De("squirrel",60248),starFull:De("star-full",60249),starHalf:De("star-half",60250),symbolClass:De("symbol-class",60251),symbolColor:De("symbol-color",60252),symbolConstant:De("symbol-constant",60253),symbolEnumMember:De("symbol-enum-member",60254),symbolField:De("symbol-field",60255),symbolFile:De("symbol-file",60256),symbolInterface:De("symbol-interface",60257),symbolKeyword:De("symbol-keyword",60258),symbolMisc:De("symbol-misc",60259),symbolOperator:De("symbol-operator",60260),symbolProperty:De("symbol-property",60261),wrench:De("wrench",60261),wrenchSubaction:De("wrench-subaction",60261),symbolSnippet:De("symbol-snippet",60262),tasklist:De("tasklist",60263),telescope:De("telescope",60264),textSize:De("text-size",60265),threeBars:De("three-bars",60266),thumbsdown:De("thumbsdown",60267),thumbsup:De("thumbsup",60268),tools:De("tools",60269),triangleDown:De("triangle-down",60270),triangleLeft:De("triangle-left",60271),triangleRight:De("triangle-right",60272),triangleUp:De("triangle-up",60273),twitter:De("twitter",60274),unfold:De("unfold",60275),unlock:De("unlock",60276),unmute:De("unmute",60277),unverified:De("unverified",60278),verified:De("verified",60279),versions:De("versions",60280),vmActive:De("vm-active",60281),vmOutline:De("vm-outline",60282),vmRunning:De("vm-running",60283),watch:De("watch",60284),whitespace:De("whitespace",60285),wholeWord:De("whole-word",60286),window:De("window",60287),wordWrap:De("word-wrap",60288),zoomIn:De("zoom-in",60289),zoomOut:De("zoom-out",60290),listFilter:De("list-filter",60291),listFlat:De("list-flat",60292),listSelection:De("list-selection",60293),selection:De("selection",60293),listTree:De("list-tree",60294),debugBreakpointFunctionUnverified:De("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:De("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:De("debug-breakpoint-function-disabled",60296),debugStackframeActive:De("debug-stackframe-active",60297),circleSmallFilled:De("circle-small-filled",60298),debugStackframeDot:De("debug-stackframe-dot",60298),terminalDecorationMark:De("terminal-decoration-mark",60298),debugStackframe:De("debug-stackframe",60299),debugStackframeFocused:De("debug-stackframe-focused",60299),debugBreakpointUnsupported:De("debug-breakpoint-unsupported",60300),symbolString:De("symbol-string",60301),debugReverseContinue:De("debug-reverse-continue",60302),debugStepBack:De("debug-step-back",60303),debugRestartFrame:De("debug-restart-frame",60304),debugAlt:De("debug-alt",60305),callIncoming:De("call-incoming",60306),callOutgoing:De("call-outgoing",60307),menu:De("menu",60308),expandAll:De("expand-all",60309),feedback:De("feedback",60310),gitPullRequestReviewer:De("git-pull-request-reviewer",60310),groupByRefType:De("group-by-ref-type",60311),ungroupByRefType:De("ungroup-by-ref-type",60312),account:De("account",60313),gitPullRequestAssignee:De("git-pull-request-assignee",60313),bellDot:De("bell-dot",60314),debugConsole:De("debug-console",60315),library:De("library",60316),output:De("output",60317),runAll:De("run-all",60318),syncIgnored:De("sync-ignored",60319),pinned:De("pinned",60320),githubInverted:De("github-inverted",60321),serverProcess:De("server-process",60322),serverEnvironment:De("server-environment",60323),pass:De("pass",60324),issueClosed:De("issue-closed",60324),stopCircle:De("stop-circle",60325),playCircle:De("play-circle",60326),record:De("record",60327),debugAltSmall:De("debug-alt-small",60328),vmConnect:De("vm-connect",60329),cloud:De("cloud",60330),merge:De("merge",60331),export:De("export",60332),graphLeft:De("graph-left",60333),magnet:De("magnet",60334),notebook:De("notebook",60335),redo:De("redo",60336),checkAll:De("check-all",60337),pinnedDirty:De("pinned-dirty",60338),passFilled:De("pass-filled",60339),circleLargeFilled:De("circle-large-filled",60340),circleLarge:De("circle-large",60341),circleLargeOutline:De("circle-large-outline",60341),combine:De("combine",60342),gather:De("gather",60342),table:De("table",60343),variableGroup:De("variable-group",60344),typeHierarchy:De("type-hierarchy",60345),typeHierarchySub:De("type-hierarchy-sub",60346),typeHierarchySuper:De("type-hierarchy-super",60347),gitPullRequestCreate:De("git-pull-request-create",60348),runAbove:De("run-above",60349),runBelow:De("run-below",60350),notebookTemplate:De("notebook-template",60351),debugRerun:De("debug-rerun",60352),workspaceTrusted:De("workspace-trusted",60353),workspaceUntrusted:De("workspace-untrusted",60354),workspaceUnknown:De("workspace-unknown",60355),terminalCmd:De("terminal-cmd",60356),terminalDebian:De("terminal-debian",60357),terminalLinux:De("terminal-linux",60358),terminalPowershell:De("terminal-powershell",60359),terminalTmux:De("terminal-tmux",60360),terminalUbuntu:De("terminal-ubuntu",60361),terminalBash:De("terminal-bash",60362),arrowSwap:De("arrow-swap",60363),copy:De("copy",60364),personAdd:De("person-add",60365),filterFilled:De("filter-filled",60366),wand:De("wand",60367),debugLineByLine:De("debug-line-by-line",60368),inspect:De("inspect",60369),layers:De("layers",60370),layersDot:De("layers-dot",60371),layersActive:De("layers-active",60372),compass:De("compass",60373),compassDot:De("compass-dot",60374),compassActive:De("compass-active",60375),azure:De("azure",60376),issueDraft:De("issue-draft",60377),gitPullRequestClosed:De("git-pull-request-closed",60378),gitPullRequestDraft:De("git-pull-request-draft",60379),debugAll:De("debug-all",60380),debugCoverage:De("debug-coverage",60381),runErrors:De("run-errors",60382),folderLibrary:De("folder-library",60383),debugContinueSmall:De("debug-continue-small",60384),beakerStop:De("beaker-stop",60385),graphLine:De("graph-line",60386),graphScatter:De("graph-scatter",60387),pieChart:De("pie-chart",60388),bracket:De("bracket",60175),bracketDot:De("bracket-dot",60389),bracketError:De("bracket-error",60390),lockSmall:De("lock-small",60391),azureDevops:De("azure-devops",60392),verifiedFilled:De("verified-filled",60393),newline:De("newline",60394),layout:De("layout",60395),layoutActivitybarLeft:De("layout-activitybar-left",60396),layoutActivitybarRight:De("layout-activitybar-right",60397),layoutPanelLeft:De("layout-panel-left",60398),layoutPanelCenter:De("layout-panel-center",60399),layoutPanelJustify:De("layout-panel-justify",60400),layoutPanelRight:De("layout-panel-right",60401),layoutPanel:De("layout-panel",60402),layoutSidebarLeft:De("layout-sidebar-left",60403),layoutSidebarRight:De("layout-sidebar-right",60404),layoutStatusbar:De("layout-statusbar",60405),layoutMenubar:De("layout-menubar",60406),layoutCentered:De("layout-centered",60407),target:De("target",60408),indent:De("indent",60409),recordSmall:De("record-small",60410),errorSmall:De("error-small",60411),terminalDecorationError:De("terminal-decoration-error",60411),arrowCircleDown:De("arrow-circle-down",60412),arrowCircleLeft:De("arrow-circle-left",60413),arrowCircleRight:De("arrow-circle-right",60414),arrowCircleUp:De("arrow-circle-up",60415),layoutSidebarRightOff:De("layout-sidebar-right-off",60416),layoutPanelOff:De("layout-panel-off",60417),layoutSidebarLeftOff:De("layout-sidebar-left-off",60418),blank:De("blank",60419),heartFilled:De("heart-filled",60420),map:De("map",60421),mapHorizontal:De("map-horizontal",60421),foldHorizontal:De("fold-horizontal",60421),mapFilled:De("map-filled",60422),mapHorizontalFilled:De("map-horizontal-filled",60422),foldHorizontalFilled:De("fold-horizontal-filled",60422),circleSmall:De("circle-small",60423),bellSlash:De("bell-slash",60424),bellSlashDot:De("bell-slash-dot",60425),commentUnresolved:De("comment-unresolved",60426),gitPullRequestGoToChanges:De("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:De("git-pull-request-new-changes",60428),searchFuzzy:De("search-fuzzy",60429),commentDraft:De("comment-draft",60430),send:De("send",60431),sparkle:De("sparkle",60432),insert:De("insert",60433),mic:De("mic",60434),thumbsdownFilled:De("thumbsdown-filled",60435),thumbsupFilled:De("thumbsup-filled",60436),coffee:De("coffee",60437),snake:De("snake",60438),game:De("game",60439),vr:De("vr",60440),chip:De("chip",60441),piano:De("piano",60442),music:De("music",60443),micFilled:De("mic-filled",60444),repoFetch:De("repo-fetch",60445),copilot:De("copilot",60446),lightbulbSparkle:De("lightbulb-sparkle",60447),robot:De("robot",60448),sparkleFilled:De("sparkle-filled",60449),diffSingle:De("diff-single",60450),diffMultiple:De("diff-multiple",60451),surroundWith:De("surround-with",60452),share:De("share",60453),gitStash:De("git-stash",60454),gitStashApply:De("git-stash-apply",60455),gitStashPop:De("git-stash-pop",60456),vscode:De("vscode",60457),vscodeInsiders:De("vscode-insiders",60458),codeOss:De("code-oss",60459),runCoverage:De("run-coverage",60460),runAllCoverage:De("run-all-coverage",60461),coverage:De("coverage",60462),githubProject:De("github-project",60463),mapVertical:De("map-vertical",60464),foldVertical:De("fold-vertical",60464),mapVerticalFilled:De("map-vertical-filled",60465),foldVerticalFilled:De("fold-vertical-filled",60465),goToSearch:De("go-to-search",60466),percentage:De("percentage",60467),sortPercentage:De("sort-percentage",60467),attach:De("attach",60468),goToEditingSession:De("go-to-editing-session",60469),editSession:De("edit-session",60470),codeReview:De("code-review",60471),copilotWarning:De("copilot-warning",60472),python:De("python",60473),copilotLarge:De("copilot-large",60474),copilotWarningLarge:De("copilot-warning-large",60475),keyboardTab:De("keyboard-tab",60476),copilotBlocked:De("copilot-blocked",60477),copilotNotConnected:De("copilot-not-connected",60478),flag:De("flag",60479),lightbulbEmpty:De("lightbulb-empty",60480),symbolMethodArrow:De("symbol-method-arrow",60481),copilotUnavailable:De("copilot-unavailable",60482),repoPinned:De("repo-pinned",60483),keyboardTabAbove:De("keyboard-tab-above",60484),keyboardTabBelow:De("keyboard-tab-below",60485),gitPullRequestDone:De("git-pull-request-done",60486),mcp:De("mcp",60487),extensionsLarge:De("extensions-large",60488),layoutPanelDock:De("layout-panel-dock",60489),layoutSidebarLeftDock:De("layout-sidebar-left-dock",60490),layoutSidebarRightDock:De("layout-sidebar-right-dock",60491),copilotInProgress:De("copilot-in-progress",60492),copilotError:De("copilot-error",60493),copilotSuccess:De("copilot-success",60494),chatSparkle:De("chat-sparkle",60495),searchSparkle:De("search-sparkle",60496),editSparkle:De("edit-sparkle",60497),copilotSnooze:De("copilot-snooze",60498),sendToRemoteAgent:De("send-to-remote-agent",60499),commentDiscussionSparkle:De("comment-discussion-sparkle",60500),chatSparkleWarning:De("chat-sparkle-warning",60501),chatSparkleError:De("chat-sparkle-error",60502),collection:De("collection",60503),newCollection:De("new-collection",60504),thinking:De("thinking",60505),build:De("build",60506),commentDiscussionQuote:De("comment-discussion-quote",60507),cursor:De("cursor",60508),eraser:De("eraser",60509),fileText:De("file-text",60510),gitLens:De("git-lens",60511),quotes:De("quotes",60512),rename:De("rename",60513),runWithDeps:De("run-with-deps",60514),debugConnected:De("debug-connected",60515),strikethrough:De("strikethrough",60516),openInProduct:De("open-in-product",60517),indexZero:De("index-zero",60518),agent:De("agent",60519),editCode:De("edit-code",60520),repoSelected:De("repo-selected",60521),skip:De("skip",60522),mergeInto:De("merge-into",60523),gitBranchChanges:De("git-branch-changes",60524),gitBranchStagedChanges:De("git-branch-staged-changes",60525),gitBranchConflicts:De("git-branch-conflicts",60526),gitBranch:De("git-branch",60527),gitBranchCreate:De("git-branch-create",60527),gitBranchDelete:De("git-branch-delete",60527),searchLarge:De("search-large",60528),terminalGitBash:De("terminal-git-bash",60529)},wze={dialogError:De("dialog-error","error"),dialogWarning:De("dialog-warning","warning"),dialogInfo:De("dialog-info","info"),dialogClose:De("dialog-close","close"),treeItemExpanded:De("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:De("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:De("tree-filter-on-type-off","list-selection"),treeFilterClear:De("tree-filter-clear","close"),treeItemLoading:De("tree-item-loading","loading"),menuSelection:De("menu-selection","check"),menuSubmenu:De("menu-submenu","chevron-right"),menuBarMore:De("menubar-more","more"),scrollbarButtonLeft:De("scrollbar-button-left","triangle-left"),scrollbarButtonRight:De("scrollbar-button-right","triangle-right"),scrollbarButtonUp:De("scrollbar-button-up","triangle-up"),scrollbarButtonDown:De("scrollbar-button-down","triangle-down"),toolBarMore:De("toolbar-more","more"),quickInputBack:De("quick-input-back","arrow-left"),dropDownButton:De("drop-down-button",60084),symbolCustomColor:De("symbol-customcolor",60252),exportIcon:De("export",60332),workspaceUnspecified:De("workspace-unspecified",60355),newLine:De("newline",60394),thumbsDownFilled:De("thumbsdown-filled",60435),thumbsUpFilled:De("thumbsup-filled",60436),gitFetch:De("git-fetch",60445),lightbulbSparkleAutofix:De("lightbulb-sparkle-autofix",60447),debugBreakpointPending:De("debug-breakpoint-pending",60377)},vs={...kze,...wze};class Oze{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new OE,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(v){this._onDidChange.fire({changedLanguages:v,changedColorMap:!1})}register(v,x){return this._tokenizationSupports.set(v,x),this.handleChange([v]),rB(()=>{this._tokenizationSupports.get(v)===x&&(this._tokenizationSupports.delete(v),this.handleChange([v]))})}get(v){return this._tokenizationSupports.get(v)||null}registerFactory(v,x){this._factories.get(v)?.dispose();const F=new Wze(this,v,x);return this._factories.set(v,F),rB(()=>{const $=this._factories.get(v);!$||$!==F||(this._factories.delete(v),$.dispose())})}async getOrCreate(v){const x=this.get(v);if(x)return x;const F=this._factories.get(v);return!F||F.isResolved?null:(await F.resolve(),this.get(v))}isResolved(v){if(this.get(v))return!0;const F=this._factories.get(v);return!!(!F||F.isResolved)}setColorMap(v){this._colorMap=v,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 Wze extends h8{get isResolved(){return this._isResolved}constructor(v,x,F){super(),this._registry=v,this._languageId=x,this._factory=F,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 v=await this._factory.tokenizationSupport;this._isResolved=!0,v&&!this._isDisposed&&this._register(this._registry.register(this._languageId,v))}}class Fze{constructor(v,x,F){this.offset=v,this.type=x,this.language=F,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var tve;(function(_){_[_.Increase=0]="Increase",_[_.Decrease=1]="Decrease"})(tve||(tve={}));var nve;(function(_){const v=new Map;v.set(0,vs.symbolMethod),v.set(1,vs.symbolFunction),v.set(2,vs.symbolConstructor),v.set(3,vs.symbolField),v.set(4,vs.symbolVariable),v.set(5,vs.symbolClass),v.set(6,vs.symbolStruct),v.set(7,vs.symbolInterface),v.set(8,vs.symbolModule),v.set(9,vs.symbolProperty),v.set(10,vs.symbolEvent),v.set(11,vs.symbolOperator),v.set(12,vs.symbolUnit),v.set(13,vs.symbolValue),v.set(15,vs.symbolEnum),v.set(14,vs.symbolConstant),v.set(15,vs.symbolEnum),v.set(16,vs.symbolEnumMember),v.set(17,vs.symbolKeyword),v.set(28,vs.symbolSnippet),v.set(18,vs.symbolText),v.set(19,vs.symbolColor),v.set(20,vs.symbolFile),v.set(21,vs.symbolReference),v.set(22,vs.symbolCustomColor),v.set(23,vs.symbolFolder),v.set(24,vs.symbolTypeParameter),v.set(25,vs.account),v.set(26,vs.issues),v.set(27,vs.tools);function x(Le){let Ke=v.get(Le);return Ke||(console.info("No codicon found for CompletionItemKind "+Le),Ke=vs.symbolProperty),Ke}_.toIcon=x;function F(Le){switch(Le){case 0:return xs(728,"Method");case 1:return xs(729,"Function");case 2:return xs(730,"Constructor");case 3:return xs(731,"Field");case 4:return xs(732,"Variable");case 5:return xs(733,"Class");case 6:return xs(734,"Struct");case 7:return xs(735,"Interface");case 8:return xs(736,"Module");case 9:return xs(737,"Property");case 10:return xs(738,"Event");case 11:return xs(739,"Operator");case 12:return xs(740,"Unit");case 13:return xs(741,"Value");case 14:return xs(742,"Constant");case 15:return xs(743,"Enum");case 16:return xs(744,"Enum Member");case 17:return xs(745,"Keyword");case 18:return xs(746,"Text");case 19:return xs(747,"Color");case 20:return xs(748,"File");case 21:return xs(749,"Reference");case 22:return xs(750,"Custom Color");case 23:return xs(751,"Folder");case 24:return xs(752,"Type Parameter");case 25:return xs(753,"User");case 26:return xs(754,"Issue");case 27:return xs(755,"Tool");case 28:return xs(756,"Snippet");default:return""}}_.toLabel=F;const $=new Map;$.set("method",0),$.set("function",1),$.set("constructor",2),$.set("field",3),$.set("variable",4),$.set("class",5),$.set("struct",6),$.set("interface",7),$.set("module",8),$.set("property",9),$.set("event",10),$.set("operator",11),$.set("unit",12),$.set("value",13),$.set("constant",14),$.set("enum",15),$.set("enum-member",16),$.set("enumMember",16),$.set("keyword",17),$.set("snippet",28),$.set("text",18),$.set("color",19),$.set("file",20),$.set("reference",21),$.set("customcolor",22),$.set("folder",23),$.set("type-parameter",24),$.set("typeParameter",24),$.set("account",25),$.set("issue",26),$.set("tool",27);function ge(Le,Ke){let ae=$.get(Le);return typeof ae>"u"&&!Ke&&(ae=9),ae}_.fromString=ge})(nve||(nve={}));var rve;(function(_){_[_.Automatic=0]="Automatic",_[_.Explicit=1]="Explicit"})(rve||(rve={}));var ive;(function(_){_[_.Code=1]="Code",_[_.Label=2]="Label"})(ive||(ive={}));var ove;(function(_){_[_.Accepted=0]="Accepted",_[_.Rejected=1]="Rejected",_[_.Ignored=2]="Ignored"})(ove||(ove={}));var ave;(function(_){_[_.Automatic=0]="Automatic",_[_.PasteAs=1]="PasteAs"})(ave||(ave={}));var sve;(function(_){_[_.Invoke=1]="Invoke",_[_.TriggerCharacter=2]="TriggerCharacter",_[_.ContentChange=3]="ContentChange"})(sve||(sve={}));var lve;(function(_){_[_.Text=0]="Text",_[_.Read=1]="Read",_[_.Write=2]="Write"})(lve||(lve={})),xs(757,"array"),xs(758,"boolean"),xs(759,"class"),xs(760,"constant"),xs(761,"constructor"),xs(762,"enumeration"),xs(763,"enumeration member"),xs(764,"event"),xs(765,"field"),xs(766,"file"),xs(767,"function"),xs(768,"interface"),xs(769,"key"),xs(770,"method"),xs(771,"module"),xs(772,"namespace"),xs(773,"null"),xs(774,"number"),xs(775,"object"),xs(776,"operator"),xs(777,"package"),xs(778,"property"),xs(779,"string"),xs(780,"struct"),xs(781,"type parameter"),xs(782,"variable");var cve;(function(_){const v=new Map;v.set(0,vs.symbolFile),v.set(1,vs.symbolModule),v.set(2,vs.symbolNamespace),v.set(3,vs.symbolPackage),v.set(4,vs.symbolClass),v.set(5,vs.symbolMethod),v.set(6,vs.symbolProperty),v.set(7,vs.symbolField),v.set(8,vs.symbolConstructor),v.set(9,vs.symbolEnum),v.set(10,vs.symbolInterface),v.set(11,vs.symbolFunction),v.set(12,vs.symbolVariable),v.set(13,vs.symbolConstant),v.set(14,vs.symbolString),v.set(15,vs.symbolNumber),v.set(16,vs.symbolBoolean),v.set(17,vs.symbolArray),v.set(18,vs.symbolObject),v.set(19,vs.symbolKey),v.set(20,vs.symbolNull),v.set(21,vs.symbolEnumMember),v.set(22,vs.symbolStruct),v.set(23,vs.symbolEvent),v.set(24,vs.symbolOperator),v.set(25,vs.symbolTypeParameter);function x(ge){let Le=v.get(ge);return Le||(console.info("No codicon found for SymbolKind "+ge),Le=vs.symbolProperty),Le}_.toIcon=x;const F=new Map;F.set(0,20),F.set(1,8),F.set(2,8),F.set(3,8),F.set(4,5),F.set(5,0),F.set(6,9),F.set(7,3),F.set(8,2),F.set(9,15),F.set(10,7),F.set(11,1),F.set(12,4),F.set(13,14),F.set(14,18),F.set(15,13),F.set(16,13),F.set(17,13),F.set(18,13),F.set(19,17),F.set(20,13),F.set(21,16),F.set(22,6),F.set(23,10),F.set(24,11),F.set(25,24);function $(ge){let Le=F.get(ge);return Le===void 0&&(console.info("No completion kind found for SymbolKind "+ge),Le=20),Le}_.toCompletionKind=$})(cve||(cve={}));class vR{static{this.Comment=new vR("comment")}static{this.Imports=new vR("imports")}static{this.Region=new vR("region")}static fromValue(v){switch(v){case"comment":return vR.Comment;case"imports":return vR.Imports;case"region":return vR.Region}return new vR(v)}constructor(v){this.value=v}}var dve;(function(_){_[_.AIGenerated=1]="AIGenerated"})(dve||(dve={}));var uve;(function(_){_[_.Invoke=0]="Invoke",_[_.Automatic=1]="Automatic"})(uve||(uve={}));var pve;(function(_){function v(x){return!x||typeof x!="object"?!1:typeof x.id=="string"&&typeof x.title=="string"}_.is=v})(pve||(pve={}));var fve;(function(_){_[_.Type=1]="Type",_[_.Parameter=2]="Parameter"})(fve||(fve={})),new Oze;var mve;(function(_){_[_.Unknown=0]="Unknown",_[_.Disabled=1]="Disabled",_[_.Enabled=2]="Enabled"})(mve||(mve={}));var hve;(function(_){_[_.Invoke=1]="Invoke",_[_.Auto=2]="Auto"})(hve||(hve={}));var _ve;(function(_){_[_.None=0]="None",_[_.KeepWhitespace=1]="KeepWhitespace",_[_.InsertAsSnippet=4]="InsertAsSnippet"})(_ve||(_ve={}));var gve;(function(_){_[_.Method=0]="Method",_[_.Function=1]="Function",_[_.Constructor=2]="Constructor",_[_.Field=3]="Field",_[_.Variable=4]="Variable",_[_.Class=5]="Class",_[_.Struct=6]="Struct",_[_.Interface=7]="Interface",_[_.Module=8]="Module",_[_.Property=9]="Property",_[_.Event=10]="Event",_[_.Operator=11]="Operator",_[_.Unit=12]="Unit",_[_.Value=13]="Value",_[_.Constant=14]="Constant",_[_.Enum=15]="Enum",_[_.EnumMember=16]="EnumMember",_[_.Keyword=17]="Keyword",_[_.Text=18]="Text",_[_.Color=19]="Color",_[_.File=20]="File",_[_.Reference=21]="Reference",_[_.Customcolor=22]="Customcolor",_[_.Folder=23]="Folder",_[_.TypeParameter=24]="TypeParameter",_[_.User=25]="User",_[_.Issue=26]="Issue",_[_.Tool=27]="Tool",_[_.Snippet=28]="Snippet"})(gve||(gve={}));var yve;(function(_){_[_.Deprecated=1]="Deprecated"})(yve||(yve={}));var vve;(function(_){_[_.Invoke=0]="Invoke",_[_.TriggerCharacter=1]="TriggerCharacter",_[_.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(vve||(vve={}));var bve;(function(_){_[_.EXACT=0]="EXACT",_[_.ABOVE=1]="ABOVE",_[_.BELOW=2]="BELOW"})(bve||(bve={}));var Tve;(function(_){_[_.NotSet=0]="NotSet",_[_.ContentFlush=1]="ContentFlush",_[_.RecoverFromMarkers=2]="RecoverFromMarkers",_[_.Explicit=3]="Explicit",_[_.Paste=4]="Paste",_[_.Undo=5]="Undo",_[_.Redo=6]="Redo"})(Tve||(Tve={}));var Sve;(function(_){_[_.LF=1]="LF",_[_.CRLF=2]="CRLF"})(Sve||(Sve={}));var Eve;(function(_){_[_.Text=0]="Text",_[_.Read=1]="Read",_[_.Write=2]="Write"})(Eve||(Eve={}));var Ave;(function(_){_[_.None=0]="None",_[_.Keep=1]="Keep",_[_.Brackets=2]="Brackets",_[_.Advanced=3]="Advanced",_[_.Full=4]="Full"})(Ave||(Ave={}));var Ive;(function(_){_[_.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",_[_.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",_[_.accessibilitySupport=2]="accessibilitySupport",_[_.accessibilityPageSize=3]="accessibilityPageSize",_[_.allowOverflow=4]="allowOverflow",_[_.allowVariableLineHeights=5]="allowVariableLineHeights",_[_.allowVariableFonts=6]="allowVariableFonts",_[_.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",_[_.ariaLabel=8]="ariaLabel",_[_.ariaRequired=9]="ariaRequired",_[_.autoClosingBrackets=10]="autoClosingBrackets",_[_.autoClosingComments=11]="autoClosingComments",_[_.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",_[_.autoClosingDelete=13]="autoClosingDelete",_[_.autoClosingOvertype=14]="autoClosingOvertype",_[_.autoClosingQuotes=15]="autoClosingQuotes",_[_.autoIndent=16]="autoIndent",_[_.autoIndentOnPaste=17]="autoIndentOnPaste",_[_.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",_[_.automaticLayout=19]="automaticLayout",_[_.autoSurround=20]="autoSurround",_[_.bracketPairColorization=21]="bracketPairColorization",_[_.guides=22]="guides",_[_.codeLens=23]="codeLens",_[_.codeLensFontFamily=24]="codeLensFontFamily",_[_.codeLensFontSize=25]="codeLensFontSize",_[_.colorDecorators=26]="colorDecorators",_[_.colorDecoratorsLimit=27]="colorDecoratorsLimit",_[_.columnSelection=28]="columnSelection",_[_.comments=29]="comments",_[_.contextmenu=30]="contextmenu",_[_.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",_[_.cursorBlinking=32]="cursorBlinking",_[_.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",_[_.cursorStyle=34]="cursorStyle",_[_.cursorSurroundingLines=35]="cursorSurroundingLines",_[_.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",_[_.cursorWidth=37]="cursorWidth",_[_.cursorHeight=38]="cursorHeight",_[_.disableLayerHinting=39]="disableLayerHinting",_[_.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",_[_.domReadOnly=41]="domReadOnly",_[_.dragAndDrop=42]="dragAndDrop",_[_.dropIntoEditor=43]="dropIntoEditor",_[_.editContext=44]="editContext",_[_.emptySelectionClipboard=45]="emptySelectionClipboard",_[_.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",_[_.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",_[_.extraEditorClassName=48]="extraEditorClassName",_[_.fastScrollSensitivity=49]="fastScrollSensitivity",_[_.find=50]="find",_[_.fixedOverflowWidgets=51]="fixedOverflowWidgets",_[_.folding=52]="folding",_[_.foldingStrategy=53]="foldingStrategy",_[_.foldingHighlight=54]="foldingHighlight",_[_.foldingImportsByDefault=55]="foldingImportsByDefault",_[_.foldingMaximumRegions=56]="foldingMaximumRegions",_[_.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",_[_.fontFamily=58]="fontFamily",_[_.fontInfo=59]="fontInfo",_[_.fontLigatures=60]="fontLigatures",_[_.fontSize=61]="fontSize",_[_.fontWeight=62]="fontWeight",_[_.fontVariations=63]="fontVariations",_[_.formatOnPaste=64]="formatOnPaste",_[_.formatOnType=65]="formatOnType",_[_.glyphMargin=66]="glyphMargin",_[_.gotoLocation=67]="gotoLocation",_[_.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",_[_.hover=69]="hover",_[_.inDiffEditor=70]="inDiffEditor",_[_.inlineSuggest=71]="inlineSuggest",_[_.letterSpacing=72]="letterSpacing",_[_.lightbulb=73]="lightbulb",_[_.lineDecorationsWidth=74]="lineDecorationsWidth",_[_.lineHeight=75]="lineHeight",_[_.lineNumbers=76]="lineNumbers",_[_.lineNumbersMinChars=77]="lineNumbersMinChars",_[_.linkedEditing=78]="linkedEditing",_[_.links=79]="links",_[_.matchBrackets=80]="matchBrackets",_[_.minimap=81]="minimap",_[_.mouseStyle=82]="mouseStyle",_[_.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",_[_.mouseWheelZoom=84]="mouseWheelZoom",_[_.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",_[_.multiCursorModifier=86]="multiCursorModifier",_[_.mouseMiddleClickAction=87]="mouseMiddleClickAction",_[_.multiCursorPaste=88]="multiCursorPaste",_[_.multiCursorLimit=89]="multiCursorLimit",_[_.occurrencesHighlight=90]="occurrencesHighlight",_[_.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",_[_.overtypeCursorStyle=92]="overtypeCursorStyle",_[_.overtypeOnPaste=93]="overtypeOnPaste",_[_.overviewRulerBorder=94]="overviewRulerBorder",_[_.overviewRulerLanes=95]="overviewRulerLanes",_[_.padding=96]="padding",_[_.pasteAs=97]="pasteAs",_[_.parameterHints=98]="parameterHints",_[_.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",_[_.placeholder=100]="placeholder",_[_.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",_[_.quickSuggestions=102]="quickSuggestions",_[_.quickSuggestionsDelay=103]="quickSuggestionsDelay",_[_.readOnly=104]="readOnly",_[_.readOnlyMessage=105]="readOnlyMessage",_[_.renameOnType=106]="renameOnType",_[_.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",_[_.renderControlCharacters=108]="renderControlCharacters",_[_.renderFinalNewline=109]="renderFinalNewline",_[_.renderLineHighlight=110]="renderLineHighlight",_[_.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",_[_.renderValidationDecorations=112]="renderValidationDecorations",_[_.renderWhitespace=113]="renderWhitespace",_[_.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",_[_.roundedSelection=115]="roundedSelection",_[_.rulers=116]="rulers",_[_.scrollbar=117]="scrollbar",_[_.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",_[_.scrollBeyondLastLine=119]="scrollBeyondLastLine",_[_.scrollPredominantAxis=120]="scrollPredominantAxis",_[_.selectionClipboard=121]="selectionClipboard",_[_.selectionHighlight=122]="selectionHighlight",_[_.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",_[_.selectionHighlightMultiline=124]="selectionHighlightMultiline",_[_.selectOnLineNumbers=125]="selectOnLineNumbers",_[_.showFoldingControls=126]="showFoldingControls",_[_.showUnused=127]="showUnused",_[_.snippetSuggestions=128]="snippetSuggestions",_[_.smartSelect=129]="smartSelect",_[_.smoothScrolling=130]="smoothScrolling",_[_.stickyScroll=131]="stickyScroll",_[_.stickyTabStops=132]="stickyTabStops",_[_.stopRenderingLineAfter=133]="stopRenderingLineAfter",_[_.suggest=134]="suggest",_[_.suggestFontSize=135]="suggestFontSize",_[_.suggestLineHeight=136]="suggestLineHeight",_[_.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",_[_.suggestSelection=138]="suggestSelection",_[_.tabCompletion=139]="tabCompletion",_[_.tabIndex=140]="tabIndex",_[_.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",_[_.unicodeHighlighting=142]="unicodeHighlighting",_[_.unusualLineTerminators=143]="unusualLineTerminators",_[_.useShadowDOM=144]="useShadowDOM",_[_.useTabStops=145]="useTabStops",_[_.wordBreak=146]="wordBreak",_[_.wordSegmenterLocales=147]="wordSegmenterLocales",_[_.wordSeparators=148]="wordSeparators",_[_.wordWrap=149]="wordWrap",_[_.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",_[_.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",_[_.wordWrapColumn=152]="wordWrapColumn",_[_.wordWrapOverride1=153]="wordWrapOverride1",_[_.wordWrapOverride2=154]="wordWrapOverride2",_[_.wrappingIndent=155]="wrappingIndent",_[_.wrappingStrategy=156]="wrappingStrategy",_[_.showDeprecated=157]="showDeprecated",_[_.inertialScroll=158]="inertialScroll",_[_.inlayHints=159]="inlayHints",_[_.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",_[_.effectiveCursorStyle=161]="effectiveCursorStyle",_[_.editorClassName=162]="editorClassName",_[_.pixelRatio=163]="pixelRatio",_[_.tabFocusMode=164]="tabFocusMode",_[_.layoutInfo=165]="layoutInfo",_[_.wrappingInfo=166]="wrappingInfo",_[_.defaultColorDecorators=167]="defaultColorDecorators",_[_.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",_[_.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",_[_.effectiveEditContext=170]="effectiveEditContext",_[_.scrollOnMiddleClick=171]="scrollOnMiddleClick",_[_.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(Ive||(Ive={}));var xve;(function(_){_[_.TextDefined=0]="TextDefined",_[_.LF=1]="LF",_[_.CRLF=2]="CRLF"})(xve||(xve={}));var Rve;(function(_){_[_.LF=0]="LF",_[_.CRLF=1]="CRLF"})(Rve||(Rve={}));var Dve;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=3]="Right"})(Dve||(Dve={}));var Cve;(function(_){_[_.Increase=0]="Increase",_[_.Decrease=1]="Decrease"})(Cve||(Cve={}));var Nve;(function(_){_[_.None=0]="None",_[_.Indent=1]="Indent",_[_.IndentOutdent=2]="IndentOutdent",_[_.Outdent=3]="Outdent"})(Nve||(Nve={}));var Mve;(function(_){_[_.Both=0]="Both",_[_.Right=1]="Right",_[_.Left=2]="Left",_[_.None=3]="None"})(Mve||(Mve={}));var Pve;(function(_){_[_.Type=1]="Type",_[_.Parameter=2]="Parameter"})(Pve||(Pve={}));var Lve;(function(_){_[_.Accepted=0]="Accepted",_[_.Rejected=1]="Rejected",_[_.Ignored=2]="Ignored"})(Lve||(Lve={}));var kve;(function(_){_[_.Code=1]="Code",_[_.Label=2]="Label"})(kve||(kve={}));var wve;(function(_){_[_.Automatic=0]="Automatic",_[_.Explicit=1]="Explicit"})(wve||(wve={}));var cQ;(function(_){_[_.DependsOnKbLayout=-1]="DependsOnKbLayout",_[_.Unknown=0]="Unknown",_[_.Backspace=1]="Backspace",_[_.Tab=2]="Tab",_[_.Enter=3]="Enter",_[_.Shift=4]="Shift",_[_.Ctrl=5]="Ctrl",_[_.Alt=6]="Alt",_[_.PauseBreak=7]="PauseBreak",_[_.CapsLock=8]="CapsLock",_[_.Escape=9]="Escape",_[_.Space=10]="Space",_[_.PageUp=11]="PageUp",_[_.PageDown=12]="PageDown",_[_.End=13]="End",_[_.Home=14]="Home",_[_.LeftArrow=15]="LeftArrow",_[_.UpArrow=16]="UpArrow",_[_.RightArrow=17]="RightArrow",_[_.DownArrow=18]="DownArrow",_[_.Insert=19]="Insert",_[_.Delete=20]="Delete",_[_.Digit0=21]="Digit0",_[_.Digit1=22]="Digit1",_[_.Digit2=23]="Digit2",_[_.Digit3=24]="Digit3",_[_.Digit4=25]="Digit4",_[_.Digit5=26]="Digit5",_[_.Digit6=27]="Digit6",_[_.Digit7=28]="Digit7",_[_.Digit8=29]="Digit8",_[_.Digit9=30]="Digit9",_[_.KeyA=31]="KeyA",_[_.KeyB=32]="KeyB",_[_.KeyC=33]="KeyC",_[_.KeyD=34]="KeyD",_[_.KeyE=35]="KeyE",_[_.KeyF=36]="KeyF",_[_.KeyG=37]="KeyG",_[_.KeyH=38]="KeyH",_[_.KeyI=39]="KeyI",_[_.KeyJ=40]="KeyJ",_[_.KeyK=41]="KeyK",_[_.KeyL=42]="KeyL",_[_.KeyM=43]="KeyM",_[_.KeyN=44]="KeyN",_[_.KeyO=45]="KeyO",_[_.KeyP=46]="KeyP",_[_.KeyQ=47]="KeyQ",_[_.KeyR=48]="KeyR",_[_.KeyS=49]="KeyS",_[_.KeyT=50]="KeyT",_[_.KeyU=51]="KeyU",_[_.KeyV=52]="KeyV",_[_.KeyW=53]="KeyW",_[_.KeyX=54]="KeyX",_[_.KeyY=55]="KeyY",_[_.KeyZ=56]="KeyZ",_[_.Meta=57]="Meta",_[_.ContextMenu=58]="ContextMenu",_[_.F1=59]="F1",_[_.F2=60]="F2",_[_.F3=61]="F3",_[_.F4=62]="F4",_[_.F5=63]="F5",_[_.F6=64]="F6",_[_.F7=65]="F7",_[_.F8=66]="F8",_[_.F9=67]="F9",_[_.F10=68]="F10",_[_.F11=69]="F11",_[_.F12=70]="F12",_[_.F13=71]="F13",_[_.F14=72]="F14",_[_.F15=73]="F15",_[_.F16=74]="F16",_[_.F17=75]="F17",_[_.F18=76]="F18",_[_.F19=77]="F19",_[_.F20=78]="F20",_[_.F21=79]="F21",_[_.F22=80]="F22",_[_.F23=81]="F23",_[_.F24=82]="F24",_[_.NumLock=83]="NumLock",_[_.ScrollLock=84]="ScrollLock",_[_.Semicolon=85]="Semicolon",_[_.Equal=86]="Equal",_[_.Comma=87]="Comma",_[_.Minus=88]="Minus",_[_.Period=89]="Period",_[_.Slash=90]="Slash",_[_.Backquote=91]="Backquote",_[_.BracketLeft=92]="BracketLeft",_[_.Backslash=93]="Backslash",_[_.BracketRight=94]="BracketRight",_[_.Quote=95]="Quote",_[_.OEM_8=96]="OEM_8",_[_.IntlBackslash=97]="IntlBackslash",_[_.Numpad0=98]="Numpad0",_[_.Numpad1=99]="Numpad1",_[_.Numpad2=100]="Numpad2",_[_.Numpad3=101]="Numpad3",_[_.Numpad4=102]="Numpad4",_[_.Numpad5=103]="Numpad5",_[_.Numpad6=104]="Numpad6",_[_.Numpad7=105]="Numpad7",_[_.Numpad8=106]="Numpad8",_[_.Numpad9=107]="Numpad9",_[_.NumpadMultiply=108]="NumpadMultiply",_[_.NumpadAdd=109]="NumpadAdd",_[_.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",_[_.NumpadSubtract=111]="NumpadSubtract",_[_.NumpadDecimal=112]="NumpadDecimal",_[_.NumpadDivide=113]="NumpadDivide",_[_.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",_[_.ABNT_C1=115]="ABNT_C1",_[_.ABNT_C2=116]="ABNT_C2",_[_.AudioVolumeMute=117]="AudioVolumeMute",_[_.AudioVolumeUp=118]="AudioVolumeUp",_[_.AudioVolumeDown=119]="AudioVolumeDown",_[_.BrowserSearch=120]="BrowserSearch",_[_.BrowserHome=121]="BrowserHome",_[_.BrowserBack=122]="BrowserBack",_[_.BrowserForward=123]="BrowserForward",_[_.MediaTrackNext=124]="MediaTrackNext",_[_.MediaTrackPrevious=125]="MediaTrackPrevious",_[_.MediaStop=126]="MediaStop",_[_.MediaPlayPause=127]="MediaPlayPause",_[_.LaunchMediaPlayer=128]="LaunchMediaPlayer",_[_.LaunchMail=129]="LaunchMail",_[_.LaunchApp2=130]="LaunchApp2",_[_.Clear=131]="Clear",_[_.MAX_VALUE=132]="MAX_VALUE"})(cQ||(cQ={}));var dQ;(function(_){_[_.Hint=1]="Hint",_[_.Info=2]="Info",_[_.Warning=4]="Warning",_[_.Error=8]="Error"})(dQ||(dQ={}));var uQ;(function(_){_[_.Unnecessary=1]="Unnecessary",_[_.Deprecated=2]="Deprecated"})(uQ||(uQ={}));var Ove;(function(_){_[_.Inline=1]="Inline",_[_.Gutter=2]="Gutter"})(Ove||(Ove={}));var Wve;(function(_){_[_.Normal=1]="Normal",_[_.Underlined=2]="Underlined"})(Wve||(Wve={}));var Fve;(function(_){_[_.UNKNOWN=0]="UNKNOWN",_[_.TEXTAREA=1]="TEXTAREA",_[_.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",_[_.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",_[_.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",_[_.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",_[_.CONTENT_TEXT=6]="CONTENT_TEXT",_[_.CONTENT_EMPTY=7]="CONTENT_EMPTY",_[_.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",_[_.CONTENT_WIDGET=9]="CONTENT_WIDGET",_[_.OVERVIEW_RULER=10]="OVERVIEW_RULER",_[_.SCROLLBAR=11]="SCROLLBAR",_[_.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",_[_.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Fve||(Fve={}));var zve;(function(_){_[_.AIGenerated=1]="AIGenerated"})(zve||(zve={}));var Bve;(function(_){_[_.Invoke=0]="Invoke",_[_.Automatic=1]="Automatic"})(Bve||(Bve={}));var Gve;(function(_){_[_.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",_[_.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",_[_.TOP_CENTER=2]="TOP_CENTER"})(Gve||(Gve={}));var Vve;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=4]="Right",_[_.Full=7]="Full"})(Vve||(Vve={}));var jve;(function(_){_[_.Word=0]="Word",_[_.Line=1]="Line",_[_.Suggest=2]="Suggest"})(jve||(jve={}));var Uve;(function(_){_[_.Left=0]="Left",_[_.Right=1]="Right",_[_.None=2]="None",_[_.LeftOfInjectedText=3]="LeftOfInjectedText",_[_.RightOfInjectedText=4]="RightOfInjectedText"})(Uve||(Uve={}));var Hve;(function(_){_[_.Off=0]="Off",_[_.On=1]="On",_[_.Relative=2]="Relative",_[_.Interval=3]="Interval",_[_.Custom=4]="Custom"})(Hve||(Hve={}));var qve;(function(_){_[_.None=0]="None",_[_.Text=1]="Text",_[_.Blocks=2]="Blocks"})(qve||(qve={}));var Jve;(function(_){_[_.Smooth=0]="Smooth",_[_.Immediate=1]="Immediate"})(Jve||(Jve={}));var Kve;(function(_){_[_.Auto=1]="Auto",_[_.Hidden=2]="Hidden",_[_.Visible=3]="Visible"})(Kve||(Kve={}));var pQ;(function(_){_[_.LTR=0]="LTR",_[_.RTL=1]="RTL"})(pQ||(pQ={}));var Xve;(function(_){_.Off="off",_.OnCode="onCode",_.On="on"})(Xve||(Xve={}));var Yve;(function(_){_[_.Invoke=1]="Invoke",_[_.TriggerCharacter=2]="TriggerCharacter",_[_.ContentChange=3]="ContentChange"})(Yve||(Yve={}));var $ve;(function(_){_[_.File=0]="File",_[_.Module=1]="Module",_[_.Namespace=2]="Namespace",_[_.Package=3]="Package",_[_.Class=4]="Class",_[_.Method=5]="Method",_[_.Property=6]="Property",_[_.Field=7]="Field",_[_.Constructor=8]="Constructor",_[_.Enum=9]="Enum",_[_.Interface=10]="Interface",_[_.Function=11]="Function",_[_.Variable=12]="Variable",_[_.Constant=13]="Constant",_[_.String=14]="String",_[_.Number=15]="Number",_[_.Boolean=16]="Boolean",_[_.Array=17]="Array",_[_.Object=18]="Object",_[_.Key=19]="Key",_[_.Null=20]="Null",_[_.EnumMember=21]="EnumMember",_[_.Struct=22]="Struct",_[_.Event=23]="Event",_[_.Operator=24]="Operator",_[_.TypeParameter=25]="TypeParameter"})($ve||($ve={}));var Qve;(function(_){_[_.Deprecated=1]="Deprecated"})(Qve||(Qve={}));var Zve;(function(_){_[_.LTR=0]="LTR",_[_.RTL=1]="RTL"})(Zve||(Zve={}));var ebe;(function(_){_[_.Hidden=0]="Hidden",_[_.Blink=1]="Blink",_[_.Smooth=2]="Smooth",_[_.Phase=3]="Phase",_[_.Expand=4]="Expand",_[_.Solid=5]="Solid"})(ebe||(ebe={}));var tbe;(function(_){_[_.Line=1]="Line",_[_.Block=2]="Block",_[_.Underline=3]="Underline",_[_.LineThin=4]="LineThin",_[_.BlockOutline=5]="BlockOutline",_[_.UnderlineThin=6]="UnderlineThin"})(tbe||(tbe={}));var nbe;(function(_){_[_.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",_[_.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",_[_.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",_[_.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(nbe||(nbe={}));var rbe;(function(_){_[_.None=0]="None",_[_.Same=1]="Same",_[_.Indent=2]="Indent",_[_.DeepIndent=3]="DeepIndent"})(rbe||(rbe={}));class zze{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(v,x){return hze(v,x)}}function Bze(){return{editor:void 0,languages:void 0,CancellationTokenSource:uze,Emitter:OE,KeyCode:cQ,KeyMod:zze,Position:Zc,Range:ss,Selection:Kv,SelectionDirection:pQ,MarkerSeverity:dQ,MarkerTag:uQ,Uri:lN,Token:Fze}}var ibe;class Gze{constructor(){this[ibe]="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(v){return this._map.has(v)}get(v,x=0){const F=this._map.get(v);if(F)return x!==0&&this.touch(F,x),F.value}set(v,x,F=0){let $=this._map.get(v);if($)$.value=x,F!==0&&this.touch($,F);else{switch($={key:v,value:x,next:void 0,previous:void 0},F){case 0:this.addItemLast($);break;case 1:this.addItemFirst($);break;case 2:this.addItemLast($);break;default:this.addItemLast($);break}this._map.set(v,$),this._size++}return this}delete(v){return!!this.remove(v)}remove(v){const x=this._map.get(v);if(x)return this._map.delete(v),this.removeItem(x),this._size--,x.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const v=this._head;return this._map.delete(v.key),this.removeItem(v),this._size--,v.value}forEach(v,x){const F=this._state;let $=this._head;for(;$;){if(x?v.bind(x)($.value,$.key,this):v($.value,$.key,this),this._state!==F)throw new Error("LinkedMap got modified during iteration.");$=$.next}}keys(){const v=this,x=this._state;let F=this._head;const $={[Symbol.iterator](){return $},next(){if(v._state!==x)throw new Error("LinkedMap got modified during iteration.");if(F){const ge={value:F.key,done:!1};return F=F.next,ge}else return{value:void 0,done:!0}}};return $}values(){const v=this,x=this._state;let F=this._head;const $={[Symbol.iterator](){return $},next(){if(v._state!==x)throw new Error("LinkedMap got modified during iteration.");if(F){const ge={value:F.value,done:!1};return F=F.next,ge}else return{value:void 0,done:!0}}};return $}entries(){const v=this,x=this._state;let F=this._head;const $={[Symbol.iterator](){return $},next(){if(v._state!==x)throw new Error("LinkedMap got modified during iteration.");if(F){const ge={value:[F.key,F.value],done:!1};return F=F.next,ge}else return{value:void 0,done:!0}}};return $}[(ibe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(v){if(v>=this.size)return;if(v===0){this.clear();return}let x=this._head,F=this.size;for(;x&&F>v;)this._map.delete(x.key),x=x.next,F--;this._head=x,this._size=F,x&&(x.previous=void 0),this._state++}trimNew(v){if(v>=this.size)return;if(v===0){this.clear();return}let x=this._tail,F=this.size;for(;x&&F>v;)this._map.delete(x.key),x=x.previous,F--;this._tail=x,this._size=F,x&&(x.next=void 0),this._state++}addItemFirst(v){if(!this._head&&!this._tail)this._tail=v;else if(this._head)v.next=this._head,this._head.previous=v;else throw new Error("Invalid list");this._head=v,this._state++}addItemLast(v){if(!this._head&&!this._tail)this._head=v;else if(this._tail)v.previous=this._tail,this._tail.next=v;else throw new Error("Invalid list");this._tail=v,this._state++}removeItem(v){if(v===this._head&&v===this._tail)this._head=void 0,this._tail=void 0;else if(v===this._head){if(!v.next)throw new Error("Invalid list");v.next.previous=void 0,this._head=v.next}else if(v===this._tail){if(!v.previous)throw new Error("Invalid list");v.previous.next=void 0,this._tail=v.previous}else{const x=v.next,F=v.previous;if(!x||!F)throw new Error("Invalid list");x.previous=F,F.next=x}v.next=void 0,v.previous=void 0,this._state++}touch(v,x){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(x!==1&&x!==2)){if(x===1){if(v===this._head)return;const F=v.next,$=v.previous;v===this._tail?($.next=void 0,this._tail=$):(F.previous=$,$.next=F),v.previous=void 0,v.next=this._head,this._head.previous=v,this._head=v,this._state++}else if(x===2){if(v===this._tail)return;const F=v.next,$=v.previous;v===this._head?(F.previous=void 0,this._head=F):(F.previous=$,$.next=F),v.next=void 0,v.previous=this._tail,this._tail.next=v,this._tail=v,this._state++}}}toJSON(){const v=[];return this.forEach((x,F)=>{v.push([F,x])}),v}fromJSON(v){this.clear();for(const[x,F]of v)this.set(x,F)}}class Vze extends Gze{constructor(v,x=1){super(),this._limit=v,this._ratio=Math.min(Math.max(0,x),1)}get limit(){return this._limit}set limit(v){this._limit=v,this.checkTrim()}get(v,x=2){return super.get(v,x)}peek(v){return super.get(v,0)}set(v,x){return super.set(v,x,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class jze extends Vze{constructor(v,x=1){super(v,x)}trim(v){this.trimOld(v)}set(v,x){return super.set(v,x),this.checkTrim(),this}}class Uze{constructor(){this.map=new Map}add(v,x){let F=this.map.get(v);F||(F=new Set,this.map.set(v,F)),F.add(x)}delete(v,x){const F=this.map.get(v);F&&(F.delete(x),F.size===0&&this.map.delete(v))}forEach(v,x){const F=this.map.get(v);F&&F.forEach(x)}}new jze(10);var obe;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=4]="Right",_[_.Full=7]="Full"})(obe||(obe={}));var abe;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=3]="Right"})(abe||(abe={}));var sbe;(function(_){_[_.LTR=0]="LTR",_[_.RTL=1]="RTL"})(sbe||(sbe={}));var lbe;(function(_){_[_.Both=0]="Both",_[_.Right=1]="Right",_[_.Left=2]="Left",_[_.None=3]="None"})(lbe||(lbe={}));function Hze(_){if(!_||_.length===0)return!1;for(let v=0,x=_.length;v=x)break;const $=_.charCodeAt(v);if($===110||$===114||$===87)return!0}}return!1}function qze(_,v,x,F,$){if(F===0)return!0;const ge=v.charCodeAt(F-1);if(_.get(ge)!==0||ge===13||ge===10)return!0;if($>0){const Le=v.charCodeAt(F);if(_.get(Le)!==0)return!0}return!1}function Jze(_,v,x,F,$){if(F+$===x)return!0;const ge=v.charCodeAt(F+$);if(_.get(ge)!==0||ge===13||ge===10)return!0;if($>0){const Le=v.charCodeAt(F+$-1);if(_.get(Le)!==0)return!0}return!1}function Kze(_,v,x,F,$){return qze(_,v,x,F,$)&&Jze(_,v,x,F,$)}class Xze{constructor(v,x){this._wordSeparators=v,this._searchRegex=x,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(v){this._searchRegex.lastIndex=v,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(v){const x=v.length;let F;do{if(this._prevMatchStartIndex+this._prevMatchLength===x||(F=this._searchRegex.exec(v),!F))return null;const $=F.index,ge=F[0].length;if($===this._prevMatchStartIndex&&ge===this._prevMatchLength){if(ge===0){J7e(v,x,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=$,this._prevMatchLength=ge,!this._wordSeparators||Kze(this._wordSeparators,v,x,$,ge))return F}while(F);return null}}const Yze="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function $ze(_=""){let v="(-?\\d*\\.\\d\\w*)|([^";for(const x of Yze)_.indexOf(x)>=0||(v+="\\"+x);return v+="\\s]+)",new RegExp(v,"g")}const cbe=$ze();function dbe(_){let v=cbe;if(_&&_ instanceof RegExp)if(_.global)v=_;else{let x="g";_.ignoreCase&&(x+="i"),_.multiline&&(x+="m"),_.unicode&&(x+="u"),v=new RegExp(_.source,x)}return v.lastIndex=0,v}const ube=new T7e;ube.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function fQ(_,v,x,F,$){if(v=dbe(v),$||($=nB.first(ube)),x.length>$.maxLen){let bt=_-$.maxLen/2;return bt<0?bt=0:F+=bt,x=x.substring(bt,_+$.maxLen/2),fQ(_,v,x,F,$)}const ge=Date.now(),Le=_-1-F;let Ke=-1,ae=null;for(let bt=1;!(Date.now()-ge>=$.timeBudget);bt++){const et=Le-$.windowSize*bt;v.lastIndex=Math.max(0,et);const Ye=Qze(v,x,Le,Ke);if(!Ye&&ae||(ae=Ye,et<=0))break;Ke=et}if(ae){const bt={word:ae[0],startColumn:F+1+ae.index,endColumn:F+1+ae.index+ae[0].length};return v.lastIndex=0,bt}return null}function Qze(_,v,x,F){let $;for(;$=_.exec(v);){const ge=$.index||0;if(ge<=x&&_.lastIndex>=x)return $;if(F>0&&ge>F)return null}return null}class Zze{static computeUnicodeHighlights(v,x,F){const $=F?F.startLineNumber:1,ge=F?F.endLineNumber:v.getLineCount(),Le=new pbe(x),Ke=Le.getCandidateCodePoints();let ae;Ke==="allNonBasicAscii"?ae=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):ae=new RegExp(`${e5e(Array.from(Ke))}`,"g");const bt=new Xze(null,ae),et=[];let Ye=!1,Pn,Hn=0,cr=0,Gn=0;e:for(let ki=$,bo=ge;ki<=bo;ki++){const Vn=v.getLineContent(ki),hn=Vn.length;bt.reset(0);do if(Pn=bt.next(Vn),Pn){let ga=Pn.index,ho=Pn.index+Pn[0].length;if(ga>0){const Io=Vn.charCodeAt(ga-1);$$(Io)&&ga--}if(ho+1=1e3){Ye=!0;break e}et.push(new ss(ki,ga+1,ki,ho+1))}}while(Pn)}return{ranges:et,hasMore:Ye,ambiguousCharacterCount:Hn,invisibleCharacterCount:cr,nonBasicAsciiCharacterCount:Gn}}static computeUnicodeHighlightReason(v,x){const F=new pbe(x);switch(F.shouldHighlightNonBasicASCII(v,null)){case 0:return null;case 2:return{kind:1};case 3:{const ge=v.codePointAt(0),Le=F.ambiguousCharacters.getPrimaryConfusable(ge),Ke=hR.getLocales().filter(ae=>!hR.getInstance(new Set([...x.allowedLocales,ae])).isAmbiguous(ge));return{kind:0,confusableWith:String.fromCodePoint(Le),notAmbiguousInLocales:Ke}}case 1:return{kind:2}}}}function e5e(_,v){return`[${F7e(_.map(F=>String.fromCodePoint(F)).join(""))}]`}class pbe{constructor(v){this.options=v,this.allowedCodePoints=new Set(v.allowedCodePoints),this.ambiguousCharacters=hR.getInstance(new Set(v.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const v=new Set;if(this.options.invisibleCharacters)for(const x of aN.codePoints)fbe(String.fromCodePoint(x))||v.add(x);if(this.options.ambiguousCharacters)for(const x of this.ambiguousCharacters.getConfusableCodePoints())v.add(x);for(const x of this.allowedCodePoints)v.delete(x);return v}shouldHighlightNonBasicASCII(v,x){const F=v.codePointAt(0);if(this.allowedCodePoints.has(F))return 0;if(this.options.nonBasicASCII)return 1;let $=!1,ge=!1;if(x)for(const Le of x){const Ke=Le.codePointAt(0),ae=X7e(Le);$=$||ae,!ae&&!this.ambiguousCharacters.isAmbiguous(Ke)&&!aN.isInvisibleCharacter(Ke)&&(ge=!0)}return!$&&ge?0:this.options.invisibleCharacters&&!fbe(v)&&aN.isInvisibleCharacter(F)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(F)?3:0}}function fbe(_){return _===" "||_===` `||_===" "}class mB{constructor(v,x,F){this.changes=v,this.moves=x,this.hitTimeout=F}}class t5e{constructor(v,x){this.lineRangeMapping=v,this.changes=x}}function n5e(_,v,x=(F,$)=>F===$){if(_===v)return!0;if(!_||!v||_.length!==v.length)return!1;for(let F=0,$=_.length;F<$;F++)if(!x(_[F],v[F]))return!1;return!0}function*r5e(_,v){let x,F;for(const $ of _)F!==void 0&&v(F,$)?x.push($):(x&&(yield x),x=[$]),F=$;x&&(yield x)}function i5e(_,v){for(let x=0;x<=_.length;x++)v(x===0?void 0:_[x-1],x===_.length?void 0:_[x])}function o5e(_,v){for(let x=0;x<_.length;x++)v(x===0?void 0:_[x-1],_[x],x+1===_.length?void 0:_[x+1])}function a5e(_,v){for(const x of v)_.push(x)}var mQ;(function(_){function v(ge){return ge<0}_.isLessThan=v;function x(ge){return ge<=0}_.isLessThanOrEqual=x;function F(ge){return ge>0}_.isGreaterThan=F;function $(ge){return ge===0}_.isNeitherLessOrGreaterThan=$,_.greaterThan=1,_.lessThan=-1,_.neitherLessOrGreaterThan=0})(mQ||(mQ={}));function y8(_,v){return(x,F)=>v(_(x),_(F))}const v8=(_,v)=>_-v;function s5e(_){return(v,x)=>-_(v,x)}class hB{static{this.empty=new hB(v=>{})}constructor(v){this.iterate=v}toArray(){const v=[];return this.iterate(x=>(v.push(x),!0)),v}filter(v){return new hB(x=>this.iterate(F=>v(F)?x(F):!0))}map(v){return new hB(x=>this.iterate(F=>x(v(F))))}findLast(v){let x;return this.iterate(F=>(v(F)&&(x=F),!0)),x}findLastMaxBy(v){let x,F=!0;return this.iterate($=>((F||mQ.isGreaterThan(v($,x)))&&(F=!1,x=$),!0)),x}}class ic{static fromTo(v,x){return new ic(v,x)}static addRange(v,x){let F=0;for(;Fx))return new ic(v,x)}static ofLength(v){return new ic(0,v)}static ofStartAndLength(v,x){return new ic(v,v+x)}static emptyAt(v){return new ic(v,v)}constructor(v,x){if(this.start=v,this.endExclusive=x,v>x)throw new A_(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(v){return new ic(this.start+v,this.endExclusive+v)}deltaStart(v){return new ic(this.start+v,this.endExclusive)}deltaEnd(v){return new ic(this.start,this.endExclusive+v)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(v){return this.start===v.start&&this.endExclusive===v.endExclusive}contains(v){return this.start<=v&&v=v.endExclusive}slice(v){return v.slice(this.start,this.endExclusive)}substring(v){return v.substring(this.start,this.endExclusive)}clip(v){if(this.isEmpty)throw new A_(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,v))}clipCyclic(v){if(this.isEmpty)throw new A_(`Invalid clipping range: ${this.toString()}`);return v=this.endExclusive?this.start+(v-this.start)%this.length:v}forEach(v){for(let x=this.start;xv.startLineNumber,v8)}static joinMany(v){if(v.length===0)return[];let x=new FE(v[0].slice());for(let F=1;Fx)throw new A_(`startLineNumber ${v} cannot be after endLineNumberExclusive ${x}`);this.startLineNumber=v,this.endLineNumberExclusive=x}contains(v){return this.startLineNumber<=v&&v$.endLineNumberExclusive>=v.startLineNumber),F=QL(this._normalizedRanges,$=>$.startLineNumber<=v.endLineNumberExclusive)+1;if(x===F)this._normalizedRanges.splice(x,0,v);else if(x===F-1){const $=this._normalizedRanges[x];this._normalizedRanges[x]=$.join(v)}else{const $=this._normalizedRanges[x].join(this._normalizedRanges[F-1]).join(v);this._normalizedRanges.splice(x,F-x,$)}}contains(v){const x=$L(this._normalizedRanges,F=>F.startLineNumber<=v);return!!x&&x.endLineNumberExclusive>v}intersects(v){const x=$L(this._normalizedRanges,F=>F.startLineNumberv.startLineNumber}getUnion(v){if(this._normalizedRanges.length===0)return v;if(v._normalizedRanges.length===0)return this;const x=[];let F=0,$=0,ge=null;for(;F=Le.startLineNumber?ge=new Rl(ge.startLineNumber,Math.max(ge.endLineNumberExclusive,Le.endLineNumberExclusive)):(x.push(ge),ge=Le)}return ge!==null&&x.push(ge),new FE(x)}subtractFrom(v){const x=hQ(this._normalizedRanges,Le=>Le.endLineNumberExclusive>=v.startLineNumber),F=QL(this._normalizedRanges,Le=>Le.startLineNumber<=v.endLineNumberExclusive)+1;if(x===F)return new FE([v]);const $=[];let ge=v.startLineNumber;for(let Le=x;Lege&&$.push(new Rl(ge,Ke.startLineNumber)),ge=Ke.endLineNumberExclusive}return gev.toString()).join(", ")}getIntersection(v){const x=[];let F=0,$=0;for(;Fx.delta(v)))}}class TT{static{this.zero=new TT(0,0)}static betweenPositions(v,x){return v.lineNumber===x.lineNumber?new TT(0,x.column-v.column):new TT(x.lineNumber-v.lineNumber,x.column-1)}static fromPosition(v){return new TT(v.lineNumber-1,v.column-1)}static ofRange(v){return TT.betweenPositions(v.getStartPosition(),v.getEndPosition())}static ofText(v){let x=0,F=0;for(const $ of v)$===` `?(x++,F=0):F++;return new TT(x,F)}constructor(v,x){this.lineCount=v,this.columnCount=x}isGreaterThanOrEqualTo(v){return this.lineCount!==v.lineCount?this.lineCount>v.lineCount:this.columnCount>=v.columnCount}add(v){return v.lineCount===0?new TT(this.lineCount,this.columnCount+v.columnCount):new TT(this.lineCount+v.lineCount,v.columnCount)}createRange(v){return this.lineCount===0?new ss(v.lineNumber,v.column,v.lineNumber,v.column+this.columnCount):new ss(v.lineNumber,v.column,v.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new ss(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return Rl.ofLength(1,this.lineCount+1)}addToPosition(v){return this.lineCount===0?new Zc(v.lineNumber,v.column+this.columnCount):new Zc(v.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}class c5e{getOffsetRange(v){return new ic(this.getOffset(v.getStartPosition()),this.getOffset(v.getEndPosition()))}getRange(v){return ss.fromPositions(this.getPosition(v.start),this.getPosition(v.endExclusive))}getStringReplacement(v){return new gB.deps.StringReplacement(this.getOffsetRange(v.range),v.text)}getTextReplacement(v){return new gB.deps.TextReplacement(this.getRange(v.replaceRange),v.newText)}getTextEdit(v){const x=v.replacements.map(F=>this.getTextReplacement(F));return new gB.deps.TextEdit(x)}}class gB{static{this._deps=void 0}static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}}class d5e extends c5e{constructor(v){super(),this.text=v,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let x=0;x0&&v.charAt(x-1)==="\r"?this.lineEndOffsetByLineIdx.push(x-1):this.lineEndOffsetByLineIdx.push(x));this.lineEndOffsetByLineIdx.push(v.length)}getOffset(v){const x=this._validatePosition(v);return this.lineStartOffsetByLineIdx[x.lineNumber-1]+x.column-1}_validatePosition(v){if(v.lineNumber<1)return new Zc(1,1);const x=this.textLength.lineCount+1;if(v.lineNumber>x){const $=this.getLineLength(x);return new Zc(x,$+1)}if(v.column<1)return new Zc(v.lineNumber,1);const F=this.getLineLength(v.lineNumber);return v.column-1>F?new Zc(v.lineNumber,F+1):v}getPosition(v){const x=QL(this.lineStartOffsetByLineIdx,ge=>ge<=v),F=x+1,$=v-this.lineStartOffsetByLineIdx[x]+1;return new Zc(F,$)}get textLength(){const v=this.lineStartOffsetByLineIdx.length-1;return new gB.deps.TextLength(v,this.text.length-this.lineStartOffsetByLineIdx[v])}getLineLength(v){return this.lineEndOffsetByLineIdx[v-1]-this.lineStartOffsetByLineIdx[v-1]}}class u5e{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new Zc(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(v){return this.getValueOfRange(this.getTransformer().getRange(v))}getLineLength(v){return this.getValueOfRange(new ss(v,1,v,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new d5e(this.getValue())),this._transformer}getLineAt(v){return this.getValueOfRange(new ss(v,1,v,Number.MAX_SAFE_INTEGER))}}class p5e extends u5e{constructor(v,x){_7e(x>=1),super(),this._getLineContent=v,this._lineCount=x}getValueOfRange(v){if(v.startLineNumber===v.endLineNumber)return this._getLineContent(v.startLineNumber).substring(v.startColumn-1,v.endColumn-1);let x=this._getLineContent(v.startLineNumber).substring(v.startColumn-1);for(let F=v.startLineNumber+1;Fv[x-1],v.length)}}class bR{static joinReplacements(v,x){if(v.length===0)throw new A_;if(v.length===1)return v[0];const F=v[0].range.getStartPosition(),$=v[v.length-1].range.getEndPosition();let ge="";for(let Le=0;Le ${x.lineNumber},${x.column}): "${this.text}"`}}class ST{static inverse(v,x,F){const $=[];let ge=1,Le=1;for(const ae of v){const bt=new ST(new Rl(ge,ae.original.startLineNumber),new Rl(Le,ae.modified.startLineNumber));bt.modified.isEmpty||$.push(bt),ge=ae.original.endLineNumberExclusive,Le=ae.modified.endLineNumberExclusive}const Ke=new ST(new Rl(ge,x+1),new Rl(Le,F+1));return Ke.modified.isEmpty||$.push(Ke),$}static clip(v,x,F){const $=[];for(const ge of v){const Le=ge.original.intersect(x),Ke=ge.modified.intersect(F);Le&&!Le.isEmpty&&Ke&&!Ke.isEmpty&&$.push(new ST(Le,Ke))}return $}constructor(v,x){this.original=v,this.modified=x}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new ST(this.modified,this.original)}join(v){return new ST(this.original.join(v.original),this.modified.join(v.modified))}toRangeMapping(){const v=this.original.toInclusiveRange(),x=this.modified.toInclusiveRange();if(v&&x)return new ET(v,x);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new A_("not a valid diff");return new ET(new ss(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ss(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new ET(new ss(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new ss(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(v,x){if(mbe(this.original.endLineNumberExclusive,v)&&mbe(this.modified.endLineNumberExclusive,x))return new ET(new ss(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ss(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new ET(ss.fromPositions(new Zc(this.original.startLineNumber,1),ZL(new Zc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),v)),ss.fromPositions(new Zc(this.modified.startLineNumber,1),ZL(new Zc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),x)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new ET(ss.fromPositions(ZL(new Zc(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),v),ZL(new Zc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),v)),ss.fromPositions(ZL(new Zc(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),x),ZL(new Zc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),x)));throw new A_}}function ZL(_,v){if(_.lineNumber<1)return new Zc(1,1);if(_.lineNumber>v.length)return new Zc(v.length,v[v.length-1].length+1);const x=v[_.lineNumber-1];return _.column>x.length+1?new Zc(_.lineNumber,x.length+1):_}function mbe(_,v){return _>=1&&_<=v.length}class jA extends ST{static fromRangeMappings(v){const x=Rl.join(v.map($=>Rl.fromRangeInclusive($.originalRange))),F=Rl.join(v.map($=>Rl.fromRangeInclusive($.modifiedRange)));return new jA(x,F,v)}constructor(v,x,F){super(v,x),this.innerChanges=F}flip(){return new jA(this.modified,this.original,this.innerChanges?.map(v=>v.flip()))}withInnerChangesFromLineRanges(){return new jA(this.original,this.modified,[this.toRangeMapping()])}}class ET{static fromEdit(v){const x=v.getNewRanges();return v.replacements.map(($,ge)=>new ET($.range,x[ge]))}static assertSorted(v){for(let x=1;x${this.modifiedRange.toString()}}`}flip(){return new ET(this.modifiedRange,this.originalRange)}toTextEdit(v){const x=v.getValueOfRange(this.modifiedRange);return new bR(this.originalRange,x)}}function hbe(_,v,x,F=!1){const $=[];for(const ge of r5e(_.map(Le=>f5e(Le,v,x)),(Le,Ke)=>Le.original.intersectsOrTouches(Ke.original)||Le.modified.intersectsOrTouches(Ke.modified))){const Le=ge[0],Ke=ge[ge.length-1];$.push(new jA(Le.original.join(Ke.original),Le.modified.join(Ke.modified),ge.map(ae=>ae.innerChanges[0])))}return tB(()=>!F&&$.length>0&&($[0].modified.startLineNumber!==$[0].original.startLineNumber||x.length.lineCount-$[$.length-1].modified.endLineNumberExclusive!==v.length.lineCount-$[$.length-1].original.endLineNumberExclusive)?!1:Nye($,(ge,Le)=>Le.original.startLineNumber-ge.original.endLineNumberExclusive===Le.modified.startLineNumber-ge.modified.endLineNumberExclusive&&ge.original.endLineNumberExclusive=x.getLineLength(_.modifiedRange.startLineNumber)&&_.originalRange.startColumn-1>=v.getLineLength(_.originalRange.startLineNumber)&&_.originalRange.startLineNumber<=_.originalRange.endLineNumber+$&&_.modifiedRange.startLineNumber<=_.modifiedRange.endLineNumber+$&&(F=1);const ge=new Rl(_.originalRange.startLineNumber+F,_.originalRange.endLineNumber+1+$),Le=new Rl(_.modifiedRange.startLineNumber+F,_.modifiedRange.endLineNumber+1+$);return new jA(ge,Le,[_])}const m5e=3;class h5e{computeDiff(v,x,F){const ge=new y5e(v,x,{maxComputationTime:F.maxComputationTimeMs,shouldIgnoreTrimWhitespace:F.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Le=[];let Ke=null;for(const ae of ge.changes){let bt;ae.originalEndLineNumber===0?bt=new Rl(ae.originalStartLineNumber+1,ae.originalStartLineNumber+1):bt=new Rl(ae.originalStartLineNumber,ae.originalEndLineNumber+1);let et;ae.modifiedEndLineNumber===0?et=new Rl(ae.modifiedStartLineNumber+1,ae.modifiedStartLineNumber+1):et=new Rl(ae.modifiedStartLineNumber,ae.modifiedEndLineNumber+1);let Ye=new jA(bt,et,ae.charChanges?.map(Pn=>new ET(new ss(Pn.originalStartLineNumber,Pn.originalStartColumn,Pn.originalEndLineNumber,Pn.originalEndColumn),new ss(Pn.modifiedStartLineNumber,Pn.modifiedStartColumn,Pn.modifiedEndLineNumber,Pn.modifiedEndColumn))));Ke&&(Ke.modified.endLineNumberExclusive===Ye.modified.startLineNumber||Ke.original.endLineNumberExclusive===Ye.original.startLineNumber)&&(Ye=new jA(Ke.original.join(Ye.original),Ke.modified.join(Ye.modified),Ke.innerChanges&&Ye.innerChanges?Ke.innerChanges.concat(Ye.innerChanges):void 0),Le.pop()),Le.push(Ye),Ke=Ye}return tB(()=>Nye(Le,(ae,bt)=>bt.original.startLineNumber-ae.original.endLineNumberExclusive===bt.modified.startLineNumber-ae.modified.endLineNumberExclusive&&ae.original.endLineNumberExclusive(v===10?"\\n":String.fromCharCode(v))+`-(${this._lineNumbers[x]},${this._columns[x]})`).join(", ")+"]"}_assertIndex(v,x){if(v<0||v>=x.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(v){return v>0&&v===this._lineNumbers.length?this.getEndLineNumber(v-1):(this._assertIndex(v,this._lineNumbers),this._lineNumbers[v])}getEndLineNumber(v){return v===-1?this.getStartLineNumber(v+1):(this._assertIndex(v,this._lineNumbers),this._charCodes[v]===10?this._lineNumbers[v]+1:this._lineNumbers[v])}getStartColumn(v){return v>0&&v===this._columns.length?this.getEndColumn(v-1):(this._assertIndex(v,this._columns),this._columns[v])}getEndColumn(v){return v===-1?this.getStartColumn(v+1):(this._assertIndex(v,this._columns),this._charCodes[v]===10?1:this._columns[v]+1)}}class e2{constructor(v,x,F,$,ge,Le,Ke,ae){this.originalStartLineNumber=v,this.originalStartColumn=x,this.originalEndLineNumber=F,this.originalEndColumn=$,this.modifiedStartLineNumber=ge,this.modifiedStartColumn=Le,this.modifiedEndLineNumber=Ke,this.modifiedEndColumn=ae}static createFromDiffChange(v,x,F){const $=x.getStartLineNumber(v.originalStart),ge=x.getStartColumn(v.originalStart),Le=x.getEndLineNumber(v.originalStart+v.originalLength-1),Ke=x.getEndColumn(v.originalStart+v.originalLength-1),ae=F.getStartLineNumber(v.modifiedStart),bt=F.getStartColumn(v.modifiedStart),et=F.getEndLineNumber(v.modifiedStart+v.modifiedLength-1),Ye=F.getEndColumn(v.modifiedStart+v.modifiedLength-1);return new e2($,ge,Le,Ke,ae,bt,et,Ye)}}function g5e(_){if(_.length<=1)return _;const v=[_[0]];let x=v[0];for(let F=1,$=_.length;F<$;F++){const ge=_[F],Le=ge.originalStart-(x.originalStart+x.originalLength),Ke=ge.modifiedStart-(x.modifiedStart+x.modifiedLength);Math.min(Le,Ke)0&&x.originalLength<20&&x.modifiedLength>0&&x.modifiedLength<20&&ge()){const Hn=F.createCharSequence(v,x.originalStart,x.originalStart+x.originalLength-1),cr=$.createCharSequence(v,x.modifiedStart,x.modifiedStart+x.modifiedLength-1);if(Hn.getElements().length>0&&cr.getElements().length>0){let Gn=_be(Hn,cr,ge,!0).changes;Ke&&(Gn=g5e(Gn)),Pn=[];for(let ki=0,bo=Gn.length;ki1&&Gn>1;){const ki=Pn.charCodeAt(cr-2),bo=Hn.charCodeAt(Gn-2);if(ki!==bo)break;cr--,Gn--}(cr>1||Gn>1)&&this._pushTrimWhitespaceCharChange($,ge+1,1,cr,Le+1,1,Gn)}{let cr=gQ(Pn,1),Gn=gQ(Hn,1);const ki=Pn.length+1,bo=Hn.length+1;for(;cr!0;const v=Date.now();return()=>Date.now()-v<_}class UA{static trivial(v,x){return new UA([new sf(ic.ofLength(v.length),ic.ofLength(x.length))],!1)}static trivialTimedOut(v,x){return new UA([new sf(ic.ofLength(v.length),ic.ofLength(x.length))],!0)}constructor(v,x){this.diffs=v,this.hitTimeout=x}}class sf{static invert(v,x){const F=[];return i5e(v,($,ge)=>{F.push(sf.fromOffsetPairs($?$.getEndExclusives():sS.zero,ge?ge.getStarts():new sS(x,($?$.seq2Range.endExclusive-$.seq1Range.endExclusive:0)+x)))}),F}static fromOffsetPairs(v,x){return new sf(new ic(v.offset1,x.offset1),new ic(v.offset2,x.offset2))}static assertSorted(v){let x;for(const F of v){if(x&&!(x.seq1Range.endExclusive<=F.seq1Range.start&&x.seq2Range.endExclusive<=F.seq2Range.start))throw new A_("Sequence diffs must be sorted");x=F}}constructor(v,x){this.seq1Range=v,this.seq2Range=x}swap(){return new sf(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(v){return new sf(this.seq1Range.join(v.seq1Range),this.seq2Range.join(v.seq2Range))}delta(v){return v===0?this:new sf(this.seq1Range.delta(v),this.seq2Range.delta(v))}deltaStart(v){return v===0?this:new sf(this.seq1Range.deltaStart(v),this.seq2Range.deltaStart(v))}deltaEnd(v){return v===0?this:new sf(this.seq1Range.deltaEnd(v),this.seq2Range.deltaEnd(v))}intersect(v){const x=this.seq1Range.intersect(v.seq1Range),F=this.seq2Range.intersect(v.seq2Range);if(!(!x||!F))return new sf(x,F)}getStarts(){return new sS(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new sS(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class sS{static{this.zero=new sS(0,0)}static{this.max=new sS(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(v,x){this.offset1=v,this.offset2=x}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(v){return v===0?this:new sS(this.offset1+v,this.offset2+v)}equals(v){return this.offset1===v.offset1&&this.offset2===v.offset2}}class T8{static{this.instance=new T8}isValid(){return!0}}class v5e{constructor(v){if(this.timeout=v,this.startTime=Date.now(),this.valid=!0,v<=0)throw new A_("timeout must be positive")}isValid(){return!(Date.now()-this.startTime0&&Gn>0&&Le.get(cr-1,Gn-1)===3&&(Vn+=Ke.get(cr-1,Gn-1)),Vn+=$?$(cr,Gn):1):Vn=-1;const hn=Math.max(ki,bo,Vn);if(hn===Vn){const ga=cr>0&&Gn>0?Ke.get(cr-1,Gn-1):0;Ke.set(cr,Gn,ga+1),Le.set(cr,Gn,3)}else hn===ki?(Ke.set(cr,Gn,0),Le.set(cr,Gn,1)):hn===bo&&(Ke.set(cr,Gn,0),Le.set(cr,Gn,2));ge.set(cr,Gn,hn)}const ae=[];let bt=v.length,et=x.length;function Ye(cr,Gn){(cr+1!==bt||Gn+1!==et)&&ae.push(new sf(new ic(cr+1,bt),new ic(Gn+1,et))),bt=cr,et=Gn}let Pn=v.length-1,Hn=x.length-1;for(;Pn>=0&&Hn>=0;)Le.get(Pn,Hn)===3?(Ye(Pn,Hn),Pn--,Hn--):Le.get(Pn,Hn)===1?Pn--:Hn--;return Ye(-1,-1),ae.reverse(),new UA(ae,!1)}}class vbe{compute(v,x,F=T8.instance){if(v.length===0||x.length===0)return UA.trivial(v,x);const $=v,ge=x;function Le(Gn,ki){for(;Gn<$.length&&ki$.length||ga>ge.length)continue;const ho=Le(hn,ga);ae.set(et,ho);const gl=hn===bo?bt.get(et+1):bt.get(et-1);if(bt.set(et,ho!==hn?new bbe(gl,hn,ga,ho-hn):gl),ae.get(et)===$.length&&ae.get(et)-et===ge.length)break e}}let Ye=bt.get(et);const Pn=[];let Hn=$.length,cr=ge.length;for(;;){const Gn=Ye?Ye.x+Ye.length:0,ki=Ye?Ye.y+Ye.length:0;if((Gn!==Hn||ki!==cr)&&Pn.push(new sf(new ic(Gn,Hn),new ic(ki,cr))),!Ye)break;Hn=Ye.x,cr=Ye.y,Ye=Ye.prev}return Pn.reverse(),new UA(Pn,!1)}}class bbe{constructor(v,x,F,$){this.prev=v,this.x=x,this.y=F,this.length=$}}class T5e{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,x){if(v<0){if(v=-v-1,v>=this.negativeArr.length){const F=this.negativeArr;this.negativeArr=new Int32Array(F.length*2),this.negativeArr.set(F)}this.negativeArr[v]=x}else{if(v>=this.positiveArr.length){const F=this.positiveArr;this.positiveArr=new Int32Array(F.length*2),this.positiveArr.set(F)}this.positiveArr[v]=x}}}class S5e{constructor(){this.positiveArr=[],this.negativeArr=[]}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,x){v<0?(v=-v-1,this.negativeArr[v]=x):this.positiveArr[v]=x}}class vB{constructor(v,x,F){this.lines=v,this.range=x,this.considerWhitespaceChanges=F,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let $=this.range.startLineNumber;$<=this.range.endLineNumber;$++){let ge=v[$-1],Le=0;$===this.range.startLineNumber&&this.range.startColumn>1&&(Le=this.range.startColumn-1,ge=ge.substring(Le)),this.lineStartOffsets.push(Le);let Ke=0;if(!F){const bt=ge.trimStart();Ke=ge.length-bt.length,ge=bt.trimEnd()}this.trimmedWsLengthsByLineIdx.push(Ke);const ae=$===this.range.endLineNumber?Math.min(this.range.endColumn-1-Le-Ke,ge.length):ge.length;for(let bt=0;btString.fromCharCode(x)).join("")}getElement(v){return this.elements[v]}get length(){return this.elements.length}getBoundaryScore(v){const x=Ebe(v>0?this.elements[v-1]:-1),F=Ebe(vge<=v),$=v-this.firstElementOffsetByLineIdx[F];return new Zc(this.range.startLineNumber+F,1+this.lineStartOffsets[F]+$+($===0&&x==="left"?0:this.trimmedWsLengthsByLineIdx[F]))}translateRange(v){const x=this.translateOffset(v.start,"right"),F=this.translateOffset(v.endExclusive,"left");return F.isBefore(x)?ss.fromPositions(F,F):ss.fromPositions(x,F)}findWordContaining(v){if(v<0||v>=this.elements.length||!t2(this.elements[v]))return;let x=v;for(;x>0&&t2(this.elements[x-1]);)x--;let F=v;for(;F=this.elements.length||!t2(this.elements[v]))return;let x=v;for(;x>0&&t2(this.elements[x-1])&&!Tbe(this.elements[x]);)x--;let F=v;for(;F$<=v.start)??0,F=l5e(this.firstElementOffsetByLineIdx,$=>v.endExclusive<=$)??this.elements.length;return new ic(x,F)}}function t2(_){return _>=97&&_<=122||_>=65&&_<=90||_>=48&&_<=57}function Tbe(_){return _>=65&&_<=90}const E5e={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Sbe(_){return E5e[_]}function Ebe(_){return _===10?8:_===13?7:vQ(_)?6:_>=97&&_<=122?0:_>=65&&_<=90?1:_>=48&&_<=57?2:_===-1?3:_===44||_===59?5:4}function A5e(_,v,x,F,$,ge){let{moves:Le,excludedChanges:Ke}=x5e(_,v,x,ge);if(!ge.isValid())return[];const ae=_.filter(et=>!Ke.has(et)),bt=R5e(ae,F,$,v,x,ge);return a5e(Le,bt),Le=D5e(Le),Le=Le.filter(et=>{const Ye=et.original.toOffsetRange().slice(v).map(Hn=>Hn.trim());return Ye.join(` `).length>=15&&I5e(Ye,Hn=>Hn.length>=2)>=2}),Le=C5e(_,Le),Le}function I5e(_,v){let x=0;for(const F of _)v(F)&&x++;return x}function x5e(_,v,x,F){const $=[],ge=_.filter(ae=>ae.modified.isEmpty&&ae.original.length>=3).map(ae=>new S8(ae.original,v,ae)),Le=new Set(_.filter(ae=>ae.original.isEmpty&&ae.modified.length>=3).map(ae=>new S8(ae.modified,x,ae))),Ke=new Set;for(const ae of ge){let bt=-1,et;for(const Ye of Le){const Pn=ae.computeSimilarity(Ye);Pn>bt&&(bt=Pn,et=Ye)}if(bt>.9&&et&&(Le.delete(et),$.push(new ST(ae.range,et.range)),Ke.add(ae.source),Ke.add(et.source)),!F.isValid())return{moves:$,excludedChanges:Ke}}return{moves:$,excludedChanges:Ke}}function R5e(_,v,x,F,$,ge){const Le=[],Ke=new Uze;for(const Pn of _)for(let Hn=Pn.original.startLineNumber;HnPn.modified.startLineNumber,v8));for(const Pn of _){let Hn=[];for(let cr=Pn.modified.startLineNumber;cr{for(const ga of Hn)if(ga.originalLineRange.endLineNumberExclusive+1===Vn.endLineNumberExclusive&&ga.modifiedLineRange.endLineNumberExclusive+1===ki.endLineNumberExclusive){ga.originalLineRange=new Rl(ga.originalLineRange.startLineNumber,Vn.endLineNumberExclusive),ga.modifiedLineRange=new Rl(ga.modifiedLineRange.startLineNumber,ki.endLineNumberExclusive),bo.push(ga);return}const hn={modifiedLineRange:ki,originalLineRange:Vn};ae.push(hn),bo.push(hn)}),Hn=bo}if(!ge.isValid())return[]}ae.sort(s5e(y8(Pn=>Pn.modifiedLineRange.length,v8)));const bt=new FE,et=new FE;for(const Pn of ae){const Hn=Pn.modifiedLineRange.startLineNumber-Pn.originalLineRange.startLineNumber,cr=bt.subtractFrom(Pn.modifiedLineRange),Gn=et.subtractFrom(Pn.originalLineRange).getWithDelta(Hn),ki=cr.getIntersection(Gn);for(const bo of ki.ranges){if(bo.length<3)continue;const Vn=bo,hn=bo.delta(-Hn);Le.push(new ST(hn,Vn)),bt.addRange(Vn),et.addRange(hn)}}Le.sort(y8(Pn=>Pn.original.startLineNumber,v8));const Ye=new _B(_);for(let Pn=0;Pngl.original.startLineNumber<=Hn.original.startLineNumber),Gn=$L(_,gl=>gl.modified.startLineNumber<=Hn.modified.startLineNumber),ki=Math.max(Hn.original.startLineNumber-cr.original.startLineNumber,Hn.modified.startLineNumber-Gn.modified.startLineNumber),bo=Ye.findLastMonotonous(gl=>gl.original.startLineNumbergl.modified.startLineNumberF.length||jn>$.length||bt.contains(jn)||et.contains(gl)||!Abe(F[gl-1],$[jn-1],ge))break}ga>0&&(et.addRange(new Rl(Hn.original.startLineNumber-ga,Hn.original.startLineNumber)),bt.addRange(new Rl(Hn.modified.startLineNumber-ga,Hn.modified.startLineNumber)));let ho;for(ho=0;hoF.length||jn>$.length||bt.contains(jn)||et.contains(gl)||!Abe(F[gl-1],$[jn-1],ge))break}ho>0&&(et.addRange(new Rl(Hn.original.endLineNumberExclusive,Hn.original.endLineNumberExclusive+ho)),bt.addRange(new Rl(Hn.modified.endLineNumberExclusive,Hn.modified.endLineNumberExclusive+ho))),(ga>0||ho>0)&&(Le[Pn]=new ST(new Rl(Hn.original.startLineNumber-ga,Hn.original.endLineNumberExclusive+ho),new Rl(Hn.modified.startLineNumber-ga,Hn.modified.endLineNumberExclusive+ho)))}return Le}function Abe(_,v,x){if(_.trim()===v.trim())return!0;if(_.length>300&&v.length>300)return!1;const $=new vbe().compute(new vB([_],new ss(1,1,1,_.length),!1),new vB([v],new ss(1,1,1,v.length),!1),x);let ge=0;const Le=sf.invert($.diffs,_.length);for(const et of Le)et.seq1Range.forEach(Ye=>{vQ(_.charCodeAt(Ye))||ge++});function Ke(et){let Ye=0;for(let Pn=0;Pn<_.length;Pn++)vQ(et.charCodeAt(Pn))||Ye++;return Ye}const ae=Ke(_.length>v.length?_:v);return ge/ae>.6&&ae>10}function D5e(_){if(_.length===0)return _;_.sort(y8(x=>x.original.startLineNumber,v8));const v=[_[0]];for(let x=1;x<_.length;x++){const F=v[v.length-1],$=_[x],ge=$.original.startLineNumber-F.original.endLineNumberExclusive,Le=$.modified.startLineNumber-F.modified.endLineNumberExclusive;if(ge>=0&&Le>=0&&ge+Le<=2){v[v.length-1]=F.join($);continue}v.push($)}return v}function C5e(_,v){const x=new _B(_);return v=v.filter(F=>{const $=x.findLastMonotonous(Ke=>Ke.original.startLineNumberKe.modified.startLineNumber0&&(Ke=Ke.delta(bt))}$.push(Ke)}return F.length>0&&$.push(F[F.length-1]),$}function N5e(_,v,x){if(!_.getBoundaryScore||!v.getBoundaryScore)return x;for(let F=0;F0?x[F-1]:void 0,ge=x[F],Le=F+1=F.start&&_.seq2Range.start-Le>=$.start&&x.isStronglyEqual(_.seq2Range.start-Le,_.seq2Range.endExclusive-Le)&&Le<100;)Le++;Le--;let Ke=0;for(;_.seq1Range.start+Kebt&&(bt=cr,ae=et)}return _.delta(ae)}function M5e(_,v,x){const F=[];for(const $ of x){const ge=F[F.length-1];if(!ge){F.push($);continue}$.seq1Range.start-ge.seq1Range.endExclusive<=2||$.seq2Range.start-ge.seq2Range.endExclusive<=2?F[F.length-1]=new sf(ge.seq1Range.join($.seq1Range),ge.seq2Range.join($.seq2Range)):F.push($)}return F}function Dbe(_,v,x,F,$=!1){const ge=sf.invert(x,_.length),Le=[];let Ke=new sS(0,0);function ae(et,Ye){if(et.offset10;){const Vn=ge[0];if(!(Vn.seq1Range.intersects(cr.seq1Range)||Vn.seq2Range.intersects(cr.seq2Range)))break;const ga=F(_,Vn.seq1Range.start),ho=F(v,Vn.seq2Range.start),gl=new sf(ga,ho),jn=gl.intersect(Vn);if(ki+=jn.seq1Range.length,bo+=jn.seq2Range.length,cr=cr.join(gl),cr.seq1Range.endExclusive>=Vn.seq1Range.endExclusive)ge.shift();else break}($&&ki+bo0;){const et=ge.shift();et.seq1Range.isEmpty||(ae(et.getStarts(),et),ae(et.getEndExclusives().delta(-1),et))}return P5e(x,Le)}function P5e(_,v){const x=[];for(;_.length>0||v.length>0;){const F=_[0],$=v[0];let ge;F&&(!$||F.seq1Range.start<$.seq1Range.start)?ge=_.shift():ge=v.shift(),x.length>0&&x[x.length-1].seq1Range.endExclusive>=ge.seq1Range.start?x[x.length-1]=x[x.length-1].join(ge):x.push(ge)}return x}function L5e(_,v,x){let F=x;if(F.length===0)return F;let $=0,ge;do{ge=!1;const Le=[F[0]];for(let Ke=1;Ke5||Hn.seq1Range.length+Hn.seq2Range.length>5)};const ae=F[Ke],bt=Le[Le.length-1];et(bt,ae)?(ge=!0,Le[Le.length-1]=Le[Le.length-1].join(ae)):Le.push(ae)}F=Le}while($++<10&&ge);return F}function k5e(_,v,x){let F=x;if(F.length===0)return F;let $=0,ge;do{ge=!1;const Ke=[F[0]];for(let ae=1;ae5||Gn.length>500)return!1;const bo=_.getText(Gn).trim();if(bo.length>20||bo.split(/\r\n|\r|\n/).length>1)return!1;const Vn=_.countLinesIn(Hn.seq1Range),hn=Hn.seq1Range.length,ga=v.countLinesIn(Hn.seq2Range),ho=Hn.seq2Range.length,gl=_.countLinesIn(cr.seq1Range),jn=cr.seq1Range.length,Bi=v.countLinesIn(cr.seq2Range),Io=cr.seq2Range.length,Un=2*40+50;function ul(hi){return Math.min(hi,Un)}return Math.pow(Math.pow(ul(Vn*40+hn),1.5)+Math.pow(ul(ga*40+ho),1.5),1.5)+Math.pow(Math.pow(ul(gl*40+jn),1.5)+Math.pow(ul(Bi*40+Io),1.5),1.5)>(Un**1.5)**1.5*1.3};const bt=F[ae],et=Ke[Ke.length-1];Ye(et,bt)?(ge=!0,Ke[Ke.length-1]=Ke[Ke.length-1].join(bt)):Ke.push(bt)}F=Ke}while($++<10&&ge);const Le=[];return o5e(F,(Ke,ae,bt)=>{let et=ae;function Ye(bo){return bo.length>0&&bo.trim().length<=3&&ae.seq1Range.length+ae.seq2Range.length>100}const Pn=_.extendToFullLines(ae.seq1Range),Hn=_.getText(new ic(Pn.start,ae.seq1Range.start));Ye(Hn)&&(et=et.deltaStart(-Hn.length));const cr=_.getText(new ic(ae.seq1Range.endExclusive,Pn.endExclusive));Ye(cr)&&(et=et.deltaEnd(cr.length));const Gn=sf.fromOffsetPairs(Ke?Ke.getEndExclusives():sS.zero,bt?bt.getStarts():sS.max),ki=et.intersect(Gn);Le.length>0&&ki.getStarts().equals(Le[Le.length-1].getEndExclusives())?Le[Le.length-1]=Le[Le.length-1].join(ki):Le.push(ki)}),Le}class Cbe{constructor(v,x){this.trimmedHash=v,this.lines=x}getElement(v){return this.trimmedHash[v]}get length(){return this.trimmedHash.length}getBoundaryScore(v){const x=v===0?0:Nbe(this.lines[v-1]),F=v===this.lines.length?0:Nbe(this.lines[v]);return 1e3-(x+F)}getText(v){return this.lines.slice(v.start,v.endExclusive).join(` `)}isStronglyEqual(v,x){return this.lines[v]===this.lines[x]}}function Nbe(_){let v=0;for(;v<_.length&&(_.charCodeAt(v)===32||_.charCodeAt(v)===9);)v++;return v}class w5e{constructor(){this.dynamicProgrammingDiffing=new b5e,this.myersDiffingAlgorithm=new vbe}computeDiff(v,x,F){if(v.length<=1&&n5e(v,x,(jn,Bi)=>jn===Bi))return new mB([],[],!1);if(v.length===1&&v[0].length===0||x.length===1&&x[0].length===0)return new mB([new jA(new Rl(1,v.length+1),new Rl(1,x.length+1),[new ET(new ss(1,1,v.length,v[v.length-1].length+1),new ss(1,1,x.length,x[x.length-1].length+1))])],[],!1);const $=F.maxComputationTimeMs===0?T8.instance:new v5e(F.maxComputationTimeMs),ge=!F.ignoreTrimWhitespace,Le=new Map;function Ke(jn){let Bi=Le.get(jn);return Bi===void 0&&(Bi=Le.size,Le.set(jn,Bi)),Bi}const ae=v.map(jn=>Ke(jn.trim())),bt=x.map(jn=>Ke(jn.trim())),et=new Cbe(ae,v),Ye=new Cbe(bt,x),Pn=et.length+Ye.length<1700?this.dynamicProgrammingDiffing.compute(et,Ye,$,(jn,Bi)=>v[jn]===x[Bi]?x[Bi].length===0?.1:1+Math.log(1+x[Bi].length):.99):this.myersDiffingAlgorithm.compute(et,Ye,$);let Hn=Pn.diffs,cr=Pn.hitTimeout;Hn=Ibe(et,Ye,Hn),Hn=L5e(et,Ye,Hn);const Gn=[],ki=jn=>{if(ge)for(let Bi=0;Bijn.seq1Range.start-bo===jn.seq2Range.start-Vn);const Bi=jn.seq1Range.start-bo;ki(Bi),bo=jn.seq1Range.endExclusive,Vn=jn.seq2Range.endExclusive;const Io=this.refineDiff(v,x,jn,$,ge,F);Io.hitTimeout&&(cr=!0);for(const Un of Io.mappings)Gn.push(Un)}ki(v.length-bo);const hn=new yB(v),ga=new yB(x),ho=hbe(Gn,hn,ga);let gl=[];return F.computeMoves&&(gl=this.computeMoves(ho,v,x,ae,bt,$,ge,F)),tB(()=>{function jn(Io,Un){if(Io.lineNumber<1||Io.lineNumber>Un.length)return!1;const ul=Un[Io.lineNumber-1];return!(Io.column<1||Io.column>ul.length+1)}function Bi(Io,Un){return!(Io.startLineNumber<1||Io.startLineNumber>Un.length+1||Io.endLineNumberExclusive<1||Io.endLineNumberExclusive>Un.length+1)}for(const Io of ho){if(!Io.innerChanges)return!1;for(const Un of Io.innerChanges)if(!(jn(Un.modifiedRange.getStartPosition(),x)&&jn(Un.modifiedRange.getEndPosition(),x)&&jn(Un.originalRange.getStartPosition(),v)&&jn(Un.originalRange.getEndPosition(),v)))return!1;if(!Bi(Io.modified,x)||!Bi(Io.original,v))return!1}return!0}),new mB(ho,gl,cr)}computeMoves(v,x,F,$,ge,Le,Ke,ae){return A5e(v,x,F,$,ge,Le).map(Ye=>{const Pn=this.refineDiff(x,F,new sf(Ye.original.toOffsetRange(),Ye.modified.toOffsetRange()),Le,Ke,ae),Hn=hbe(Pn.mappings,new yB(x),new yB(F),!0);return new t5e(Ye,Hn)})}refineDiff(v,x,F,$,ge,Le){const ae=O5e(F).toRangeMapping2(v,x),bt=new vB(v,ae.originalRange,ge),et=new vB(x,ae.modifiedRange,ge),Ye=bt.length+et.length<500?this.dynamicProgrammingDiffing.compute(bt,et,$):this.myersDiffingAlgorithm.compute(bt,et,$);let Pn=Ye.diffs;return Pn=Ibe(bt,et,Pn),Pn=Dbe(bt,et,Pn,(cr,Gn)=>cr.findWordContaining(Gn)),Le.extendToSubwords&&(Pn=Dbe(bt,et,Pn,(cr,Gn)=>cr.findSubWordContaining(Gn),!0)),Pn=M5e(bt,et,Pn),Pn=k5e(bt,et,Pn),{mappings:Pn.map(cr=>new ET(bt.translateRange(cr.seq1Range),et.translateRange(cr.seq2Range))),hitTimeout:Ye.hitTimeout}}}function O5e(_){return new ST(new Rl(_.seq1Range.start+1,_.seq1Range.endExclusive+1),new Rl(_.seq2Range.start+1,_.seq2Range.endExclusive+1))}const Mbe={getLegacy:()=>new h5e,getDefault:()=>new w5e};function TR(_,v){const x=Math.pow(10,v);return Math.round(_*x)/x}class Er{constructor(v,x,F,$=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,v))|0,this.g=Math.min(255,Math.max(0,x))|0,this.b=Math.min(255,Math.max(0,F))|0,this.a=TR(Math.max(Math.min(1,$),0),3)}static equals(v,x){return v.r===x.r&&v.g===x.g&&v.b===x.b&&v.a===x.a}}class AT{constructor(v,x,F,$){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=TR(Math.max(Math.min(1,x),0),3),this.l=TR(Math.max(Math.min(1,F),0),3),this.a=TR(Math.max(Math.min(1,$),0),3)}static equals(v,x){return v.h===x.h&&v.s===x.s&&v.l===x.l&&v.a===x.a}static fromRGBA(v){const x=v.r/255,F=v.g/255,$=v.b/255,ge=v.a,Le=Math.max(x,F,$),Ke=Math.min(x,F,$);let ae=0,bt=0;const et=(Ke+Le)/2,Ye=Le-Ke;if(Ye>0){switch(bt=Math.min(et<=.5?Ye/(2*et):Ye/(2-2*et),1),Le){case x:ae=(F-$)/Ye+(F<$?6:0);break;case F:ae=($-x)/Ye+2;break;case $:ae=(x-F)/Ye+4;break}ae*=60,ae=Math.round(ae)}return new AT(ae,bt,et,ge)}static _hue2rgb(v,x,F){return F<0&&(F+=1),F>1&&(F-=1),F<1/6?v+(x-v)*6*F:F<1/2?x:F<2/3?v+(x-v)*(2/3-F)*6:v}static toRGBA(v){const x=v.h/360,{s:F,l:$,a:ge}=v;let Le,Ke,ae;if(F===0)Le=Ke=ae=$;else{const bt=$<.5?$*(1+F):$+F-$*F,et=2*$-bt;Le=AT._hue2rgb(et,bt,x+1/3),Ke=AT._hue2rgb(et,bt,x),ae=AT._hue2rgb(et,bt,x-1/3)}return new Er(Math.round(Le*255),Math.round(Ke*255),Math.round(ae*255),ge)}}class n2{constructor(v,x,F,$){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=TR(Math.max(Math.min(1,x),0),3),this.v=TR(Math.max(Math.min(1,F),0),3),this.a=TR(Math.max(Math.min(1,$),0),3)}static equals(v,x){return v.h===x.h&&v.s===x.s&&v.v===x.v&&v.a===x.a}static fromRGBA(v){const x=v.r/255,F=v.g/255,$=v.b/255,ge=Math.max(x,F,$),Le=Math.min(x,F,$),Ke=ge-Le,ae=ge===0?0:Ke/ge;let bt;return Ke===0?bt=0:ge===x?bt=((F-$)/Ke%6+6)%6:ge===F?bt=($-x)/Ke+2:bt=(x-F)/Ke+4,new n2(Math.round(bt*60),ae,ge,v.a)}static toRGBA(v){const{h:x,s:F,v:$,a:ge}=v,Le=$*F,Ke=Le*(1-Math.abs(x/60%2-1)),ae=$-Le;let[bt,et,Ye]=[0,0,0];return x<60?(bt=Le,et=Ke):x<120?(bt=Ke,et=Le):x<180?(et=Le,Ye=Ke):x<240?(et=Ke,Ye=Le):x<300?(bt=Ke,Ye=Le):x<=360&&(bt=Le,Ye=Ke),bt=Math.round((bt+ae)*255),et=Math.round((et+ae)*255),Ye=Math.round((Ye+ae)*255),new Er(bt,et,Ye,ge)}}class Ip{static fromHex(v){return Ip.Format.CSS.parseHex(v)||Ip.red}static equals(v,x){return!v&&!x?!0:!v||!x?!1:v.equals(x)}get hsla(){return this._hsla?this._hsla:AT.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:n2.fromRGBA(this.rgba)}constructor(v){if(v)if(v instanceof Er)this.rgba=v;else if(v instanceof AT)this._hsla=v,this.rgba=AT.toRGBA(v);else if(v instanceof n2)this._hsva=v,this.rgba=n2.toRGBA(v);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(v){return!!v&&Er.equals(this.rgba,v.rgba)&&AT.equals(this.hsla,v.hsla)&&n2.equals(this.hsva,v.hsva)}getRelativeLuminance(){const v=Ip._relativeLuminanceForComponent(this.rgba.r),x=Ip._relativeLuminanceForComponent(this.rgba.g),F=Ip._relativeLuminanceForComponent(this.rgba.b),$=.2126*v+.7152*x+.0722*F;return TR($,4)}static _relativeLuminanceForComponent(v){const x=v/255;return x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(v){const x=this.getRelativeLuminance(),F=v.getRelativeLuminance();return x>F}isDarkerThan(v){const x=this.getRelativeLuminance(),F=v.getRelativeLuminance();return x>>0),this._toNumber32Bit}static getLighterColor(v,x,F){if(v.isLighterThan(x))return v;F=F||.5;const $=v.getRelativeLuminance(),ge=x.getRelativeLuminance();return F=F*(ge-$)/ge,v.lighten(F)}static getDarkerColor(v,x,F){if(v.isDarkerThan(x))return v;F=F||.5;const $=v.getRelativeLuminance(),ge=x.getRelativeLuminance();return F=F*($-ge)/$,v.darken(F)}static{this.white=new Ip(new Er(255,255,255,1))}static{this.black=new Ip(new Er(0,0,0,1))}static{this.red=new Ip(new Er(255,0,0,1))}static{this.blue=new Ip(new Er(0,0,255,1))}static{this.green=new Ip(new Er(0,255,0,1))}static{this.cyan=new Ip(new Er(0,255,255,1))}static{this.lightgrey=new Ip(new Er(211,211,211,1))}static{this.transparent=new Ip(new Er(0,0,0,0))}}(function(_){(function(v){(function(x){function F(Gn){return Gn.rgba.a===1?`rgb(${Gn.rgba.r}, ${Gn.rgba.g}, ${Gn.rgba.b})`:_.Format.CSS.formatRGBA(Gn)}x.formatRGB=F;function $(Gn){return`rgba(${Gn.rgba.r}, ${Gn.rgba.g}, ${Gn.rgba.b}, ${+Gn.rgba.a.toFixed(2)})`}x.formatRGBA=$;function ge(Gn){return Gn.hsla.a===1?`hsl(${Gn.hsla.h}, ${Math.round(Gn.hsla.s*100)}%, ${Math.round(Gn.hsla.l*100)}%)`:_.Format.CSS.formatHSLA(Gn)}x.formatHSL=ge;function Le(Gn){return`hsla(${Gn.hsla.h}, ${Math.round(Gn.hsla.s*100)}%, ${Math.round(Gn.hsla.l*100)}%, ${Gn.hsla.a.toFixed(2)})`}x.formatHSLA=Le;function Ke(Gn){const ki=Gn.toString(16);return ki.length!==2?"0"+ki:ki}function ae(Gn){return`#${Ke(Gn.rgba.r)}${Ke(Gn.rgba.g)}${Ke(Gn.rgba.b)}`}x.formatHex=ae;function bt(Gn,ki=!1){return ki&&Gn.rgba.a===1?_.Format.CSS.formatHex(Gn):`#${Ke(Gn.rgba.r)}${Ke(Gn.rgba.g)}${Ke(Gn.rgba.b)}${Ke(Math.round(Gn.rgba.a*255))}`}x.formatHexA=bt;function et(Gn){return Gn.isOpaque()?_.Format.CSS.formatHex(Gn):_.Format.CSS.formatRGBA(Gn)}x.format=et;function Ye(Gn){if(Gn==="transparent")return _.transparent;if(Gn.startsWith("#"))return Hn(Gn);if(Gn.startsWith("rgba(")){const ki=Gn.match(/rgba\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+(\.\d+)?)\)/);if(!ki)throw new Error("Invalid color format "+Gn);const bo=parseInt(ki.groups?.r??"0"),Vn=parseInt(ki.groups?.g??"0"),hn=parseInt(ki.groups?.b??"0"),ga=parseFloat(ki.groups?.a??"0");return new _(new Er(bo,Vn,hn,ga))}if(Gn.startsWith("rgb(")){const ki=Gn.match(/rgb\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+)\)/);if(!ki)throw new Error("Invalid color format "+Gn);const bo=parseInt(ki.groups?.r??"0"),Vn=parseInt(ki.groups?.g??"0"),hn=parseInt(ki.groups?.b??"0");return new _(new Er(bo,Vn,hn))}return Pn(Gn)}x.parse=Ye;function Pn(Gn){switch(Gn){case"aliceblue":return new _(new Er(240,248,255,1));case"antiquewhite":return new _(new Er(250,235,215,1));case"aqua":return new _(new Er(0,255,255,1));case"aquamarine":return new _(new Er(127,255,212,1));case"azure":return new _(new Er(240,255,255,1));case"beige":return new _(new Er(245,245,220,1));case"bisque":return new _(new Er(255,228,196,1));case"black":return new _(new Er(0,0,0,1));case"blanchedalmond":return new _(new Er(255,235,205,1));case"blue":return new _(new Er(0,0,255,1));case"blueviolet":return new _(new Er(138,43,226,1));case"brown":return new _(new Er(165,42,42,1));case"burlywood":return new _(new Er(222,184,135,1));case"cadetblue":return new _(new Er(95,158,160,1));case"chartreuse":return new _(new Er(127,255,0,1));case"chocolate":return new _(new Er(210,105,30,1));case"coral":return new _(new Er(255,127,80,1));case"cornflowerblue":return new _(new Er(100,149,237,1));case"cornsilk":return new _(new Er(255,248,220,1));case"crimson":return new _(new Er(220,20,60,1));case"cyan":return new _(new Er(0,255,255,1));case"darkblue":return new _(new Er(0,0,139,1));case"darkcyan":return new _(new Er(0,139,139,1));case"darkgoldenrod":return new _(new Er(184,134,11,1));case"darkgray":return new _(new Er(169,169,169,1));case"darkgreen":return new _(new Er(0,100,0,1));case"darkgrey":return new _(new Er(169,169,169,1));case"darkkhaki":return new _(new Er(189,183,107,1));case"darkmagenta":return new _(new Er(139,0,139,1));case"darkolivegreen":return new _(new Er(85,107,47,1));case"darkorange":return new _(new Er(255,140,0,1));case"darkorchid":return new _(new Er(153,50,204,1));case"darkred":return new _(new Er(139,0,0,1));case"darksalmon":return new _(new Er(233,150,122,1));case"darkseagreen":return new _(new Er(143,188,143,1));case"darkslateblue":return new _(new Er(72,61,139,1));case"darkslategray":return new _(new Er(47,79,79,1));case"darkslategrey":return new _(new Er(47,79,79,1));case"darkturquoise":return new _(new Er(0,206,209,1));case"darkviolet":return new _(new Er(148,0,211,1));case"deeppink":return new _(new Er(255,20,147,1));case"deepskyblue":return new _(new Er(0,191,255,1));case"dimgray":return new _(new Er(105,105,105,1));case"dimgrey":return new _(new Er(105,105,105,1));case"dodgerblue":return new _(new Er(30,144,255,1));case"firebrick":return new _(new Er(178,34,34,1));case"floralwhite":return new _(new Er(255,250,240,1));case"forestgreen":return new _(new Er(34,139,34,1));case"fuchsia":return new _(new Er(255,0,255,1));case"gainsboro":return new _(new Er(220,220,220,1));case"ghostwhite":return new _(new Er(248,248,255,1));case"gold":return new _(new Er(255,215,0,1));case"goldenrod":return new _(new Er(218,165,32,1));case"gray":return new _(new Er(128,128,128,1));case"green":return new _(new Er(0,128,0,1));case"greenyellow":return new _(new Er(173,255,47,1));case"grey":return new _(new Er(128,128,128,1));case"honeydew":return new _(new Er(240,255,240,1));case"hotpink":return new _(new Er(255,105,180,1));case"indianred":return new _(new Er(205,92,92,1));case"indigo":return new _(new Er(75,0,130,1));case"ivory":return new _(new Er(255,255,240,1));case"khaki":return new _(new Er(240,230,140,1));case"lavender":return new _(new Er(230,230,250,1));case"lavenderblush":return new _(new Er(255,240,245,1));case"lawngreen":return new _(new Er(124,252,0,1));case"lemonchiffon":return new _(new Er(255,250,205,1));case"lightblue":return new _(new Er(173,216,230,1));case"lightcoral":return new _(new Er(240,128,128,1));case"lightcyan":return new _(new Er(224,255,255,1));case"lightgoldenrodyellow":return new _(new Er(250,250,210,1));case"lightgray":return new _(new Er(211,211,211,1));case"lightgreen":return new _(new Er(144,238,144,1));case"lightgrey":return new _(new Er(211,211,211,1));case"lightpink":return new _(new Er(255,182,193,1));case"lightsalmon":return new _(new Er(255,160,122,1));case"lightseagreen":return new _(new Er(32,178,170,1));case"lightskyblue":return new _(new Er(135,206,250,1));case"lightslategray":return new _(new Er(119,136,153,1));case"lightslategrey":return new _(new Er(119,136,153,1));case"lightsteelblue":return new _(new Er(176,196,222,1));case"lightyellow":return new _(new Er(255,255,224,1));case"lime":return new _(new Er(0,255,0,1));case"limegreen":return new _(new Er(50,205,50,1));case"linen":return new _(new Er(250,240,230,1));case"magenta":return new _(new Er(255,0,255,1));case"maroon":return new _(new Er(128,0,0,1));case"mediumaquamarine":return new _(new Er(102,205,170,1));case"mediumblue":return new _(new Er(0,0,205,1));case"mediumorchid":return new _(new Er(186,85,211,1));case"mediumpurple":return new _(new Er(147,112,219,1));case"mediumseagreen":return new _(new Er(60,179,113,1));case"mediumslateblue":return new _(new Er(123,104,238,1));case"mediumspringgreen":return new _(new Er(0,250,154,1));case"mediumturquoise":return new _(new Er(72,209,204,1));case"mediumvioletred":return new _(new Er(199,21,133,1));case"midnightblue":return new _(new Er(25,25,112,1));case"mintcream":return new _(new Er(245,255,250,1));case"mistyrose":return new _(new Er(255,228,225,1));case"moccasin":return new _(new Er(255,228,181,1));case"navajowhite":return new _(new Er(255,222,173,1));case"navy":return new _(new Er(0,0,128,1));case"oldlace":return new _(new Er(253,245,230,1));case"olive":return new _(new Er(128,128,0,1));case"olivedrab":return new _(new Er(107,142,35,1));case"orange":return new _(new Er(255,165,0,1));case"orangered":return new _(new Er(255,69,0,1));case"orchid":return new _(new Er(218,112,214,1));case"palegoldenrod":return new _(new Er(238,232,170,1));case"palegreen":return new _(new Er(152,251,152,1));case"paleturquoise":return new _(new Er(175,238,238,1));case"palevioletred":return new _(new Er(219,112,147,1));case"papayawhip":return new _(new Er(255,239,213,1));case"peachpuff":return new _(new Er(255,218,185,1));case"peru":return new _(new Er(205,133,63,1));case"pink":return new _(new Er(255,192,203,1));case"plum":return new _(new Er(221,160,221,1));case"powderblue":return new _(new Er(176,224,230,1));case"purple":return new _(new Er(128,0,128,1));case"rebeccapurple":return new _(new Er(102,51,153,1));case"red":return new _(new Er(255,0,0,1));case"rosybrown":return new _(new Er(188,143,143,1));case"royalblue":return new _(new Er(65,105,225,1));case"saddlebrown":return new _(new Er(139,69,19,1));case"salmon":return new _(new Er(250,128,114,1));case"sandybrown":return new _(new Er(244,164,96,1));case"seagreen":return new _(new Er(46,139,87,1));case"seashell":return new _(new Er(255,245,238,1));case"sienna":return new _(new Er(160,82,45,1));case"silver":return new _(new Er(192,192,192,1));case"skyblue":return new _(new Er(135,206,235,1));case"slateblue":return new _(new Er(106,90,205,1));case"slategray":return new _(new Er(112,128,144,1));case"slategrey":return new _(new Er(112,128,144,1));case"snow":return new _(new Er(255,250,250,1));case"springgreen":return new _(new Er(0,255,127,1));case"steelblue":return new _(new Er(70,130,180,1));case"tan":return new _(new Er(210,180,140,1));case"teal":return new _(new Er(0,128,128,1));case"thistle":return new _(new Er(216,191,216,1));case"tomato":return new _(new Er(255,99,71,1));case"turquoise":return new _(new Er(64,224,208,1));case"violet":return new _(new Er(238,130,238,1));case"wheat":return new _(new Er(245,222,179,1));case"white":return new _(new Er(255,255,255,1));case"whitesmoke":return new _(new Er(245,245,245,1));case"yellow":return new _(new Er(255,255,0,1));case"yellowgreen":return new _(new Er(154,205,50,1));default:return null}}function Hn(Gn){const ki=Gn.length;if(ki===0||Gn.charCodeAt(0)!==35)return null;if(ki===7){const bo=16*cr(Gn.charCodeAt(1))+cr(Gn.charCodeAt(2)),Vn=16*cr(Gn.charCodeAt(3))+cr(Gn.charCodeAt(4)),hn=16*cr(Gn.charCodeAt(5))+cr(Gn.charCodeAt(6));return new _(new Er(bo,Vn,hn,1))}if(ki===9){const bo=16*cr(Gn.charCodeAt(1))+cr(Gn.charCodeAt(2)),Vn=16*cr(Gn.charCodeAt(3))+cr(Gn.charCodeAt(4)),hn=16*cr(Gn.charCodeAt(5))+cr(Gn.charCodeAt(6)),ga=16*cr(Gn.charCodeAt(7))+cr(Gn.charCodeAt(8));return new _(new Er(bo,Vn,hn,ga/255))}if(ki===4){const bo=cr(Gn.charCodeAt(1)),Vn=cr(Gn.charCodeAt(2)),hn=cr(Gn.charCodeAt(3));return new _(new Er(16*bo+bo,16*Vn+Vn,16*hn+hn))}if(ki===5){const bo=cr(Gn.charCodeAt(1)),Vn=cr(Gn.charCodeAt(2)),hn=cr(Gn.charCodeAt(3)),ga=cr(Gn.charCodeAt(4));return new _(new Er(16*bo+bo,16*Vn+Vn,16*hn+hn,(16*ga+ga)/255))}return null}x.parseHex=Hn;function cr(Gn){switch(Gn){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(v.CSS||(v.CSS={}))})(_.Format||(_.Format={}))})(Ip||(Ip={}));function Pbe(_){const v=[];for(const x of _){const F=Number(x);(F||F===0&&x.replace(/\s/g,"")!=="")&&v.push(F)}return v}function bQ(_,v,x,F){return{red:_/255,blue:x/255,green:v/255,alpha:F}}function E8(_,v){const x=v.index,F=v[0].length;if(x===void 0)return;const $=_.positionAt(x);return{startLineNumber:$.lineNumber,startColumn:$.column,endLineNumber:$.lineNumber,endColumn:$.column+F}}function W5e(_,v){if(!_)return;const x=Ip.Format.CSS.parseHex(v);if(x)return{range:_,color:bQ(x.rgba.r,x.rgba.g,x.rgba.b,x.rgba.a)}}function Lbe(_,v,x){if(!_||v.length!==1)return;const $=v[0].values(),ge=Pbe($);return{range:_,color:bQ(ge[0],ge[1],ge[2],x?ge[3]:1)}}function kbe(_,v,x){if(!_||v.length!==1)return;const $=v[0].values(),ge=Pbe($),Le=new Ip(new AT(ge[0],ge[1]/100,ge[2]/100,x?ge[3]:1));return{range:_,color:bQ(Le.rgba.r,Le.rgba.g,Le.rgba.b,Le.rgba.a)}}function A8(_,v){return typeof _=="string"?[..._.matchAll(v)]:_.findMatches(v)}function F5e(_){const v=[],F=A8(_,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(F.length>0)for(const $ of F){const ge=$.filter(bt=>bt!==void 0),Le=ge[1],Ke=ge[2];if(!Ke)continue;let ae;if(Le==="rgb"){const bt=/^\(\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;ae=Lbe(E8(_,$),A8(Ke,bt),!1)}else if(Le==="rgba"){const bt=/^\(\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;ae=Lbe(E8(_,$),A8(Ke,bt),!0)}else if(Le==="hsl"){const bt=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;ae=kbe(E8(_,$),A8(Ke,bt),!1)}else if(Le==="hsla"){const bt=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;ae=kbe(E8(_,$),A8(Ke,bt),!0)}else Le==="#"&&(ae=W5e(E8(_,$),Le+Ke));ae&&v.push(ae)}return v}function z5e(_){return!_||typeof _.getValue!="function"||typeof _.positionAt!="function"?[]:F5e(_)}const B5e=/^-+|-+$/g,wbe=100,G5e=5;function V5e(_,v){let x=[];if(v.findRegionSectionHeaders&&v.foldingRules?.markers){const F=j5e(_,v);x=x.concat(F)}if(v.findMarkSectionHeaders){const F=U5e(_,v);x=x.concat(F)}return x}function j5e(_,v){const x=[],F=_.getLineCount();for(let $=1;$<=F;$++){const ge=_.getLineContent($),Le=ge.match(v.foldingRules.markers.start);if(Le){const Ke={startLineNumber:$,startColumn:Le[0].length+1,endLineNumber:$,endColumn:ge.length+1};if(Ke.endColumn>Ke.startColumn){const ae={range:Ke,...H5e(ge.substring(Le[0].length)),shouldBeInComments:!1};(ae.text||ae.hasSeparatorLine)&&x.push(ae)}}}return x}function U5e(_,v){const x=[],F=_.getLineCount();if(!v.markSectionHeaderRegex||v.markSectionHeaderRegex.trim()==="")return x;const $=Hze(v.markSectionHeaderRegex),ge=new RegExp(v.markSectionHeaderRegex,`gdm${$?"s":""}`);if(z7e(ge))return x;for(let Le=1;Le<=F;Le+=wbe-G5e){const Ke=Math.min(Le+wbe-1,F),ae=[];for(let Ye=Le;Ye<=Ke;Ye++)ae.push(_.getLineContent(Ye));const bt=ae.join(` `);ge.lastIndex=0;let et;for(;(et=ge.exec(bt))!==null;){const Ye=bt.substring(0,et.index),Pn=(Ye.match(/\n/g)||[]).length,Hn=Le+Pn,cr=et[0].split(` `),Gn=cr.length,ki=Hn+Gn-1,bo=Ye.lastIndexOf(` `)+1,Vn=et.index-bo+1,hn=cr[cr.length-1],ga=Gn===1?Vn+et[0].length:hn.length+1,ho={startLineNumber:Hn,startColumn:Vn,endLineNumber:ki,endColumn:ga},gl=(et.groups??{}).label??"",jn=((et.groups??{}).separator??"")!=="",Bi={range:ho,text:gl,hasSeparatorLine:jn,shouldBeInComments:!0};(Bi.text||Bi.hasSeparatorLine)&&(x.length===0||x[x.length-1].range.endLineNumber{this.completeCallback=v,this.errorCallback=x})}complete(v){return this.isSettled?Promise.resolve():new Promise(x=>{this.completeCallback(v),this.outcome={outcome:0,value:v},x()})}error(v){return this.isSettled?Promise.resolve():new Promise(x=>{this.errorCallback(v),this.outcome={outcome:1,value:v},x()})}cancel(){return this.error(new Cye)}}var Obe;(function(_){async function v(F){let $;const ge=await Promise.all(F.map(Le=>Le.then(Ke=>Ke,Ke=>{$||($=Ke)})));if(typeof $<"u")throw $;return ge}_.settled=v;function x(F){return new Promise(async($,ge)=>{try{await F($,ge)}catch(Le){ge(Le)}})}_.withAsyncBody=x})(Obe||(Obe={}));class J5e{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(v){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const x=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(x,v)}else this._unconsumedValues.push(v)}produceFinal(v){this._ensureNoFinalValue(),this._finalValue=v;for(const x of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(x,v);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new A_("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(v,x){x.ok?v.complete(x.value):v.error(x.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const v=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return v.ok?Promise.resolve(v.value):Promise.reject(v.error)}else{const v=new q5e;return this._unsatisfiedConsumers.push(v),v.p}}}class IT{constructor(v,x){this._onReturn=x,this._producerConsumer=new J5e,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async F=>(this._finishError(F),{done:!0,value:void 0})},queueMicrotask(async()=>{const F=v({emitOne:$=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:$}}),emitMany:$=>{for(const ge of $)this._producerConsumer.produce({ok:!0,value:{done:!1,value:ge}})},reject:$=>this._finishError($)});if(!this._producerConsumer.hasFinalValue)try{await F,this._finishOk()}catch($){this._finishError($)}})}static fromArray(v){return new IT(x=>{x.emitMany(v)})}static fromPromise(v){return new IT(async x=>{x.emitMany(await v)})}static fromPromisesResolveOrder(v){return new IT(async x=>{await Promise.all(v.map(async F=>x.emitOne(await F)))})}static merge(v){return new IT(async x=>{await Promise.all(v.map(async F=>{for await(const $ of F)x.emitOne($)}))})}static{this.EMPTY=IT.fromArray([])}static map(v,x){return new IT(async F=>{for await(const $ of v)F.emitOne(x($))})}map(v){return IT.map(this,v)}static coalesce(v){return IT.filter(v,x=>!!x)}coalesce(){return IT.coalesce(this)}static filter(v,x){return new IT(async F=>{for await(const $ of v)x($)&&F.emitOne($)})}filter(v){return IT.filter(this,v)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(v){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:v})}[Symbol.asyncIterator](){return this._iterator}}class K5e{constructor(v){this.values=v,this.prefixSum=new Uint32Array(v.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(v,x){v=KL(v);const F=this.values,$=this.prefixSum,ge=x.length;return ge===0?!1:(this.values=new Uint32Array(F.length+ge),this.values.set(F.subarray(0,v),0),this.values.set(F.subarray(v),v+ge),this.values.set(x,v),v-1=0&&this.prefixSum.set($.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(v,x){return v=KL(v),x=KL(x),this.values[v]===x?!1:(this.values[v]=x,v-1=F.length)return!1;const ge=F.length-v;return x>=ge&&(x=ge),x===0?!1:(this.values=new Uint32Array(F.length-x),this.values.set(F.subarray(0,v),0),this.values.set(F.subarray(v+x),v),this.prefixSum=new Uint32Array(this.values.length),v-1=0&&this.prefixSum.set($.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(v){return v<0?0:(v=KL(v),this._getPrefixSum(v))}_getPrefixSum(v){if(v<=this.prefixSumValidIndex[0])return this.prefixSum[v];let x=this.prefixSumValidIndex[0]+1;x===0&&(this.prefixSum[0]=this.values[0],x++),v>=this.values.length&&(v=this.values.length-1);for(let F=x;F<=v;F++)this.prefixSum[F]=this.prefixSum[F-1]+this.values[F];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],v),this.prefixSum[v]}getIndexOf(v){v=Math.floor(v),this.getTotalSum();let x=0,F=this.values.length-1,$=0,ge=0,Le=0;for(;x<=F;)if($=x+(F-x)/2|0,ge=this.prefixSum[$],Le=ge-this.values[$],v=ge)x=$+1;else break;return new X5e($,v-Le)}}class X5e{constructor(v,x){this.index=v,this.remainder=x,this._prefixSumIndexOfResultBrand=void 0,this.index=v,this.remainder=x}}class Y5e{constructor(v,x,F,$){this._uri=v,this._lines=x,this._eol=F,this._versionId=$,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(v){v.eol&&v.eol!==this._eol&&(this._eol=v.eol,this._lineStarts=null);const x=v.changes;for(const F of x)this._acceptDeleteRange(F.range),this._acceptInsertText(new Zc(F.range.startLineNumber,F.range.startColumn),F.text);this._versionId=v.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const v=this._eol.length,x=this._lines.length,F=new Uint32Array(x);for(let $=0;$v.push(this._models[x])),v}$acceptNewModel(v){this._models[v.url]=new Q5e(lN.parse(v.url),v.lines,v.EOL,v.versionId)}$acceptModelChanged(v,x){if(!this._models[v])return;this._models[v].onEvents(x)}$acceptRemovedModel(v){this._models[v]&&delete this._models[v]}}class Q5e extends Y5e{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(v){const x=[];for(let F=0;Fthis._lines.length)x=this._lines.length,F=this._lines[x-1].length+1,$=!0;else{const ge=this._lines[x-1].length+1;F<1?(F=1,$=!0):F>ge&&(F=ge,$=!0)}return $?{lineNumber:x,column:F}:v}}class I8{constructor(v=null){this._foreignModule=v,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new $5e}dispose(){}async $ping(){return"pong"}_getModel(v){return this._workerTextModelSyncServer.getModel(v)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(v){this._workerTextModelSyncServer.$acceptNewModel(v)}$acceptModelChanged(v,x){this._workerTextModelSyncServer.$acceptModelChanged(v,x)}$acceptRemovedModel(v){this._workerTextModelSyncServer.$acceptRemovedModel(v)}async $computeUnicodeHighlights(v,x,F){const $=this._getModel(v);return $?Zze.computeUnicodeHighlights($,x,F):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(v,x){const F=this._getModel(v);return F?V5e(F,x):[]}async $computeDiff(v,x,F,$){const ge=this._getModel(v),Le=this._getModel(x);return!ge||!Le?null:I8.computeDiff(ge,Le,F,$)}static computeDiff(v,x,F,$){const ge=$==="advanced"?Mbe.getDefault():Mbe.getLegacy(),Le=v.getLinesContent(),Ke=x.getLinesContent(),ae=ge.computeDiff(Le,Ke,F),bt=ae.changes.length>0?!1:this._modelsAreIdentical(v,x);function et(Ye){return Ye.map(Pn=>[Pn.original.startLineNumber,Pn.original.endLineNumberExclusive,Pn.modified.startLineNumber,Pn.modified.endLineNumberExclusive,Pn.innerChanges?.map(Hn=>[Hn.originalRange.startLineNumber,Hn.originalRange.startColumn,Hn.originalRange.endLineNumber,Hn.originalRange.endColumn,Hn.modifiedRange.startLineNumber,Hn.modifiedRange.startColumn,Hn.modifiedRange.endLineNumber,Hn.modifiedRange.endColumn])])}return{identical:bt,quitEarly:ae.hitTimeout,changes:et(ae.changes),moves:ae.moves.map(Ye=>[Ye.lineRangeMapping.original.startLineNumber,Ye.lineRangeMapping.original.endLineNumberExclusive,Ye.lineRangeMapping.modified.startLineNumber,Ye.lineRangeMapping.modified.endLineNumberExclusive,et(Ye.changes)])}}static _modelsAreIdentical(v,x){const F=v.getLineCount(),$=x.getLineCount();if(F!==$)return!1;for(let ge=1;ge<=F;ge++){const Le=v.getLineContent(ge),Ke=x.getLineContent(ge);if(Le!==Ke)return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(v,x,F){const $=this._getModel(v);if(!$)return x;const ge=[];let Le;x=x.slice(0).sort((ae,bt)=>{if(ae.range&&bt.range)return ss.compareRangesUsingStarts(ae.range,bt.range);const et=ae.range?0:1,Ye=bt.range?0:1;return et-Ye});let Ke=0;for(let ae=1;aeI8._diffLimit){ge.push({range:ae,text:bt});continue}const Pn=oze(Ye,bt,F),Hn=$.offsetAt(ss.lift(ae).getStartPosition());for(const cr of Pn){const Gn=$.positionAt(Hn+cr.originalStart),ki=$.positionAt(Hn+cr.originalStart+cr.originalLength),bo={text:bt.substr(cr.modifiedStart,cr.modifiedLength),range:{startLineNumber:Gn.lineNumber,startColumn:Gn.column,endLineNumber:ki.lineNumber,endColumn:ki.column}};$.getValueInRange(bo.range)!==bo.text&&ge.push(bo)}}return typeof Le=="number"&&ge.push({eol:Le,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),ge}async $computeLinks(v){const x=this._getModel(v);return x?dze(x):null}async $computeDefaultDocumentColors(v){const x=this._getModel(v);return x?z5e(x):null}static{this._suggestionsLimit=1e4}async $textualSuggest(v,x,F,$){const ge=new iB,Le=new RegExp(F,$),Ke=new Set;e:for(const ae of v){const bt=this._getModel(ae);if(bt){for(const et of bt.words(Le))if(!(et===x||!isNaN(Number(et)))&&(Ke.add(et),Ke.size>I8._suggestionsLimit))break e}}return{words:Array.from(Ke),duration:ge.elapsed()}}async $computeWordRanges(v,x,F,$){const ge=this._getModel(v);if(!ge)return Object.create(null);const Le=new RegExp(F,$),Ke=Object.create(null);for(let ae=x.startLineNumber;ae{const $=bB.getChannel(F),Le={host:new Proxy({},{get(Ke,ae,bt){if(ae!=="then"){if(typeof ae!="string")throw new Error("Not supported");return(...et)=>$.$fhr(ae,et)}}}),getMirrorModels:()=>x.requestHandler.getModels()};return v=_(Le),new I8(v)});return v}function eBe(_){self.onmessage=v=>{Z5e(x=>_(x,v.data))}}var Wbe=void 0;/*! ***************************************************************************** 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. ***************************************************************************** */var xT={};(_=>{var v=Object.defineProperty,x=(e,t)=>{for(var r in t)v(e,r,{get:t[r],enumerable:!0})},F=e=>e,$={};x($,{ANONYMOUS:()=>$q,AccessFlags:()=>yZ,AssertionLevel:()=>DQ,AssignmentDeclarationKind:()=>RZ,AssignmentKind:()=>$te,Associativity:()=>one,BreakpointResolver:()=>XJ,BuilderFileEmit:()=>tse,BuilderProgramKind:()=>cse,BuilderState:()=>_h,CallHierarchy:()=>hx,CharacterCodes:()=>FZ,CheckFlags:()=>mZ,CheckMode:()=>bU,ClassificationType:()=>lq,ClassificationTypeNames:()=>ule,CommentDirectiveType:()=>ZQ,Comparison:()=>Ke,CompletionInfoFlags:()=>ile,CompletionTriggerKind:()=>aq,Completions:()=>bx,ContainerFlags:()=>woe,ContextFlags:()=>aZ,Debug:()=>C,DiagnosticCategory:()=>O8,Diagnostics:()=>f,DocumentHighlights:()=>P7,ElementFlags:()=>gZ,EmitFlags:()=>o9,EmitHint:()=>VZ,EmitOnly:()=>tZ,EndOfLineState:()=>sle,ExitStatus:()=>nZ,ExportKind:()=>tce,Extension:()=>zZ,ExternalEmitHelpers:()=>GZ,FileIncludeKind:()=>XB,FilePreprocessingDiagnosticsKind:()=>eZ,FileSystemEntryKind:()=>$Z,FileWatcherEventKind:()=>KZ,FindAllReferences:()=>Ys,FlattenLevel:()=>rae,FlowFlags:()=>w8,ForegroundColorEscapeSequences:()=>Hae,FunctionFlags:()=>rne,GeneratedIdentifierFlags:()=>KB,GetLiteralTextFlags:()=>mte,GoToDefinition:()=>pC,HighlightSpanKind:()=>nle,IdentifierNameMap:()=>VD,ImportKind:()=>ece,ImportsNotUsedAsValues:()=>LZ,IndentStyle:()=>rle,IndexFlags:()=>vZ,IndexKind:()=>SZ,InferenceFlags:()=>IZ,InferencePriority:()=>AZ,InlayHintKind:()=>tle,InlayHints:()=>BK,InternalEmitFlags:()=>BZ,InternalNodeBuilderFlags:()=>lZ,InternalSymbolName:()=>hZ,IntersectionFlags:()=>oZ,InvalidatedProjectKind:()=>Pse,JSDocParsingMode:()=>JZ,JsDoc:()=>g0,JsTyping:()=>zb,JsxEmit:()=>PZ,JsxFlags:()=>XQ,JsxReferenceKind:()=>bZ,LanguageFeatureMinimumTarget:()=>ed,LanguageServiceMode:()=>Zse,LanguageVariant:()=>OZ,LexicalEnvironmentFlags:()=>UZ,ListFormat:()=>HZ,LogLevel:()=>FQ,MapCode:()=>GK,MemberOverrideStatus:()=>rZ,ModifierFlags:()=>qB,ModuleDetectionKind:()=>DZ,ModuleInstanceState:()=>Loe,ModuleKind:()=>DR,ModuleResolutionKind:()=>RR,ModuleSpecifierEnding:()=>nre,NavigateTo:()=>Ice,NavigationBar:()=>Rce,NewLineKind:()=>kZ,NodeBuilderFlags:()=>sZ,NodeCheckFlags:()=>QB,NodeFactoryFlags:()=>kre,NodeFlags:()=>HB,NodeResolutionFeatures:()=>Eoe,ObjectFlags:()=>e9,OperationCanceledException:()=>yN,OperatorPrecedence:()=>ane,OrganizeImports:()=>y0,OrganizeImportsMode:()=>oq,OuterExpressionKinds:()=>jZ,OutliningElementsCollector:()=>jK,OutliningSpanKind:()=>ole,OutputFileType:()=>ale,PackageJsonAutoImportPreference:()=>Qse,PackageJsonDependencyGroup:()=>$se,PatternMatchKind:()=>_J,PollingInterval:()=>a9,PollingWatchKind:()=>MZ,PragmaKindFlags:()=>qZ,PredicateSemantics:()=>YQ,PreparePasteEdits:()=>iX,PrivateIdentifierKind:()=>Ure,ProcessLevel:()=>sae,ProgramUpdateLevel:()=>Bae,QuotePreference:()=>Lle,RegularExpressionFlags:()=>$Q,RelationComparisonResult:()=>JB,Rename:()=>hz,ScriptElementKind:()=>cle,ScriptElementKindModifier:()=>dle,ScriptKind:()=>n9,ScriptSnapshot:()=>U3,ScriptTarget:()=>wZ,SemanticClassificationFormat:()=>ele,SemanticMeaning:()=>ple,SemicolonPreference:()=>sq,SignatureCheckMode:()=>TU,SignatureFlags:()=>t9,SignatureHelp:()=>KO,SignatureInfo:()=>ese,SignatureKind:()=>TZ,SmartSelectionRange:()=>qK,SnippetKind:()=>i9,StatisticType:()=>Gse,StructureIsReused:()=>YB,SymbolAccessibility:()=>uZ,SymbolDisplay:()=>yv,SymbolDisplayPartKind:()=>q3,SymbolFlags:()=>$B,SymbolFormatFlags:()=>dZ,SyntaxKind:()=>UB,Ternary:()=>xZ,ThrottledCancellationToken:()=>wde,TokenClass:()=>lle,TokenFlags:()=>QQ,TransformFlags:()=>r9,TypeFacts:()=>vU,TypeFlags:()=>ZB,TypeFormatFlags:()=>cZ,TypeMapKind:()=>EZ,TypePredicateKind:()=>pZ,TypeReferenceSerializationKind:()=>fZ,UnionReduction:()=>iZ,UpToDateStatusType:()=>Ise,VarianceFlags:()=>_Z,Version:()=>ih,VersionRange:()=>k8,WatchDirectoryFlags:()=>WZ,WatchDirectoryKind:()=>NZ,WatchFileKind:()=>CZ,WatchLogLevel:()=>Vae,WatchType:()=>sd,accessPrivateIdentifier:()=>nae,addEmitFlags:()=>Qh,addEmitHelper:()=>OI,addEmitHelpers:()=>Ag,addInternalEmitFlags:()=>f1,addNodeFactoryPatcher:()=>P0e,addObjectAllocatorPatcher:()=>_0e,addRange:()=>Xr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>Rb,addSyntheticTrailingComment:()=>LM,addToSeen:()=>gm,advancedAsyncSuperHelper:()=>e4,affectsDeclarationPathOptionDeclarations:()=>Xie,affectsEmitOptionDeclarations:()=>Kie,allKeysStartWithDot:()=>K4,altDirectorySeparator:()=>G8,and:()=>M8,append:()=>Bn,appendIfUnique:()=>$g,arrayFrom:()=>Co,arrayIsEqualTo:()=>Qp,arrayIsHomogeneous:()=>ure,arrayOf:()=>AQ,arrayReverseIterator:()=>EB,arrayToMap:()=>ER,arrayToMultiMap:()=>a2,arrayToNumericMap:()=>xQ,assertType:()=>Ube,assign:()=>zE,asyncSuperHelper:()=>Z6,attachFileToDiagnostics:()=>RI,base64decode:()=>Rne,base64encode:()=>xne,binarySearch:()=>$v,binarySearchKey:()=>JA,bindSourceFile:()=>Ooe,breakIntoCharacterSpans:()=>gce,breakIntoWordSpans:()=>yce,buildLinkParts:()=>Gle,buildOpts:()=>Sw,buildOverload:()=>vwe,bundlerModuleNameResolver:()=>Aoe,canBeConvertedToAsync:()=>SJ,canHaveDecorators:()=>HS,canHaveExportModifier:()=>qk,canHaveFlowNode:()=>ZR,canHaveIllegalDecorators:()=>Cj,canHaveIllegalModifiers:()=>Cie,canHaveIllegalType:()=>iSe,canHaveIllegalTypeParameters:()=>Die,canHaveJSDoc:()=>fk,canHaveLocals:()=>D_,canHaveModifiers:()=>Tm,canHaveModuleSpecifier:()=>Kte,canHaveSymbol:()=>ah,canIncludeBindAndCheckDiagnostics:()=>EM,canJsonReportNoInputFiles:()=>Dw,canProduceDiagnostics:()=>Ww,canUsePropertyAccess:()=>LV,canWatchAffectingLocation:()=>gse,canWatchAtTypes:()=>_se,canWatchDirectoryOrFile:()=>SH,canWatchDirectoryOrFilePath:()=>Qw,cartesianProduct:()=>OQ,cast:()=>ma,chainBundle:()=>hh,chainDiagnosticMessages:()=>qo,changeAnyExtension:()=>f2,changeCompilerHostLikeToUseCache:()=>hP,changeExtension:()=>ov,changeFullExtension:()=>U8,changesAffectModuleResolution:()=>gF,changesAffectingProgramStructure:()=>ate,characterCodeToRegularExpressionFlag:()=>g9,childIsDecorated:()=>HN,classElementOrClassElementParameterIsDecorated:()=>_G,classHasClassThisAssignment:()=>OU,classHasDeclaredOrExplicitlyAssignedName:()=>WU,classHasExplicitlyAssignedName:()=>l3,classOrConstructorParameterIsDecorated:()=>ev,classicNameResolver:()=>Moe,classifier:()=>zde,cleanExtendedConfigCache:()=>m3,clear:()=>hi,clearMap:()=>hp,clearSharedExtendedConfigFileWatcher:()=>$U,climbPastPropertyAccess:()=>X3,clone:()=>RQ,cloneCompilerOptions:()=>Rq,closeFileWatcher:()=>Bm,closeFileWatcherOf:()=>Kf,codefix:()=>lu,collapseTextChangeRangesAcrossMultipleVersions:()=>yee,collectExternalModuleInfo:()=>PU,combine:()=>qA,combinePaths:()=>Qr,commandLineOptionOfCustomType:()=>Qie,commentPragmas:()=>W8,commonOptionsWithBuild:()=>R4,compact:()=>i2,compareBooleans:()=>CT,compareDataObjects:()=>cV,compareDiagnostics:()=>_M,compareEmitHelpers:()=>qre,compareNumberOfDirectorySeparators:()=>Vk,comparePaths:()=>Zg,comparePathsCaseInsensitive:()=>_Te,comparePathsCaseSensitive:()=>hTe,comparePatternKeys:()=>pU,compareProperties:()=>PQ,compareStringsCaseInsensitive:()=>l2,compareStringsCaseInsensitiveEslintCompatible:()=>CQ,compareStringsCaseSensitive:()=>Wd,compareStringsCaseSensitiveUI:()=>c2,compareTextSpans:()=>C8,compareValues:()=>js,compilerOptionsAffectDeclarationPath:()=>Xne,compilerOptionsAffectEmit:()=>Kne,compilerOptionsAffectSemanticDiagnostics:()=>Jne,compilerOptionsDidYouMeanDiagnostics:()=>M4,compilerOptionsIndicateEsModules:()=>Lq,computeCommonSourceDirectoryOfFilenames:()=>jae,computeLineAndCharacterOfPosition:()=>PR,computeLineOfPosition:()=>SN,computeLineStarts:()=>tI,computePositionOfLineAndCharacter:()=>K8,computeSignatureWithDiagnostics:()=>_H,computeSuggestionDiagnostics:()=>vJ,computedOptions:()=>gM,concatenate:()=>so,concatenateDiagnosticMessageChains:()=>Bne,consumesNodeCoreModules:()=>E7,contains:()=>jn,containsIgnoredPath:()=>xM,containsObjectRestOrSpread:()=>yw,containsParseError:()=>dI,containsPath:()=>um,convertCompilerOptionsForTelemetry:()=>foe,convertCompilerOptionsFromJson:()=>fEe,convertJsonOption:()=>D1,convertToBase64:()=>Ine,convertToJson:()=>Iw,convertToObject:()=>soe,convertToOptionsWithAbsolutePaths:()=>w4,convertToRelativePath:()=>bN,convertToTSConfig:()=>Xj,convertTypeAcquisitionFromJson:()=>mEe,copyComments:()=>W1,copyEntries:()=>yF,copyLeadingComments:()=>iC,copyProperties:()=>NB,copyTrailingAsLeadingComments:()=>vO,copyTrailingComments:()=>MP,couldStartTrivia:()=>iee,countWhere:()=>Io,createAbstractBuilder:()=>TAe,createAccessorPropertyBackingField:()=>Pj,createAccessorPropertyGetRedirector:()=>Wie,createAccessorPropertySetRedirector:()=>Fie,createBaseNodeFactory:()=>Cre,createBinaryExpressionTrampoline:()=>S4,createBuilderProgram:()=>gH,createBuilderProgramUsingIncrementalBuildInfo:()=>fse,createBuilderStatusReporter:()=>O3,createCacheableExportInfoMap:()=>lJ,createCachedDirectoryStructureHost:()=>p3,createClassifier:()=>$Ie,createCommentDirectivesMap:()=>pte,createCompilerDiagnostic:()=>Il,createCompilerDiagnosticForInvalidCustomType:()=>Zie,createCompilerDiagnosticFromMessageChain:()=>T6,createCompilerHost:()=>Uae,createCompilerHostFromProgramHost:()=>WH,createCompilerHostWorker:()=>h3,createDetachedDiagnostic:()=>xI,createDiagnosticCollection:()=>aM,createDiagnosticForFileFromMessageChain:()=>uG,createDiagnosticForNode:()=>Ar,createDiagnosticForNodeArray:()=>HR,createDiagnosticForNodeArrayFromMessageChain:()=>H2,createDiagnosticForNodeFromMessageChain:()=>hg,createDiagnosticForNodeInSourceFile:()=>Wf,createDiagnosticForRange:()=>xte,createDiagnosticMessageChainFromDiagnostic:()=>Ite,createDiagnosticReporter:()=>sx,createDocumentPositionMapper:()=>$oe,createDocumentRegistry:()=>ace,createDocumentRegistryInternal:()=>fJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>TH,createEmitHelperFactory:()=>Hre,createEmptyExports:()=>dw,createEvaluator:()=>Tre,createExpressionForJsxElement:()=>Sie,createExpressionForJsxFragment:()=>Eie,createExpressionForObjectLiteralElementLike:()=>Aie,createExpressionForPropertyName:()=>Ej,createExpressionFromEntityName:()=>uw,createExternalHelpersImportDeclarationIfNeeded:()=>xj,createFileDiagnostic:()=>Wc,createFileDiagnosticFromMessageChain:()=>DF,createFlowNode:()=>F_,createForOfBindingStatement:()=>Sj,createFutureSourceFile:()=>C7,createGetCanonicalFileName:()=>Fd,createGetIsolatedDeclarationErrors:()=>Nae,createGetSourceFile:()=>nH,createGetSymbolAccessibilityDiagnosticForNode:()=>s0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Cae,createGetSymbolWalker:()=>Woe,createIncrementalCompilerHost:()=>w3,createIncrementalProgram:()=>Ase,createJsxFactoryExpression:()=>Tj,createLanguageService:()=>Ode,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>x1,createModeAwareCache:()=>WD,createModeAwareCacheKey:()=>eP,createModeMismatchDetails:()=>X9,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>FD,createModuleResolutionLoader:()=>lH,createModuleResolutionLoaderUsingGlobalCache:()=>Tse,createModuleSpecifierResolutionHost:()=>u0,createMultiMap:()=>cm,createNameResolver:()=>FV,createNodeConverters:()=>Pre,createNodeFactory:()=>$k,createOptionNameMap:()=>C4,createOverload:()=>aX,createPackageJsonImportFilter:()=>oC,createPackageJsonInfo:()=>eJ,createParenthesizerRules:()=>Nre,createPatternMatcher:()=>uce,createPrinter:()=>Wb,createPrinterWithDefaults:()=>Fae,createPrinterWithRemoveComments:()=>XS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>zae,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>YU,createProgram:()=>Xw,createProgramDiagnostics:()=>Qae,createProgramHost:()=>FH,createPropertyNameNodeForIdentifierOrLiteral:()=>Hk,createQueue:()=>s2,createRange:()=>Bf,createRedirectedBuilderProgram:()=>bH,createResolutionCache:()=>AH,createRuntimeTypeSerializer:()=>pae,createScanner:()=>cg,createSemanticDiagnosticsBuilderProgram:()=>bAe,createSet:()=>MB,createSolutionBuilder:()=>Cse,createSolutionBuilderHost:()=>Rse,createSolutionBuilderWithWatch:()=>Nse,createSolutionBuilderWithWatchHost:()=>Dse,createSortedArray:()=>SB,createSourceFile:()=>QI,createSourceMapGenerator:()=>qoe,createSourceMapSource:()=>O0e,createSuperAccessVariableStatement:()=>d3,createSymbolTable:()=>da,createSymlinkCache:()=>vV,createSyntacticTypeNodeBuilder:()=>Kse,createSystemWatchFunctions:()=>lTe,createTextChange:()=>pO,createTextChangeFromStartLength:()=>l7,createTextChangeRange:()=>E2,createTextRangeFromNode:()=>Nq,createTextRangeFromSpan:()=>s7,createTextSpan:()=>Id,createTextSpanFromBounds:()=>oc,createTextSpanFromNode:()=>Fu,createTextSpanFromRange:()=>hv,createTextSpanFromStringLiteralLikeContent:()=>Cq,createTextWriter:()=>Ak,createTokenRange:()=>iV,createTypeChecker:()=>Uoe,createTypeReferenceDirectiveResolutionCache:()=>H4,createTypeReferenceResolutionLoader:()=>y3,createWatchCompilerHost:()=>MAe,createWatchCompilerHostOfConfigFile:()=>zH,createWatchCompilerHostOfFilesAndCompilerOptions:()=>BH,createWatchFactory:()=>OH,createWatchHost:()=>wH,createWatchProgram:()=>GH,createWatchStatusReporter:()=>IH,createWriteFileMeasuringIO:()=>rH,declarationNameToString:()=>ws,decodeMappings:()=>CU,decodedTextSpanIntersectsWith:()=>S2,deduplicate:()=>lS,defaultHoverMaximumTruncationLength:()=>ite,defaultInitCompilerOptions:()=>LSe,defaultMaximumTruncationLength:()=>FN,diagnosticCategoryName:()=>GE,diagnosticToString:()=>eE,diagnosticsEqualityComparer:()=>S6,directoryProbablyExists:()=>ch,directorySeparator:()=>Js,displayPart:()=>yp,displayPartsToString:()=>PO,disposeEmitNodes:()=>XV,documentSpansEqual:()=>Bq,dumpTracingLegend:()=>KQ,elementAt:()=>Yv,elideNodes:()=>Oie,emitDetachedComments:()=>hne,emitFiles:()=>KU,emitFilesAndReportErrors:()=>M3,emitFilesAndReportErrorsAndGetExitStatus:()=>kH,emitModuleKindIsNonNodeESM:()=>Fk,emitNewLineBeforeLeadingCommentOfPosition:()=>mne,emitResolverSkipsTypeChecking:()=>JU,emitSkippedWithNoDiagnostics:()=>uH,emptyArray:()=>ae,emptyFileSystemEntries:()=>are,emptyMap:()=>bt,emptyOptions:()=>Sm,endsWith:()=>el,ensurePathIsNonModuleName:()=>VE,ensureScriptKind:()=>P6,ensureTrailingDirectorySeparator:()=>Uc,entityNameToString:()=>Mp,enumerateInsertsAndDeletes:()=>L8,equalOwnProperties:()=>IQ,equateStringsCaseInsensitive:()=>tb,equateStringsCaseSensitive:()=>uS,equateValues:()=>eb,escapeJsxAttributeString:()=>BG,escapeLeadingUnderscores:()=>Nl,escapeNonAsciiString:()=>t6,escapeSnippetText:()=>wS,escapeString:()=>k_,escapeTemplateSubstitution:()=>FG,evaluatorResult:()=>qc,every:()=>Vn,exclusivelyPrefixedNodeCoreModules:()=>J6,executeCommandLine:()=>dIe,expandPreOrPostfixIncrementOrDecrementExpression:()=>g4,explainFiles:()=>CH,explainIfFileIsRedirectAndImpliedFormat:()=>NH,exportAssignmentIsAlias:()=>gk,expressionResultIsUnused:()=>fre,extend:()=>CB,extensionFromPath:()=>TM,extensionIsTS:()=>W6,extensionsNotSupportingExtensionlessResolution:()=>O6,externalHelpersModuleNameText:()=>fb,factory:()=>L,fileExtensionIs:()=>El,fileExtensionIsOneOf:()=>Ql,fileIncludeReasonToDiagnostics:()=>LH,fileShouldUseJavaScriptRequire:()=>sJ,filter:()=>Un,filterMutate:()=>ul,filterSemanticDiagnostics:()=>S3,find:()=>hn,findAncestor:()=>Dn,findBestPatternMatch:()=>WB,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>E4,findConfigFile:()=>eH,findConstructorDeclaration:()=>Xk,findContainingList:()=>e7,findDiagnosticForNode:()=>$le,findFirstNonJsxWhitespaceToken:()=>ble,findIndex:()=>ho,findLast:()=>ga,findLastIndex:()=>gl,findListItemInfo:()=>vle,findModifier:()=>tC,findNextToken:()=>ZS,findPackageJson:()=>Yle,findPackageJsons:()=>Zq,findPrecedingMatchingToken:()=>o7,findPrecedingToken:()=>Gc,findSuperStatementIndexPath:()=>i3,findTokenOnLeftOfPosition:()=>AP,findUseStrictPrologue:()=>Ij,first:()=>$a,firstDefined:()=>Hn,firstDefinedIterator:()=>cr,firstIterator:()=>IB,firstOrOnly:()=>rJ,firstOrUndefined:()=>Ic,firstOrUndefinedIterator:()=>D8,fixupCompilerOptions:()=>EJ,flatMap:()=>Ki,flatMapIterator:()=>lf,flatMapToMutable:()=>vc,flatten:()=>la,flattenCommaList:()=>zie,flattenDestructuringAssignment:()=>P1,flattenDestructuringBinding:()=>KS,flattenDiagnosticMessageText:()=>a_,forEach:()=>Ye,forEachAncestor:()=>ste,forEachAncestorDirectory:()=>TN,forEachAncestorDirectoryStoppingAtGlobalCache:()=>W_,forEachChild:()=>Jo,forEachChildRecursively:()=>$I,forEachDynamicImportOrRequireCall:()=>K6,forEachEmittedFile:()=>jU,forEachEnclosingBlockScopeContainer:()=>Ste,forEachEntry:()=>Hc,forEachExternalModuleToImportFrom:()=>dJ,forEachImportClauseDeclaration:()=>Xte,forEachKey:()=>fg,forEachLeadingCommentRange:()=>_2,forEachNameInAccessChainWalkingLeft:()=>wne,forEachNameOfDefaultExport:()=>M7,forEachOptionsSyntaxByName:()=>UV,forEachProjectReference:()=>MM,forEachPropertyAssignment:()=>KR,forEachResolvedProjectReference:()=>VV,forEachReturnStatement:()=>gb,forEachRight:()=>Pn,forEachTrailingCommentRange:()=>g2,forEachTsConfigPropArray:()=>Y2,forEachUnique:()=>Vq,forEachYieldExpression:()=>Nte,formatColorAndReset:()=>YS,formatDiagnostic:()=>iH,formatDiagnostics:()=>K1e,formatDiagnosticsWithColorAndContext:()=>Kae,formatGeneratedName:()=>n0,formatGeneratedNamePart:()=>LD,formatLocation:()=>oH,formatMessage:()=>DI,formatStringFromArgs:()=>bg,formatting:()=>Mc,generateDjb2Hash:()=>p2,generateTSConfig:()=>loe,getAdjustedReferenceLocation:()=>Tq,getAdjustedRenameLocation:()=>n7,getAliasDeclarationFromName:()=>DG,getAllAccessorDeclarations:()=>NS,getAllDecoratorsOfClass:()=>kU,getAllDecoratorsOfClassElement:()=>a3,getAllJSDocTags:()=>tF,getAllJSDocTagsOfKind:()=>zTe,getAllKeys:()=>Bbe,getAllProjectOutputs:()=>u3,getAllSuperTypeNodes:()=>eM,getAllowImportingTsExtensions:()=>Vne,getAllowJSCompilerOption:()=>Ab,getAllowSyntheticDefaultImports:()=>CI,getAncestor:()=>GT,getAnyExtensionFromPath:()=>ZA,getAreDeclarationMapsEnabled:()=>E6,getAssignedExpandoInitializer:()=>fI,getAssignedName:()=>Q8,getAssignmentDeclarationKind:()=>ac,getAssignmentDeclarationPropertyAccessKind:()=>lk,getAssignmentTargetKind:()=>yb,getAutomaticTypeDirectiveNames:()=>j4,getBaseFileName:()=>xc,getBinaryOperatorPrecedence:()=>Tk,getBuildInfo:()=>XU,getBuildInfoFileVersionMap:()=>vH,getBuildInfoText:()=>Oae,getBuildOrderFromAnyBuildOrder:()=>eO,getBuilderCreationParameters:()=>x3,getBuilderFileEmit:()=>Fb,getCanonicalDiagnostic:()=>Rte,getCheckFlags:()=>Fl,getClassExtendsHeritageElement:()=>xS,getClassLikeDeclarationOfSymbol:()=>cy,getCombinedLocalAndExportSymbolFlags:()=>lD,getCombinedModifierFlags:()=>MT,getCombinedNodeFlags:()=>ty,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>E9,getCommentRange:()=>Zh,getCommonSourceDirectory:()=>mP,getCommonSourceDirectoryOfConfig:()=>L1,getCompilerOptionValue:()=>x6,getConditions:()=>kb,getConfigFileParsingDiagnostics:()=>$S,getConstantValue:()=>Wre,getContainerFlags:()=>mU,getContainerNode:()=>O1,getContainingClass:()=>hd,getContainingClassExcludingClassDecorators:()=>OF,getContainingClassStaticBlock:()=>Fte,getContainingFunction:()=>df,getContainingFunctionDeclaration:()=>Wte,getContainingFunctionOrClassStaticBlock:()=>wF,getContainingNodeArray:()=>mre,getContainingObjectLiteralElement:()=>LO,getContextualTypeFromParent:()=>g7,getContextualTypeFromParentOrAncestorTypeNode:()=>t7,getDeclarationDiagnostics:()=>Mae,getDeclarationEmitExtensionForPath:()=>i6,getDeclarationEmitOutputFilePath:()=>dne,getDeclarationEmitOutputFilePathWorker:()=>r6,getDeclarationFileExtension:()=>I4,getDeclarationFromName:()=>ZN,getDeclarationModifierFlagsFromSymbol:()=>Vf,getDeclarationOfKind:()=>al,getDeclarationsOfKind:()=>ote,getDeclaredExpandoInitializer:()=>XN,getDecorators:()=>ab,getDefaultCompilerOptions:()=>J7,getDefaultFormatCodeSettings:()=>H3,getDefaultLibFileName:()=>v2,getDefaultLibFilePath:()=>Wde,getDefaultLikeExportInfo:()=>N7,getDefaultLikeExportNameFromDeclaration:()=>iJ,getDefaultResolutionModeForFileWorker:()=>T3,getDiagnosticText:()=>rp,getDiagnosticsWithinSpan:()=>Qle,getDirectoryPath:()=>ci,getDirectoryToWatchFailedLookupLocation:()=>EH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>vse,getDocumentPositionMapper:()=>yJ,getDocumentSpansEqualityComparer:()=>Gq,getESModuleInterop:()=>$h,getEditsForFileRename:()=>lce,getEffectiveBaseTypeNode:()=>lh,getEffectiveConstraintOfTypeParameter:()=>OR,getEffectiveContainerForJSDocTemplateTag:()=>KF,getEffectiveImplementsTypeNodes:()=>tD,getEffectiveInitializer:()=>ok,getEffectiveJSDocHost:()=>BT,getEffectiveModifierFlags:()=>Gd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>vne,getEffectiveModifierFlagsNoCache:()=>bne,getEffectiveReturnTypeNode:()=>kp,getEffectiveSetAccessorTypeAnnotationNode:()=>KG,getEffectiveTypeAnnotationNode:()=>Rc,getEffectiveTypeParameterDeclarations:()=>sb,getEffectiveTypeRoots:()=>ZM,getElementOrPropertyAccessArgumentExpressionOrName:()=>JF,getElementOrPropertyAccessName:()=>iy,getElementsOfBindingOrAssignmentPattern:()=>PD,getEmitDeclarations:()=>_p,getEmitFlags:()=>Qa,getEmitHelpers:()=>YV,getEmitModuleDetectionKind:()=>jne,getEmitModuleFormatOfFileWorker:()=>yP,getEmitModuleKind:()=>vu,getEmitModuleResolutionKind:()=>ru,getEmitScriptTarget:()=>Ga,getEmitStandardClassFields:()=>gV,getEnclosingBlockScopeContainer:()=>sh,getEnclosingContainer:()=>RF,getEncodedSemanticClassifications:()=>uJ,getEncodedSyntacticClassifications:()=>pJ,getEndLinePosition:()=>B2,getEntityNameFromTypeNode:()=>Z2,getEntrypointsFromPackageJsonInfo:()=>cU,getErrorCountForSummary:()=>C3,getErrorSpanForNode:()=>ZE,getErrorSummaryText:()=>RH,getEscapedTextOfIdentifierOrLiteral:()=>rM,getEscapedTextOfJsxAttributeName:()=>CM,getEscapedTextOfJsxNamespacedName:()=>LI,getExpandoInitializer:()=>FT,getExportAssignmentExpression:()=>CG,getExportInfoMap:()=>IO,getExportNeedsImportStarHelper:()=>Qoe,getExpressionAssociativity:()=>OG,getExpressionPrecedence:()=>oM,getExternalHelpersModuleName:()=>fw,getExternalModuleImportEqualsDeclarationExpression:()=>qN,getExternalModuleName:()=>hI,getExternalModuleNameFromDeclaration:()=>lne,getExternalModuleNameFromPath:()=>jG,getExternalModuleNameLiteral:()=>YI,getExternalModuleRequireArgument:()=>yG,getFallbackOptions:()=>qw,getFileEmitOutput:()=>Zae,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>$M,getFileWatcherEventKind:()=>c9,getFilesInErrorForSummary:()=>N3,getFirstConstructorWithBody:()=>yg,getFirstIdentifier:()=>Pu,getFirstNonSpaceCharacterPosition:()=>Ule,getFirstProjectOutput:()=>qU,getFixableErrorSpanExpression:()=>tJ,getFormatCodeSettingsForWriting:()=>R7,getFullWidth:()=>F2,getFunctionFlags:()=>dc,getHeritageClause:()=>yk,getHostSignatureFromJSDoc:()=>zT,getIdentifierAutoGenerate:()=>z0e,getIdentifierGeneratedImportReference:()=>jre,getIdentifierTypeArguments:()=>m1,getImmediatelyInvokedFunctionExpression:()=>OT,getImpliedNodeFormatForEmitWorker:()=>k1,getImpliedNodeFormatForFile:()=>Kw,getImpliedNodeFormatForFileWorker:()=>b3,getImportNeedsImportDefaultHelper:()=>MU,getImportNeedsImportStarHelper:()=>n3,getIndentString:()=>n6,getInferredLibraryNameResolveFrom:()=>v3,getInitializedVariables:()=>fM,getInitializerOfBinaryExpression:()=>SG,getInitializerOfBindingOrAssignmentElement:()=>hw,getInterfaceBaseTypeNodes:()=>tM,getInternalEmitFlags:()=>Fm,getInvokedExpression:()=>zF,getIsFileExcluded:()=>rce,getIsolatedModules:()=>ym,getJSDocAugmentsTag:()=>Dee,getJSDocClassTag:()=>x9,getJSDocCommentRanges:()=>fG,getJSDocCommentsAndTags:()=>EG,getJSDocDeprecatedTag:()=>R9,getJSDocDeprecatedTagNoCache:()=>wee,getJSDocEnumTag:()=>D9,getJSDocHost:()=>AS,getJSDocImplementsTags:()=>Cee,getJSDocOverloadTags:()=>IG,getJSDocOverrideTagNoCache:()=>kee,getJSDocParameterTags:()=>wR,getJSDocParameterTagsNoCache:()=>Aee,getJSDocPrivateTag:()=>wTe,getJSDocPrivateTagNoCache:()=>Mee,getJSDocProtectedTag:()=>OTe,getJSDocProtectedTagNoCache:()=>Pee,getJSDocPublicTag:()=>kTe,getJSDocPublicTagNoCache:()=>Nee,getJSDocReadonlyTag:()=>WTe,getJSDocReadonlyTagNoCache:()=>Lee,getJSDocReturnTag:()=>Oee,getJSDocReturnType:()=>I2,getJSDocRoot:()=>eD,getJSDocSatisfiesExpressionType:()=>wV,getJSDocSatisfiesTag:()=>C9,getJSDocTags:()=>LT,getJSDocTemplateTag:()=>FTe,getJSDocThisTag:()=>Z8,getJSDocType:()=>Yy,getJSDocTypeAliasName:()=>Dj,getJSDocTypeAssertionType:()=>ND,getJSDocTypeParameterDeclarations:()=>c6,getJSDocTypeParameterTags:()=>Iee,getJSDocTypeParameterTagsNoCache:()=>xee,getJSDocTypeTag:()=>PT,getJSXImplicitImportBase:()=>zk,getJSXRuntimeImport:()=>D6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>iU,getLanguageVariant:()=>Lk,getLastChild:()=>dV,getLeadingCommentRanges:()=>lg,getLeadingCommentRangesOfNode:()=>pG,getLeftmostAccessExpression:()=>cD,getLeftmostExpression:()=>dD,getLibFileNameFromLibReference:()=>GV,getLibNameFromLibReference:()=>BV,getLibraryNameFromLibFileName:()=>cH,getLineAndCharacterOfPosition:()=>ca,getLineInfo:()=>DU,getLineOfLocalPosition:()=>sM,getLineStartPositionForPosition:()=>Em,getLineStarts:()=>ag,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Pne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Mne,getLinesBetweenPositions:()=>EN,getLinesBetweenRangeEndAndRangeStart:()=>oV,getLinesBetweenRangeEndPositions:()=>m0e,getLiteralText:()=>hte,getLocalNameForExternalImport:()=>MD,getLocalSymbolForExportDefault:()=>uM,getLocaleSpecificMessage:()=>Ho,getLocaleTimeString:()=>Zw,getMappedContextSpan:()=>jq,getMappedDocumentSpan:()=>m7,getMappedLocation:()=>DP,getMatchedFileSpec:()=>MH,getMatchedIncludeSpec:()=>PH,getMeaningFromDeclaration:()=>J3,getMeaningFromLocation:()=>w1,getMembersOfDeclaration:()=>Mte,getModeForFileReference:()=>Xae,getModeForResolutionAtIndex:()=>eAe,getModeForUsageLocation:()=>sH,getModifiedTime:()=>QA,getModifiers:()=>fS,getModuleInstanceState:()=>my,getModuleNameStringLiteralAt:()=>Yw,getModuleSpecifierEndingPreference:()=>rre,getModuleSpecifierResolverHost:()=>kq,getNameForExportedSymbol:()=>A7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Ete,getNameFromPropertyName:()=>mO,getNameOfAccessExpression:()=>pV,getNameOfCompilerOptionValue:()=>k4,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>vG,getNameOfJSDocTypedef:()=>Eee,getNameOfScriptTarget:()=>I6,getNameOrArgument:()=>sk,getNameTable:()=>KJ,getNamespaceDeclarationNode:()=>QR,getNewLineCharacter:()=>rv,getNewLineKind:()=>AO,getNewLineOrDefaultFromHost:()=>_y,getNewTargetContainer:()=>Bte,getNextJSDocCommentLocation:()=>AG,getNodeChildren:()=>vj,getNodeForGeneratedName:()=>gw,getNodeId:()=>ls,getNodeKind:()=>QS,getNodeModifiers:()=>IP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>$8,getNonAssignmentOperatorForCompoundAssignment:()=>sP,getNonAugmentationDeclaration:()=>oG,getNonDecoratorTokenPosOfNode:()=>Z9,getNonIncrementalBuildInfoRoots:()=>mse,getNonModifierTokenPosOfNode:()=>fte,getNormalizedAbsolutePath:()=>To,getNormalizedAbsolutePathWithoutRoot:()=>f9,getNormalizedPathComponents:()=>j8,getObjectFlags:()=>Hr,getOperatorAssociativity:()=>WG,getOperatorPrecedence:()=>bk,getOptionFromName:()=>Uj,getOptionsForLibraryResolution:()=>oU,getOptionsNameMap:()=>wD,getOptionsSyntaxByArrayElementValue:()=>jV,getOptionsSyntaxByValue:()=>xre,getOrCreateEmitNode:()=>jd,getOrUpdate:()=>HA,getOriginalNode:()=>yl,getOriginalNodeId:()=>Wu,getOutputDeclarationFileName:()=>fP,getOutputDeclarationFileNameWorker:()=>UU,getOutputExtension:()=>jw,getOutputFileNames:()=>q1e,getOutputJSFileNameWorker:()=>HU,getOutputPathsFor:()=>pP,getOwnEmitOutputFilePath:()=>cne,getOwnKeys:()=>Wh,getOwnValues:()=>KA,getPackageJsonTypesVersionsPaths:()=>V4,getPackageNameFromTypesPackageName:()=>rP,getPackageScopeForPath:()=>nP,getParameterSymbolFromJSDoc:()=>mk,getParentNodeInSpan:()=>_O,getParseTreeNode:()=>jo,getParsedCommandLineOfConfigFile:()=>Ew,getPathComponents:()=>zd,getPathFromPathComponents:()=>NT,getPathUpdater:()=>hJ,getPathsBasePath:()=>o6,getPatternFromSpec:()=>SV,getPendingEmitKindWithSeen:()=>I3,getPositionOfLineAndCharacter:()=>m2,getPossibleGenericSignatures:()=>Eq,getPossibleOriginalInputExtensionForExtension:()=>UG,getPossibleOriginalInputPathWithoutChangingExt:()=>HG,getPossibleTypeArgumentsInfo:()=>Aq,getPreEmitDiagnostics:()=>J1e,getPrecedingNonSpaceCharacterPosition:()=>h7,getPrivateIdentifier:()=>wU,getProperties:()=>LU,getProperty:()=>o2,getPropertyAssignmentAliasLikeExpression:()=>nne,getPropertyNameForPropertyNameNode:()=>s1,getPropertyNameFromType:()=>Uf,getPropertyNameOfBindingOrAssignmentElement:()=>Rj,getPropertySymbolFromBindingElement:()=>f7,getPropertySymbolsFromContextualType:()=>X7,getQuoteFromPreference:()=>Oq,getQuotePreference:()=>Gp,getRangesWhere:()=>TB,getRefactorContextSpan:()=>ux,getReferencedFileLocation:()=>gP,getRegexFromPattern:()=>iv,getRegularExpressionForWildcard:()=>yM,getRegularExpressionsForWildcards:()=>C6,getRelativePathFromDirectory:()=>cf,getRelativePathFromFile:()=>NR,getRelativePathToDirectoryOrUrl:()=>MR,getRenameLocation:()=>yO,getReplacementSpanForContextToken:()=>Dq,getResolutionDiagnostic:()=>fH,getResolutionModeOverride:()=>UD,getResolveJsonModule:()=>PS,getResolvePackageJsonExports:()=>wk,getResolvePackageJsonImports:()=>Ok,getResolvedExternalModuleName:()=>VG,getResolvedModuleFromResolution:()=>cI,getResolvedTypeReferenceDirectiveFromResolution:()=>vF,getRestIndicatorOfBindingOrAssignmentElement:()=>b4,getRestParameterElementType:()=>mG,getRightMostAssignedExpression:()=>ak,getRootDeclaration:()=>Jh,getRootDirectoryOfResolutionCache:()=>bse,getRootLength:()=>zh,getScriptKind:()=>Jq,getScriptKindFromFileName:()=>L6,getScriptTargetFeatures:()=>eG,getSelectedEffectiveModifierFlags:()=>TI,getSelectedSyntacticModifierFlags:()=>gne,getSemanticClassifications:()=>ice,getSemanticJsxChildren:()=>rD,getSetAccessorTypeAnnotationNode:()=>pne,getSetAccessorValueParameter:()=>lM,getSetExternalModuleIndicator:()=>kk,getShebang:()=>X8,getSingleVariableOfVariableStatement:()=>yI,getSnapshotText:()=>dx,getSnippetElement:()=>$V,getSourceFileOfModule:()=>z2,getSourceFileOfNode:()=>Wn,getSourceFilePathInNewDir:()=>s6,getSourceFileVersionAsHashFromText:()=>P3,getSourceFilesToEmit:()=>a6,getSourceMapRange:()=>sv,getSourceMapper:()=>bce,getSourceTextOfNodeFromSourceFile:()=>yS,getSpanOfTokenAtPosition:()=>jh,getSpellingSuggestion:()=>pS,getStartPositionOfLine:()=>mb,getStartPositionOfRange:()=>pM,getStartsOnNewLine:()=>PM,getStaticPropertiesAndClassStaticBlock:()=>o3,getStrictOptionValue:()=>Vd,getStringComparer:()=>IR,getSubPatternFromSpec:()=>N6,getSuperCallFromStatement:()=>r3,getSuperContainer:()=>$2,getSupportedCodeFixes:()=>qJ,getSupportedExtensions:()=>vM,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Gk,getSwitchedType:()=>Yq,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>vk,getSymbolTarget:()=>Kq,getSyntacticClassifications:()=>oce,getSyntacticModifierFlags:()=>tv,getSyntacticModifierFlagsNoCache:()=>$G,getSynthesizedDeepClone:()=>_s,getSynthesizedDeepCloneWithReplacements:()=>Yk,getSynthesizedDeepClones:()=>OS,getSynthesizedDeepClonesWithReplacements:()=>HV,getSyntheticLeadingComments:()=>_D,getSyntheticTrailingComments:()=>tw,getTargetLabel:()=>Y3,getTargetOfBindingOrAssignmentElement:()=>Pb,getTemporaryModuleResolutionState:()=>tP,getTextOfConstantValue:()=>_te,getTextOfIdentifierOrLiteral:()=>zf,getTextOfJSDocComment:()=>x2,getTextOfJsxAttributeName:()=>Kk,getTextOfJsxNamespacedName:()=>NM,getTextOfNode:()=>Al,getTextOfNodeFromSourceText:()=>BN,getTextOfPropertyName:()=>pI,getThisContainer:()=>yu,getThisParameter:()=>DS,getTokenAtPosition:()=>Fi,getTokenPosOfNode:()=>hb,getTokenSourceMapRange:()=>W0e,getTouchingPropertyName:()=>ip,getTouchingToken:()=>ZD,getTrailingCommentRanges:()=>ob,getTrailingSemicolonDeferringWriter:()=>GG,getTransformers:()=>Lae,getTsBuildInfoEmitOutputFilePath:()=>l0,getTsConfigObjectLiteralExpression:()=>UN,getTsConfigPropArrayElementValue:()=>kF,getTypeAnnotationNode:()=>fne,getTypeArgumentOrTypeParameterList:()=>Rle,getTypeKeywordOfTypeOnlyImport:()=>zq,getTypeNode:()=>Gre,getTypeNodeIfAccessible:()=>LP,getTypeParameterFromJsDoc:()=>Yte,getTypeParameterOwner:()=>NTe,getTypesPackageName:()=>X4,getUILocale:()=>NQ,getUniqueName:()=>F1,getUniqueSymbolId:()=>jle,getUseDefineForClassFields:()=>Wk,getWatchErrorSummaryDiagnosticMessage:()=>xH,getWatchFactory:()=>ZU,group:()=>AR,groupBy:()=>DB,guessIndentation:()=>nte,handleNoEmitOptions:()=>pH,handleWatchOptionsConfigDirTemplateSubstitution:()=>O4,hasAbstractModifier:()=>MS,hasAccessorModifier:()=>Kh,hasAmbientModifier:()=>YG,hasChangesInResolutions:()=>Y9,hasContextSensitiveParameters:()=>B6,hasDecorators:()=>pf,hasDocComment:()=>Ile,hasDynamicName:()=>oy,hasEffectiveModifier:()=>wp,hasEffectiveModifiers:()=>XG,hasEffectiveReadonlyModifier:()=>c1,hasExtension:()=>CR,hasImplementationTSFileExtension:()=>tre,hasIndexSignature:()=>Xq,hasInferredType:()=>q6,hasInitializer:()=>Qy,hasInvalidEscape:()=>zG,hasJSDocNodes:()=>ef,hasJSDocParameterTags:()=>Ree,hasJSFileExtension:()=>Tg,hasJsonModuleEmitEnabled:()=>A6,hasOnlyExpressionInitializer:()=>$E,hasOverrideModifier:()=>d6,hasPossibleExternalModuleReference:()=>Tte,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>aO,hasQuestionToken:()=>_I,hasRecordedExternalHelpers:()=>Rie,hasResolutionModeOverride:()=>vre,hasRestParameter:()=>H9,hasScopeMarker:()=>Jee,hasStaticModifier:()=>Oc,hasSyntacticModifier:()=>di,hasSyntacticModifiers:()=>_ne,hasTSFileExtension:()=>u1,hasTabstop:()=>_re,hasTrailingDirectorySeparator:()=>rb,hasType:()=>mF,hasTypeArguments:()=>i0e,hasZeroOrOneAsteriskCharacter:()=>yV,hostGetCanonicalFileName:()=>ay,hostUsesCaseSensitiveFileNames:()=>l1,idText:()=>Kr,identifierIsThisKeyword:()=>JG,identifierToKeywordKind:()=>HE,identity:()=>Vs,identitySourceMapConsumer:()=>NU,ignoreSourceNewlines:()=>ZV,ignoredPaths:()=>z8,importFromModuleSpecifier:()=>$N,importSyntaxAffectsModuleResolution:()=>_V,indexOfAnyCharCode:()=>Bi,indexOfNode:()=>jR,indicesOf:()=>R8,inferredTypesContainingFile:()=>_P,injectClassNamedEvaluationHelperBlockIfMissing:()=>c3,injectClassThisAssignmentIfMissing:()=>aae,insertImports:()=>Fq,insertSorted:()=>Xv,insertStatementAfterCustomPrologue:()=>QE,insertStatementAfterStandardPrologue:()=>$Te,insertStatementsAfterCustomPrologue:()=>$9,insertStatementsAfterStandardPrologue:()=>mg,intersperse:()=>bo,intrinsicTagNameToString:()=>OV,introducesArgumentsExoticObject:()=>kte,inverseJsxOptionMap:()=>Tw,isAbstractConstructorSymbol:()=>Lne,isAbstractModifier:()=>Zre,isAccessExpression:()=>Ks,isAccessibilityModifier:()=>xq,isAccessor:()=>ub,isAccessorModifier:()=>oj,isAliasableExpression:()=>XF,isAmbientModule:()=>gu,isAmbientPropertyDeclaration:()=>sG,isAnyDirectorySeparator:()=>d9,isAnyImportOrBareOrAccessedRequire:()=>vte,isAnyImportOrReExport:()=>j2,isAnyImportOrRequireStatement:()=>bte,isAnyImportSyntax:()=>uI,isAnySupportedFileExtension:()=>D0e,isApplicableVersionedTypesKey:()=>Mw,isArgumentExpressionOfElementAccess:()=>hq,isArray:()=>Mo,isArrayBindingElement:()=>lF,isArrayBindingOrAssignmentElement:()=>P2,isArrayBindingOrAssignmentPattern:()=>z9,isArrayBindingPattern:()=>uv,isArrayLiteralExpression:()=>Cd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>mv,isArrayTypeNode:()=>ow,isArrowFunction:()=>Xs,isAsExpression:()=>TD,isAssertClause:()=>sie,isAssertEntry:()=>K0e,isAssertionExpression:()=>gS,isAssertsKeyword:()=>$re,isAssignmentDeclaration:()=>KN,isAssignmentExpression:()=>id,isAssignmentOperator:()=>sy,isAssignmentPattern:()=>ON,isAssignmentTarget:()=>vb,isAsteriskToken:()=>rw,isAsyncFunction:()=>nM,isAsyncModifier:()=>wM,isAutoAccessorPropertyDeclaration:()=>Yu,isAwaitExpression:()=>Nb,isAwaitKeyword:()=>ij,isBigIntLiteral:()=>gD,isBinaryExpression:()=>Nr,isBinaryLogicalOperator:()=>Ik,isBinaryOperatorToken:()=>wie,isBindableObjectDefinePropertyCall:()=>r1,isBindableStaticAccessExpression:()=>ES,isBindableStaticElementAccessExpression:()=>qF,isBindableStaticNameExpression:()=>i1,isBindingElement:()=>Ha,isBindingElementOfBareOrAccessedRequire:()=>jte,isBindingName:()=>XE,isBindingOrAssignmentElement:()=>jee,isBindingOrAssignmentPattern:()=>N2,isBindingPattern:()=>Qo,isBlock:()=>ea,isBlockLike:()=>px,isBlockOrCatchScoped:()=>tG,isBlockScope:()=>lG,isBlockScopedContainerTopLevel:()=>yte,isBooleanLiteral:()=>wN,isBreakOrContinueStatement:()=>MN,isBreakStatement:()=>H0e,isBuildCommand:()=>Vse,isBuildInfoFile:()=>kae,isBuilderProgram:()=>DH,isBundle:()=>uie,isCallChain:()=>qE,isCallExpression:()=>Zo,isCallExpressionTarget:()=>cq,isCallLikeExpression:()=>_S,isCallLikeOrFunctionLikeExpression:()=>B9,isCallOrNewExpression:()=>Gh,isCallOrNewExpressionTarget:()=>dq,isCallSignatureDeclaration:()=>GI,isCallToHelper:()=>kM,isCaseBlock:()=>VM,isCaseClause:()=>ID,isCaseKeyword:()=>tie,isCaseOrDefaultClause:()=>pF,isCatchClause:()=>jS,isCatchClauseVariableDeclaration:()=>hre,isCatchClauseVariableDeclarationOrBindingElement:()=>nG,isCheckJsEnabledForFile:()=>SM,isCircularBuildOrder:()=>lx,isClassDeclaration:()=>Cc,isClassElement:()=>Tc,isClassExpression:()=>uc,isClassInstanceProperty:()=>Gee,isClassLike:()=>ui,isClassMemberModifier:()=>O9,isClassNamedEvaluationHelperBlock:()=>ox,isClassOrTypeElement:()=>sF,isClassStaticBlockDeclaration:()=>Zl,isClassThisAssignmentBlock:()=>cP,isColonToken:()=>Xre,isCommaExpression:()=>pw,isCommaListExpression:()=>BM,isCommaSequence:()=>JM,isCommaToken:()=>Kre,isComment:()=>a7,isCommonJsExportPropertyAssignment:()=>PF,isCommonJsExportedExpression:()=>Pte,isCompoundAssignment:()=>aP,isComputedNonLiteralName:()=>U2,isComputedPropertyName:()=>va,isConciseBody:()=>dF,isConditionalExpression:()=>v1,isConditionalTypeNode:()=>FS,isConstAssertion:()=>WV,isConstTypeReference:()=>Om,isConstructSignatureDeclaration:()=>FM,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>yD,isContextualKeyword:()=>$F,isContinueStatement:()=>U0e,isCustomPrologue:()=>X2,isDebuggerStatement:()=>q0e,isDeclaration:()=>rd,isDeclarationBindingElement:()=>C2,isDeclarationFileName:()=>ad,isDeclarationName:()=>L_,isDeclarationNameOfEnumOrNamespace:()=>sV,isDeclarationReadonly:()=>q2,isDeclarationStatement:()=>$ee,isDeclarationWithTypeParameterChildren:()=>dG,isDeclarationWithTypeParameters:()=>cG,isDecorator:()=>Fc,isDecoratorTarget:()=>mle,isDefaultClause:()=>jM,isDefaultImport:()=>o1,isDefaultModifier:()=>i4,isDefaultedExpandoInitializer:()=>Ute,isDeleteExpression:()=>rie,isDeleteTarget:()=>RG,isDeprecatedDeclaration:()=>I7,isDestructuringAssignment:()=>nv,isDiskPathRoot:()=>u9,isDoStatement:()=>j0e,isDocumentRegistryEntry:()=>xO,isDotDotDotToken:()=>n4,isDottedName:()=>Rk,isDynamicName:()=>ZF,isEffectiveExternalModule:()=>UR,isEffectiveStrictModeSourceFile:()=>aG,isElementAccessChain:()=>N9,isElementAccessExpression:()=>Ws,isEmittedFileOfProgram:()=>Gae,isEmptyArrayLiteral:()=>Ane,isEmptyBindingElement:()=>bee,isEmptyBindingPattern:()=>vee,isEmptyObjectLiteral:()=>nV,isEmptyStatement:()=>lj,isEmptyStringLiteral:()=>gG,isEntityName:()=>Nu,isEntityNameExpression:()=>Ds,isEnumConst:()=>wT,isEnumDeclaration:()=>QT,isEnumMember:()=>py,isEqualityOperatorKind:()=>y7,isEqualsGreaterThanToken:()=>Yre,isExclamationToken:()=>iw,isExcludedFile:()=>doe,isExclusivelyTypeOnlyImportOrExport:()=>aH,isExpandoPropertyDeclaration:()=>kI,isExportAssignment:()=>ll,isExportDeclaration:()=>fc,isExportModifier:()=>zI,isExportName:()=>y4,isExportNamespaceAsDefaultDeclaration:()=>AF,isExportOrDefaultModifier:()=>_w,isExportSpecifier:()=>iu,isExportsIdentifier:()=>n1,isExportsOrModuleExportsOrAlias:()=>qS,isExpression:()=>St,isExpressionNode:()=>P_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>gle,isExpressionOfOptionalChainRoot:()=>rF,isExpressionStatement:()=>od,isExpressionWithTypeArguments:()=>dy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>p6,isExternalModule:()=>Bc,isExternalModuleAugmentation:()=>bS,isExternalModuleImportEqualsDeclaration:()=>WT,isExternalModuleIndicator:()=>k2,isExternalModuleNameRelative:()=>td,isExternalModuleReference:()=>uy,isExternalModuleSymbol:()=>sI,isExternalOrCommonJsModule:()=>Pp,isFileLevelReservedGeneratedIdentifier:()=>D2,isFileLevelUniqueName:()=>SF,isFileProbablyExternalModule:()=>vw,isFirstDeclarationOfSymbolParameter:()=>Uq,isFixablePromiseHandler:()=>TJ,isForInOrOfStatement:()=>YE,isForInStatement:()=>c4,isForInitializer:()=>Of,isForOfStatement:()=>sw,isForStatement:()=>$T,isFullSourceFile:()=>_g,isFunctionBlock:()=>TS,isFunctionBody:()=>V9,isFunctionDeclaration:()=>ec,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>Ib,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Ms,isFunctionLikeKind:()=>rI,isFunctionLikeOrClassStaticBlockDeclaration:()=>zR,isFunctionOrConstructorTypeNode:()=>Vee,isFunctionOrModuleBlock:()=>W9,isFunctionSymbol:()=>Jte,isFunctionTypeNode:()=>w_,isGeneratedIdentifier:()=>pl,isGeneratedPrivateIdentifier:()=>KE,isGetAccessor:()=>ug,isGetAccessorDeclaration:()=>Hf,isGetOrSetAccessorDeclaration:()=>R2,isGlobalScopeAugmentation:()=>M_,isGlobalSourceFile:()=>Zy,isGrammarError:()=>ute,isHeritageClause:()=>Fp,isHoistedFunction:()=>NF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>He,isIdentifierANonContextualKeyword:()=>PG,isIdentifierName:()=>tne,isIdentifierOrThisTypeNode:()=>Mie,isIdentifierPart:()=>ey,isIdentifierStart:()=>R_,isIdentifierText:()=>fp,isIdentifierTypePredicate:()=>wte,isIdentifierTypeReference:()=>dre,isIfStatement:()=>YT,isIgnoredFileFromWildCardWatching:()=>Hw,isImplicitGlob:()=>TV,isImportAttribute:()=>lie,isImportAttributeName:()=>Bee,isImportAttributes:()=>S1,isImportCall:()=>Qu,isImportClause:()=>Vm,isImportDeclaration:()=>vl,isImportEqualsDeclaration:()=>zc,isImportKeyword:()=>WM,isImportMeta:()=>JR,isImportOrExportSpecifier:()=>cb,isImportOrExportSpecifierName:()=>Vle,isImportSpecifier:()=>Su,isImportTypeAssertionContainer:()=>J0e,isImportTypeNode:()=>e_,isImportable:()=>cJ,isInComment:()=>fv,isInCompoundLikeAssignment:()=>xG,isInExpressionContext:()=>BF,isInJSDoc:()=>JN,isInJSFile:()=>Ir,isInJSXText:()=>Ale,isInJsonFile:()=>VF,isInNonReferenceComment:()=>Nle,isInReferenceComment:()=>Cle,isInRightSideOfInternalImportEqualsDeclaration:()=>K3,isInString:()=>cx,isInTemplateString:()=>Sq,isInTopLevelContext:()=>WF,isInTypeQuery:()=>bI,isIncrementalBuildInfo:()=>$w,isIncrementalBundleEmitBuildInfo:()=>lse,isIncrementalCompilation:()=>LS,isIndexSignatureDeclaration:()=>Cb,isIndexedAccessTypeNode:()=>zS,isInferTypeNode:()=>_1,isInfinityOrNaNString:()=>RM,isInitializedProperty:()=>ww,isInitializedVariable:()=>Pk,isInsideJsxElement:()=>i7,isInsideJsxElementOrAttribute:()=>Ele,isInsideNodeModules:()=>TO,isInsideTemplateLiteral:()=>uO,isInstanceOfExpression:()=>f6,isInstantiatedModule:()=>EU,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>rte,isInternalModuleImportEqualsDeclaration:()=>t1,isInternalName:()=>Aj,isIntersectionTypeNode:()=>UI,isIntrinsicJsxName:()=>iD,isIterationStatement:()=>pb,isJSDoc:()=>mh,isJSDocAllType:()=>mie,isJSDocAugmentsTag:()=>XI,isJSDocAuthorTag:()=>Q0e,isJSDocCallbackTag:()=>pj,isJSDocClassTag:()=>_ie,isJSDocCommentContainingNode:()=>fF,isJSDocConstructSignature:()=>gI,isJSDocDeprecatedTag:()=>gj,isJSDocEnumTag:()=>cw,isJSDocFunctionType:()=>RD,isJSDocImplementsTag:()=>h4,isJSDocImportTag:()=>o_,isJSDocIndexSignature:()=>UF,isJSDocLikeText:()=>Lj,isJSDocLink:()=>pie,isJSDocLinkCode:()=>fie,isJSDocLinkLike:()=>aI,isJSDocLinkPlain:()=>Y0e,isJSDocMemberName:()=>t0,isJSDocNameReference:()=>UM,isJSDocNamepathType:()=>$0e,isJSDocNamespaceBody:()=>UTe,isJSDocNode:()=>BR,isJSDocNonNullableType:()=>u4,isJSDocNullableType:()=>xD,isJSDocOptionalParameter:()=>V6,isJSDocOptionalType:()=>uj,isJSDocOverloadTag:()=>DD,isJSDocOverrideTag:()=>f4,isJSDocParameterTag:()=>mf,isJSDocPrivateTag:()=>mj,isJSDocPropertyLikeTag:()=>PN,isJSDocPropertyTag:()=>gie,isJSDocProtectedTag:()=>hj,isJSDocPublicTag:()=>fj,isJSDocReadonlyTag:()=>_j,isJSDocReturnTag:()=>m4,isJSDocSatisfiesExpression:()=>kV,isJSDocSatisfiesTag:()=>_4,isJSDocSeeTag:()=>Z0e,isJSDocSignature:()=>pv,isJSDocTag:()=>GR,isJSDocTemplateTag:()=>bm,isJSDocThisTag:()=>yj,isJSDocThrowsTag:()=>tSe,isJSDocTypeAlias:()=>hm,isJSDocTypeAssertion:()=>US,isJSDocTypeExpression:()=>e0,isJSDocTypeLiteral:()=>A1,isJSDocTypeTag:()=>HM,isJSDocTypedefTag:()=>I1,isJSDocUnknownTag:()=>eSe,isJSDocUnknownType:()=>hie,isJSDocVariadicType:()=>p4,isJSXTagName:()=>YR,isJsonEqual:()=>F6,isJsonSourceFile:()=>Ff,isJsxAttribute:()=>i_,isJsxAttributeLike:()=>uF,isJsxAttributeName:()=>yre,isJsxAttributes:()=>VS,isJsxCallLike:()=>tte,isJsxChild:()=>W2,isJsxClosingElement:()=>GS,isJsxClosingFragment:()=>die,isJsxElement:()=>r_,isJsxExpression:()=>AD,isJsxFragment:()=>ZT,isJsxNamespacedName:()=>fh,isJsxOpeningElement:()=>ph,isJsxOpeningFragment:()=>jm,isJsxOpeningLikeElement:()=>nu,isJsxOpeningLikeElementTagName:()=>hle,isJsxSelfClosingElement:()=>E1,isJsxSpreadAttribute:()=>KI,isJsxTagNameExpression:()=>WN,isJsxText:()=>WI,isJumpStatementTarget:()=>sO,isKeyword:()=>ep,isKeywordOrPunctuation:()=>YF,isKnownSymbol:()=>iM,isLabelName:()=>fq,isLabelOfLabeledStatement:()=>pq,isLabeledStatement:()=>Mb,isLateVisibilityPaintedStatement:()=>xF,isLeftHandSideExpression:()=>$u,isLet:()=>CF,isLineBreak:()=>Zd,isLiteralComputedPropertyDeclarationName:()=>_k,isLiteralExpression:()=>JE,isLiteralExpressionOfObject:()=>k9,isLiteralImportTypeNode:()=>ry,isLiteralKind:()=>LN,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>$3,isLiteralTypeLiteral:()=>qee,isLiteralTypeNode:()=>dv,isLocalName:()=>fy,isLogicalOperator:()=>Tne,isLogicalOrCoalescingAssignmentExpression:()=>QG,isLogicalOrCoalescingAssignmentOperator:()=>cM,isLogicalOrCoalescingBinaryExpression:()=>xk,isLogicalOrCoalescingBinaryOperator:()=>u6,isMappedTypeNode:()=>y1,isMemberName:()=>dg,isMetaProperty:()=>b1,isMethodDeclaration:()=>Ml,isMethodOrAccessor:()=>iI,isMethodSignature:()=>Gm,isMinusToken:()=>rj,isMissingDeclaration:()=>X0e,isMissingPackageJsonInfo:()=>Toe,isModifier:()=>Aa,isModifierKind:()=>db,isModifierLike:()=>fl,isModuleAugmentationExternal:()=>iG,isModuleBlock:()=>t_,isModuleBody:()=>Kee,isModuleDeclaration:()=>pc,isModuleExportName:()=>d4,isModuleExportsAccessExpression:()=>gg,isModuleIdentifier:()=>bG,isModuleName:()=>kie,isModuleOrEnumDeclaration:()=>w2,isModuleReference:()=>Zee,isModuleSpecifierLike:()=>p7,isModuleWithStringLiteralName:()=>IF,isNameOfFunctionDeclaration:()=>gq,isNameOfModuleDeclaration:()=>_q,isNamedDeclaration:()=>nd,isNamedEvaluation:()=>Lp,isNamedEvaluationSource:()=>LG,isNamedExportBindings:()=>P9,isNamedExports:()=>Jf,isNamedImportBindings:()=>j9,isNamedImports:()=>n_,isNamedImportsOrExports:()=>v6,isNamedTupleMember:()=>vD,isNamespaceBody:()=>jTe,isNamespaceExport:()=>O_,isNamespaceExportDeclaration:()=>lw,isNamespaceImport:()=>Ig,isNamespaceReexportDeclaration:()=>Vte,isNewExpression:()=>BS,isNewExpressionTarget:()=>SP,isNewScopeNode:()=>Ire,isNoSubstitutionTemplateLiteral:()=>h1,isNodeArray:()=>mS,isNodeArrayMultiLine:()=>Nne,isNodeDescendantOf:()=>IS,isNodeKind:()=>oF,isNodeLikeSystem:()=>BB,isNodeModulesDirectory:()=>H8,isNodeWithPossibleHoistedDeclaration:()=>Zte,isNonContextualKeyword:()=>MG,isNonGlobalAmbientModule:()=>rG,isNonNullAccess:()=>gre,isNonNullChain:()=>iF,isNonNullExpression:()=>qI,isNonStaticMethodOrAccessorWithPrivateName:()=>Zoe,isNotEmittedStatement:()=>cie,isNullishCoalesce:()=>M9,isNumber:()=>Qv,isNumericLiteral:()=>np,isNumericLiteralName:()=>Eg,isObjectBindingElementWithoutPropertyName:()=>hO,isObjectBindingOrAssignmentElement:()=>M2,isObjectBindingOrAssignmentPattern:()=>F9,isObjectBindingPattern:()=>ff,isObjectLiteralElement:()=>U9,isObjectLiteralElementLike:()=>ny,isObjectLiteralExpression:()=>Wa,isObjectLiteralMethod:()=>mm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>LF,isObjectTypeDeclaration:()=>II,isOmittedExpression:()=>Jc,isOptionalChain:()=>eu,isOptionalChainRoot:()=>CN,isOptionalDeclaration:()=>PI,isOptionalJSDocPropertyLikeTag:()=>Jk,isOptionalTypeNode:()=>o4,isOuterExpression:()=>v4,isOutermostOptionalChain:()=>NN,isOverrideModifier:()=>eie,isPackageJsonInfo:()=>U4,isPackedArrayLiteral:()=>PV,isParameter:()=>to,isParameterPropertyDeclaration:()=>Np,isParameterPropertyModifier:()=>kN,isParenthesizedExpression:()=>wu,isParenthesizedTypeNode:()=>g1,isParseTreeNode:()=>DN,isPartOfParameterDeclaration:()=>VT,isPartOfTypeNode:()=>Hh,isPartOfTypeOnlyImportOrExportDeclaration:()=>zee,isPartOfTypeQuery:()=>GF,isPartiallyEmittedExpression:()=>iie,isPatternMatch:()=>N8,isPinnedComment:()=>EF,isPlainJsFile:()=>zN,isPlusToken:()=>nj,isPossiblyTypeArgumentPosition:()=>dO,isPostfixUnaryExpression:()=>sj,isPrefixUnaryExpression:()=>XT,isPrimitiveLiteralValue:()=>H6,isPrivateIdentifier:()=>eo,isPrivateIdentifierClassElementDeclaration:()=>tu,isPrivateIdentifierPropertyAccessExpression:()=>FR,isPrivateIdentifierSymbol:()=>ine,isProgramUptoDate:()=>dH,isPrologueDirective:()=>Uh,isPropertyAccessChain:()=>nF,isPropertyAccessEntityNameExpression:()=>Dk,isPropertyAccessExpression:()=>qr,isPropertyAccessOrQualifiedName:()=>L2,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Uee,isPropertyAssignment:()=>Nc,isPropertyDeclaration:()=>Po,isPropertyName:()=>bc,isPropertyNameLiteral:()=>qh,isPropertySignature:()=>Tu,isPrototypeAccess:()=>Sb,isPrototypePropertyAssignment:()=>ck,isPunctuation:()=>NG,isPushOrUnshiftIdentifier:()=>kG,isQualifiedName:()=>Lu,isQuestionDotToken:()=>r4,isQuestionOrExclamationToken:()=>Nie,isQuestionOrPlusOrMinusToken:()=>Lie,isQuestionToken:()=>Db,isReadonlyKeyword:()=>Qre,isReadonlyKeywordOrPlusOrMinusToken:()=>Pie,isRecognizedTripleSlashComment:()=>Q9,isReferenceFileLocation:()=>HD,isReferencedFile:()=>c0,isRegularExpressionLiteral:()=>ej,isRequireCall:()=>Zu,isRequireVariableStatement:()=>rk,isRestParameter:()=>C_,isRestTypeNode:()=>a4,isReturnStatement:()=>tf,isReturnStatementWithFixablePromiseHandler:()=>L7,isRightSideOfAccessExpression:()=>tV,isRightSideOfInstanceofExpression:()=>Ene,isRightSideOfPropertyAccess:()=>YD,isRightSideOfQualifiedName:()=>_le,isRightSideOfQualifiedNameOrPropertyAccess:()=>dM,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Sne,isRootedDiskPath:()=>Cp,isSameEntityName:()=>$R,isSatisfiesExpression:()=>SD,isSemicolonClassElement:()=>oie,isSetAccessor:()=>Vh,isSetAccessorDeclaration:()=>gp,isShiftOperatorOrHigher:()=>Nj,isShorthandAmbientModuleSymbol:()=>V2,isShorthandPropertyAssignment:()=>Ud,isSideEffectImport:()=>zV,isSignedNumericLiteral:()=>QF,isSimpleCopiableExpression:()=>JS,isSimpleInlineableExpression:()=>z_,isSimpleParameterList:()=>Ow,isSingleOrDoubleQuote:()=>ik,isSolutionConfig:()=>Zj,isSourceElement:()=>bre,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>aC,isSourceFileJS:()=>Mu,isSourceFileNotJson:()=>jF,isSourceMapping:()=>Yoe,isSpecialPropertyDeclaration:()=>qte,isSpreadAssignment:()=>xg,isSpreadElement:()=>qf,isStatement:()=>Vi,isStatementButNotDeclaration:()=>O2,isStatementOrBlock:()=>Qee,isStatementWithLocals:()=>dte,isStatic:()=>ua,isStaticModifier:()=>BI,isString:()=>Bo,isStringANonContextualKeyword:()=>vI,isStringAndEmptyAnonymousObjectIntersection:()=>Dle,isStringDoubleQuoted:()=>HF,isStringLiteral:()=>ka,isStringLiteralLike:()=>ds,isStringLiteralOrJsxExpression:()=>ete,isStringLiteralOrTemplate:()=>qle,isStringOrNumericLiteralLike:()=>uf,isStringOrRegularExpressionOrTemplateLiteral:()=>Iq,isStringTextContainingNode:()=>w9,isSuperCall:()=>e1,isSuperKeyword:()=>OM,isSuperProperty:()=>mp,isSupportedSourceFileName:()=>IV,isSwitchStatement:()=>GM,isSyntaxList:()=>CD,isSyntheticExpression:()=>V0e,isSyntheticReference:()=>JI,isTagName:()=>mq,isTaggedTemplateExpression:()=>KT,isTaggedTemplateTag:()=>fle,isTemplateExpression:()=>l4,isTemplateHead:()=>FI,isTemplateLiteral:()=>oI,isTemplateLiteralKind:()=>lb,isTemplateLiteralToken:()=>Wee,isTemplateLiteralTypeNode:()=>nie,isTemplateLiteralTypeSpan:()=>aj,isTemplateMiddle:()=>tj,isTemplateMiddleOrTemplateTail:()=>aF,isTemplateSpan:()=>ED,isTemplateTail:()=>t4,isTextWhiteSpaceLike:()=>kle,isThis:()=>$D,isThisContainerOrFunctionBlock:()=>zte,isThisIdentifier:()=>Tb,isThisInTypeQuery:()=>CS,isThisInitializedDeclaration:()=>FF,isThisInitializedObjectBindingExpression:()=>Gte,isThisProperty:()=>Q2,isThisTypeNode:()=>zM,isThisTypeParameter:()=>DM,isThisTypePredicate:()=>Ote,isThrowStatement:()=>dj,isToken:()=>nI,isTokenKind:()=>L9,isTraceEnabled:()=>Lb,isTransientSymbol:()=>pg,isTrivia:()=>nD,isTryStatement:()=>T1,isTupleTypeNode:()=>jI,isTypeAlias:()=>pk,isTypeAliasDeclaration:()=>vm,isTypeAssertionExpression:()=>s4,isTypeDeclaration:()=>MI,isTypeElement:()=>hS,isTypeKeyword:()=>xP,isTypeKeywordTokenOrIdentifier:()=>c7,isTypeLiteralNode:()=>ku,isTypeNode:()=>Ri,isTypeNodeKind:()=>uV,isTypeOfExpression:()=>bD,isTypeOnlyExportDeclaration:()=>Fee,isTypeOnlyImportDeclaration:()=>WR,isTypeOnlyImportOrExportDeclaration:()=>$y,isTypeOperatorNode:()=>JT,isTypeParameterDeclaration:()=>sl,isTypePredicateNode:()=>VI,isTypeQueryNode:()=>WS,isTypeReferenceNode:()=>Wp,isTypeReferenceType:()=>hF,isTypeUsableAsPropertyName:()=>jf,isUMDExportSymbol:()=>y6,isUnaryExpression:()=>G9,isUnaryExpressionWithWrite:()=>Hee,isUnicodeIdentifierStart:()=>J8,isUnionTypeNode:()=>cv,isUrl:()=>QZ,isValidBigIntString:()=>z6,isValidESSymbolDeclaration:()=>Lte,isValidTypeOnlyAliasUseSite:()=>UT,isValueSignatureDeclaration:()=>a1,isVarAwaitUsing:()=>J2,isVarConst:()=>qR,isVarConstLike:()=>Cte,isVarUsing:()=>K2,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>jN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>SS,isVariableDeclarationInitializedToRequire:()=>nk,isVariableDeclarationList:()=>_d,isVariableLike:()=>VN,isVariableStatement:()=>sc,isVoidExpression:()=>HI,isWatchSet:()=>lV,isWhileStatement:()=>cj,isWhiteSpaceLike:()=>sg,isWhiteSpaceSingleLine:()=>Bh,isWithStatement:()=>aie,isWriteAccess:()=>AI,isWriteOnlyAccess:()=>g6,isYieldExpression:()=>aw,jsxModeNeedsExplicitImport:()=>aJ,keywordPart:()=>Vp,last:()=>Ba,lastOrUndefined:()=>Zs,length:()=>et,libMap:()=>Fj,libs:()=>x4,lineBreakPart:()=>rC,loadModuleFromGlobalCache:()=>Poe,loadWithModeAwareCache:()=>Jw,makeIdentifierFromModuleName:()=>gte,makeImport:()=>Bb,makeStringLiteral:()=>RP,mangleScopedPackageName:()=>BD,map:()=>Vt,mapAllOrFail:()=>RT,mapDefined:()=>Ui,mapDefinedIterator:()=>nh,mapEntries:()=>TQ,mapIterator:()=>za,mapOneOrMany:()=>nJ,mapToDisplayParts:()=>Gb,matchFiles:()=>ere,matchPatternOrExact:()=>xV,matchedText:()=>wQ,matchesExclude:()=>z4,matchesExcludeWorker:()=>B4,maxBy:()=>PB,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>zne,memoize:()=>Cu,memoizeOne:()=>Fh,min:()=>LB,minAndMax:()=>sre,missingFileModifiedTime:()=>Dp,modifierToFlag:()=>SI,modifiersToFlags:()=>Xh,moduleExportNameIsDefault:()=>N_,moduleExportNameTextEscaped:()=>vS,moduleExportNameTextUnescaped:()=>_b,moduleOptionDeclaration:()=>qie,moduleResolutionIsEqualTo:()=>lte,moduleResolutionNameAndModeGetter:()=>g3,moduleResolutionOptionDeclarations:()=>Bj,moduleResolutionSupportsPackageJsonExportsAndImports:()=>uD,moduleResolutionUsesNodeModules:()=>d7,moduleSpecifierToValidIdentifier:()=>EO,moduleSpecifiers:()=>hy,moduleSupportsImportAttributes:()=>qne,moduleSymbolToValidIdentifier:()=>SO,moveEmitHelpers:()=>zre,moveRangeEnd:()=>h6,moveRangePastDecorators:()=>ly,moveRangePastModifiers:()=>Yh,moveRangePos:()=>jT,moveSyntheticComments:()=>Ore,mutateMap:()=>hM,mutateMapSkippingNewValues:()=>vg,needsParentheses:()=>_7,needsScopeMarker:()=>cF,newCaseClauseTracker:()=>D7,newPrivateEnvironment:()=>tae,noEmitNotification:()=>Bw,noEmitSubstitution:()=>uP,noTransformers:()=>Pae,noTruncationMaximumTruncationLength:()=>J9,nodeCanBeDecorated:()=>ek,nodeCoreModules:()=>hD,nodeHasName:()=>A2,nodeIsDecorated:()=>XR,nodeIsMissing:()=>Wl,nodeIsPresent:()=>fm,nodeIsSynthesized:()=>Os,nodeModuleNameResolver:()=>Ioe,nodeModulesPathPart:()=>Rg,nodeNextJsonConfigResolver:()=>xoe,nodeOrChildIsDecorated:()=>tk,nodeOverlapsWithStartEnd:()=>Q3,nodePosToString:()=>JTe,nodeSeenTracker:()=>eC,nodeStartsNewLexicalEnvironment:()=>wG,noop:()=>gs,noopFileWatcher:()=>KD,normalizePath:()=>ya,normalizeSlashes:()=>Bd,normalizeSpans:()=>S9,not:()=>P8,notImplemented:()=>ha,notImplementedResolver:()=>Wae,nullNodeConverters:()=>Lre,nullParenthesizerRules:()=>Mre,nullTransformationContext:()=>Vw,objectAllocator:()=>Rd,operatorPart:()=>CP,optionDeclarations:()=>Um,optionMapToObject:()=>L4,optionsAffectingProgramStructure:()=>Yie,optionsForBuild:()=>Vj,optionsForWatch:()=>ex,optionsHaveChanges:()=>lI,or:()=>Rp,orderedRemoveItem:()=>uN,orderedRemoveItemAt:()=>nb,packageIdToPackageName:()=>TF,packageIdToString:()=>kT,parameterIsThisKeyword:()=>bb,parameterNamePart:()=>Ole,parseBaseNodeFactory:()=>Bie,parseBigInt:()=>cre,parseBuildCommand:()=>ioe,parseCommandLine:()=>noe,parseCommandLineWorker:()=>jj,parseConfigFileTextToJson:()=>Hj,parseConfigFileWithSystem:()=>Sse,parseConfigHostFromCompilerHostLike:()=>E3,parseCustomTypeOption:()=>N4,parseIsolatedEntityName:()=>ZI,parseIsolatedJSDocComment:()=>Vie,parseJSDocTypeExpressionForTests:()=>ISe,parseJsonConfigFileContent:()=>tEe,parseJsonSourceFileConfigFileContent:()=>xw,parseJsonText:()=>bw,parseListTypeOption:()=>eoe,parseNodeFactory:()=>r0,parseNodeModuleFromPath:()=>Nw,parsePackageName:()=>J4,parsePseudoBigInt:()=>AM,parseValidBigInt:()=>NV,pasteEdits:()=>oX,patchWriteFileEnsuringDirectory:()=>cTe,pathContainsNodeModules:()=>wb,pathIsAbsolute:()=>vN,pathIsBareSpecifier:()=>p9,pathIsRelative:()=>Zp,patternText:()=>kQ,performIncrementalCompilation:()=>Ese,performance:()=>jQ,positionBelongsToNode:()=>yq,positionIsASICandidate:()=>v7,positionIsSynthesized:()=>dh,positionsAreOnSameLine:()=>Gf,preProcessFile:()=>uxe,probablyUsesSemicolons:()=>bO,processCommentPragmas:()=>Oj,processPragmasIntoFields:()=>Wj,processTaggedTemplateExpression:()=>FU,programContainsEsModules:()=>Ple,programContainsModules:()=>Mle,projectReferenceIsEqualTo:()=>K9,propertyNamePart:()=>Wle,pseudoBigIntToString:()=>kS,punctuationPart:()=>su,pushIfUnique:()=>kf,quote:()=>PP,quotePreferenceFromString:()=>wq,rangeContainsPosition:()=>QD,rangeContainsPositionExclusive:()=>lO,rangeContainsRange:()=>tp,rangeContainsRangeExclusive:()=>yle,rangeContainsStartEnd:()=>cO,rangeEndIsOnSameLineAsRangeStart:()=>Mk,rangeEndPositionsAreOnSameLine:()=>Dne,rangeEquals:()=>AB,rangeIsOnSingleLine:()=>d1,rangeOfNode:()=>DV,rangeOfTypeParameters:()=>CV,rangeOverlapsWithStartEnd:()=>EP,rangeStartIsOnSameLineAsRangeEnd:()=>Cne,rangeStartPositionsAreOnSameLine:()=>_6,readBuilderProgram:()=>k3,readConfigFile:()=>Aw,readJson:()=>sD,readJsonConfigFile:()=>ooe,readJsonOrUndefined:()=>rV,reduceEachLeadingCommentRange:()=>aee,reduceEachTrailingCommentRange:()=>see,reduceLeft:()=>_u,reduceLeftIterator:()=>Gn,reducePathComponents:()=>eI,refactor:()=>mx,regExpEscape:()=>S0e,regularExpressionFlagToCharacterCode:()=>TTe,relativeComplement:()=>SQ,removeAllComments:()=>Zk,removeEmitHelper:()=>F0e,removeExtension:()=>jk,removeFileExtension:()=>bu,removeIgnoredPath:()=>R3,removeMinAndVersionNumbers:()=>OB,removePrefix:()=>pN,removeSuffix:()=>xR,removeTrailingDirectorySeparator:()=>Xy,repeatString:()=>fO,replaceElement:()=>RB,replaceFirstStar:()=>p1,resolutionExtensionIsTSOrJson:()=>bM,resolveConfigFileProjectName:()=>VH,resolveJSModule:()=>LEe,resolveLibrary:()=>q4,resolveModuleName:()=>C1,resolveModuleNameFromCache:()=>MEe,resolvePackageNameToPackageJson:()=>rU,resolvePath:()=>ib,resolveProjectReferencePath:()=>ax,resolveTripleslashReference:()=>tH,resolveTypeReferenceDirective:()=>voe,resolvingEmptyArray:()=>q9,returnFalse:()=>Qg,returnNoopFileWatcher:()=>vP,returnTrue:()=>cS,returnUndefined:()=>dS,returnsPromise:()=>bJ,rewriteModuleSpecifier:()=>rx,sameFlatMap:()=>wm,sameMap:()=>Zi,sameMapping:()=>S1e,scanTokenAtPosition:()=>Dte,scanner:()=>yd,semanticDiagnosticsOptionDeclarations:()=>Jie,serializeCompilerOptions:()=>Yj,server:()=>fOe,servicesVersion:()=>eDe,setCommentRange:()=>Dc,setConfigFileInOptions:()=>$j,setConstantValue:()=>Fre,setEmitFlags:()=>Cr,setGetSourceFileAsHashVersioned:()=>L3,setIdentifierAutoGenerate:()=>nw,setIdentifierGeneratedImportReference:()=>Vre,setIdentifierTypeArguments:()=>lv,setInternalEmitFlags:()=>ew,setLocalizedDiagnosticMessages:()=>Fne,setNodeChildren:()=>yie,setNodeFlags:()=>pre,setObjectAllocator:()=>Wne,setOriginalNode:()=>jr,setParent:()=>ps,setParentRecursive:()=>HT,setPrivateIdentifier:()=>M1,setSnippetElement:()=>QV,setSourceMapRange:()=>Ua,setStackTraceLimit:()=>nTe,setStartsOnNewLine:()=>$6,setSyntheticLeadingComments:()=>qT,setSyntheticTrailingComments:()=>wI,setSys:()=>dTe,setSysLog:()=>YZ,setTextRange:()=>vt,setTextRangeEnd:()=>mD,setTextRangePos:()=>IM,setTextRangePosEnd:()=>uh,setTextRangePosWidth:()=>MV,setTokenSourceMapRange:()=>wre,setTypeNode:()=>Bre,setUILocale:()=>MQ,setValueDeclaration:()=>YN,shouldAllowImportingTsExtension:()=>GD,shouldPreserveConstEnums:()=>Eb,shouldRewriteModuleSpecifier:()=>uk,shouldUseUriStyleNodeCoreModules:()=>x7,showModuleSpecifier:()=>kne,signatureHasRestParameter:()=>au,signatureToDisplayParts:()=>qq,single:()=>xB,singleElementArray:()=>$A,singleIterator:()=>x8,singleOrMany:()=>I_,singleOrUndefined:()=>og,skipAlias:()=>xd,skipConstraint:()=>Pq,skipOuterExpressions:()=>Hl,skipParentheses:()=>us,skipPartiallyEmittedExpressions:()=>Wm,skipTrivia:()=>La,skipTypeChecking:()=>fD,skipTypeCheckingIgnoringNoCheck:()=>lre,skipTypeParentheses:()=>QN,skipWhile:()=>WQ,sliceAfter:()=>RV,some:()=>yt,sortAndDeduplicate:()=>dN,sortAndDeduplicateDiagnostics:()=>kR,sourceFileAffectingCompilerOptions:()=>Gj,sourceFileMayBeEmitted:()=>RS,sourceMapCommentRegExp:()=>xU,sourceMapCommentRegExpDontCareLineStart:()=>Joe,spacePart:()=>Bl,spanMap:()=>r2,startEndContainsRange:()=>aV,startEndOverlapsWithStartEnd:()=>Z3,startOnNewLine:()=>ou,startTracing:()=>JQ,startsWith:()=>po,startsWithDirectory:()=>h9,startsWithUnderscore:()=>oJ,startsWithUseStrict:()=>Iie,stringContainsAt:()=>Zle,stringToToken:()=>jE,stripQuotes:()=>_m,supportedDeclarationExtensions:()=>w6,supportedJSExtensionsFlat:()=>pD,supportedLocaleDirectories:()=>See,supportedTSExtensionsFlat:()=>EV,supportedTSImplementationExtensions:()=>Bk,suppressLeadingAndTrailingTrivia:()=>Op,suppressLeadingTrivia:()=>qV,suppressTrailingTrivia:()=>Rre,symbolEscapedNameNoDefault:()=>u7,symbolName:()=>Ol,symbolNameNoDefault:()=>Wq,symbolToDisplayParts:()=>NP,sys:()=>jc,sysLog:()=>B8,tagNamesAreEquivalent:()=>o0,takeWhile:()=>zB,targetOptionDeclaration:()=>zj,targetToLibMap:()=>lee,testFormatSettings:()=>LIe,textChangeRangeIsUnchanged:()=>gee,textChangeRangeNewSpan:()=>RN,textChanges:()=>Rr,textOrKeywordPart:()=>Hq,textPart:()=>yf,textRangeContainsPositionInclusive:()=>b2,textRangeContainsTextSpan:()=>uee,textRangeIntersectsWithTextSpan:()=>hee,textSpanContainsPosition:()=>b9,textSpanContainsTextRange:()=>T9,textSpanContainsTextSpan:()=>dee,textSpanEnd:()=>Cl,textSpanIntersection:()=>_ee,textSpanIntersectsWith:()=>T2,textSpanIntersectsWithPosition:()=>mee,textSpanIntersectsWithTextSpan:()=>fee,textSpanIsEmpty:()=>cee,textSpanOverlap:()=>pee,textSpanOverlapsWith:()=>CTe,textSpansEqual:()=>nC,textToKeywordObj:()=>q8,timestamp:()=>Ls,toArray:()=>XA,toBuilderFileEmit:()=>use,toBuilderStateFileInfoForMultiEmit:()=>dse,toEditorSettings:()=>MO,toFileNameLowerCase:()=>Zv,toPath:()=>ks,toProgramEmitPending:()=>pse,toSorted:()=>xp,tokenIsIdentifierOrKeyword:()=>Xu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>eee,tokenToString:()=>_a,trace:()=>xo,tracing:()=>xr,tracingEnabled:()=>u2,transferSourceFileChildren:()=>vie,transform:()=>dDe,transformClassFields:()=>uae,transformDeclarations:()=>VU,transformECMAScriptModule:()=>GU,transformES2015:()=>Iae,transformES2016:()=>Aae,transformES2017:()=>hae,transformES2018:()=>_ae,transformES2019:()=>gae,transformES2020:()=>yae,transformES2021:()=>vae,transformESDecorators:()=>mae,transformESNext:()=>bae,transformGenerators:()=>xae,transformImpliedNodeFormatDependentModule:()=>Dae,transformJsx:()=>Eae,transformLegacyDecorators:()=>fae,transformModule:()=>BU,transformNamedEvaluation:()=>zp,transformNodes:()=>Gw,transformSystemModule:()=>Rae,transformTypeScript:()=>dae,transpile:()=>bxe,transpileDeclaration:()=>yxe,transpileModule:()=>Sce,transpileOptionValueCompilerOptions:()=>$ie,tryAddToSet:()=>rh,tryAndIgnoreErrors:()=>S7,tryCast:()=>ni,tryDirectoryExists:()=>T7,tryExtractTSExtension:()=>m6,tryFileExists:()=>kP,tryGetClassExtendingExpressionWithTypeArguments:()=>ZG,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>eV,tryGetDirectories:()=>b7,tryGetExtensionFromPath:()=>Sg,tryGetImportFromModuleSpecifier:()=>dk,tryGetJSDocSatisfiesTypeNode:()=>j6,tryGetModuleNameFromFile:()=>mw,tryGetModuleSpecifierFromDeclaration:()=>mI,tryGetNativePerformanceHooks:()=>VQ,tryGetPropertyAccessOrIdentifierToString:()=>Ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>T4,tryGetSourceMappingURL:()=>Koe,tryGetTextOfPropertyName:()=>GN,tryParseJson:()=>Nk,tryParsePattern:()=>NI,tryParsePatterns:()=>Uk,tryParseRawSourceMap:()=>Xoe,tryReadDirectory:()=>Qq,tryReadFile:()=>YM,tryRemoveDirectoryPrefix:()=>bV,tryRemoveExtension:()=>ore,tryRemovePrefix:()=>FB,tryRemoveSuffix:()=>LQ,tscBuildOption:()=>R1,typeAcquisitionDeclarations:()=>D4,typeAliasNamePart:()=>Fle,typeDirectiveIsEqualTo:()=>cte,typeKeywords:()=>Mq,typeParameterNamePart:()=>zle,typeToDisplayParts:()=>gO,unchangedPollThresholds:()=>F8,unchangedTextChangeRange:()=>Y8,unescapeLeadingUnderscores:()=>Gi,unmangleScopedPackageName:()=>Pw,unorderedRemoveItem:()=>YA,unprefixedNodeCoreModules:()=>Are,unreachableCodeIsError:()=>Une,unsetNodeChildren:()=>bj,unusedLabelIsError:()=>Hne,unwrapInnermostStatementOfLabel:()=>hG,unwrapParenthesizedExpression:()=>Sre,updateErrorForNoInputFiles:()=>F4,updateLanguageServiceSourceFile:()=>JJ,updateMissingFilePathsWatch:()=>QU,updateResolutionField:()=>OD,updateSharedExtendedConfigFileWatcher:()=>f3,updateSourceFile:()=>kj,updateWatchingWildcardDirectories:()=>Uw,usingSingleLineStringWriter:()=>VR,utf16EncodeAsString:()=>xN,validateLocaleAndSetLanguage:()=>A9,version:()=>Le,versionMajorMinor:()=>ge,visitArray:()=>iP,visitCommaListElements:()=>t3,visitEachChild:()=>kn,visitFunctionBody:()=>gf,visitIterationBody:()=>Ou,visitLexicalEnvironment:()=>IU,visitNode:()=>st,visitNodes:()=>Xn,visitParameterList:()=>zl,walkUpBindingElementsAndPatterns:()=>UE,walkUpOuterExpressions:()=>xie,walkUpParenthesizedExpressions:()=>zm,walkUpParenthesizedTypes:()=>hk,walkUpParenthesizedTypesAndGetParentAndChild:()=>ene,whitespaceOrMapCommentRegExp:()=>RU,writeCommentRange:()=>aD,writeFile:()=>l6,writeFileEnsuringDirectories:()=>qG,zipWith:()=>ki}),_.exports=F($);var ge="5.9",Le="5.9.3",Ke=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Ke||{}),ae=[],bt=new Map;function et(e){return e!==void 0?e.length:0}function Ye(e,t){if(e!==void 0)for(let r=0;r=0;r--){const i=t(e[r],r);if(i)return i}}function Hn(e,t){if(e!==void 0)for(let r=0;r=0;i--){const o=e[i];if(t(o,i))return o}}function ho(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 jn(e,t,r=eb){if(e!==void 0){for(let i=0;i{const[s,l]=t(o,i);r.set(s,l)}),r}function yt(e,t){if(e!==void 0)if(t!==void 0){for(let r=0;r0;return!1}function TB(e,t,r){let i;for(let o=0;oe[l])}function pBe(e,t){const r=[];for(let i=0;i0&&i(t,e[l-1]))return!1;if(l0&&C.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const l=o;ol&&C.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 Bn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function qA(e,t){return e===void 0?t:t===void 0?e:Mo(e)?Mo(t)?so(e,t):Bn(e,t):Mo(t)?Bn(t,e):[e,t]}function EQ(e,t){return t<0?e.length+t:t}function Xr(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:EQ(t,r),i=i===void 0?t.length:EQ(t,i);for(let o=r;or(e[i],e[o])||js(i,o))}function xp(e,t){return e.length===0?ae:e.slice().sort(t)}function*EB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function AB(e,t,r,i){for(;re?.at(t):(e,t)=>{if(e!==void 0&&(t=EQ(e,t),t>1),d=r(e[u],u);switch(i(d,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function _u(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 d;for(arguments.length<=2?(d=e[l],l++):d=r;l<=u;)d=t(d,e[l],l),l++;return d}}return r}var DT=Object.prototype.hasOwnProperty;function Rs(e,t){return DT.call(e,t)}function o2(e,t){return DT.call(e,t)?e[t]:void 0}function Wh(e){const t=[];for(const r in e)DT.call(e,r)&&t.push(r);return t}function Bbe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)kf(t,i)}while(e=Object.getPrototypeOf(e));return t}function KA(e){const t=[];for(const r in e)DT.call(e,r)&&t.push(e[r]);return t}function AQ(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 MB(e,t){const r=new Map;let i=0;function*o(){for(const l of r.values())Mo(l)?yield*l:yield l}const s={has(l){const u=e(l);if(!r.has(u))return!1;const d=r.get(u);return Mo(d)?jn(d,l,t):t(d,l)},add(l){const u=e(l);if(r.has(u)){const d=r.get(u);if(Mo(d))jn(d,l,t)||(d.push(l),i++);else{const g=d;t(g,l)||(r.set(u,[g,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const d=r.get(u);if(Mo(d)){for(let g=0;go(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Mo(e){return Array.isArray(e)}function XA(e){return Mo(e)?e:[e]}function Bo(e){return typeof e=="string"}function Qv(e){return typeof e=="number"}function ni(e,t){return e!==void 0&&t(e)?e:void 0}function ma(e,t){return e!==void 0&&t(e)?e:C.fail(`Invalid cast. The supplied value ${e} did not pass the test '${C.getFunctionName(t)}'.`)}function gs(e){}function Qg(){return!1}function cS(){return!0}function dS(){}function Vs(e){return e}function gBe(e){return e.toLowerCase()}var Gbe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function Zv(e){return Gbe.test(e)?e.replace(Gbe,gBe):e}function ha(){throw new Error("Not implemented")}function Cu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Fh(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}}var DQ=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(DQ||{});function eb(e,t){return e===t}function tb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function uS(e,t){return eb(e,t)}function Vbe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function l2(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function CQ(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Wd(e,t){return Vbe(e,t)}function IR(e){return e?l2:Wd}var yBe=(()=>{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",numeric:!0}).compare;return(o,s)=>e(o,s,i)}})(),kB,wB;function NQ(){return wB}function MQ(e){wB!==e&&(wB=e,kB=void 0)}function c2(e,t){return kB??(kB=yBe(wB)),kB(e,t)}function PQ(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function CT(e,t){return js(e?1:0,t?1:0)}function pS(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 d=vBe(e,u,o-.1);if(d===void 0)continue;C.assert(dr?u-r:1),h=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let y=u;for(let A=1;Ar)return;const E=i;i=o,o=E}const l=i[t.length];return l>r?void 0:l}function el(e,t,r){const i=e.length-t.length;return i>=0&&(r?tb(e.slice(i),t):e.indexOf(t,i)===i)}function xR(e,t){return el(e,t)?e.slice(0,e.length-t.length):e}function LQ(e,t){return el(e,t)?e.slice(0,e.length-t.length):void 0}function OB(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 uN(e,t){for(let r=0;rr===t)}function bBe(e,t){for(let r=0;ro&&N8(u,r)&&(o=u.prefix.length,i=l)}return i}function po(e,t,r){return r?tb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function pN(e,t){return po(e,t)?e.substr(t.length):e}function FB(e,t,r=Vs){return po(r(e),r(t))?e.substring(t.length):void 0}function N8({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&po(r,e)&&el(r,t)}function M8(e,t){return r=>e(r)&&t(r)}function Rp(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function P8(e){return(...t)=>!e(...t)}function Ube(e){}function $A(e){return e===void 0?void 0:[e]}function L8(e,t,r,i,o,s){s??(s=gs);let l=0,u=0;const d=e.length,g=t.length;let h=!1;for(;l(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))(FQ||{}),C;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r($e){return e.currentLogLevel<=$e}e.shouldLog=r;function i($e,At){e.loggingHost&&r($e)&&e.loggingHost.log($e,At)}function o($e){i(3,$e)}e.log=o,($e=>{function At(ai){i(1,ai)}$e.error=At;function mn(ai){i(2,ai)}$e.warn=mn;function dr(ai){i(3,ai)}$e.log=dr;function ri(ai){i(4,ai)}$e.trace=ri})(o=e.log||(e.log={}));const s={};function l(){return t}e.getAssertionLevel=l;function u($e){const At=t;if(t=$e,$e>At)for(const mn of Wh(s)){const dr=s[mn];dr!==void 0&&e[mn]!==dr.assertion&&$e>=dr.level&&(e[mn]=dr,s[mn]=void 0)}}e.setAssertionLevel=u;function d($e){return t>=$e}e.shouldAssert=d;function g($e,At){return d($e)?!0:(s[At]={level:$e,assertion:e[At]},e[At]=gs,!1)}function h($e,At){debugger;const mn=new Error($e?`Debug Failure. ${$e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(mn,At||h),mn}e.fail=h;function y($e,At,mn){return h(`${At||"Unexpected node."}\r Node ${Ce($e.kind)} was unexpected.`,mn||y)}e.failBadSyntaxKind=y;function E($e,At,mn,dr){$e||(At=At?`False expression: ${At}`:"False expression.",mn&&(At+=`\r Verbose Debug Information: `+(typeof mn=="string"?mn:mn())),h(At,dr||E))}e.assert=E;function A($e,At,mn,dr,ri){if($e!==At){const ai=mn?dr?`${mn} ${dr}`:mn:"";h(`Expected ${$e} === ${At}. ${ai}`,ri||A)}}e.assertEqual=A;function R($e,At,mn,dr){$e>=At&&h(`Expected ${$e} < ${At}. ${mn||""}`,dr||R)}e.assertLessThan=R;function N($e,At,mn){$e>At&&h(`Expected ${$e} <= ${At}`,mn||N)}e.assertLessThanOrEqual=N;function P($e,At,mn){$e= ${At}`,mn||P)}e.assertGreaterThanOrEqual=P;function k($e,At,mn){$e==null&&h(At,mn||k)}e.assertIsDefined=k;function W($e,At,mn){return k($e,At,mn||W),$e}e.checkDefined=W;function O($e,At,mn){for(const dr of $e)k(dr,At,mn||O)}e.assertEachIsDefined=O;function G($e,At,mn){return O($e,At,mn||G),$e}e.checkEachDefined=G;function j($e,At="Illegal value:",mn){const dr=typeof $e=="object"&&Rs($e,"kind")&&Rs($e,"pos")?"SyntaxKind: "+Ce($e.kind):JSON.stringify($e);return h(`${At} ${dr}`,mn||j)}e.assertNever=j;function J($e,At,mn,dr){g(1,"assertEachNode")&&E(At===void 0||Vn($e,At),mn||"Unexpected node.",()=>`Node array did not pass test '${de(At)}'.`,dr||J)}e.assertEachNode=J;function Z($e,At,mn,dr){g(1,"assertNode")&&E($e!==void 0&&(At===void 0||At($e)),mn||"Unexpected node.",()=>`Node ${Ce($e?.kind)} did not pass test '${de(At)}'.`,dr||Z)}e.assertNode=Z;function q($e,At,mn,dr){g(1,"assertNotNode")&&E($e===void 0||At===void 0||!At($e),mn||"Unexpected node.",()=>`Node ${Ce($e.kind)} should not have passed test '${de(At)}'.`,dr||q)}e.assertNotNode=q;function ye($e,At,mn,dr){g(1,"assertOptionalNode")&&E(At===void 0||$e===void 0||At($e),mn||"Unexpected node.",()=>`Node ${Ce($e?.kind)} did not pass test '${de(At)}'.`,dr||ye)}e.assertOptionalNode=ye;function ie($e,At,mn,dr){g(1,"assertOptionalToken")&&E(At===void 0||$e===void 0||$e.kind===At,mn||"Unexpected node.",()=>`Node ${Ce($e?.kind)} was not a '${Ce(At)}' token.`,dr||ie)}e.assertOptionalToken=ie;function K($e,At,mn){g(1,"assertMissingNode")&&E($e===void 0,At||"Unexpected node.",()=>`Node ${Ce($e.kind)} was unexpected'.`,mn||K)}e.assertMissingNode=K;function pe($e){}e.type=pe;function de($e){if(typeof $e!="function")return"";if(Rs($e,"name"))return $e.name;{const At=Function.prototype.toString.call($e),mn=/^function\s+([\w$]+)\s*\(/.exec(At);return mn?mn[1]:""}}e.getFunctionName=de;function fe($e){return`{ name: ${Gi($e.escapedName)}; flags: ${ce($e.flags)}; declarations: ${Vt($e.declarations,At=>Ce(At.kind))} }`}e.formatSymbol=fe;function ve($e=0,At,mn){const dr=X(At);if($e===0)return dr.length>0&&dr[0][0]===0?dr[0][1]:"0";if(mn){const ri=[];let ai=$e;for(const[qi,$o]of dr){if(qi>$e)break;qi!==0&&qi&$e&&(ri.push($o),ai&=~qi)}if(ai===0)return ri.join("|")}else for(const[ri,ai]of dr)if(ri===$e)return ai;return $e.toString()}e.formatEnum=ve;const xe=new Map;function X($e){const At=xe.get($e);if(At)return At;const mn=[];for(const ri in $e){const ai=$e[ri];typeof ai=="number"&&mn.push([ai,ri])}const dr=xp(mn,(ri,ai)=>js(ri[0],ai[0]));return xe.set($e,dr),dr}function Ce($e){return ve($e,UB,!1)}e.formatSyntaxKind=Ce;function Je($e){return ve($e,i9,!1)}e.formatSnippetKind=Je;function Se($e){return ve($e,n9,!1)}e.formatScriptKind=Se;function re($e){return ve($e,HB,!0)}e.formatNodeFlags=re;function be($e){return ve($e,QB,!0)}e.formatNodeCheckFlags=be;function Ne($e){return ve($e,qB,!0)}e.formatModifierFlags=Ne;function Be($e){return ve($e,r9,!0)}e.formatTransformFlags=Be;function lt($e){return ve($e,o9,!0)}e.formatEmitFlags=lt;function ce($e){return ve($e,$B,!0)}e.formatSymbolFlags=ce;function Re($e){return ve($e,ZB,!0)}e.formatTypeFlags=Re;function _e($e){return ve($e,t9,!0)}e.formatSignatureFlags=_e;function je($e){return ve($e,e9,!0)}e.formatObjectFlags=je;function Ge($e){return ve($e,w8,!0)}e.formatFlowFlags=Ge;function We($e){return ve($e,JB,!0)}e.formatRelationComparisonResult=We;function at($e){return ve($e,bU,!0)}e.formatCheckMode=at;function Wt($e){return ve($e,TU,!0)}e.formatSignatureCheckMode=Wt;function cn($e){return ve($e,vU,!0)}e.formatTypeFacts=cn;let gn=!1,Kn;function _t($e){"__debugFlowFlags"in $e||Object.defineProperties($e,{__tsDebuggerDisplay:{value(){const At=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",mn=this.flags&-2048;return`${At}${mn?` (${Ge(mn)})`:""}`}},__debugFlowFlags:{get(){return ve(this.flags,w8,!0)}},__debugToString:{value(){return Ci(this)}}})}function en($e){return gn&&(typeof Object.setPrototypeOf=="function"?(Kn||(Kn=Object.create(Object.prototype),_t(Kn)),Object.setPrototypeOf($e,Kn)):_t($e)),$e}e.attachFlowNodeDebugInfo=en;let ir;function Di($e){"__tsDebuggerDisplay"in $e||Object.defineProperties($e,{__tsDebuggerDisplay:{value(At){return At=String(At).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${At}`}}})}function lo($e){gn&&(typeof Object.setPrototypeOf=="function"?(ir||(ir=Object.create(Array.prototype),Di(ir)),Object.setPrototypeOf($e,ir)):Di($e))}e.attachNodeArrayDebugInfo=lo;function zt(){if(gn)return;const $e=new WeakMap,At=new WeakMap;Object.defineProperties(Rd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const dr=this.flags&33554432?"TransientSymbol":"Symbol",ri=this.flags&-33554433;return`${dr} '${Ol(this)}'${ri?` (${ce(ri)})`:""}`}},__debugFlags:{get(){return ce(this.flags)}}}),Object.defineProperties(Rd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const dr=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",ri=this.flags&524288?this.objectFlags&-1344:0;return`${dr}${this.symbol?` '${Ol(this.symbol)}'`:""}${ri?` (${je(ri)})`:""}`}},__debugFlags:{get(){return Re(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?je(this.objectFlags):""}},__debugTypeToString:{value(){let dr=$e.get(this);return dr===void 0&&(dr=this.checker.typeToString(this),$e.set(this,dr)),dr}}}),Object.defineProperties(Rd.getSignatureConstructor().prototype,{__debugFlags:{get(){return _e(this.flags)}},__debugSignatureToString:{value(){var dr;return(dr=this.checker)==null?void 0:dr.signatureToString(this)}}});const mn=[Rd.getNodeConstructor(),Rd.getIdentifierConstructor(),Rd.getTokenConstructor(),Rd.getSourceFileConstructor()];for(const dr of mn)Rs(dr.prototype,"__debugKind")||Object.defineProperties(dr.prototype,{__tsDebuggerDisplay:{value(){return`${pl(this)?"GeneratedIdentifier":He(this)?`Identifier '${Kr(this)}'`:eo(this)?`PrivateIdentifier '${Kr(this)}'`:ka(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:np(this)?`NumericLiteral ${this.text}`:gD(this)?`BigIntLiteral ${this.text}n`:sl(this)?"TypeParameterDeclaration":to(this)?"ParameterDeclaration":Pl(this)?"ConstructorDeclaration":Hf(this)?"GetAccessorDeclaration":gp(this)?"SetAccessorDeclaration":GI(this)?"CallSignatureDeclaration":FM(this)?"ConstructSignatureDeclaration":Cb(this)?"IndexSignatureDeclaration":VI(this)?"TypePredicateNode":Wp(this)?"TypeReferenceNode":w_(this)?"FunctionTypeNode":yD(this)?"ConstructorTypeNode":WS(this)?"TypeQueryNode":ku(this)?"TypeLiteralNode":ow(this)?"ArrayTypeNode":jI(this)?"TupleTypeNode":o4(this)?"OptionalTypeNode":a4(this)?"RestTypeNode":cv(this)?"UnionTypeNode":UI(this)?"IntersectionTypeNode":FS(this)?"ConditionalTypeNode":_1(this)?"InferTypeNode":g1(this)?"ParenthesizedTypeNode":zM(this)?"ThisTypeNode":JT(this)?"TypeOperatorNode":zS(this)?"IndexedAccessTypeNode":y1(this)?"MappedTypeNode":dv(this)?"LiteralTypeNode":vD(this)?"NamedTupleMember":e_(this)?"ImportTypeNode":Ce(this.kind)}${this.flags?` (${re(this.flags)})`:""}`}},__debugKind:{get(){return Ce(this.kind)}},__debugNodeFlags:{get(){return re(this.flags)}},__debugModifierFlags:{get(){return Ne(bne(this))}},__debugTransformFlags:{get(){return Be(this.transformFlags)}},__debugIsParseTreeNode:{get(){return DN(this)}},__debugEmitFlags:{get(){return lt(Qa(this))}},__debugGetText:{value(ri){if(Os(this))return"";let ai=At.get(this);if(ai===void 0){const qi=jo(this),$o=qi&&Wn(qi);ai=$o?yS($o,qi,ri):"",At.set(this,ai)}return ai}}});gn=!0}e.enableDebugInfo=zt;function Zr($e){const At=$e&7;let mn=At===0?"in out":At===3?"[bivariant]":At===2?"in":At===1?"out":At===4?"[independent]":"";return $e&8?mn+=" (unmeasurable)":$e&16&&(mn+=" (unreliable)"),mn}e.formatVariance=Zr;class Ai{__debugToString(){var At;switch(this.kind){case 3:return((At=this.debugInfo)==null?void 0:At.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return ki(this.sources,this.targets||Vt(this.sources,()=>"any"),(mn,dr)=>`${mn.__debugTypeToString()} -> ${typeof dr=="string"?dr:dr.__debugTypeToString()}`).join(", ");case 2:return ki(this.sources,this.targets,(mn,dr)=>`${mn.__debugTypeToString()} -> ${dr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return j(this)}}}e.DebugTypeMapper=Ai;function Ni($e){return e.isDebugging?Object.setPrototypeOf($e,Ai.prototype):$e}e.attachDebugPrototypeIfDebug=Ni;function Pr($e){return console.log(Ci($e))}e.printControlFlowGraph=Pr;function Ci($e){let At=-1;function mn(Ae){return Ae.id||(Ae.id=At,At--),Ae.id}let dr;(Ae=>{Ae.lr="─",Ae.ud="│",Ae.dr="╭",Ae.dl="╮",Ae.ul="╯",Ae.ur="╰",Ae.udr="├",Ae.udl="┤",Ae.dlr="┬",Ae.ulr="┴",Ae.udlr="╫"})(dr||(dr={}));let ri;(Ae=>{Ae[Ae.None=0]="None",Ae[Ae.Up=1]="Up",Ae[Ae.Down=2]="Down",Ae[Ae.Left=4]="Left",Ae[Ae.Right=8]="Right",Ae[Ae.UpDown=3]="UpDown",Ae[Ae.LeftRight=12]="LeftRight",Ae[Ae.UpLeft=5]="UpLeft",Ae[Ae.UpRight=9]="UpRight",Ae[Ae.DownLeft=6]="DownLeft",Ae[Ae.DownRight=10]="DownRight",Ae[Ae.UpDownLeft=7]="UpDownLeft",Ae[Ae.UpDownRight=11]="UpDownRight",Ae[Ae.UpLeftRight=13]="UpLeftRight",Ae[Ae.DownLeftRight=14]="DownLeftRight",Ae[Ae.UpDownLeftRight=15]="UpDownLeftRight",Ae[Ae.NoChildren=16]="NoChildren"})(ri||(ri={}));const ai=2032,qi=882,$o=Object.create(null),Ia=[],Mn=dt($e,new Set);for(const Ae of Ia)Ae.text=Tr(Ae.flowNode,Ae.circular),Ue(Ae);const Uo=Rt(Mn),ot=It(Uo);return Ot(Mn,0),Oe();function Ft(Ae){return!!(Ae.flags&128)}function le(Ae){return!!(Ae.flags&12)&&!!Ae.antecedent}function ht(Ae){return!!(Ae.flags&ai)}function ne(Ae){return!!(Ae.flags&qi)}function Fe(Ae){const te=[];for(const xt of Ae.edges)xt.source===Ae&&te.push(xt.target);return te}function it(Ae){const te=[];for(const xt of Ae.edges)xt.target===Ae&&te.push(xt.source);return te}function dt(Ae,te){const xt=mn(Ae);let Xt=$o[xt];if(Xt&&te.has(Ae))return Xt.circular=!0,Xt={id:-1,flowNode:Ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Ia.push(Xt),Xt;if(te.add(Ae),!Xt)if($o[xt]=Xt={id:xt,flowNode:Ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Ia.push(Xt),le(Ae))for(const Pe of Ae.antecedent)Lt(Xt,Pe,te);else ht(Ae)&&Lt(Xt,Ae.antecedent,te);return te.delete(Ae),Xt}function Lt(Ae,te,xt){const Xt=dt(te,xt),Pe={source:Ae,target:Xt};Ae.edges.push(Pe),Xt.edges.push(Pe)}function Ue(Ae){if(Ae.level!==-1)return Ae.level;let te=0;for(const xt of it(Ae))te=Math.max(te,Ue(xt)+1);return Ae.level=te}function Rt(Ae){let te=0;for(const xt of Fe(Ae))te=Math.max(te,Rt(xt));return te+1}function It(Ae){const te=he(Array(Ae),0);for(const xt of Ia)te[xt.level]=Math.max(te[xt.level],xt.text.length);return te}function Ot(Ae,te){if(Ae.lane===-1){Ae.lane=te,Ae.endLane=te;const xt=Fe(Ae);for(let Xt=0;Xt0&&te++;const Pe=xt[Xt];Ot(Pe,te),Pe.endLane>Ae.endLane&&(te=Pe.endLane)}Ae.endLane=te}}function nt(Ae){if(Ae&2)return"Start";if(Ae&4)return"Branch";if(Ae&8)return"Loop";if(Ae&16)return"Assignment";if(Ae&32)return"True";if(Ae&64)return"False";if(Ae&128)return"SwitchClause";if(Ae&256)return"ArrayMutation";if(Ae&512)return"Call";if(Ae&1024)return"ReduceLabel";if(Ae&1)return"Unreachable";throw new Error}function Kt(Ae){const te=Wn(Ae);return yS(te,Ae,!1)}function Tr(Ae,te){let xt=nt(Ae.flags);if(te&&(xt=`${xt}#${mn(Ae)}`),Ft(Ae)){const Xt=[],{switchStatement:Pe,clauseStart:gt,clauseEnd:Bt}=Ae.node;for(let gr=gt;grBt.lane)+1,xt=he(Array(te),""),Xt=ot.map(()=>Array(te)),Pe=ot.map(()=>he(Array(te),0));for(const Bt of Ia){Xt[Bt.level][Bt.lane]=Bt;const gr=Fe(Bt);for(let Jn=0;Jn0&&(Mt|=1),Jn0&&(Mt|=1),Jn0?Pe[Bt-1][gr]:0,Jn=gr>0?Pe[Bt][gr-1]:0;let ft=Pe[Bt][gr];ft||(tr&8&&(ft|=12),Jn&2&&(ft|=3),Pe[Bt][gr]=ft)}for(let Bt=0;Bt0?Ae.repeat(te):"";let xt="";for(;xt.length=0,"Invalid argument: major"),C.assert(r>=0,"Invalid argument: minor"),C.assert(i>=0,"Invalid argument: patch");const l=o?Mo(o)?o:o.split("."):ae,u=s?Mo(s)?s:s.split("."):ae;C.assert(Vn(l,d=>EBe.test(d)),"Invalid argument: prerelease"),C.assert(Vn(u,d=>IBe.test(d)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=Jbe(t);if(!r)return;const{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new f8(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:js(this.major,t.major)||js(this.minor,t.minor)||js(this.patch,t.patch)||xBe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new f8(this.major+1,0,0);case"minor":return new f8(this.major,this.minor+1,0);case"patch":return new f8(this.major,this.minor,this.patch+1);default:return C.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 f8(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return yt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),yt(this.build)&&(t+=`+${this.build.join(".")}`),t}};zQ.zero=new zQ(0,0,0,["0"]);var ih=zQ;function Jbe(e){const t=TBe.exec(e);if(!t)return;const[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!SBe.test(s))&&!(l&&!ABe.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function xBe(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=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function Kbe(e){const t=[];for(let r of e.trim().split(RBe)){if(!r)continue;const i=[];r=r.trim();const o=NBe.exec(r);if(o){if(!PBe(o[1],o[2],i))return}else for(const s of r.split(DBe)){const l=MBe.exec(s.trim());if(!l||!LBe(l[1],l[2],i))return}t.push(i)}return t}function BQ(e){const t=CBe.exec(e);if(!t)return;const[,r,i="*",o="*",s,l]=t;return{version:new ih(dm(r)?0:parseInt(r,10),dm(r)||dm(i)?0:parseInt(i,10),dm(r)||dm(i)||dm(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function PBe(e,t,r){const i=BQ(e);if(!i)return!1;const o=BQ(t);return o?(dm(i.major)||r.push(x_(">=",i.version)),dm(o.major)||r.push(dm(o.minor)?x_("<",o.version.increment("major")):dm(o.patch)?x_("<",o.version.increment("minor")):x_("<=",o.version)),!0):!1}function LBe(e,t,r){const i=BQ(t);if(!i)return!1;const{version:o,major:s,minor:l,patch:u}=i;if(dm(s))(e==="<"||e===">")&&r.push(x_("<",ih.zero));else switch(e){case"~":r.push(x_(">=",o)),r.push(x_("<",o.increment(dm(l)?"major":"minor")));break;case"^":r.push(x_(">=",o)),r.push(x_("<",o.increment(o.major>0||dm(l)?"major":o.minor>0||dm(u)?"minor":"patch")));break;case"<":case">=":r.push(dm(l)||dm(u)?x_(e,o.with({prerelease:"0"})):x_(e,o));break;case"<=":case">":r.push(dm(l)?x_(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):dm(u)?x_(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):x_(e,o));break;case"=":case void 0:dm(l)||dm(u)?(r.push(x_(">=",o.with({prerelease:"0"}))),r.push(x_("<",o.increment(dm(l)?"major":"minor").with({prerelease:"0"})))):r.push(x_("=",o));break;default:return!1}return!0}function dm(e){return e==="*"||e==="x"||e==="X"}function x_(e,t){return{operator:e,operand:t}}function kBe(e,t){if(t.length===0)return!0;for(const r of t)if(wBe(e,r))return!0;return!1}function wBe(e,t){for(const r of t)if(!OBe(e,r.operator,r.operand))return!1;return!0}function OBe(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 C.assertNever(t)}}function WBe(e){return Vt(e,FBe).join(" || ")||"*"}function FBe(e){return Vt(e,zBe).join(" ")}function zBe(e){return`${e.operator}${e.operand}`}function BBe(){if(BB(),typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function GBe(){const e=BBe();if(!e)return;const{shouldWriteNativeEvents:t,performance:r}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return typeof r.timeOrigin=="number"&&typeof r.now=="function"&&(i.performanceTime=r),i.performanceTime&&typeof r.mark=="function"&&typeof r.measure=="function"&&typeof r.clearMarks=="function"&&typeof r.clearMeasures=="function"&&(i.performance=r),i}var GQ=GBe(),Xbe=GQ?.performanceTime;function VQ(){return GQ}var Ls=Xbe?()=>Xbe.now():Date.now,jQ={};x(jQ,{clearMarks:()=>tTe,clearMeasures:()=>eTe,createTimer:()=>GB,createTimerIf:()=>Ybe,disable:()=>qQ,enable:()=>jB,forEachMark:()=>Zbe,forEachMeasure:()=>VB,getCount:()=>Qbe,getDuration:()=>gN,isEnabled:()=>HQ,mark:()=>Dl,measure:()=>wf,nullTimer:()=>UQ});var fN,BE;function Ybe(e,t,r,i){return e?GB(t,r,i):UQ}function GB(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&Dl(t)}function s(){--i===0?(Dl(r),wf(e,t,r)):i<0&&C.fail("enter/exit count does not match.")}}var UQ={enter:gs,exit:gs},mN=!1,$be=Ls(),hN=new Map,d2=new Map,_N=new Map;function Dl(e){if(mN){const t=d2.get(e)??0;d2.set(e,t+1),hN.set(e,Ls()),BE?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function wf(e,t,r){if(mN){const i=(r!==void 0?hN.get(r):void 0)??Ls(),o=(t!==void 0?hN.get(t):void 0)??$be,s=_N.get(e)||0;_N.set(e,s+(i-o)),BE?.measure(e,t,r)}}function Qbe(e){return d2.get(e)||0}function gN(e){return _N.get(e)||0}function VB(e){_N.forEach((t,r)=>e(r,t))}function Zbe(e){hN.forEach((t,r)=>e(r))}function eTe(e){e!==void 0?_N.delete(e):_N.clear(),BE?.clearMeasures(e)}function tTe(e){e!==void 0?(d2.delete(e),hN.delete(e)):(d2.clear(),hN.clear()),BE?.clearMarks(e)}function HQ(){return mN}function jB(e=jc){var t;return mN||(mN=!0,fN||(fN=VQ()),fN?.performance&&($be=fN.performance.timeOrigin,(fN.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(BE=fN.performance))),!0}function qQ(){mN&&(hN.clear(),d2.clear(),_N.clear(),BE=void 0,mN=!1)}var xr,u2;(e=>{let t,r=0,i=0,o;const s=[];let l;const u=[];function d(J,Z,q){if(C.assert(!xr,"Tracing already started"),t===void 0)try{t=Wbe("fs")}catch(de){throw new Error(`tracing requires having fs (original error: ${de.message||de})`)}o=J,s.length=0,l===void 0&&(l=Qr(Z,"legend.json")),t.existsSync(Z)||t.mkdirSync(Z,{recursive:!0});const ye=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ie=Qr(Z,`trace${ye}.json`),K=Qr(Z,`types${ye}.json`);u.push({configFilePath:q,tracePath:ie,typesPath:K}),i=t.openSync(ie,"w"),xr=e;const pe={cat:"__metadata",ph:"M",ts:1e3*Ls(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...pe},{name:"thread_name",args:{name:"Main"},...pe},{name:"TracingStartedInBrowser",...pe,cat:"disabled-by-default-devtools.timeline"}].map(de=>JSON.stringify(de)).join(`, `))}e.startTracing=d;function g(){C.assert(xr,"Tracing is not in progress"),C.assert(!!s.length==(o!=="server")),t.writeSync(i,` ] `),t.closeSync(i),xr=void 0,s.length?G(s):u[u.length-1].typesPath=void 0}e.stopTracing=g;function h(J){o!=="server"&&s.push(J)}e.recordType=h,(J=>{J.Parse="parse",J.Program="program",J.Bind="bind",J.Check="check",J.CheckTypes="checkTypes",J.Emit="emit",J.Session="session"})(e.Phase||(e.Phase={}));function y(J,Z,q){W("I",J,Z,q,'"s":"g"')}e.instant=y;const E=[];function A(J,Z,q,ye=!1){ye&&W("B",J,Z,q),E.push({phase:J,name:Z,args:q,time:1e3*Ls(),separateBeginAndEnd:ye})}e.push=A;function R(J){C.assert(E.length>0),k(E.length-1,1e3*Ls(),J),E.length--}e.pop=R;function N(){const J=1e3*Ls();for(let Z=E.length-1;Z>=0;Z--)k(Z,J);E.length=0}e.popAll=N;const P=1e3*10;function k(J,Z,q){const{phase:ye,name:ie,args:K,time:pe,separateBeginAndEnd:de}=E[J];de?(C.assert(!q,"`results` are not supported for events with `separateBeginAndEnd`"),W("E",ye,ie,K,void 0,Z)):P-pe%P<=Z-pe&&W("X",ye,ie,{...K,results:q},`"dur":${Z-pe}`,pe)}function W(J,Z,q,ye,ie,K=1e3*Ls()){o==="server"&&Z==="checkTypes"||(Dl("beginTracing"),t.writeSync(i,`, {"pid":1,"tid":1,"ph":"${J}","cat":"${Z}","ts":${K},"name":"${q}"`),ie&&t.writeSync(i,`,${ie}`),ye&&t.writeSync(i,`,"args":${JSON.stringify(ye)}`),t.writeSync(i,"}"),Dl("endTracing"),wf("Tracing","beginTracing","endTracing"))}function O(J){const Z=Wn(J);return Z?{path:Z.path,start:q(ca(Z,J.pos)),end:q(ca(Z,J.end))}:void 0;function q(ye){return{line:ye.line+1,character:ye.character+1}}}function G(J){var Z,q,ye,ie,K,pe,de,fe,ve,xe,X,Ce,Je,Se,re,be,Ne,Be,lt;Dl("beginDumpTypes");const ce=u[u.length-1].typesPath,Re=t.openSync(ce,"w"),_e=new Map;t.writeSync(Re,"[");const je=J.length;for(let Ge=0;GeNi.id),referenceLocation:O(Ai.node)}}let _t={};if(We.flags&16777216){const Ai=We;_t={conditionalCheckType:(pe=Ai.checkType)==null?void 0:pe.id,conditionalExtendsType:(de=Ai.extendsType)==null?void 0:de.id,conditionalTrueType:((fe=Ai.resolvedTrueType)==null?void 0:fe.id)??-1,conditionalFalseType:((ve=Ai.resolvedFalseType)==null?void 0:ve.id)??-1}}let en={};if(We.flags&33554432){const Ai=We;en={substitutionBaseType:(xe=Ai.baseType)==null?void 0:xe.id,constraintType:(X=Ai.constraint)==null?void 0:X.id}}let ir={};if(at&1024){const Ai=We;ir={reverseMappedSourceType:(Ce=Ai.source)==null?void 0:Ce.id,reverseMappedMappedType:(Je=Ai.mappedType)==null?void 0:Je.id,reverseMappedConstraintType:(Se=Ai.constraintType)==null?void 0:Se.id}}let Di={};if(at&256){const Ai=We;Di={evolvingArrayElementType:Ai.elementType.id,evolvingArrayFinalType:(re=Ai.finalArrayType)==null?void 0:re.id}}let lo;const zt=We.checker.getRecursionIdentity(We);zt&&(lo=_e.get(zt),lo||(lo=_e.size,_e.set(zt,lo)));const Zr={id:We.id,intrinsicName:We.intrinsicName,symbolName:Wt?.escapedName&&Gi(Wt.escapedName),recursionId:lo,isTuple:at&8?!0:void 0,unionTypes:We.flags&1048576?(be=We.types)==null?void 0:be.map(Ai=>Ai.id):void 0,intersectionTypes:We.flags&2097152?We.types.map(Ai=>Ai.id):void 0,aliasTypeArguments:(Ne=We.aliasTypeArguments)==null?void 0:Ne.map(Ai=>Ai.id),keyofType:We.flags&4194304?(Be=We.type)==null?void 0:Be.id:void 0,...gn,...Kn,..._t,...en,...ir,...Di,destructuringPattern:O(We.pattern),firstDeclaration:O((lt=Wt?.declarations)==null?void 0:lt[0]),flags:C.formatTypeFlags(We.flags).split("|"),display:cn};t.writeSync(Re,JSON.stringify(Zr)),Ge(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.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="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=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="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=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(UB||{}),HB=(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))(HB||{}),qB=(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))(qB||{}),XQ=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(XQ||{}),JB=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(JB||{}),YQ=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(YQ||{}),KB=(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))(KB||{}),$Q=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))($Q||{}),QQ=(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.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",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))(QQ||{}),w8=(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))(w8||{}),ZQ=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(ZQ||{}),yN=class{},XB=(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))(XB||{}),eZ=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(eZ||{}),tZ=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(tZ||{}),YB=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(YB||{}),nZ=(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))(nZ||{}),rZ=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(rZ||{}),iZ=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(iZ||{}),oZ=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(oZ||{}),aZ=(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))(aZ||{}),sZ=(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.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(sZ||{}),lZ=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(lZ||{}),cZ=(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))(cZ||{}),dZ=(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))(dZ||{}),uZ=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(uZ||{}),pZ=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(pZ||{}),fZ=(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))(fZ||{}),$B=(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))($B||{}),mZ=(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))(mZ||{}),hZ=(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))(hZ||{}),QB=(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[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(QB||{}),ZB=(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.Reserved2=1073741824]="Reserved2",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.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(ZB||{}),e9=(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.SingleSignatureType=134217728]="SingleSignatureType",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))(e9||{}),_Z=(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))(_Z||{}),gZ=(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))(gZ||{}),yZ=(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.AllowMissing=16]="AllowMissing",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))(yZ||{}),vZ=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(vZ||{}),bZ=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(bZ||{}),TZ=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(TZ||{}),t9=(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))(t9||{}),SZ=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(SZ||{}),EZ=(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))(EZ||{}),AZ=(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))(AZ||{}),IZ=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(IZ||{}),xZ=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(xZ||{}),RZ=(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))(RZ||{}),O8=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(O8||{});function GE(e,t=!0){const r=O8[e.category];return t?r.toLowerCase():r}var RR=(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))(RR||{}),DZ=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(DZ||{}),CZ=(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))(CZ||{}),NZ=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(NZ||{}),MZ=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(MZ||{}),DR=(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.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(DR||{}),PZ=(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))(PZ||{}),LZ=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(LZ||{}),kZ=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(kZ||{}),n9=(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))(n9||{}),wZ=(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.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(wZ||{}),OZ=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(OZ||{}),WZ=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(WZ||{}),FZ=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(FZ||{}),zZ=(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))(zZ||{}),r9=(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))(r9||{}),i9=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(i9||{}),o9=(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))(o9||{}),BZ=(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))(BZ||{}),ed={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},GZ=(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.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="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))(GZ||{}),VZ=(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))(VZ||{}),jZ=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(jZ||{}),UZ=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(UZ||{}),HZ=(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))(HZ||{}),qZ=(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))(qZ||{}),W8={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},{name:"preserve",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}},JZ=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(JZ||{});function p2(e){let t=5381;for(let r=0;r(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(KZ||{}),a9=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(a9||{}),Dp=new Date(0);function QA(e,t){return e.getModifiedTime(t)||Dp}function XZ(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var s9={Low:32,Medium:64,High:256},l9=XZ(s9),F8=XZ(s9);function VBe(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",a9);l9=s("TSC_WATCH_POLLINGCHUNKSIZE",s9)||l9,F8=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",s9)||F8;function r(l,u){return e.getEnvironmentVariable(`${l}_${u.toUpperCase()}`)}function i(l){let u;return d("Low"),d("Medium"),d("High"),u;function d(g){const h=r(l,g);h&&((u||(u={}))[g]=Number(h))}}function o(l,u){const d=i(l);if(d)return g("Low"),g("Medium"),g("High"),!0;return!1;function g(h){u[h]=d[h]||u[h]}}function s(l,u){const d=i(l);return(t||d)&&XZ(d?{...u,...d}:u)}}function rTe(e,t,r,i,o){let s=r;for(let u=t.length;i&&u;l(),u--){const d=t[r];if(d){if(d.isClosed){t[r]=void 0;continue}}else continue;i--;const g=qBe(d,QA(e,d.fileName));if(d.isClosed){t[r]=void 0;continue}o?.(d,r,g),t[r]&&(s{O.isClosed=!0,YA(t,O)}}}function u(P){const k=[];return k.pollingInterval=P,k.pollIndex=0,k.pollScheduled=!1,k}function d(P,k){k.pollIndex=h(k,k.pollingInterval,k.pollIndex,l9[k.pollingInterval]),k.length?N(k.pollingInterval):(C.assert(k.pollIndex===0),k.pollScheduled=!1)}function g(P,k){h(r,250,0,r.length),d(P,k),!k.pollScheduled&&r.length&&N(250)}function h(P,k,W,O){return rTe(e,P,W,O,G);function G(j,J,Z){Z?(j.unchangedPolls=0,P!==r&&(P[J]=void 0,A(j))):j.unchangedPolls!==F8[k]?j.unchangedPolls++:P===r?(j.unchangedPolls=1,P[J]=void 0,E(j,250)):k!==2e3&&(j.unchangedPolls++,P[J]=void 0,E(j,k===250?500:2e3))}}function y(P){switch(P){case 250:return i;case 500:return o;case 2e3:return s}}function E(P,k){y(k).push(P),R(k)}function A(P){r.push(P),R(250)}function R(P){y(P).pollScheduled||N(P)}function N(P){y(P).pollScheduled=e.setTimeout(P===250?g:d,P,P===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(P))}}function UBe(e,t,r,i){const o=cm(),s=i?new Map:void 0,l=new Map,u=Fd(t);return d;function d(h,y,E,A){const R=u(h);o.add(R,y).length===1&&s&&s.set(R,r(h)||Dp);const N=ci(R)||".",P=l.get(N)||g(ci(h)||".",N,A);return P.referenceCount++,{close:()=>{P.referenceCount===1?(P.close(),l.delete(N)):P.referenceCount--,o.remove(R,y)}}}function g(h,y,E){const A=e(h,1,(R,N)=>{if(!Bo(N))return;const P=To(N,h),k=u(P),W=P&&o.get(k);if(W){let O,G=1;if(s){const j=s.get(k);if(R==="change"&&(O=r(P)||Dp,O.getTime()===j.getTime()))return;O||(O=r(P)||Dp),s.set(k,O),j===Dp?G=0:O===Dp&&(G=2)}for(const j of W)j(P,G,O)}},!1,500,E);return A.referenceCount=0,l.set(y,A),A}}function HBe(e){const t=[];let r=0,i;return o;function o(u,d){const g={fileName:u,callback:d,mtime:QA(e,u)};return t.push(g),l(),{close:()=>{g.isClosed=!0,YA(t,g)}}}function s(){i=void 0,r=rTe(e,t,r,l9[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function iTe(e,t,r,i,o){const l=Fd(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((d,g,h)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(E=>E(d,g,h))}),callbacks:[i]}),{close:()=>{const d=e.get(l);d&&(!uN(d.callbacks,i)||d.callbacks.length||(e.delete(l),Kf(d)))}}}function qBe(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,c9(r,i),t),!0):!1}function c9(e,t){return e===0?0:t===0?2:1}var z8=["/node_modules/.","/.git","/.#"],oTe=gs;function B8(e){return oTe(e)}function YZ(e){oTe=e}function JBe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){const d=new Map,g=cm(),h=new Map;let y;const E=IR(!t),A=Fd(t);return(q,ye,ie,K)=>ie?R(q,K,ye):e(q,ye,ie,K);function R(q,ye,ie,K){const pe=A(q);let de=d.get(pe);de?de.refCount++:(de={watcher:e(q,ve=>{var xe;J(ve,ye)||(ye?.synchronousWatchDirectory?((xe=d.get(pe))!=null&&xe.targetWatcher||N(q,pe,ve),j(q,pe,ye)):P(q,pe,ve,ye))},!1,ye),refCount:1,childWatches:ae,targetWatcher:void 0,links:void 0},d.set(pe,de),j(q,pe,ye)),K&&(de.links??(de.links=new Set)).add(K);const fe=ie&&{dirName:q,callback:ie};return fe&&g.add(pe,fe),{dirName:q,close:()=>{var ve;const xe=C.checkDefined(d.get(pe));fe&&g.remove(pe,fe),K&&((ve=xe.links)==null||ve.delete(K)),xe.refCount--,!xe.refCount&&(d.delete(pe),xe.links=void 0,Kf(xe),G(xe),xe.childWatches.forEach(Bm))}}}function N(q,ye,ie,K){var pe,de;let fe,ve;Bo(ie)?fe=ie:ve=ie,g.forEach((xe,X)=>{if(!(ve&&ve.get(X)===!0)&&(X===ye||po(ye,X)&&ye[X.length]===Js))if(ve)if(K){const Ce=ve.get(X);Ce?Ce.push(...K):ve.set(X,K.slice())}else ve.set(X,!0);else xe.forEach(({callback:Ce})=>Ce(fe))}),(de=(pe=d.get(ye))==null?void 0:pe.links)==null||de.forEach(xe=>{const X=Ce=>Qr(xe,cf(q,Ce,A));ve?N(xe,A(xe),ve,K?.map(X)):N(xe,A(xe),X(fe))})}function P(q,ye,ie,K){const pe=d.get(ye);if(pe&&o(q,1)){k(q,ye,ie,K);return}N(q,ye,ie),G(pe),O(pe)}function k(q,ye,ie,K){const pe=h.get(ye);pe?pe.fileNames.push(ie):h.set(ye,{dirName:q,options:K,fileNames:[ie]}),y&&(u(y),y=void 0),y=l(W,1e3,"timerToUpdateChildWatches")}function W(){var q;y=void 0,B8(`sysLog:: onTimerToUpdateChildWatches:: ${h.size}`);const ye=Ls(),ie=new Map;for(;!y&&h.size;){const pe=h.entries().next();C.assert(!pe.done);const{value:[de,{dirName:fe,options:ve,fileNames:xe}]}=pe;h.delete(de);const X=j(fe,de,ve);(q=d.get(de))!=null&&q.targetWatcher||N(fe,de,ie,X?void 0:xe)}B8(`sysLog:: invokingWatchers:: Elapsed:: ${Ls()-ye}ms:: ${h.size}`),g.forEach((pe,de)=>{const fe=ie.get(de);fe&&pe.forEach(({callback:ve,dirName:xe})=>{Mo(fe)?fe.forEach(ve):ve(xe)})});const K=Ls()-ye;B8(`sysLog:: Elapsed:: ${K}ms:: onTimerToUpdateChildWatches:: ${h.size} ${y}`)}function O(q){if(!q)return;const ye=q.childWatches;q.childWatches=ae;for(const ie of ye)ie.close(),O(d.get(A(ie.dirName)))}function G(q){q?.targetWatcher&&(q.targetWatcher.close(),q.targetWatcher=void 0)}function j(q,ye,ie){const K=d.get(ye);if(!K)return!1;const pe=ya(s(q));let de,fe;return E(pe,q)===0?de=L8(o(q,1)?Ui(i(q),X=>{const Ce=To(X,q);return!J(Ce,ie)&&E(Ce,ya(s(Ce)))===0?Ce:void 0}):ae,K.childWatches,(X,Ce)=>E(X,Ce.dirName),ve,Bm,xe):K.targetWatcher&&E(pe,K.targetWatcher.dirName)===0?(de=!1,C.assert(K.childWatches===ae)):(G(K),K.targetWatcher=R(pe,ie,void 0,q),K.childWatches.forEach(Bm),de=!0),K.childWatches=fe||ae,de;function ve(X){const Ce=R(X,ie);xe(Ce)}function xe(X){(fe||(fe=[])).push(X)}}function J(q,ye){return yt(z8,ie=>Z(q,ie))||aTe(q,ye,t,r)}function Z(q,ye){return q.includes(ye)?!0:t?!1:A(q).includes(ye)}}var $Z=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))($Z||{});function KBe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function XBe(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Dp),t(e,s!==Dp?0:2,s)):t(e,1,s)}}function aTe(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(z4(e,t?.excludeFiles,r,i())||z4(e,t?.excludeDirectories,r,i()))}function sTe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){const u=l?ya(Qr(e,l)):e;(!l||!aTe(u,r,i,o))&&t(u)}}}function lTe({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:g,realpath:h,tscWatchFile:y,useNonPollingWatchers:E,tscWatchDirectory:A,inodeWatching:R,fsWatchWithTimestamp:N,sysLog:P}){const k=new Map,W=new Map,O=new Map;let G,j,J,Z,q=!1;return{watchFile:ye,watchDirectory:fe};function ye(re,be,Ne,Be){Be=pe(Be,E);const lt=C.checkDefined(Be.watchFile);switch(lt){case 0:return X(re,be,250,void 0);case 1:return X(re,be,Ne,void 0);case 2:return ie()(re,be,Ne,void 0);case 3:return K()(re,be,void 0,void 0);case 4:return Ce(re,0,XBe(re,be,t),!1,Ne,qw(Be));case 5:return J||(J=UBe(Ce,l,t,N)),J(re,be,Ne,qw(Be));default:C.assertNever(lt)}}function ie(){return G||(G=jBe({getModifiedTime:t,setTimeout:r}))}function K(){return j||(j=HBe({getModifiedTime:t,setTimeout:r}))}function pe(re,be){if(re&&re.watchFile!==void 0)return re;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return de(4,1,re);case"UseFsEventsWithFallbackDynamicPolling":return de(4,2,re);case"UseFsEventsOnParentDirectory":be=!0;default:return be?de(5,1,re):{watchFile:4}}}function de(re,be,Ne){const Be=Ne?.fallbackPolling;return{watchFile:re,fallbackPolling:Be===void 0?be:Be}}function fe(re,be,Ne,Be){return d?Ce(re,1,sTe(re,be,Be,l,u),Ne,500,qw(Be)):(Z||(Z=JBe({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:g,watchDirectory:ve,realpath:h,setTimeout:r,clearTimeout:i})),Z(re,be,Ne,Be))}function ve(re,be,Ne,Be){C.assert(!Ne);const lt=xe(Be),ce=C.checkDefined(lt.watchDirectory);switch(ce){case 1:return X(re,()=>be(re),500,void 0);case 2:return ie()(re,()=>be(re),500,void 0);case 3:return K()(re,()=>be(re),void 0,void 0);case 0:return Ce(re,1,sTe(re,be,Be,l,u),Ne,500,qw(lt));default:C.assertNever(ce)}}function xe(re){if(re&&re.watchDirectory!==void 0)return re;switch(A){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const be=re?.fallbackPolling;return{watchDirectory:0,fallbackPolling:be!==void 0?be:void 0}}}function X(re,be,Ne,Be){return iTe(k,l,re,be,lt=>e(re,lt,Ne,Be))}function Ce(re,be,Ne,Be,lt,ce){return iTe(Be?O:W,l,re,Ne,Re=>Je(re,be,Re,Be,lt,ce))}function Je(re,be,Ne,Be,lt,ce){let Re,_e;R&&(Re=re.substring(re.lastIndexOf(Js)),_e=Re.slice(Js.length));let je=s(re,be)?We():cn();return{close:()=>{je&&(je.close(),je=void 0)}};function Ge(gn){je&&(P(`sysLog:: ${re}:: Changing watcher to ${gn===We?"Present":"Missing"}FileSystemEntryWatcher`),je.close(),je=gn())}function We(){if(q)return P(`sysLog:: ${re}:: Defaulting to watchFile`),Wt();try{const gn=(be===1||!N?o:Se)(re,Be,R?at:Ne);return gn.on("error",()=>{Ne("rename",""),Ge(cn)}),gn}catch(gn){return q||(q=gn.code==="ENOSPC"),P(`sysLog:: ${re}:: Changing to watchFile`),Wt()}}function at(gn,Kn){let _t;if(Kn&&el(Kn,"~")&&(_t=Kn,Kn=Kn.slice(0,Kn.length-1)),gn==="rename"&&(!Kn||Kn===_e||el(Kn,Re))){const en=t(re)||Dp;_t&&Ne(gn,_t,en),Ne(gn,Kn,en),R?Ge(en===Dp?cn:We):en===Dp&&Ge(cn)}else _t&&Ne(gn,_t),Ne(gn,Kn)}function Wt(){return ye(re,KBe(Ne),lt,ce)}function cn(){return ye(re,(gn,Kn,_t)=>{Kn===0&&(_t||(_t=t(re)||Dp),_t!==Dp&&(Ne("rename","",_t),Ge(We)))},lt,ce)}}function Se(re,be,Ne){let Be=t(re)||Dp;return o(re,be,(lt,ce,Re)=>{lt==="change"&&(Re||(Re=t(re)||Dp),Re.getTime()===Be.getTime())||(Be=Re||t(re)||Dp,Ne(lt,ce,Be))})}}function cTe(e){const t=e.writeFile;e.writeFile=(r,i,o)=>qG(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}var jc=(()=>{let e;return BB(),e})();function dTe(e){jc=e}jc&&jc.getEnvironmentVariable&&(VBe(jc),C.setAssertionLevel(/^development$/i.test(jc.getEnvironmentVariable("NODE_ENV"))?1:0)),jc&&jc.debugMode&&(C.isDebugging=!0);var Js="/",G8="\\",uTe="://",YBe=/\\/g;function d9(e){return e===47||e===92}function QZ(e){return V8(e)<0}function Cp(e){return V8(e)>0}function u9(e){const t=V8(e);return t>0&&t===e.length}function vN(e){return V8(e)!==0}function Zp(e){return/^\.\.?(?:$|[\\/])/.test(e)}function p9(e){return!vN(e)&&!Zp(e)}function CR(e){return xc(e).includes(".")}function El(e,t){return e.length>t.length&&el(e,t)}function Ql(e,t){for(const r of t)if(El(e,r))return!0;return!1}function rb(e){return e.length>0&&d9(e.charCodeAt(e.length-1))}function pTe(e){return e>=97&&e<=122||e>=65&&e<=90}function $Be(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 V8(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?Js:G8,2);return i<0?e.length:i+1}if(pTe(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(uTe);if(r!==-1){const i=r+uTe.length,o=e.indexOf(Js,i);if(o!==-1){const s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&pTe(e.charCodeAt(o+1))){const u=$Be(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 zh(e){const t=V8(e);return t<0?~t:t}function ci(e){e=Bd(e);const t=zh(e);return t===e.length?e:(e=Xy(e),e.slice(0,Math.max(t,e.lastIndexOf(Js))))}function xc(e,t,r){if(e=Bd(e),zh(e)===e.length)return"";e=Xy(e);const o=e.slice(Math.max(zh(e),e.lastIndexOf(Js)+1)),s=t!==void 0&&r!==void 0?ZA(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function fTe(e,t,r){if(po(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 QBe(e,t,r){if(typeof t=="string")return fTe(e,t,r)||"";for(const i of t){const o=fTe(e,i,r);if(o)return o}return""}function ZA(e,t,r){if(t)return QBe(Xy(e),t,r?tb:uS);const i=xc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function ZBe(e,t){const r=e.substring(0,t),i=e.substring(t).split(Js);return i.length&&!Zs(i)&&i.pop(),[r,...i]}function zd(e,t=""){return e=Qr(t,e),ZBe(e,zh(e))}function NT(e,t){return e.length===0?"":(e[0]&&Uc(e[0]))+e.slice(1,t).join(Js)}function Bd(e){return e.includes("\\")?e.replace(YBe,Js):e}function eI(e){if(!yt(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=Bd(e));for(let r of t)r&&(r=Bd(r),!e||zh(r)!==0?e=r:e=Uc(e)+r);return e}function ib(e,...t){return ya(yt(t)?Qr(e,...t):Bd(e))}function j8(e,t){return eI(zd(e,t))}function To(e,t){let r=zh(e);r===0&&t?(e=Qr(t,e),r=zh(e)):e=Bd(e);const i=mTe(e);if(i!==void 0)return i.length>r?Xy(i):i;const o=e.length,s=e.substring(0,r);let l,u=r,d=u,g=u,h=r!==0;for(;ud&&(l??(l=e.substring(0,d-1)),d=u);let E=e.indexOf(Js,u+1);E===-1&&(E=o);const A=E-d;if(A===1&&e.charCodeAt(u)===46)l??(l=e.substring(0,g));else if(A===2&&e.charCodeAt(u)===46&&e.charCodeAt(u+1)===46)if(!h)l!==void 0?l+=l.length===r?"..":"/..":g=u+2;else if(l===void 0)g-2>=0?l=e.substring(0,Math.max(r,e.lastIndexOf(Js,g-2))):l=e.substring(0,g);else{const R=l.lastIndexOf(Js);R!==-1?l=l.substring(0,Math.max(r,R)):l=s,l.length===r&&(h=r!==0)}else l!==void 0?(l.length!==r&&(l+=Js),h=!0,l+=e.substring(d,E)):(h=!0,g=E);u=E+1}return l??(o>r?Xy(e):e)}function ya(e){e=Bd(e);let t=mTe(e);return t!==void 0?t:(t=To(e,""),t&&rb(e)?Uc(t):t)}function mTe(e){if(!m9.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!m9.test(e)))return e}function e9e(e){return e.length===0?"":e.slice(1).join(Js)}function f9(e,t){return e9e(j8(e,t))}function ks(e,t,r){const i=Cp(e)?ya(e):To(e,t);return r(i)}function Xy(e){return rb(e)?e.substr(0,e.length-1):e}function Uc(e){return rb(e)?e:e+Js}function VE(e){return!vN(e)&&!Zp(e)?"./"+e:e}function f2(e,t,r,i){const o=r!==void 0&&i!==void 0?ZA(e,r,i):ZA(e);return o?e.slice(0,e.length-o.length)+(po(t,".")?t:"."+t):e}function U8(e,t){const r=I4(e);return r?e.slice(0,e.length-r.length)+(po(t,".")?t:"."+t):f2(e,t)}var m9=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function ZZ(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,zh(e)),o=t.substring(0,zh(t)),s=l2(i,o);if(s!==0)return s;const l=e.substring(i.length),u=t.substring(o.length);if(!m9.test(l)&&!m9.test(u))return r(l,u);const d=eI(zd(e)),g=eI(zd(t)),h=Math.min(d.length,g.length);for(let y=1;y0==zh(t)>0,"Paths must either both be absolute or both be relative");const s=gTe(e,t,(typeof r=="boolean"?r:!1)?tb:uS,typeof r=="function"?r:Vs);return NT(s)}function bN(e,t,r){return Cp(e)?MR(t,e,t,r,!1):e}function NR(e,t,r){return VE(cf(ci(e),t,r))}function MR(e,t,r,i,o){const s=gTe(ib(r,e),ib(r,t),uS,i),l=s[0];if(o&&Cp(l)){const u=l.charAt(0)===Js?"file://":"file:///";s[0]=u+l}return NT(s)}function TN(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=ci(e);if(i===e)return;e=i}}function H8(e){return el(e,"/node_modules")}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={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_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_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 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_ES5:S(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:S(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:S(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting '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."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:S(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),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 }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:S(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:S(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:S(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),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_node18_node20_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', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:S(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),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_node18_node20_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', 'node18', 'node20', 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}'?"),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_node18_node20_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', 'node18', 'node20', '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_node18_node20_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', 'node18', 'node20', '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_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."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:S(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:S(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:S(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:S(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:S(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:S(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:S(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:S(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:S(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:S(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:S(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:S(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:S(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:S(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:S(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:S(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:S(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:S(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:S(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:S(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:S(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:S(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:S(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:S(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:S(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:S(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:S(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:S(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:S(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:S(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:S(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:S(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:S(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:S(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:S(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:S(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:S(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:S(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:S(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:S(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:S(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:S(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:S(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:S(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:S(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:S(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:S(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:S(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:S(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:S(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),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_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}'."),Call_target_does_not_contain_any_signatures:S(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),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_ES5_Consider_using_a_standard_function_expression:S(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in 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_ES5_Consider_using_a_standard_function_or_method:S(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in 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."),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."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:S(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:S(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:S(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:S(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {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_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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 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_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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 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_and_above_with_module_0:S(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above 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_or_class_static_initialization_blocks:S(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),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_node18_node20_nodenext_or_preserve:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', '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_node18_node20_nodenext_or_preserve:S(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', '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_node18_node20_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', 'node18', 'node20', '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."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:S(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:S(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:S(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:S(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:S(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:S(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:S(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:S(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:S(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:S(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:S(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:S(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:S(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),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}'."),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_anonymous_class_type_may_not_be_private_or_protected:S(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type 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."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:S(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:S(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),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}."),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_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}'."),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:S(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),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'."),package_json_has_a_peerDependencies_field:S(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:S(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:S(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:S(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:S(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:S(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:S(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:S(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:S(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:S(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:S(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:S(6294,3,"Recommended_Options_6294","Recommended Options"),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."),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}'..."),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}'"),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}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:S(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:S(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:S(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),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."),Skip_building_downstream_projects_on_error_in_upstream_project:S(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),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."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:S(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:S(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:S(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),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."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:S(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:S(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:S(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:S(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),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_Consider_supplying_a_return_type_annotation:S(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. 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."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:S(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:S(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:S(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:S(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:S(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:S(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:S(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:S(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:S(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:S(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:S(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:S(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:S(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:S(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:S(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:S(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:S(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:S(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:S(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:S(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:S(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:S(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:S(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:S(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:S(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:S(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:S(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:S(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),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"),Update_modifiers_of_0:S(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:S(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:S(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:S(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:S(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:S(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:S(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:S(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:S(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:S(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:S(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),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"),Wrap_in_parentheses:S(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:S(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:S(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:S(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),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."),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."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:S(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:S(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:S(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:S(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:S(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:S(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:S(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function Xu(e){return e>=80}function eee(e){return e===32||Xu(e)}var q8={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,defer:166,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},t9e=new Map(Object.entries(q8)),yTe=new Map(Object.entries({...q8,"{":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})),vTe=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),n9e=new Map([[1,ed.RegularExpressionFlagsHasIndices],[16,ed.RegularExpressionFlagsDotAll],[32,ed.RegularExpressionFlagsUnicode],[64,ed.RegularExpressionFlagsUnicodeSets],[128,ed.RegularExpressionFlagsSticky]]),r9e=[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],i9e=[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],o9e=[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,2160,2183,2185,2190,2208,2249,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,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,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,5905,5919,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,6988,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,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,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,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,43881,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,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,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,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,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,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,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,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,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,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,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,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,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,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],a9e=[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,2160,2183,2185,2190,2200,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,2901,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,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,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,3790,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,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,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,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,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,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,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,43881,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,65381,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,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,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,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,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,70753,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,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,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,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,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,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,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,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,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,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],s9e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,l9e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,c9e=/@(?:see|link)/i;function _9(e,t){if(e=2?_9(e,o9e):_9(e,r9e)}function d9e(e,t){return t>=2?_9(e,a9e):_9(e,i9e)}function bTe(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}var u9e=bTe(yTe);function _a(e){return u9e[e]}function jE(e){return yTe.get(e)}var p9e=bTe(vTe);function TTe(e){return p9e[e]}function g9(e){return vTe.get(e)}function tI(e){const t=[];let r=0,i=0;for(;r127&&Zd(o)&&(t.push(i),i=r);break}}return t.push(i),t}function m2(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):K8(ag(e),t,r,e.text,i)}function K8(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:C.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Qp(e,tI(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 Zd(e){return e===10||e===13||e===8232||e===8233}function LR(e){return e>=48&&e<=57}function tee(e){return LR(e)||e>=65&&e<=70||e>=97&&e<=102}function nee(e){return e>=65&&e<=90||e>=97&&e<=122}function STe(e){return nee(e)||LR(e)||e===95}function ree(e){return e>=48&&e<=55}function iee(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 La(e,t,r,i,o){if(dh(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&&sg(l)){t++;continue}break}return t}}var y9=7;function AN(e,t){if(C.assert(t>=0),t===0||Zd(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+y9=0&&r127&&sg(R)){y&&Zd(R)&&(h=!0),r++;continue}break e}}return y&&(A=o(u,d,g,h,s,A)),A}function _2(e,t,r,i){return v9(!1,e,t,!1,r,i)}function g2(e,t,r,i){return v9(!1,e,t,!0,r,i)}function aee(e,t,r,i,o){return v9(!0,e,t,!1,r,i,o)}function see(e,t,r,i,o){return v9(!0,e,t,!0,r,i,o)}function ITe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function lg(e,t){return aee(e,t,ITe,void 0,void 0)}function ob(e,t){return see(e,t,ITe,void 0,void 0)}function X8(e){const t=oee.exec(e);if(t)return t[0]}function R_(e,t){return nee(e)||e===36||e===95||e>127&&J8(e,t)}function ey(e,t,r){return STe(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&d9e(e,t)}function fp(e,t,r){let i=IN(e,0);if(!R_(i,t))return!1;for(let o=oh(i);oh,getStartPos:()=>h,getTokenEnd:()=>d,getTextPos:()=>d,getToken:()=>E,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,d),getTokenValue:()=>A,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(R&32768)!==0,isIdentifier:()=>E===80||E>118,isReservedWord:()=>E>=83&&E<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>N,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:Ge,reScanAsteriskEqualsToken:We,reScanSlashToken:at,reScanTemplateToken:_t,reScanTemplateHeadOrNoSubstitutionTemplate:en,scanJsxIdentifier:Ai,scanJsxAttributeValue:Ni,reScanJsxAttributeValue:Pr,reScanJsxToken:ir,reScanLessThanToken:Di,reScanHashToken:lo,reScanQuestionToken:zt,reScanInvalidIdentifier:_e,scanJsxToken:Zr,scanJsDocToken:$e,scanJSDocCommentTextToken:Ci,scan:ce,getText:ai,clearCommentDirectives:qi,setText:$o,setScriptTarget:Mn,setLanguageVariant:Uo,setScriptKind:ot,setJSDocParsingMode:Ft,setOnError:Ia,resetTokenState:le,setTextPos:le,setSkipJsDocLeadingAsterisks:ht,tryScan:ri,lookAhead:dr,scanRange:mn};return C.isDebugging&&Object.defineProperty(O,"__debugShowCurrentPositionInText",{get:()=>{const ne=O.getText();return ne.slice(0,O.getTokenFullStart())+"║"+ne.slice(O.getTokenFullStart())}}),O;function G(ne){return IN(u,ne)}function j(ne){return ne>=0&&ne=0&&ne=65&&Rt<=70)Rt+=32;else if(!(Rt>=48&&Rt<=57||Rt>=97&&Rt<=102))break;dt.push(Rt),d++,Ue=!1}return dt.length=g){it+=u.substring(dt,d),R|=4,q(f.Unterminated_string_literal);break}const Lt=J(d);if(Lt===Fe){it+=u.substring(dt,d),d++;break}if(Lt===92&&!ne){it+=u.substring(dt,d),it+=Ce(3),dt=d;continue}if((Lt===10||Lt===13)&&!ne){it+=u.substring(dt,d),R|=4,q(f.Unterminated_string_literal);break}d++}return it}function X(ne){const Fe=J(d)===96;d++;let it=d,dt="",Lt;for(;;){if(d>=g){dt+=u.substring(it,d),R|=4,q(f.Unterminated_template_literal),Lt=Fe?15:18;break}const Ue=J(d);if(Ue===96){dt+=u.substring(it,d),d++,Lt=Fe?15:18;break}if(Ue===36&&d+1=g)return q(f.Unexpected_end_of_text),"";const it=J(d);switch(d++,it){case 48:if(d>=g||!LR(J(d)))return"\0";case 49:case 50:case 51:d=55296&&dt<=56319&&d+6=56320&&It<=57343)return d=Rt,Lt+String.fromCharCode(It)}return Lt;case 120:for(;d1114111&&(ne&&q(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,it,d-it),Ue=!0),d>=g?(ne&&q(f.Unexpected_end_of_text),Ue=!0):J(d)===125?d++:(ne&&q(f.Unterminated_Unicode_escape_sequence),Ue=!0),Ue?(R|=2048,u.substring(Fe,d)):(R|=8,xN(Lt))}function Se(){if(d+5=0&&ey(it,e)){ne+=Je(!0),Fe=d;continue}if(it=Se(),!(it>=0&&ey(it,e)))break;R|=1024,ne+=u.substring(Fe,d),ne+=xN(it),d+=6,Fe=d}else break}return ne+=u.substring(Fe,d),ne}function Ne(){const ne=A.length;if(ne>=2&&ne<=12){const Fe=A.charCodeAt(0);if(Fe>=97&&Fe<=122){const it=t9e.get(A);if(it!==void 0)return E=it}}return E=80}function Be(ne){let Fe="",it=!1,dt=!1;for(;;){const Lt=J(d);if(Lt===95){R|=512,it?(it=!1,dt=!0):q(dt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(it=!0,!LR(Lt)||Lt-48>=ne)break;Fe+=u[d],d++,dt=!1}return J(d-1)===95&&q(f.Numeric_separators_are_not_allowed_here,d-1,1),Fe}function lt(){return J(d)===110?(A+="n",R&384&&(A=AM(A)+"n"),d++,10):(A=""+(R&128?parseInt(A.slice(2),2):R&256?parseInt(A.slice(2),8):+A),9)}function ce(){for(h=d,R=0;;){if(y=d,d>=g)return E=1;const ne=G(d);if(d===0&&ne===35&&ETe(u,d)){if(d=ATe(u,d),t)continue;return E=6}switch(ne){case 10:case 13:if(R|=1,t){d++;continue}else return ne===13&&d+1=0&&R_(Fe,e))return A=Je(!0)+be(),E=Ne();const it=Se();return it>=0&&R_(it,e)?(d+=6,R|=1024,A=String.fromCharCode(it)+be(),E=Ne()):(q(f.Invalid_character),d++,E=0);case 35:if(d!==0&&u[d+1]==="!")return q(f.can_only_be_used_at_the_start_of_a_file,d,2),d++,E=0;const dt=G(d+1);if(dt===92){d++;const Rt=re();if(Rt>=0&&R_(Rt,e))return A="#"+Je(!0)+be(),E=81;const It=Se();if(It>=0&&R_(It,e))return d+=6,R|=1024,A="#"+String.fromCharCode(It)+be(),E=81;d--}return R_(dt,e)?(d++,je(dt,e)):(A="#",q(f.Invalid_character,d++,oh(ne))),E=81;case 65533:return q(f.File_appears_to_be_binary,0,0),d=g,E=8;default:const Lt=je(ne,e);if(Lt)return E=Lt;if(Bh(ne)){d+=oh(ne);continue}else if(Zd(ne)){R|=1,d+=oh(ne);continue}const Ue=oh(ne);return q(f.Invalid_character,d,Ue),d+=Ue,E=0}}}function Re(){switch(W){case 0:return!0;case 1:return!1}return k!==3&&k!==4?!0:W===3?!1:c9e.test(u.slice(h,d))}function _e(){C.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=y=h,R=0;const ne=G(d),Fe=je(ne,99);return Fe?E=Fe:(d+=oh(ne),E)}function je(ne,Fe){let it=ne;if(R_(it,Fe)){for(d+=oh(it);d=g)return E=1;let Fe=J(d);if(Fe===60)return J(d+1)===47?(d+=2,E=31):(d++,E=30);if(Fe===123)return d++,E=19;let it=0;for(;d0)break;sg(Fe)||(it=d)}d++}return A=u.substring(h,d),it===-1?13:12}function Ai(){if(Xu(E)){for(;d=g)return E=1;for(let Fe=J(d);d=0&&Bh(J(d-1))&&!(d+1=g)return E=1;const ne=G(d);switch(d+=oh(ne),ne){case 9:case 11:case 12:case 32:for(;d=0&&R_(Fe,e))return A=Je(!0)+be(),E=Ne();const it=Se();return it>=0&&R_(it,e)?(d+=6,R|=1024,A=String.fromCharCode(it)+be(),E=Ne()):(d++,E=0)}if(R_(ne,e)){let Fe=ne;for(;d=0),d=ne,h=ne,y=ne,E=0,A=void 0,R=0}function ht(ne){P+=ne?1:-1}}function IN(e,t){return e.codePointAt(t)}function oh(e){return e>=65536?2:e===-1?0:1}function f9e(e){if(C.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)}var m9e=String.fromCodePoint?e=>String.fromCodePoint(e):f9e;function xN(e){return m9e(e)}var xTe=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),RTe=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),DTe=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),y2={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};y2.Script_Extensions=y2.Script;function td(e){return Zp(e)||Cp(e)}function kR(e){return dN(e,_M,S6)}var lee=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function v2(e){const t=Ga(e);switch(t){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return lee.get(t);default:return"lib.d.ts"}}function Cl(e){return e.start+e.length}function cee(e){return e.length===0}function b9(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function dee(e,t){return t.start>=e.start&&Cl(t)<=Cl(e)}function T9(e,t){return t.pos>=e.start&&t.end<=Cl(e)}function uee(e,t){return t.start>=e.pos&&Cl(t)<=e.end}function CTe(e,t){return pee(e,t)!==void 0}function pee(e,t){const r=_ee(e,t);return r&&r.length===0?void 0:r}function fee(e,t){return S2(e.start,e.length,t.start,t.length)}function T2(e,t,r){return S2(e.start,e.length,t,r)}function S2(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function mee(e,t){return t<=Cl(e)&&t>=e.start}function hee(e,t){return T2(t,e.pos,e.end-e.pos)}function _ee(e,t){const r=Math.max(e.start,t.start),i=Math.min(Cl(e),Cl(t));return r<=i?oc(r,i):void 0}function S9(e){e=e.filter(i=>i.length>0).sort((i,o)=>i.start!==o.start?i.start-o.start:i.length-o.length);const t=[];let r=0;for(;r=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Gi(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 Kr(e){return Gi(e.escapedText)}function HE(e){const t=jE(e.escapedText);return t?ni(t,ep):void 0}function Ol(e){return e.valueDeclaration&&tu(e.valueDeclaration)?Kr(e.valueDeclaration.name):Gi(e.escapedName)}function MTe(e){const t=e.parent.parent;if(t){if(rd(t))return I9(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return I9(t.declarationList.declarations[0]);break;case 245:let r=t.expression;switch(r.kind===227&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 212:return r.name;case 213:const i=r.argumentExpression;if(He(i))return i}break;case 218:return I9(t.expression);case 257:{if(rd(t.statement)||St(t.statement))return I9(t.statement);break}}}}function I9(e){const t=Oo(e);return t&&He(t)?t:void 0}function A2(e,t){return!!(nd(e)&&He(e.name)&&Kr(e.name)===Kr(t)||sc(e)&&yt(e.declarationList.declarations,r=>A2(r,t)))}function Eee(e){return e.name||MTe(e)}function nd(e){return!!e.name}function $8(e){switch(e.kind){case 80:return e;case 349:case 342:{const{name:r}=e;if(r.kind===167)return r.right;break}case 214:case 227:{const r=e;switch(ac(r)){case 1:case 4:case 5:case 3:return JF(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 347:return Eee(e);case 341:return MTe(e);case 278:{const{expression:r}=e;return He(r)?r:void 0}case 213:const t=e;if(qF(t))return t.argumentExpression}return e.name}function Oo(e){if(e!==void 0)return $8(e)||(Us(e)||Xs(e)||uc(e)?Q8(e):void 0)}function Q8(e){if(e.parent){if(Nc(e.parent)||Ha(e.parent))return e.parent.name;if(Nr(e.parent)&&e===e.parent.right){if(He(e.parent.left))return e.parent.left;if(Ks(e.parent.left))return JF(e.parent.left)}else if(yi(e.parent)&&He(e.parent.name))return e.parent.name}else return}function ab(e){if(pf(e))return Un(e.modifiers,Fc)}function fS(e){if(di(e,98303))return Un(e.modifiers,Aa)}function PTe(e,t){if(e.name)if(He(e.name)){const r=e.name.escapedText;return eF(e.parent,t).filter(i=>mf(i)&&He(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);C.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=eF(e.parent,t).filter(mf);if(rbm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Iee(e){return LTe(e,!1)}function xee(e){return LTe(e,!0)}function Ree(e){return!!pm(e,mf)}function Dee(e){return pm(e,XI)}function Cee(e){return tF(e,h4)}function x9(e){return pm(e,_ie)}function kTe(e){return pm(e,fj)}function Nee(e){return pm(e,fj,!0)}function wTe(e){return pm(e,mj)}function Mee(e){return pm(e,mj,!0)}function OTe(e){return pm(e,hj)}function Pee(e){return pm(e,hj,!0)}function WTe(e){return pm(e,_j)}function Lee(e){return pm(e,_j,!0)}function kee(e){return pm(e,f4,!0)}function R9(e){return pm(e,gj)}function wee(e){return pm(e,gj,!0)}function D9(e){return pm(e,cw)}function Z8(e){return pm(e,yj)}function Oee(e){return pm(e,m4)}function FTe(e){return pm(e,bm)}function C9(e){return pm(e,_4)}function PT(e){const t=pm(e,HM);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Yy(e){let t=pm(e,HM);return!t&&to(e)&&(t=hn(wR(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function I2(e){const t=Oee(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=PT(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(ku(i)){const o=hn(i.members,GI);return o&&o.type}if(w_(i)||RD(i))return i.type}}function eF(e,t){var r;if(!fk(e))return ae;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const o=EG(e,t);C.assert(o.length<2||o[0]!==o[1]),i=Ki(o,s=>mh(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function LT(e){return eF(e,!1)}function pm(e,t,r){return hn(eF(e,r),t)}function tF(e,t){return LT(e).filter(t)}function zTe(e,t){return LT(e).filter(r=>r.kind===t)}function x2(e){return typeof e=="string"?e:e?.map(t=>t.kind===322?t.text:_9e(t)).join("")}function _9e(e){const t=e.kind===325?"link":e.kind===326?"linkcode":"linkplain",r=e.name?Mp(e.name):"",i=e.name&&(e.text===""||e.text.startsWith("://"))?"":" ";return`{@${t} ${r}${i}${e.text}}`}function sb(e){if(pv(e)){if(DD(e.parent)){const t=eD(e.parent);if(t&&et(t.tags))return Ki(t.tags,r=>bm(r)?r.typeParameters:void 0)}return ae}if(hm(e))return C.assert(e.parent.kind===321),Ki(e.parent.tags,t=>bm(t)?t.typeParameters:void 0);if(e.typeParameters||Die(e)&&e.typeParameters)return e.typeParameters;if(Ir(e)){const t=c6(e);if(t.length)return t;const r=Yy(e);if(r&&w_(r)&&r.typeParameters)return r.typeParameters}return ae}function OR(e){return e.constraint?e.constraint:bm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function dg(e){return e.kind===80||e.kind===81}function R2(e){return e.kind===179||e.kind===178}function nF(e){return qr(e)&&!!(e.flags&64)}function N9(e){return Ws(e)&&!!(e.flags&64)}function qE(e){return Zo(e)&&!!(e.flags&64)}function eu(e){const t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function CN(e){return eu(e)&&!qI(e)&&!!e.questionDotToken}function rF(e){return CN(e.parent)&&e.parent.expression===e}function NN(e){return!eu(e.parent)||CN(e.parent)||e!==e.parent.expression}function M9(e){return e.kind===227&&e.operatorToken.kind===61}function Om(e){return Wp(e)&&He(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Wm(e){return Hl(e,8)}function iF(e){return qI(e)&&!!(e.flags&64)}function MN(e){return e.kind===253||e.kind===252}function P9(e){return e.kind===281||e.kind===280}function PN(e){return e.kind===349||e.kind===342}function oF(e){return e>=167}function L9(e){return e>=0&&e<=166}function nI(e){return L9(e.kind)}function mS(e){return Rs(e,"pos")&&Rs(e,"end")}function LN(e){return 9<=e&&e<=15}function JE(e){return LN(e.kind)}function k9(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function lb(e){return 15<=e&&e<=18}function Wee(e){return lb(e.kind)}function aF(e){const t=e.kind;return t===17||t===18}function cb(e){return Su(e)||iu(e)}function WR(e){switch(e.kind){case 277:return e.isTypeOnly||e.parent.parent.phaseModifier===156;case 275:return e.parent.phaseModifier===156;case 274:return e.phaseModifier===156;case 272:return e.isTypeOnly}return!1}function Fee(e){switch(e.kind){case 282:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 279:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 281:return e.parent.isTypeOnly}return!1}function $y(e){return WR(e)||Fee(e)}function zee(e){return Dn(e,$y)!==void 0}function w9(e){return e.kind===11||lb(e.kind)}function Bee(e){return ka(e)||He(e)}function pl(e){var t;return He(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function KE(e){var t;return eo(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function D2(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function tu(e){return(Po(e)||iI(e))&&eo(e.name)}function FR(e){return qr(e)&&eo(e.name)}function db(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 kN(e){return!!(SI(e)&31)}function O9(e){return kN(e)||e===126||e===164||e===129}function Aa(e){return db(e.kind)}function Nu(e){const t=e.kind;return t===167||t===80}function bc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===168}function XE(e){const t=e.kind;return t===80||t===207||t===208}function Yo(e){return!!e&&rI(e.kind)}function zR(e){return!!e&&(rI(e.kind)||Zl(e))}function Ms(e){return e&&BTe(e.kind)}function wN(e){return e.kind===112||e.kind===97}function BTe(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function rI(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return BTe(e)}}function W9(e){return Yi(e)||t_(e)||ea(e)&&Yo(e.parent)}function Tc(e){const t=e.kind;return t===177||t===173||t===175||t===178||t===179||t===182||t===176||t===241}function ui(e){return e&&(e.kind===264||e.kind===232)}function ub(e){return e&&(e.kind===178||e.kind===179)}function Yu(e){return Po(e)&&Kh(e)}function Gee(e){return Ir(e)&&kI(e)?(!ES(e)||!Sb(e.expression))&&!i1(e,!0):e.parent&&ui(e.parent)&&Po(e)&&!Kh(e)}function iI(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function fl(e){return Aa(e)||Fc(e)}function hS(e){const t=e.kind;return t===181||t===180||t===172||t===174||t===182||t===178||t===179||t===355}function sF(e){return hS(e)||Tc(e)}function ny(e){const t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function Ri(e){return uV(e.kind)}function Vee(e){switch(e.kind){case 185:case 186:return!0}return!1}function Qo(e){if(e){const t=e.kind;return t===208||t===207}return!1}function ON(e){const t=e.kind;return t===210||t===211}function lF(e){const t=e.kind;return t===209||t===233}function C2(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function jee(e){return yi(e)||to(e)||M2(e)||P2(e)}function N2(e){return F9(e)||z9(e)}function F9(e){switch(e.kind){case 207:case 211:return!0}return!1}function M2(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function z9(e){switch(e.kind){case 208:case 210:return!0}return!1}function P2(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return id(e,!0)}function Uee(e){const t=e.kind;return t===212||t===167||t===206}function L2(e){const t=e.kind;return t===212||t===167}function B9(e){return _S(e)||Ib(e)}function _S(e){switch(e.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return e.operatorToken.kind===104;default:return!1}}function Gh(e){return e.kind===214||e.kind===215}function oI(e){const t=e.kind;return t===229||t===15}function $u(e){return GTe(Wm(e).kind)}function GTe(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function G9(e){return VTe(Wm(e).kind)}function VTe(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return GTe(e)}}function Hee(e){switch(e.kind){case 226:return!0;case 225:return e.operator===46||e.operator===47;default:return!1}}function qee(e){switch(e.kind){case 106:case 112:case 97:case 225:return!0;default:return JE(e)}}function St(e){return g9e(Wm(e).kind)}function g9e(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return VTe(e)}}function gS(e){const t=e.kind;return t===217||t===235}function pb(e,t){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return t&&pb(e.statement,t)}return!1}function y9e(e){return ll(e)||fc(e)}function Jee(e){return yt(e,y9e)}function cF(e){return!j2(e)&&!ll(e)&&!di(e,32)&&!gu(e)}function k2(e){return j2(e)||ll(e)||di(e,32)}function YE(e){return e.kind===250||e.kind===251}function dF(e){return ea(e)||St(e)}function V9(e){return ea(e)}function Of(e){return _d(e)||St(e)}function Kee(e){const t=e.kind;return t===269||t===268||t===80}function jTe(e){const t=e.kind;return t===269||t===268}function UTe(e){const t=e.kind;return t===80||t===268}function j9(e){const t=e.kind;return t===276||t===275}function w2(e){return e.kind===268||e.kind===267}function ah(e){switch(e.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function D_(e){switch(e.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function v9e(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function Xee(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function Yee(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function rd(e){return e.kind===169?e.parent&&e.parent.kind!==346||Ir(e):v9e(e.kind)}function $ee(e){return Xee(e.kind)}function O2(e){return Yee(e.kind)}function Vi(e){const t=e.kind;return Yee(t)||Xee(t)||b9e(e)}function b9e(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!TS(e)}function Qee(e){const t=e.kind;return Yee(t)||Xee(t)||t===242}function Zee(e){const t=e.kind;return t===284||t===167||t===80}function WN(e){const t=e.kind;return t===110||t===80||t===212||t===296}function W2(e){const t=e.kind;return t===285||t===295||t===286||t===12||t===289}function uF(e){const t=e.kind;return t===292||t===294}function ete(e){const t=e.kind;return t===11||t===295}function nu(e){const t=e.kind;return t===287||t===286}function tte(e){const t=e.kind;return t===287||t===286||t===290}function pF(e){const t=e.kind;return t===297||t===298}function BR(e){return e.kind>=310&&e.kind<=352}function fF(e){return e.kind===321||e.kind===320||e.kind===322||aI(e)||GR(e)||A1(e)||pv(e)}function GR(e){return e.kind>=328&&e.kind<=352}function Vh(e){return e.kind===179}function ug(e){return e.kind===178}function ef(e){if(!fk(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function mF(e){return!!e.type}function Qy(e){return!!e.initializer}function $E(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function U9(e){return e.kind===292||e.kind===294||ny(e)}function hF(e){return e.kind===184||e.kind===234}var HTe=1073741823;function nte(e){let t=HTe;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(ob(l,La(l,s.end+1,!1,!0)),lg(l,e.pos)):ob(l,La(l,e.pos,!1,!0));return yt(u)&&qTe(Ba(u),t)}const i=r&&pG(r,t);return!!Ye(i,o=>qTe(o,t))}var q9=[],fb="tslib",FN=160,J9=1e6,ite=500;function al(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function ote(e,t){return Un(e.declarations||ae,r=>r.kind===t)}function da(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function pg(e){return(e.flags&33554432)!==0}function sI(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var _F=T9e();function T9e(){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&&sg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:gs,decreaseIndent:gs,clear:()=>e=""}}function gF(e,t){return e.configFilePath!==t.configFilePath||S9e(e,t)}function S9e(e,t){return lI(e,t,Bj)}function ate(e,t){return lI(e,t,Yie)}function lI(e,t,r){return e!==t&&r.some(i=>!F6(x6(e,i),x6(t,i)))}function ste(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Yi(e))return;e=e.parent}}function Hc(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function fg(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function yF(e,t){e.forEach((r,i)=>{t.set(i,r)})}function VR(e){const t=_F.getText();try{return e(_F),_F.getText()}finally{_F.clear(),_F.writeKeyword(t)}}function F2(e){return e.end-e.pos}function K9(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function lte(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&&E9e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function cI(e){return e.resolvedModule}function vF(e){return e.resolvedTypeReferenceDirective}function bF(e,t,r,i,o){var s;const l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(ru(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(Rg+"@types/")?`@types/${BD(o)}`:o]]),d=u?qo(void 0,u[0],...u[1]):t.typesPackageExists(o)?qo(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,BD(o)):t.packageBundlesTypes(o)?qo(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):qo(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,BD(o));return d&&(d.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),d}function X9(e){const t=Sg(e.fileName),r=e.packageJsonScope,i=t===".ts"?".mts":t===".js"?".mjs":void 0,o=r&&!r.contents.packageJsonContent.type?i?qo(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,i,Qr(r.packageDirectory,"package.json")):qo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Qr(r.packageDirectory,"package.json")):i?qo(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,i):qo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return o.repopulateInfo=()=>!0,o}function E9e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function TF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function kT(e){return`${TF(e)}@${e.version}${e.peerDependencies??""}`}function cte(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 Y9(e,t,r,i){C.assert(e.length===t.length);for(let o=0;o=0),ag(t)[e]}function JTe(e){const t=Wn(e),r=ca(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function B2(e,t){C.assert(e>=0);const r=ag(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(C.assert(Zd(o.charCodeAt(l)));s<=l&&Zd(o.charCodeAt(l));)l--;return l}}function SF(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Wl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function fm(e){return!Wl(e)}function ute(e,t){return sl(e)?t===e.expression:Zl(e)?t===e.modifiers:Tu(e)?t===e.initializer:Po(e)?t===e.questionToken&&Yu(e):Nc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||G2(e.modifiers,t,fl):Ud(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||G2(e.modifiers,t,fl):Ml(e)?t===e.exclamationToken:Pl(e)?t===e.typeParameters||t===e.type||G2(e.typeParameters,t,sl):Hf(e)?t===e.typeParameters||G2(e.typeParameters,t,sl):gp(e)?t===e.typeParameters||t===e.type||G2(e.typeParameters,t,sl):lw(e)?t===e.modifiers||G2(e.modifiers,t,fl):!1}function G2(e,t,r){return!e||Mo(t)||!r(t)?!1:jn(e,t)}function KTe(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${ca(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Co(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 hb(e,t,r){if(Wl(e))return e.pos;if(BR(e)||e.kind===12)return La((t??Wn(e)).text,e.pos,!1,!0);if(r&&ef(e))return hb(e.jsDoc[0],t);if(e.kind===353){t??(t=Wn(e));const i=Ic(vj(e,t));if(i)return hb(i,t,r)}return La((t??Wn(e)).text,e.pos,!1,!1,JN(e))}function Z9(e,t){const r=!Wl(e)&&Tm(e)?ga(e.modifiers,Fc):void 0;return r?La((t||Wn(e)).text,r.end):hb(e,t)}function fte(e,t){const r=!Wl(e)&&Tm(e)&&e.modifiers?Ba(e.modifiers):void 0;return r?La((t||Wn(e)).text,r.end):hb(e,t)}function yS(e,t,r=!1){return BN(e.text,t,r)}function I9e(e){return!!Dn(e,e0)}function AF(e){return!!(fc(e)&&e.exportClause&&O_(e.exportClause)&&N_(e.exportClause.name))}function _b(e){return e.kind===11?e.text:Gi(e.escapedText)}function vS(e){return e.kind===11?Nl(e.text):e.escapedText}function N_(e){return(e.kind===11?e.text:e.escapedText)==="default"}function BN(e,t,r=!1){if(Wl(t))return"";let i=e.substring(r?t.pos:La(e,t.pos),t.end);return I9e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` `)),i}function Al(e,t=!1){return yS(Wn(e),e,t)}function x9e(e){return e.pos}function jR(e,t){return $v(e,t,x9e,js)}function Qa(e){const t=e.emitNode;return t&&t.flags||0}function Fm(e){const t=e.emitNode;return t&&t.internalFlags||0}var eG=Cu(()=>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","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:ae})),AsyncIterator:new Map(Object.entries({es2015:ae})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:ae})),AsyncIterableIterator:new Map(Object.entries({es2018:ae})),AsyncGenerator:new Map(Object.entries({es2018:ae})),AsyncGeneratorFunction:new Map(Object.entries({es2018:ae})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),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"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),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"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),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"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:ae,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"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:ae})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:ae})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:ae,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:ae,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),mte=(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))(mte||{});function hte(e,t,r){if(t&&R9e(e,r))return yS(t,e);switch(e.kind){case 11:{const i=r&2?BG:r&1||Qa(e)&16777216?k_:t6;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=r&1||Qa(e)&16777216?k_:t6,o=e.rawText??FG(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 C.fail(`Literal kind '${e.kind}' not accounted for.`)}function R9e(e,t){if(Os(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(np(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!gD(e)}function _te(e){return Bo(e)?`"${k_(e)}"`:""+e}function gte(e){return xc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function tG(e){return(ty(e)&7)!==0||nG(e)}function nG(e){const t=Jh(e);return t.kind===261&&t.parent.kind===300}function gu(e){return pc(e)&&(e.name.kind===11||M_(e))}function IF(e){return pc(e)&&e.name.kind===11}function rG(e){return pc(e)&&ka(e.name)}function D9e(e){return pc(e)||He(e)}function V2(e){return C9e(e.valueDeclaration)}function C9e(e){return!!e&&e.kind===268&&!e.body}function yte(e){return e.kind===308||e.kind===268||zR(e)}function M_(e){return!!(e.flags&2048)}function bS(e){return gu(e)&&iG(e)}function iG(e){switch(e.parent.kind){case 308:return Bc(e.parent);case 269:return gu(e.parent.parent)&&Yi(e.parent.parent.parent)&&!Bc(e.parent.parent.parent)}return!1}function oG(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!bS(r)&&!(pc(r)&&M_(r)))}function N9e(e){return e===1||100<=e&&e<=199}function UR(e,t){return Bc(e)||N9e(vu(t))&&!!e.commonJsModuleIndicator}function aG(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(Vd(t,"alwaysStrict")||Iie(e.statements)||Bc(e)||ym(t))}function sG(e){return!!(e.flags&33554432)||di(e,128)}function lG(e,t){switch(e.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!zR(t)}return!1}function cG(e){switch(C.type(e),e.kind){case 339:case 347:case 324:return!0;default:return dG(e)}}function dG(e){switch(C.type(e),e.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function uI(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function vte(e){return uI(e)||SS(e)}function bte(e){return uI(e)||rk(e)}function xF(e){switch(e.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function Tte(e){return j2(e)||pc(e)||e_(e)||Qu(e)}function j2(e){return uI(e)||fc(e)}function RF(e){return Dn(e.parent,t=>!!(mU(t)&1))}function sh(e){return Dn(e.parent,t=>lG(t,t.parent))}function Ste(e,t){let r=sh(e);for(;r;)t(r),r=sh(r)}function ws(e){return!e||F2(e)===0?"(Missing)":Al(e)}function Ete(e){return e.declaration?ws(e.declaration.parameters[0].name):void 0}function U2(e){return e.kind===168&&!uf(e.expression)}function GN(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 10:case 15:return Nl(e.text);case 168:return uf(e.expression)?Nl(e.expression.text):void 0;case 296:return LI(e);default:return C.assertNever(e)}}function pI(e){return C.checkDefined(GN(e))}function Mp(e){switch(e.kind){case 110:return"this";case 81:case 80:return F2(e)===0?Kr(e):Al(e);case 167:return Mp(e.left)+"."+Mp(e.right);case 212:return He(e.name)||eo(e.name)?Mp(e.expression)+"."+Mp(e.name):C.assertNever(e.name);case 312:return Mp(e.left)+"#"+Mp(e.right);case 296:return Mp(e.namespace)+":"+Mp(e.name);default:return C.assertNever(e)}}function Ar(e,t,...r){const i=Wn(e);return Wf(i,e,t,...r)}function HR(e,t,r,...i){const o=La(e.text,t.pos);return Wc(e,o,t.end-o,r,...i)}function Wf(e,t,r,...i){const o=ZE(e,t);return Wc(e,o.start,o.length,r,...i)}function hg(e,t,r,i){const o=ZE(e,t);return DF(e,o.start,o.length,r,i)}function H2(e,t,r,i){const o=La(e.text,t.pos);return DF(e,o,t.end-o,r,i)}function Ate(e,t,r){C.assertGreaterThanOrEqual(t,0),C.assertGreaterThanOrEqual(r,0),C.assertLessThanOrEqual(t,e.length),C.assertLessThanOrEqual(t+r,e.length)}function DF(e,t,r,i,o){return Ate(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o,canonicalHead:i.canonicalHead}}function uG(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 Ite(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function xte(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function Rte(e,...t){return{code:e.code,messageText:DI(e,...t)}}function jh(e,t){const r=cg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return oc(i,r.getTokenEnd())}function Dte(e,t){const r=cg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function M9e(e,t){const r=La(e.text,t.pos);if(t.body&&t.body.kind===242){const{line:i}=ca(e,t.body.pos),{line:o}=ca(e,t.body.end);if(i0?t.statements[0].pos:t.end;return oc(s,l)}case 254:case 230:{const s=La(e.text,t.pos);return jh(e,s)}case 239:{const s=La(e.text,t.expression.end);return jh(e,s)}case 351:{const s=La(e.text,t.tagName.pos);return jh(e,s)}case 177:{const s=t,l=La(e.text,s.pos),u=cg(e.languageVersion,!0,e.languageVariant,e.text,void 0,l);let d=u.scan();for(;d!==137&&d!==1;)d=u.scan();const g=u.getTokenEnd();return oc(l,g)}}if(r===void 0)return jh(e,t.pos);C.assert(!mh(r));const i=Wl(r),o=i||WI(t)?r.pos:La(e.text,r.pos);return i?(C.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(C.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),oc(o,r.end)}function Zy(e){return e.kind===308&&!Pp(e)}function Pp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Ff(e){return e.scriptKind===6}function wT(e){return!!(MT(e)&4096)}function q2(e){return!!(MT(e)&8&&!Np(e,e.parent))}function J2(e){return(ty(e)&7)===6}function K2(e){return(ty(e)&7)===4}function qR(e){return(ty(e)&7)===2}function Cte(e){const t=ty(e)&7;return t===2||t===4||t===6}function CF(e){return(ty(e)&7)===1}function e1(e){return e.kind===214&&e.expression.kind===108}function Qu(e){if(e.kind!==214)return!1;const t=e.expression;return t.kind===102||b1(t)&&t.keywordToken===102&&t.name.escapedText==="defer"}function JR(e){return b1(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function ry(e){return e_(e)&&dv(e.argument)&&ka(e.argument.literal)}function Uh(e){return e.kind===245&&e.expression.kind===11}function X2(e){return!!(Qa(e)&2097152)}function NF(e){return X2(e)&&ec(e)}function P9e(e){return He(e.name)&&!e.initializer}function MF(e){return X2(e)&&sc(e)&&Vn(e.declarationList.declarations,P9e)}function pG(e,t){return e.kind!==12?lg(t.text,e.pos):void 0}function fG(e,t){const r=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?so(ob(t,e.pos),lg(t,e.pos)):lg(t,e.pos);return Un(r,i=>i.end<=e.end&&t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}var L9e=/^\/\/\/\s*/,k9e=/^\/\/\/\s*/,w9e=/^\/\/\/\s*/,O9e=/^\/\/\/\s*/,W9e=/^\/\/\/\s*/,F9e=/^\/\/\/\s*/;function Hh(e){if(183<=e.kind&&e.kind<=206)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!==223;case 234:return QTe(e);case 169:return e.parent.kind===201||e.parent.kind===196;case 80:(e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e)&&(e=e.parent),C.assert(e.kind===80||e.kind===167||e.kind===212,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{const{parent:t}=e;if(t.kind===187)return!1;if(t.kind===206)return!t.isTypeOf;if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 234:return QTe(t);case 169:return e===t.constraint;case 346:return e===t.constraint;case 173:case 172:case 170:case 261:return e===t.type;case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:return e===t.type;case 180:case 181:case 182:return e===t.type;case 217:return e===t.type;case 214:case 215:case 216:return jn(t.typeArguments,e)}}}return!1}function QTe(e){return h4(e.parent)||XI(e.parent)||Fp(e.parent)&&!p6(e)}function gb(e,t){return r(e);function r(i){switch(i.kind){case 254:return t(i);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return Jo(i,r)}}}function Nte(e,t){return r(e);function r(i){switch(i.kind){case 230:t(i);const o=i.expression;o&&r(o);return;case 267:case 265:case 268:case 266:return;default:if(Yo(i)){if(i.name&&i.name.kind===168){r(i.name.expression);return}}else Hh(i)||Jo(i,r)}}}function mG(e){return e&&e.kind===189?e.elementType:e&&e.kind===184?og(e.typeArguments):void 0}function Mte(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function VN(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function jN(e){return e.parent.kind===262&&e.parent.parent.kind===244}function Pte(e){return Ir(e)?Wa(e.parent)&&Nr(e.parent.parent)&&ac(e.parent.parent)===2||PF(e.parent):!1}function PF(e){return Ir(e)?Nr(e)&&ac(e)===1:!1}function Lte(e){return(yi(e)?qR(e)&&He(e.name)&&jN(e):Po(e)?c1(e)&&Oc(e):Tu(e)&&c1(e))||PF(e)}function kte(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function hG(e,t){for(;;){if(t&&t(e),e.statement.kind!==257)return e.statement;e=e.statement}}function TS(e){return e&&e.kind===242&&Yo(e.parent)}function mm(e){return e&&e.kind===175&&e.parent.kind===211}function LF(e){return(e.kind===175||e.kind===178||e.kind===179)&&(e.parent.kind===211||e.parent.kind===232)}function wte(e){return e&&e.kind===1}function Ote(e){return e&&e.kind===0}function KR(e,t,r,i){return Ye(e?.properties,o=>{if(!Nc(o))return;const s=GN(o.name);return t===s||i&&i===s?r(o):void 0})}function UN(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ni(t,Wa)}}function kF(e,t,r){return Y2(e,t,i=>Cd(i.initializer)?hn(i.initializer.elements,o=>ka(o)&&o.text===r):void 0)}function Y2(e,t,r){return KR(UN(e),t,r)}function df(e){return Dn(e.parent,Yo)}function Wte(e){return Dn(e.parent,Ms)}function hd(e){return Dn(e.parent,ui)}function Fte(e){return Dn(e.parent,t=>ui(t)||Yo(t)?"quit":Zl(t))}function wF(e){return Dn(e.parent,zR)}function OF(e){const t=Dn(e.parent,r=>ui(r)?"quit":Fc(r));return t&&ui(t.parent)?hd(t.parent):hd(t??e)}function yu(e,t,r){for(C.assert(e.kind!==308);;){if(e=e.parent,!e)return C.fail();switch(e.kind){case 168:if(r&&ui(e.parent.parent))return e;e=e.parent.parent;break;case 171:e.parent.kind===170&&Tc(e.parent.parent)?e=e.parent.parent:Tc(e.parent)&&(e=e.parent);break;case 220:if(!t)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return e}}}function zte(e){switch(e.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(e.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function WF(e){He(e)&&(Cc(e.parent)||ec(e.parent))&&e.parent.name===e&&(e=e.parent);const t=yu(e,!0,!1);return Yi(t)}function Bte(e){const t=yu(e,!1,!1);if(t)switch(t.kind){case 177:case 263:case 219:return t}}function $2(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 168:e=e.parent;break;case 263:case 219:case 220:if(!t)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return e;case 171:e.parent.kind===170&&Tc(e.parent.parent)?e=e.parent.parent:Tc(e.parent)&&(e=e.parent);break}}}function OT(e){if(e.kind===219||e.kind===220){let t=e,r=e.parent;for(;r.kind===218;)t=r,r=r.parent;if(r.kind===214&&r.expression===t)return r}}function mp(e){const t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function Q2(e){const t=e.kind;return(t===212||t===213)&&e.expression.kind===110}function FF(e){var t;return!!e&&yi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Gte(e){return!!e&&(Ud(e)||Nc(e))&&Nr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function Z2(e){switch(e.kind){case 184:return e.typeName;case 234:return Ds(e.expression)?e.expression:void 0;case 80:case 167:return e}}function zF(e){switch(e.kind){case 216:return e.tag;case 287:case 286:return e.tagName;case 227:return e.right;case 290:return e;default:return e.expression}}function ek(e,t,r,i){if(e&&nd(t)&&eo(t.name))return!1;switch(t.kind){case 264:return!0;case 232:return!e;case 173:return r!==void 0&&(e?Cc(r):ui(r)&&!MS(t)&&!YG(t));case 178:case 179:case 175:return t.body!==void 0&&r!==void 0&&(e?Cc(r):ui(r));case 170:return e?r!==void 0&&r.body!==void 0&&(r.kind===177||r.kind===175||r.kind===179)&&DS(r)!==t&&i!==void 0&&i.kind===264:!1}return!1}function XR(e,t,r,i){return pf(t)&&ek(e,t,r,i)}function tk(e,t,r,i){return XR(e,t,r,i)||HN(e,t,r)}function HN(e,t,r){switch(t.kind){case 264:return yt(t.members,i=>tk(e,i,t,r));case 232:return!e&&yt(t.members,i=>tk(e,i,t,r));case 175:case 179:case 177:return yt(t.parameters,i=>XR(e,i,t,r));default:return!1}}function ev(e,t){if(XR(e,t))return!0;const r=yg(t);return!!r&&HN(e,r,t)}function _G(e,t,r){let i;if(ub(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:l}=NS(r.members,t),u=pf(o)?o:s&&pf(s)?s:void 0;if(!u||t!==u)return!1;i=l?.parameters}else Ml(t)&&(i=t.parameters);if(XR(e,t,r))return!0;if(i){for(const o of i)if(!bb(o)&&XR(e,o,t,r))return!0}return!1}function gG(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return gG(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function YR(e){const{parent:t}=e;return t.kind===287||t.kind===286||t.kind===288?t.tagName===e:!1}function P_(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!Qu(e.parent)||e.parent.expression!==e;case 234:return!Fp(e.parent)&&!XI(e.parent);case 167:for(;e.parent.kind===167;)e=e.parent;return e.parent.kind===187||aI(e.parent)||UM(e.parent)||t0(e.parent)||YR(e);case 312:for(;t0(e.parent);)e=e.parent;return e.parent.kind===187||aI(e.parent)||UM(e.parent)||t0(e.parent)||YR(e);case 81:return Nr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===187||aI(e.parent)||UM(e.parent)||t0(e.parent)||YR(e))return!0;case 9:case 10:case 11:case 15:case 110:return BF(e);default:return!1}}function BF(e){const{parent:t}=e;switch(t.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return t.initializer===e;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return t.expression===e;case 249:const r=t;return r.initializer===e&&r.initializer.kind!==262||r.condition===e||r.incrementor===e;case 250:case 251:const i=t;return i.initializer===e&&i.initializer.kind!==262||i.expression===e;case 217:case 235:return e===t.expression;case 240:return e===t.expression;case 168:return e===t.expression;case 171:case 295:case 294:case 306:return!0;case 234:return t.expression===e&&!Hh(t);case 305:return t.objectAssignmentInitializer===e;case 239:return e===t.expression;default:return P_(t)}}function GF(e){for(;e.kind===167||e.kind===80;)e=e.parent;return e.kind===187}function Vte(e){return O_(e)&&!!e.parent.moduleSpecifier}function WT(e){return e.kind===272&&e.moduleReference.kind===284}function qN(e){return C.assert(WT(e)),e.moduleReference.expression}function yG(e){return SS(e)&&cD(e.initializer).arguments[0]}function t1(e){return e.kind===272&&e.moduleReference.kind!==284}function _g(e){return e?.kind===308}function Mu(e){return Ir(e)}function Ir(e){return!!e&&!!(e.flags&524288)}function VF(e){return!!e&&!!(e.flags&134217728)}function jF(e){return!Ff(e)}function JN(e){return!!e&&!!(e.flags&16777216)}function UF(e){return Wp(e)&&He(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Zu(e,t){if(e.kind!==214)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||ds(o)}function nk(e){return ZTe(e,!1)}function SS(e){return ZTe(e,!0)}function jte(e){return Ha(e)&&SS(e.parent.parent)}function ZTe(e,t){return yi(e)&&!!e.initializer&&Zu(t?cD(e.initializer):e.initializer,!0)}function rk(e){return sc(e)&&e.declarationList.declarations.length>0&&Vn(e.declarationList.declarations,t=>nk(t))}function ik(e){return e===39||e===34}function HF(e,t){return yS(t,e).charCodeAt(0)===34}function KN(e){return Nr(e)||Ks(e)||He(e)||Zo(e)}function ok(e){return Ir(e)&&e.initializer&&Nr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Ds(e.name)&&$R(e.name,e.initializer.left)?e.initializer.right:e.initializer}function XN(e){const t=ok(e);return t&&FT(t,Sb(e.name))}function z9e(e,t){return Ye(e.properties,r=>Nc(r)&&He(r.name)&&r.name.escapedText==="value"&&r.initializer&&FT(r.initializer,t))}function fI(e){if(e&&e.parent&&Nr(e.parent)&&e.parent.operatorToken.kind===64){const t=Sb(e.parent.left);return FT(e.parent.right,t)||B9e(e.parent.left,e.parent.right,t)}if(e&&Zo(e)&&r1(e)){const t=z9e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function FT(e,t){if(Zo(e)){const r=us(e.expression);return r.kind===219||r.kind===220?e:void 0}if(e.kind===219||e.kind===232||e.kind===220||Wa(e)&&(e.properties.length===0||t))return e}function B9e(e,t,r){const i=Nr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&FT(t.right,r);if(i&&$R(e,t.left))return i}function Ute(e){const t=yi(e.parent)?e.parent.name:Nr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&FT(e.right,Sb(t))&&Ds(t)&&$R(t,e.left)}function vG(e){if(Nr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Nr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&He(t.left))return t.left}else if(yi(e.parent))return e.parent.name}function $R(e,t){return qh(e)&&qh(t)?zf(e)===zf(t):dg(e)&&Hte(t)&&(t.expression.kind===110||He(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?$R(e,sk(t)):Hte(e)&&Hte(t)?iy(e)===iy(t)&&$R(e.expression,t.expression):!1}function ak(e){for(;id(e,!0);)e=e.right;return e}function n1(e){return He(e)&&e.escapedText==="exports"}function bG(e){return He(e)&&e.escapedText==="module"}function gg(e){return(qr(e)||TG(e))&&bG(e.expression)&&iy(e)==="exports"}function ac(e){const t=G9e(e);return t===5||Ir(e)?t:0}function r1(e){return et(e.arguments)===3&&qr(e.expression)&&He(e.expression.expression)&&Kr(e.expression.expression)==="Object"&&Kr(e.expression.name)==="defineProperty"&&uf(e.arguments[1])&&i1(e.arguments[0],!0)}function Hte(e){return qr(e)||TG(e)}function TG(e){return Ws(e)&&uf(e.argumentExpression)}function ES(e,t){return qr(e)&&(!t&&e.expression.kind===110||He(e.name)&&i1(e.expression,!0))||qF(e,t)}function qF(e,t){return TG(e)&&(!t&&e.expression.kind===110||Ds(e.expression)||ES(e.expression,!0))}function i1(e,t){return Ds(e)||ES(e,t)}function sk(e){return qr(e)?e.name:e.argumentExpression}function G9e(e){if(Zo(e)){if(!r1(e))return 0;const t=e.arguments[0];return n1(t)||gg(t)?8:ES(t)&&iy(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ks(e.left)||V9e(ak(e))?0:i1(e.left.expression,!0)&&iy(e.left)==="prototype"&&Wa(SG(e))?6:lk(e.left)}function V9e(e){return HI(e)&&np(e.expression)&&e.expression.text==="0"}function JF(e){if(qr(e))return e.name;const t=us(e.argumentExpression);return np(t)||ds(t)?t:e}function iy(e){const t=JF(e);if(t){if(He(t))return t.escapedText;if(ds(t)||np(t))return Nl(t.text)}}function lk(e){if(e.expression.kind===110)return 4;if(gg(e))return 2;if(i1(e.expression,!0)){if(Sb(e.expression))return 3;let t=e;for(;!He(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&iy(t)==="exports")&&ES(e))return 1;if(i1(e,!0)||Ws(e)&&ZF(e))return 5}return 0}function SG(e){for(;Nr(e.right);)e=e.right;return e.right}function ck(e){return Nr(e)&&ac(e)===3}function qte(e){return Ir(e)&&e.parent&&e.parent.kind===245&&(!Ws(e)||TG(e))&&!!PT(e.parent)}function YN(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Ir(t)&&!(r.flags&33554432))&&KN(r)&&!KN(t)||r.kind!==t.kind&&D9e(r))&&(e.valueDeclaration=t)}function Jte(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===263||yi(t)&&t.initializer&&Yo(t.initializer)}function Kte(e){switch(e?.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function mI(e){var t,r;switch(e.kind){case 261:case 209:return(t=Dn(e.initializer,i=>Zu(i,!0)))==null?void 0:t.arguments[0];case 273:case 279:case 352:return ni(e.moduleSpecifier,ds);case 272:return ni((r=ni(e.moduleReference,uy))==null?void 0:r.expression,ds);case 274:case 281:return ni(e.parent.moduleSpecifier,ds);case 275:case 282:return ni(e.parent.parent.moduleSpecifier,ds);case 277:return ni(e.parent.parent.parent.moduleSpecifier,ds);case 206:return ry(e)?e.argument.literal:void 0;default:C.assertNever(e)}}function $N(e){return dk(e)||C.failBadSyntaxKind(e.parent)}function dk(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return Qu(e.parent)||Zu(e.parent,!1)?e.parent:void 0;case 202:if(!ka(e))break;return ni(e.parent.parent,e_);default:return}}function uk(e,t){return!!t.rewriteRelativeImportExtensions&&Zp(e)&&!ad(e)&&u1(e)}function hI(e){switch(e.kind){case 273:case 279:case 352:return e.moduleSpecifier;case 272:return e.moduleReference.kind===284?e.moduleReference.expression:void 0;case 206:return ry(e)?e.argument.literal:void 0;case 214:return e.arguments[0];case 268:return e.name.kind===11?e.name:void 0;default:return C.assertNever(e)}}function QR(e){switch(e.kind){case 273:return e.importClause&&ni(e.importClause.namedBindings,Ig);case 272:return e;case 279:return e.exportClause&&ni(e.exportClause,O_);default:return C.assertNever(e)}}function o1(e){return(e.kind===273||e.kind===352)&&!!e.importClause&&!!e.importClause.name}function Xte(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=Ig(e.namedBindings)?t(e.namedBindings):Ye(e.namedBindings.elements,t);if(r)return r}}function _I(e){switch(e.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return e.questionToken!==void 0}return!1}function gI(e){const t=RD(e)?Ic(e.parameters):void 0,r=ni(t&&t.name,He);return!!r&&r.escapedText==="new"}function hm(e){return e.kind===347||e.kind===339||e.kind===341}function pk(e){return hm(e)||vm(e)}function j9e(e){return od(e)&&Nr(e.expression)&&e.expression.operatorToken.kind===64?ak(e.expression):void 0}function e0e(e){return od(e)&&Nr(e.expression)&&ac(e.expression)!==0&&Nr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function t0e(e){switch(e.kind){case 244:const t=yI(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function yI(e){return sc(e)?Ic(e.declarationList.declarations):void 0}function n0e(e){return pc(e)&&e.body&&e.body.kind===268?e.body:void 0}function ZR(e){if(e.kind>=244&&e.kind<=260)return!0;switch(e.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function fk(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function EG(e,t){let r;VN(e)&&Qy(e)&&ef(e.initializer)&&(r=Xr(r,r0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(ef(i)&&(r=Xr(r,r0e(e,i.jsDoc))),i.kind===170){r=Xr(r,(t?Aee:wR)(i));break}if(i.kind===169){r=Xr(r,(t?xee:Iee)(i));break}i=AG(i)}return r||ae}function r0e(e,t){const r=Ba(t);return Ki(t,i=>{if(i===r){const o=Un(i.tags,s=>U9e(e,s));return i.tags===o?[i]:o}else return Un(i.tags,DD)})}function U9e(e,t){return!(HM(t)||_4(t))||!t.parent||!mh(t.parent)||!wu(t.parent.parent)||t.parent.parent===e}function AG(e){const t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||n0e(t)||id(e))return t;if(t.parent&&(yI(t.parent)===e||id(t)))return t.parent;if(t.parent&&t.parent.parent&&(yI(t.parent.parent)||t0e(t.parent.parent)===e||e0e(t.parent.parent)))return t.parent.parent}function mk(e){if(e.symbol)return e.symbol;if(!He(e.name))return;const t=e.name.escapedText,r=zT(e);if(!r)return;const i=hn(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function KF(e){if(mh(e.parent)&&e.parent.tags){const t=hn(e.parent.tags,hm);if(t)return t}return zT(e)}function IG(e){return tF(e,DD)}function zT(e){const t=BT(e);if(t)return Tu(t)&&t.type&&Yo(t.type)?t.type:Yo(t)?t:void 0}function BT(e){const t=AS(e);if(t)return e0e(t)||j9e(t)||t0e(t)||yI(t)||n0e(t)||t}function AS(e){const t=eD(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===Zs(r.jsDoc))return r}function eD(e){return Dn(e.parent,mh)}function Yte(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&hn(r,i=>i.name.escapedText===t)}function i0e(e){return!!e.typeArguments}var $te=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))($te||{});function Qte(e){let t=e.parent;for(;;){switch(t.kind){case 227:const r=t,i=r.operatorToken.kind;return sy(i)&&r.left===e?r:void 0;case 225:case 226:const o=t,s=o.operator;return s===46||s===47?o:void 0;case 250:case 251:const l=t;return l.initializer===e?l:void 0;case 218:case 210:case 231:case 236:e=t;break;case 306:e=t.parent;break;case 305:if(t.name!==e)return;e=t.parent;break;case 304:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function yb(e){const t=Qte(e);if(!t)return 0;switch(t.kind){case 227:const r=t.operatorToken.kind;return r===64||cM(r)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function vb(e){return!!Qte(e)}function H9e(e){const t=us(e.right);return t.kind===227&&Nj(t.operatorToken.kind)}function xG(e){const t=Qte(e);return!!t&&id(t,!0)&&H9e(t)}function Zte(e){switch(e.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function a1(e){return Us(e)||Xs(e)||iI(e)||ec(e)||Pl(e)}function o0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function hk(e){return o0e(e,197)}function zm(e){return o0e(e,218)}function ene(e){let t;for(;e&&e.kind===197;)t=e,e=e.parent;return[t,e]}function QN(e){for(;g1(e);)e=e.type;return e}function us(e,t){return Hl(e,t?-2147483647:1)}function RG(e){return e.kind!==212&&e.kind!==213?!1:(e=zm(e.parent),e&&e.kind===221)}function IS(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function L_(e){return!Yi(e)&&!Qo(e)&&rd(e.parent)&&e.parent.name===e}function ZN(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(va(t))return t.parent;case 80:if(rd(t))return t.name===e?t:void 0;if(Lu(t)){const r=t.parent;return mf(r)&&r.name===t?r:void 0}else{const r=t.parent;return Nr(r)&&ac(r)!==0&&(r.left.symbol||r.symbol)&&Oo(r)===e?r:void 0}case 81:return rd(t)&&t.name===e?t:void 0;default:return}}function _k(e){return uf(e)&&e.parent.kind===168&&rd(e.parent.parent)}function tne(e){const t=e.parent;switch(t.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return t.name===e;case 167:return t.right===e;case 209:case 277:return t.propertyName===e;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function DG(e){switch(e.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return e.parent;case 167:do e=e.parent;while(e.parent.kind===167);return DG(e)}}function XF(e){return Ds(e)||uc(e)}function gk(e){const t=CG(e);return XF(t)}function CG(e){return ll(e)?e.expression:e.right}function nne(e){return e.kind===305?e.name:e.kind===304?e.initializer:e.parent.right}function lh(e){const t=xS(e);if(t&&Ir(e)){const r=Dee(e);if(r)return r.class}return t}function xS(e){const t=yk(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function tD(e){if(Ir(e))return Cee(e).map(t=>t.class);{const t=yk(e.heritageClauses,119);return t?.types}}function eM(e){return gd(e)?tM(e)||ae:ui(e)&&so($A(lh(e)),tD(e))||ae}function tM(e){const t=yk(e.heritageClauses,96);return t?t.types:void 0}function yk(e,t){if(e){for(const r of e)if(r.token===t)return r}}function GT(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function ep(e){return 83<=e&&e<=166}function NG(e){return 19<=e&&e<=79}function YF(e){return ep(e)||NG(e)}function $F(e){return 128<=e&&e<=166}function MG(e){return ep(e)&&!$F(e)}function vI(e){const t=jE(e);return t!==void 0&&MG(t)}function PG(e){const t=HE(e);return!!t&&!$F(t)}function nD(e){return 2<=e&&e<=7}var rne=(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))(rne||{});function dc(e){if(!e)return 4;let t=0;switch(e.kind){case 263:case 219:case 175:e.asteriskToken&&(t|=1);case 220:di(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function nM(e){switch(e.kind){case 263:case 219:case 220:case 175:return e.body!==void 0&&e.asteriskToken===void 0&&di(e,1024)}return!1}function uf(e){return ds(e)||np(e)}function QF(e){return XT(e)&&(e.operator===40||e.operator===41)&&np(e.operand)}function oy(e){const t=Oo(e);return!!t&&ZF(t)}function ZF(e){if(!(e.kind===168||e.kind===213))return!1;const t=Ws(e)?us(e.argumentExpression):e.expression;return!uf(t)&&!QF(t)}function s1(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return Nl(e.text);case 168:const t=e.expression;return uf(t)?Nl(t.text):QF(t)?t.operator===41?_a(t.operator)+t.operand.text:t.operand.text:void 0;case 296:return LI(e);default:return C.assertNever(e)}}function qh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function zf(e){return dg(e)?Kr(e):fh(e)?NM(e):e.text}function rM(e){return dg(e)?e.escapedText:fh(e)?LI(e):Nl(e.text)}function vk(e,t){return`__#${Ta(e)}@${t}`}function iM(e){return po(e.escapedName,"__@")}function ine(e){return po(e.escapedName,"__#")}function q9e(e){return He(e)?Kr(e)==="__proto__":ka(e)&&e.text==="__proto__"}function e6(e,t){switch(e=Hl(e),e.kind){case 232:if(WU(e))return!1;break;case 219:if(e.name)return!1;break;case 220:break;default:return!1}return typeof t=="function"?t(e):!0}function LG(e){switch(e.kind){case 304:return!q9e(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return He(e.name)&&!!e.initializer;case 170:return He(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 209:return He(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 173:return!!e.initializer;case 227:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return He(e.left)}break;case 278:return!0}return!1}function Lp(e,t){if(!LG(e))return!1;switch(e.kind){case 304:return e6(e.initializer,t);case 305:return e6(e.objectAssignmentInitializer,t);case 261:case 170:case 209:case 173:return e6(e.initializer,t);case 227:return e6(e.right,t);case 278:return e6(e.expression,t)}}function kG(e){return e.escapedText==="push"||e.escapedText==="unshift"}function VT(e){return Jh(e).kind===170}function Jh(e){for(;e.kind===209;)e=e.parent.parent;return e}function wG(e){const t=e.kind;return t===177||t===219||t===263||t===220||t===175||t===178||t===179||t===268||t===308}function Os(e){return dh(e.pos)||dh(e.end)}var one=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(one||{});function OG(e){const t=a0e(e),r=e.kind===215&&e.arguments!==void 0;return WG(e.kind,t,r)}function WG(e,t,r){switch(e){case 215:return r?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227: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 oM(e){const t=a0e(e),r=e.kind===215&&e.arguments!==void 0;return bk(e.kind,t,r)}function a0e(e){return e.kind===227?e.operatorToken.kind:e.kind===225||e.kind===226?e.operator:e.kind}var ane=(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.LogicalOR=5]="LogicalOR",e[e.Coalesce=5]="Coalesce",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))(ane||{});function bk(e,t,r){switch(e){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Tk(t)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return r?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function Tk(e){switch(e){case 61:return 5;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 rD(e){return Un(e,t=>{switch(t.kind){case 295:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function aM(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(d){let g;if(d.file?g=r.get(d.file.fileName):g=e,!g)return;const h=$v(g,d,Vs,Gne);if(h>=0)return g[h];if(~h>0&&S6(d,g[~h-1]))return g[~h-1]}function s(d){let g;d.file?(g=r.get(d.file.fileName),g||(g=[],r.set(d.file.fileName,g),Xv(t,d.file.fileName,Wd))):(i&&(i=!1,e=e.slice()),g=e),Xv(g,d,Gne,S6)}function l(){return i=!0,e}function u(d){if(d)return r.get(d)||[];const g=vc(t,h=>r.get(h));return e.length&&g.unshift(...e),g}}var J9e=/\$\{/g;function FG(e){return e.replace(J9e,"\\${")}function sne(e){return!!((e.templateFlags||0)&2048)}function zG(e){return e&&!!(h1(e)?sne(e):sne(e.head)||yt(e.templateSpans,t=>sne(t.literal)))}var K9e=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,X9e=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,Y9e=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,$9e=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function s0e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Q9e(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return $9e.get(e)||s0e(e.charCodeAt(0))}function k_(e,t){const r=t===96?Y9e:t===39?X9e:K9e;return e.replace(r,Q9e)}var l0e=/[^\u0000-\u007F]/g;function t6(e,t){return e=k_(e,t),l0e.test(e)?e.replace(l0e,r=>s0e(r.charCodeAt(0))):e}var Z9e=/["\u0000-\u001f\u2028\u2029\u0085]/g,eGe=/['\u0000-\u001f\u2028\u2029\u0085]/g,tGe=new Map(Object.entries({'"':""","'":"'"}));function nGe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function rGe(e){return e.charCodeAt(0)===0?"�":tGe.get(e)||nGe(e.charCodeAt(0))}function BG(e,t){const r=t===39?eGe:Z9e;return e.replace(r,rGe)}function _m(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&iGe(e.charCodeAt(0))?e.substring(1,t-1):e}function iGe(e){return e===39||e===34||e===96}function iD(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Sk=[""," "];function n6(e){const t=Sk[1];for(let r=Sk.length;r<=e;r++)Sk.push(Sk[r-1]+t);return Sk[e]}function Ek(){return Sk[1].length}function Ak(e){var t,r,i,o,s,l=!1;function u(N){const P=tI(N);P.length>1?(o=o+P.length-1,s=t.length-N.length+Ba(P),i=s-t.length===0):i=!1}function d(N){N&&N.length&&(i&&(N=n6(r)+N,i=!1),t+=N,u(N))}function g(N){N&&(l=!1),d(N)}function h(N){N&&(l=!0),d(N)}function y(){t="",r=0,i=!0,o=0,s=0,l=!1}function E(N){N!==void 0&&(t+=N,u(N),l=!1)}function A(N){N&&N.length&&g(N)}function R(N){(!i||N)&&(t+=e,o++,s=t.length,i=!0,l=!1)}return y(),{write:g,rawWrite:E,writeLiteral:A,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*Ek():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&sg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(N,P)=>g(N),writeTrailingSemicolon:g,writeComment:h}}function GG(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 l1(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function ay(e){return Fd(l1(e))}function VG(e,t,r){return t.moduleName||jG(e,t.fileName,r&&r.fileName)}function c0e(e,t){return e.getCanonicalFileName(To(t,e.getCurrentDirectory()))}function lne(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=hI(r);if(!(o&&ds(o)&&!Zp(o.text)&&!c0e(e,i.path).includes(c0e(e,Uc(e.getCommonSourceDirectory())))))return VG(e,i)}function jG(e,t,r){const i=d=>e.getCanonicalFileName(d),o=ks(r?ci(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=To(t,e.getCurrentDirectory()),l=MR(o,s,o,i,!1),u=bu(l);return r?VE(u):u}function cne(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=bu(s6(e,t,i.outDir)):o=bu(e),o+r}function dne(e,t){return r6(e,t.getCompilerOptions(),t)}function r6(e,t,r){const i=t.declarationDir||t.outDir,o=i?une(e,i,r.getCurrentDirectory(),r.getCommonSourceDirectory(),l=>r.getCanonicalFileName(l)):e,s=i6(o);return bu(o)+s}function i6(e){return Ql(e,[".mjs",".mts"])?".d.mts":Ql(e,[".cjs",".cts"])?".d.cts":Ql(e,[".json"])?".d.json.ts":".d.ts"}function UG(e){return Ql(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Ql(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Ql(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function HG(e,t,r,i){return r?ib(i(),cf(r,e,t)):e}function o6(e,t){var r;if(e.paths)return e.baseUrl??C.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function a6(e,t,r){const i=e.getCompilerOptions();if(i.outFile){const o=vu(i),s=i.emitDeclarationOnly||o===2||o===4;return Un(e.getSourceFiles(),l=>(s||!Bc(l))&&RS(l,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return Un(o,s=>RS(s,e,r))}}function RS(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&Mu(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Ff(e))return!0;if(t.getRedirectFromSourceFile(e.fileName))return!1;if(i.outFile)return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const o=To(mP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=une(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Zg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function s6(e,t,r){return une(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function une(e,t,r,i,o){let s=To(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Qr(t,s)}function l6(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Il(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function d0e(e,t,r){if(e.length>zh(e)&&!r(e)){const i=ci(e);d0e(i,t,r),t(e)}}function qG(e,t,r,i,o,s){try{i(e,t,r)}catch{d0e(ci(ya(e)),o,s),i(e,t,r)}}function sM(e,t){const r=ag(e);return SN(r,t)}function oD(e,t){return SN(e,t)}function yg(e){return hn(e.members,t=>Pl(t)&&fm(t.body))}function lM(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&bb(e.parameters[0]);return e.parameters[t?1:0]}}function pne(e){const t=lM(e);return t&&t.type}function DS(e){if(e.parameters.length&&!pv(e)){const t=e.parameters[0];if(bb(t))return t}}function bb(e){return Tb(e.name)}function Tb(e){return!!e&&e.kind===80&&JG(e)}function bI(e){return!!Dn(e,t=>t.kind===187?!0:t.kind===80||t.kind===167?!1:"quit")}function CS(e){if(!Tb(e))return!1;for(;Lu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===187}function JG(e){return e.escapedText==="this"}function NS(e,t){let r,i,o,s;return oy(t)?(r=t,t.kind===178?o=t:t.kind===179?s=t:C.fail("Accessor has wrong kind")):Ye(e,l=>{if(ub(l)&&ua(l)===ua(t)){const u=s1(l.name),d=s1(t.name);u===d&&(r?i||(i=l):r=l,l.kind===178&&!o&&(o=l),l.kind===179&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function Rc(e){if(!Ir(e)&&ec(e)||vm(e))return;const t=e.type;return t||!Ir(e)?t:PN(e)?e.typeExpression&&e.typeExpression.type:Yy(e)}function fne(e){return e.type}function kp(e){return pv(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Ir(e)?I2(e):void 0)}function c6(e){return Ki(LT(e),t=>oGe(t)?t.typeParameters:void 0)}function oGe(e){return bm(e)&&!(e.parent.kind===321&&(e.parent.tags.some(hm)||e.parent.tags.some(DD)))}function KG(e){const t=lM(e);return t&&Rc(t)}function aGe(e,t,r,i){sGe(e,t,r.pos,i)}function sGe(e,t,r,i){i&&i.length&&r!==i[0].pos&&oD(e,r)!==oD(e,i[0].pos)&&t.writeLine()}function mne(e,t,r,i){r!==i&&oD(e,r)!==oD(e,i)&&t.writeLine()}function lGe(e,t,r,i,o,s,l,u){if(i&&i.length>0){let d=!1;for(const g of i)d&&(r.writeSpace(" "),d=!1),u(e,t,r,g.pos,g.end,l),g.hasTrailingNewLine?r.writeLine():d=!0;d&&s&&r.writeSpace(" ")}}function hne(e,t,r,i,o,s,l){let u,d;if(l?o.pos===0&&(u=Un(lg(e,o.pos),g)):u=lg(e,o.pos),u){const h=[];let y;for(const E of u){if(y){const A=oD(t,y.end);if(oD(t,E.pos)>=A+2)break}h.push(E),y=E}if(h.length){const E=oD(t,Ba(h).end);oD(t,La(e,o.pos))>=E+2&&(aGe(t,r,o,u),lGe(e,t,r,h,!1,!0,s,i),d={nodePos:o.pos,detachedCommentEndPos:Ba(h).end})}}return d;function g(h){return EF(e,h.pos)}}function aD(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const l=PR(t,i),u=t.length;let d;for(let g=i,h=l.line;g0){let R=A%Ek();const N=n6((A-R)/Ek());for(r.rawWrite(N);R;)r.rawWrite(" "),R--}else r.rawWrite("")}cGe(e,o,r,s,g,y),g=y}}else r.writeComment(e.substring(i,o))}function cGe(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 u0e(e,t,r){let i=0;for(;t=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=$G(e)|536870912),r||t&&Ir(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=p0e(e)|268435456),f0e(e.modifierFlagsCache)):dGe(e.modifierFlagsCache))}function Gd(e){return yne(e,!0)}function vne(e){return yne(e,!0,!0)}function tv(e){return yne(e,!1)}function p0e(e){let t=0;return e.parent&&!to(e)&&(Ir(e)&&(Nee(e)&&(t|=8388608),Mee(e)&&(t|=16777216),Pee(e)&&(t|=33554432),Lee(e)&&(t|=67108864),kee(e)&&(t|=134217728)),wee(e)&&(t|=65536)),t}function dGe(e){return e&65535}function f0e(e){return e&131071|(e&260046848)>>>23}function uGe(e){return f0e(p0e(e))}function bne(e){return $G(e)|uGe(e)}function $G(e){let t=Tm(e)?Xh(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Xh(e){let t=0;if(e)for(const r of e)t|=SI(r.kind);return t}function SI(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 171:return 32768}return 0}function Ik(e){return e===57||e===56}function Tne(e){return Ik(e)||e===54}function cM(e){return e===76||e===77||e===78}function QG(e){return Nr(e)&&cM(e.operatorToken.kind)}function u6(e){return Ik(e)||e===61}function xk(e){return Nr(e)&&u6(e.operatorToken.kind)}function sy(e){return e>=64&&e<=79}function ZG(e){const t=eV(e);return t&&!t.isImplements?t.class:void 0}function eV(e){if(dy(e)){if(Fp(e.parent)&&ui(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(XI(e.parent)){const t=BT(e.parent);if(t&&ui(t))return{class:t,isImplements:!1}}}}function id(e,t){return Nr(e)&&(t?e.operatorToken.kind===64:sy(e.operatorToken.kind))&&$u(e.left)}function nv(e){if(id(e,!0)){const t=e.left.kind;return t===211||t===210}return!1}function p6(e){return ZG(e)!==void 0}function Ds(e){return e.kind===80||Dk(e)}function Pu(e){switch(e.kind){case 80:return e;case 167:do e=e.left;while(e.kind!==80);return e;case 212:do e=e.expression;while(e.kind!==80);return e}}function Rk(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===237||e.kind===212&&Rk(e.expression)||e.kind===218&&Rk(e.expression)}function Dk(e){return qr(e)&&He(e.name)&&Ds(e.expression)}function Ck(e){if(qr(e)){const t=Ck(e.expression);if(t!==void 0)return t+"."+Mp(e.name)}else if(Ws(e)){const t=Ck(e.expression);if(t!==void 0&&bc(e.argumentExpression))return t+"."+s1(e.argumentExpression)}else{if(He(e))return Gi(e.escapedText);if(fh(e))return NM(e)}}function Sb(e){return ES(e)&&iy(e)==="prototype"}function dM(e){return e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e||e.parent.kind===237&&e.parent.name===e}function tV(e){return!!e.parent&&(qr(e.parent)&&e.parent.name===e||Ws(e.parent)&&e.parent.argumentExpression===e)}function Sne(e){return Lu(e.parent)&&e.parent.right===e||qr(e.parent)&&e.parent.name===e||t0(e.parent)&&e.parent.right===e}function f6(e){return Nr(e)&&e.operatorToken.kind===104}function Ene(e){return f6(e.parent)&&e===e.parent.right}function nV(e){return e.kind===211&&e.properties.length===0}function Ane(e){return e.kind===210&&e.elements.length===0}function uM(e){if(!(!pGe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function pGe(e){return e&&et(e.declarations)>0&&di(e.declarations[0],2048)}function m6(e){return hn(BGe,t=>El(e,t))}function fGe(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)):C.assert(!1,"Unexpected code point")}return t}var EI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ine(e){let t="";const r=fGe(e);let i=0;const o=r.length;let s,l,u,d;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,d=r[i+2]&63,i+1>=o?u=d=64:i+2>=o&&(d=64),t+=EI.charAt(s)+EI.charAt(l)+EI.charAt(u)+EI.charAt(d),i+=3;return t}function mGe(e){let t="",r=0;const i=e.length;for(;r>4&3,h=(l&15)<<4|u>>2&15,y=(u&3)<<6|d&63;h===0&&u!==0?i.push(g):y===0&&d!==0?i.push(g,h):i.push(g,h,y),o+=4}return mGe(i)}function rV(e,t){const r=Bo(t)?t:t.readFile(e);if(!r)return;let i=Nk(r);if(i===void 0){const o=Hj(e,r);o.error||(i=o.config)}return i}function sD(e,t){return rV(e,t)||{}}function Nk(e){try{return JSON.parse(e)}catch{return}}function ch(e,t){return!t.directoryExists||t.directoryExists(e)}var hGe=`\r `,_Ge=` `;function rv(e){switch(e.newLine){case 0:return hGe;case 1:case void 0:return _Ge}}function Bf(e,t=e){return C.assert(t>=e||t===-1),{pos:e,end:t}}function h6(e,t){return Bf(e.pos,t)}function jT(e,t){return Bf(t,e.end)}function ly(e){const t=Tm(e)?ga(e.modifiers,Fc):void 0;return t&&!dh(t.end)?jT(e,t.end):e}function Yh(e){if(Po(e)||Ml(e))return jT(e,e.name.pos);const t=Tm(e)?Zs(e.modifiers):void 0;return t&&!dh(t.end)?jT(e,t.end):ly(e)}function iV(e,t){return Bf(e,e+_a(t).length)}function d1(e,t){return Cne(e,e,t)}function _6(e,t,r){return Gf(pM(e,r,!1),pM(t,r,!1),r)}function Dne(e,t,r){return Gf(e.end,t.end,r)}function Cne(e,t,r){return Gf(pM(e,r,!1),t.end,r)}function Mk(e,t,r){return Gf(e.end,pM(t,r,!1),r)}function oV(e,t,r,i){const o=pM(t,r,i);return EN(r,e.end,o)}function m0e(e,t,r){return EN(r,e.end,t.end)}function Nne(e,t){return!Gf(e.pos,e.end,t)}function Gf(e,t,r){return EN(r,e,t)===0}function pM(e,t,r){return dh(e.pos)?-1:La(t.text,e.pos,!1,r)}function Mne(e,t,r,i){const o=La(r.text,e,!1,i),s=gGe(o,t,r);return EN(r,s??t,o)}function Pne(e,t,r,i){const o=La(r.text,e,!1,i);return EN(r,e,Math.min(t,o))}function tp(e,t){return aV(e.pos,e.end,t)}function aV(e,t,r){return e<=r.pos&&t>=r.end}function gGe(e,t=0,r){for(;e-- >t;)if(!sg(r.text.charCodeAt(e)))return e}function sV(e){const t=jo(e);if(t)switch(t.parent.kind){case 267:case 268:return t===t.parent.name}return!1}function fM(e){return Un(e.declarations,Pk)}function Pk(e){return yi(e)&&e.initializer!==void 0}function lV(e){return e.watch&&Rs(e,"watch")}function Bm(e){e.close()}function Fl(e){return e.flags&33554432?e.links.checkFlags:0}function Vf(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&hn(e.declarations,gp)||e.flags&32768&&hn(e.declarations,Hf)||e.valueDeclaration,i=MT(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Fl(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 xd(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function lD(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function g6(e){return mM(e)===1}function AI(e){return mM(e)!==0}function mM(e){const{parent:t}=e;switch(t?.kind){case 218:return mM(t);case 226:case 225:const{operator:r}=t;return r===46||r===47?2:0;case 227:const{left:i,operatorToken:o}=t;return i===e&&sy(o.kind)?o.kind===64?1:2:0;case 212:return t.name!==e?0:mM(t);case 304:{const s=mM(t.parent);return e===t.name?yGe(s):s}case 305:return e===t.objectAssignmentInitializer?0:mM(t.parent);case 210:return mM(t);case 250:case 251:return e===t.initializer?1:0;default:return 0}}function yGe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return C.assertNever(e)}}function cV(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(!cV(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function hp(e,t){e.forEach(t),e.clear()}function vg(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 hM(e,t,r){vg(e,t,r);const{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Lne(e){if(e.flags&32){const t=cy(e);return!!t&&di(t,64)}return!1}function cy(e){var t;return(t=e.declarations)==null?void 0:t.find(ui)}function Hr(e){return e.flags&3899393?e.objectFlags:0}function y6(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&lw(e.declarations[0])}function kne({moduleSpecifier:e}){return ka(e)?e.text:Al(e)}function dV(e){let t;return Jo(e,r=>{fm(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(fm(r[i])){t=r[i];break}}),t}function gm(e,t){return e.has(t)?!1:(e.add(t),!0)}function II(e){return ui(e)||gd(e)||ku(e)}function uV(e){return e>=183&&e<=206||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===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function Ks(e){return e.kind===212||e.kind===213}function pV(e){return e.kind===212?e.name:(C.assert(e.kind===213),e.argumentExpression)}function v6(e){return e.kind===276||e.kind===280}function cD(e){for(;Ks(e);)e=e.expression;return e}function wne(e,t){if(Ks(e.parent)&&tV(e))return r(e.parent);function r(i){if(i.kind===212){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===213)if(He(i.argumentExpression)||ds(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(Ks(i.expression))return r(i.expression);if(He(i.expression))return t(i.expression)}}function dD(e,t){for(;;){switch(e.kind){case 226:e=e.operand;continue;case 227:e=e.left;continue;case 228:e=e.condition;continue;case 216:e=e.tag;continue;case 214:if(t)return e;case 235:case 213:case 212:case 236:case 356:case 239:e=e.expression;continue}return e}}function vGe(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 bGe(e,t){this.flags=t,(C.isDebugging||xr)&&(this.checker=e)}function TGe(e,t){this.flags=t,C.isDebugging&&(this.checker=e)}function One(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 SGe(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 EGe(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 AGe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}var Rd={getNodeConstructor:()=>One,getTokenConstructor:()=>SGe,getIdentifierConstructor:()=>EGe,getPrivateIdentifierConstructor:()=>One,getSourceFileConstructor:()=>One,getSymbolConstructor:()=>vGe,getTypeConstructor:()=>bGe,getSignatureConstructor:()=>TGe,getSourceMapSourceConstructor:()=>AGe},h0e=[];function _0e(e){h0e.push(e),e(Rd)}function Wne(e){Object.assign(Rd,e),Ye(h0e,t=>t(Rd))}function bg(e,t){return e.replace(/\{(\d+)\}/g,(r,i)=>""+C.checkDefined(t[+i]))}var b6;function Fne(e){b6=e}function zne(e){!b6&&e&&(b6=e())}function Ho(e){return b6&&b6[e.key]||e.message}function xI(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),Ate(t,r,i);let l=Ho(o);return yt(s)&&(l=bg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function IGe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function g0e(e,t){const r=t.fileName||"",i=t.text.length;C.assertEqual(e.fileName,r),C.assertLessThanOrEqual(e.start,i),C.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)IGe(s)&&s.fileName===r?(C.assertLessThanOrEqual(s.start,i),C.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(g0e(s,t))):o.relatedInformation.push(s)}return o}function RI(e,t){const r=[];for(const i of e)r.push(g0e(i,t));return r}function Wc(e,t,r,i,...o){Ate(e.text,t,r);let s=Ho(i);return yt(o)&&(s=bg(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function DI(e,...t){let r=Ho(e);return yt(t)&&(r=bg(r,t)),r}function Il(e,...t){let r=Ho(e);return yt(t)&&(r=bg(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 T6(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 qo(e,t,...r){let i=Ho(t);return yt(r)&&(i=bg(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Bne(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function fV(e){return e.file?e.file.path:void 0}function _M(e,t){return Gne(e,t)||xGe(e,t)||0}function Gne(e,t){const r=mV(e),i=mV(t);return Wd(fV(e),fV(t))||js(e.start,t.start)||js(e.length,t.length)||js(r,i)||RGe(e,t)||0}function xGe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?js(t.relatedInformation.length,e.relatedInformation.length)||Ye(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return _M(r,o)})||0:e.relatedInformation?-1:1}function RGe(e,t){let r=hV(e),i=hV(t);typeof r!="string"&&(r=r.messageText),typeof i!="string"&&(i=i.messageText);const o=typeof e.messageText!="string"?e.messageText.next:void 0,s=typeof t.messageText!="string"?t.messageText.next:void 0;let l=Wd(r,i);return l||(l=DGe(o,s),l)?l:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function DGe(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:y0e(e,t)||v0e(e,t)}function y0e(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;let r=js(t.length,e.length);if(r)return r;for(let i=0;i{o.externalModuleIndicator=vw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=vw(o)};case 2:const t=[vw];(e.jsx===4||e.jsx===5)&&t.push(NGe),t.push(MGe);const r=Rp(...t);return o=>void(o.externalModuleIndicator=r(o,e))}}function _V(e){const t=ru(e);return 3<=t&&t<=99||wk(e)||Ok(e)}function ybt(e){return e}var Dd={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Dd.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Dd.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102: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=>{if(e.moduleDetection!==void 0)return e.moduleDetection;const t=Dd.module.computeValue(e);return 100<=t&&t<=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(Dd.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Dd.esModuleInterop.computeValue(e)||Dd.module.computeValue(e)===4||Dd.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Dd.moduleResolution.computeValue(e);if(!uD(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=Dd.moduleResolution.computeValue(e);if(!uD(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(Dd.module.computeValue(e)){case 102:case 199:return!0}return Dd.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Dd.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Dd.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?Dd.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Vd(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Vd(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Vd(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Vd(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Vd(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Vd(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Vd(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Vd(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Vd(e,"useUnknownInCatchVariables")}},gM=Dd,Vne=Dd.allowImportingTsExtensions.computeValue,Ga=Dd.target.computeValue,vu=Dd.module.computeValue,ru=Dd.moduleResolution.computeValue,jne=Dd.moduleDetection.computeValue,ym=Dd.isolatedModules.computeValue,$h=Dd.esModuleInterop.computeValue,CI=Dd.allowSyntheticDefaultImports.computeValue,wk=Dd.resolvePackageJsonExports.computeValue,Ok=Dd.resolvePackageJsonImports.computeValue,PS=Dd.resolveJsonModule.computeValue,_p=Dd.declaration.computeValue,Eb=Dd.preserveConstEnums.computeValue,LS=Dd.incremental.computeValue,E6=Dd.declarationMap.computeValue,Ab=Dd.allowJs.computeValue,Wk=Dd.useDefineForClassFields.computeValue;function Fk(e){return e>=5&&e<=99}function A6(e){switch(vu(e)){case 0:case 4:case 3:return!1}return!0}function Une(e){return e.allowUnreachableCode===!1}function Hne(e){return e.allowUnusedLabels===!1}function uD(e){return e>=3&&e<=99||e===100}function qne(e){return 101<=e&&e<=199||e===200||e===99}function Vd(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function I6(e){return Hc(zj.type,(t,r)=>t===e?r:void 0)}function gV(e){return e.useDefineForClassFields!==!1&&Ga(e)>=9}function Jne(e,t){return lI(t,e,Jie)}function Kne(e,t){return lI(t,e,Kie)}function Xne(e,t){return lI(t,e,Xie)}function x6(e,t){return t.strictFlag?Vd(e,t.name):t.allowJsFlag?Ab(e):e[t.name]}function R6(e){const t=e.jsx;return t===2||t===4||t===5}function zk(e,t){const r=t?.pragmas.get("jsximportsource"),i=Mo(r)?r[r.length-1]:r,o=t?.pragmas.get("jsxruntime"),s=Mo(o)?o[o.length-1]:o;if(s?.arguments.factory!=="classic")return e.jsx===4||e.jsx===5||e.jsxImportSource||i||s?.arguments.factory==="automatic"?i?.arguments.factory||e.jsxImportSource||"react":void 0}function D6(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function yV(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(d,g)=>(o||(o=new Map)).set(d,g),setSymlinkedDirectory:(d,g)=>{let h=ks(d,e,t);xM(h)||(h=Uc(h),g!==!1&&!r?.has(h)&&(i||(i=cm())).add(g.realPath,d),(r||(r=new Map)).set(h,g))},setSymlinksFromResolutions(d,g,h){C.assert(!s),s=!0,d(y=>u(this,y.resolvedModule)),g(y=>u(this,y.resolvedTypeReferenceDirective)),h.forEach(y=>u(this,y.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s,setSymlinksFromResolution(d){u(this,d)},hasAnySymlinks:l};function l(){return!!o?.size||!!r&&!!Hc(r,d=>!!d)}function u(d,g){if(!g||!g.originalPath||!g.resolvedFileName)return;const{resolvedFileName:h,originalPath:y}=g;d.setSymlinkedFile(ks(y,e,t),h);const[E,A]=PGe(h,y,e,t)||ae;E&&A&&d.setSymlinkedDirectory(A,{real:Uc(E),realPath:Uc(ks(E,e,t))})}}function PGe(e,t,r,i){const o=zd(To(e,r)),s=zd(To(t,r));let l=!1;for(;o.length>=2&&s.length>=2&&!T0e(o[o.length-2],i)&&!T0e(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[NT(o),NT(s)]:void 0}function T0e(e,t){return e!==void 0&&(t(e)==="node_modules"||po(e,"@"))}function LGe(e){return d9(e.charCodeAt(0))?e.slice(1):void 0}function bV(e,t,r){const i=FB(e,t,r);return i===void 0?void 0:LGe(i)}var Yne=/[^\w\s/]/g;function S0e(e){return e.replace(Yne,kGe)}function kGe(e){return"\\"+e}var wGe=[42,63],OGe=["node_modules","bower_components","jspm_packages"],$ne=`(?!(?:${OGe.join("|")})(?:/|$))`,E0e={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${$ne}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Zne(e,E0e.singleAsteriskRegexFragment)},A0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${$ne}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Zne(e,A0e.singleAsteriskRegexFragment)},I0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:e=>Zne(e,I0e.singleAsteriskRegexFragment)},Qne={files:E0e,directories:A0e,exclude:I0e};function yM(e,t,r){const i=C6(e,t,r);return!i||!i.length?void 0:`^(?:${i.map(l=>`(?:${l})`).join("|")})${r==="exclude"?"(?:$|/)":"$"}`}function C6(e,t,r){if(!(e===void 0||e.length===0))return Ki(e,i=>i&&N6(i,t,r,Qne[r]))}function TV(e){return!/[.*?]/.test(e)}function SV(e,t,r){const i=e&&N6(e,t,r,Qne[r]);return i&&`^(?:${i})${r==="exclude"?"(?:$|/)":"$"}`}function N6(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=Qne[r]){let l="",u=!1;const d=j8(e,t),g=Ba(d);if(r!=="exclude"&&g==="**")return;d[0]=Xy(d[0]),TV(g)&&d.push("**","*");let h=0;for(let y of d){if(y==="**")l+=o;else if(r==="directories"&&(l+="(?:",h++),u&&(l+=Js),r!=="exclude"){let E="";y.charCodeAt(0)===42?(E+="(?:[^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(E+="[^./]",y=y.substr(1)),E+=y.replace(Yne,s),E!==y&&(l+=$ne),l+=E}else l+=y.replace(Yne,s);u=!0}for(;h>0;)l+=")?",h--;return l}function Zne(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function M6(e,t,r,i,o){e=ya(e),o=ya(o);const s=Qr(o,e);return{includeFilePatterns:Vt(C6(r,s,"files"),l=>`^${l}$`),includeFilePattern:yM(r,s,"files"),includeDirectoryPattern:yM(r,s,"directories"),excludePattern:yM(t,s,"exclude"),basePaths:WGe(e,r,i)}}function iv(e,t){return new RegExp(e,t?"":"i")}function ere(e,t,r,i,o,s,l,u,d){e=ya(e),s=ya(s);const g=M6(e,r,i,o,s),h=g.includeFilePatterns&&g.includeFilePatterns.map(k=>iv(k,o)),y=g.includeDirectoryPattern&&iv(g.includeDirectoryPattern,o),E=g.excludePattern&&iv(g.excludePattern,o),A=h?h.map(()=>[]):[[]],R=new Map,N=Fd(o);for(const k of g.basePaths)P(k,Qr(s,k),l);return la(A);function P(k,W,O){const G=N(d(W));if(R.has(G))return;R.set(G,!0);const{files:j,directories:J}=u(k);for(const Z of xp(j,Wd)){const q=Qr(k,Z),ye=Qr(W,Z);if(!(t&&!Ql(q,t))&&!(E&&E.test(ye)))if(!h)A[0].push(q);else{const ie=ho(h,K=>K.test(ye));ie!==-1&&A[ie].push(q)}}if(!(O!==void 0&&(O--,O===0)))for(const Z of xp(J,Wd)){const q=Qr(k,Z),ye=Qr(W,Z);(!y||y.test(ye))&&(!E||!E.test(ye))&&P(q,ye,O)}}}function WGe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const l=Cp(s)?s:ya(Qr(e,s));o.push(FGe(l))}o.sort(IR(!r));for(const s of o)Vn(i,l=>!um(l,s,e,!r))&&i.push(s)}return i}function FGe(e){const t=Bi(e,wGe);return t<0?CR(e)?Xy(ci(e)):e:e.substring(0,e.lastIndexOf(Js,t))}function P6(e,t){return t||L6(e)||3}function L6(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}}var k6=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],EV=la(k6),zGe=[...k6,[".json"]],BGe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],GGe=[[".js",".jsx"],[".mjs"],[".cjs"]],pD=la(GGe),AV=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],VGe=[...AV,[".json"]],w6=[".d.ts",".d.cts",".d.mts"],Bk=[".ts",".cts",".mts",".tsx"],O6=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function vM(e,t){const r=e&&Ab(e);if(!t||t.length===0)return r?AV:k6;const i=r?AV:k6,o=la(i);return[...i,...Ui(t,l=>l.scriptKind===7||r&&jGe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function Gk(e,t){return!e||!PS(e)?t:t===AV?VGe:t===k6?zGe:[...t,[".json"]]}function jGe(e){return e===1||e===2}function Tg(e){return yt(pD,t=>El(e,t))}function u1(e){return yt(EV,t=>El(e,t))}function tre(e){return yt(Bk,t=>El(e,t))&&!ad(e)}var nre=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(nre||{});function UGe({imports:e},t=Rp(Tg,u1)){return Hn(e,({text:r})=>Zp(r)&&!Ql(r,O6)?t(r):void 0)||!1}function rre(e,t,r,i){const o=ru(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return GD(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!GD(r))return i&&UGe(i)?2:0;return l();function l(){let u=!1;const d=i?.imports.length?i.imports:i&&Mu(i)?HGe(i).map(g=>g.arguments[0]):ae;for(const g of d)if(Zp(g.text)){if(s&&t===1&&sH(i,g,r)===99||Ql(g.text,O6))continue;if(u1(g.text))return 3;Tg(g.text)&&(u=!0)}return u?2:0}}function HGe(e){let t=0,r;for(const i of e.statements){if(t>3)break;rk(i)?r=so(r,i.declarationList.declarations.map(o=>o.initializer)):od(i)&&Zu(i.expression,!0)?r=Bn(r,i.expression):t++}return r||ae}function IV(e,t,r){if(!e)return!1;const i=vM(t,r);for(const o of la(Gk(t,i)))if(El(e,o))return!0;return!1}function x0e(e){const t=e.match(/\//g);return t?t.length:0}function Vk(e,t){return js(x0e(e),x0e(t))}var ire=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function bu(e){for(const t of ire){const r=ore(e,t);if(r!==void 0)return r}return e}function ore(e,t){return El(e,t)?jk(e,t):void 0}function jk(e,t){return e.substring(0,e.length-t.length)}function ov(e,t){return f2(e,t,ire,!1)}function NI(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)}}var R0e=new WeakMap;function Uk(e){let t=R0e.get(e);if(t!==void 0)return t;let r,i;const o=Wh(e);for(const s of o){const l=NI(s);l!==void 0&&(typeof l=="string"?(r??(r=new Set)).add(l):(i??(i=[])).push(l))}return R0e.set(e,t={matchableStringSet:r,patterns:i}),t}function dh(e){return!(e>=0)}function W6(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||po(e,".d.")&&el(e,".ts")}function bM(e){return W6(e)||e===".json"}function TM(e){const t=Sg(e);return t!==void 0?t:C.fail(`File ${e} has unknown extension.`)}function D0e(e){return Sg(e)!==void 0}function Sg(e){return hn(ire,t=>El(e,t))}function SM(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var are={files:ae,directories:ae};function xV(e,t){const{matchableStringSet:r,patterns:i}=e;if(r?.has(t))return t;if(!(i===void 0||i.length===0))return WB(i,o=>o,t)}function RV(e,t){const r=e.indexOf(t);return C.assert(r!==-1),e.slice(r)}function pa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),C.assert(e.relatedInformation!==ae,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function sre(e,t){C.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;oi&&(i=s)}return{min:r,max:i}}function DV(e){return{pos:hb(e),end:e.end}}function CV(e,t){const r=t.pos-1,i=Math.min(e.text.length,La(e.text,t.end)+1);return{pos:r,end:i}}function fD(e,t,r){return C0e(e,t,r,!1)}function lre(e,t,r){return C0e(e,t,r,!0)}function C0e(e,t,r,i){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!i&&t.noCheck||r.isSourceOfProjectReferenceRedirect(e.fileName)||!EM(e,t)}function EM(e,t){if(e.checkJsDirective&&e.checkJsDirective.enabled===!1)return!1;if(e.scriptKind===3||e.scriptKind===4||e.scriptKind===5)return!0;const i=(e.scriptKind===1||e.scriptKind===2)&&SM(e,t);return zN(e,t.checkJs)||i||e.scriptKind===7}function F6(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&IQ(e,t,F6)}function AM(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const g=e.length-1;let h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,g)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let g=i-1,h=0;g>=r;g--,h+=t){const y=h>>>4,E=e.charCodeAt(g),R=(E<=57?E-48:10+E-(E<=70?65:97))<<(h&15);s[y]|=R;const N=R>>>16;N&&(s[y+1]|=N)}let l="",u=s.length-1,d=!0;for(;d;){let g=0;d=!1;for(let h=u;h>=0;h--){const y=g<<16|s[h],E=y/10|0;s[h]=E,g=y-E*10,E&&!d&&(u=h,d=!0)}l=g+l}return l}function kS({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function cre(e){if(z6(e,!1))return NV(e)}function NV(e){const t=e.startsWith("-"),r=AM(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function z6(e,t){if(e==="")return!1;const r=cg(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===kS({negative:s,base10Value:AM(r.getTokenValue())}))}function UT(e){return!!(e.flags&33554432)||JN(e)||GF(e)||KGe(e)||JGe(e)||!(P_(e)||qGe(e))}function qGe(e){return He(e)&&Ud(e.parent)&&e.parent.name===e}function JGe(e){for(;e.kind===80||e.kind===212;)e=e.parent;if(e.kind!==168)return!1;if(di(e.parent,64))return!0;const t=e.parent.parent.kind;return t===265||t===188}function KGe(e){if(e.kind!==80)return!1;const t=Dn(e.parent,r=>{switch(r.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===265}function dre(e){return Wp(e)&&He(e.typeName)}function ure(e,t=eb){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;ie.includes(t))}function mre(e){if(!e.parent)return;switch(e.kind){case 169:const{parent:r}=e;return r.kind===196?void 0:r.typeParameters;case 170:return e.parent.parameters;case 205:return e.parent.templateSpans;case 240:return e.parent.templateSpans;case 171:{const{parent:i}=e;return HS(i)?i.modifiers:void 0}case 299:return e.parent.heritageClauses}const{parent:t}=e;if(GR(e))return A1(e.parent)?void 0:e.parent.tags;switch(t.kind){case 188:case 265:return hS(e)?t.members:void 0;case 193:case 194:return t.types;case 190:case 210:case 357:case 276:case 280:return t.elements;case 211:case 293:return t.properties;case 214:case 215:return Ri(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 285:case 289:return W2(e)?t.children:void 0;case 287:case 286:return Ri(e)?t.typeArguments:void 0;case 242:case 297:case 298:case 269:return t.statements;case 270:return t.clauses;case 264:case 232:return Tc(e)?t.members:void 0;case 267:return py(e)?t.members:void 0;case 308:return t.statements}}function B6(e){if(!e.typeParameters){if(yt(e.parameters,t=>!Rc(t)))return!0;if(e.kind!==220){const t=Ic(e.parameters);if(!(t&&bb(t)))return!0}}return!1}function RM(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function hre(e){return e.kind===261&&e.parent.kind===300}function Ib(e){return e.kind===219||e.kind===220}function wS(e){return e.replace(/\$/g,()=>"\\$")}function Eg(e){return(+e).toString()===e}function Hk(e,t,r,i,o){const s=o&&e==="new";return!s&&fp(e,t)?L.createIdentifier(e):!i&&!s&&Eg(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function DM(e){return!!(e.flags&262144&&e.isThisType)}function G6(e){let t=0,r=0,i=0,o=0,s;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,u=0,d=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),d){case 0:e.indexOf(Rg,l)===l&&(t=l,r=u,d=1);break;case 1:case 2:d===1&&e.charAt(l+1)==="@"?d=2:(i=u,d=3);break;case 3:e.indexOf(Rg,l)===l?d=1:d=3;break}return o=l,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function MI(e){switch(e.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return e.phaseModifier===156;case 277:return e.parent.parent.phaseModifier===156;case 282:return e.parent.parent.isTypeOnly;default:return!1}}function qk(e){return QT(e)||sc(e)||ec(e)||Cc(e)||gd(e)||MI(e)||pc(e)&&!bS(e)&&!M_(e)}function Jk(e){if(!PN(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===317}function LV(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&R_(e.charCodeAt(1),t):R_(r,t)}function _re(e){var t;return((t=$V(e))==null?void 0:t.kind)===0}function V6(e){return Ir(e)&&(e.type&&e.type.kind===317||wR(e).some(Jk))}function PI(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||V6(e);case 349:case 342:return Jk(e);default:return!1}}function gre(e){const t=e.kind;return(t===212||t===213)&&qI(e.expression)}function kV(e){return Ir(e)&&wu(e)&&ef(e)&&!!C9(e)}function wV(e){return C.checkDefined(j6(e))}function j6(e){const t=C9(e);return t&&t.typeExpression&&t.typeExpression.type}function CM(e){return He(e)?e.escapedText:LI(e)}function Kk(e){return He(e)?Kr(e):NM(e)}function yre(e){const t=e.kind;return t===80||t===296}function LI(e){return`${e.namespace.escapedText}:${Kr(e.name)}`}function NM(e){return`${Kr(e.namespace)}:${Kr(e.name)}`}function OV(e){return He(e)?Kr(e):NM(e)}function jf(e){return!!(e.flags&8576)}function Uf(e){return e.flags&8192?e.escapedName:e.flags&384?Nl(""+e.value):C.fail()}function kI(e){return!!e&&(qr(e)||Ws(e)||Nr(e))}function vre(e){return e===void 0?!1:!!UD(e.attributes)}var YGe=String.prototype.replace;function p1(e,t){return YGe.call(e,"*",t)}function U6(e){return He(e.name)?e.name.escapedText:Nl(e.name.text)}function bre(e){switch(e.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function qc(e,t=!1,r=!1,i=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:r,hasExternalReferences:i}}function Tre({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function r(o,s){let l=!1,u=!1,d=!1;switch(o=us(o),o.kind){case 225:const g=r(o.operand,s);if(u=g.resolvedOtherFiles,d=g.hasExternalReferences,typeof g.value=="number")switch(o.operator){case 40:return qc(g.value,l,u,d);case 41:return qc(-g.value,l,u,d);case 55:return qc(~g.value,l,u,d)}break;case 227:{const h=r(o.left,s),y=r(o.right,s);if(l=(h.isSyntacticallyString||y.isSyntacticallyString)&&o.operatorToken.kind===40,u=h.resolvedOtherFiles||y.resolvedOtherFiles,d=h.hasExternalReferences||y.hasExternalReferences,typeof h.value=="number"&&typeof y.value=="number")switch(o.operatorToken.kind){case 52:return qc(h.value|y.value,l,u,d);case 51:return qc(h.value&y.value,l,u,d);case 49:return qc(h.value>>y.value,l,u,d);case 50:return qc(h.value>>>y.value,l,u,d);case 48:return qc(h.value<=2)break;case 175:case 177:case 178:case 179:case 263:if(J&3&&re==="arguments"){fe=r;break e}break;case 219:if(J&3&&re==="arguments"){fe=r;break e}if(J&16){const Be=G.name;if(Be&&re===Be.escapedText){fe=G.symbol;break e}}break;case 171:G.parent&&G.parent.kind===170&&(G=G.parent),G.parent&&(Tc(G.parent)||G.parent.kind===264)&&(G=G.parent);break;case 347:case 339:case 341:case 352:const Ne=eD(G);Ne&&(G=Ne.parent);break;case 170:ve&&(ve===G.initializer||ve===G.name&&Qo(ve))&&(Ce||(Ce=G));break;case 209:ve&&(ve===G.initializer||ve===G.name&&Qo(ve))&&VT(G)&&!Ce&&(Ce=G);break;case 196:if(J&262144){const Be=G.typeParameter.name;if(Be&&re===Be.escapedText){fe=G.typeParameter.symbol;break e}}break;case 282:ve&&ve===G.propertyName&&G.parent.parent.moduleSpecifier&&(G=G.parent.parent.parent);break}W(G,ve)&&(xe=G),ve=G,G=bm(G)?KF(G)||G.parent:(mf(G)||m4(G))&&zT(G)||G.parent}if(q&&fe&&(!xe||fe!==xe.symbol)&&(fe.isReferenced|=J),!fe){if(ve&&(C.assertNode(ve,Yi),ve.commonJsModuleIndicator&&re==="exports"&&J&ve.symbol.flags))return ve.symbol;ye||(fe=l(s,re,J))}if(!fe&&de&&Ir(de)&&de.parent&&Zu(de.parent,!1))return t;if(Z){if(X&&g(de,re,X,fe))return;fe?y(de,fe,J,ve,Ce,Je):h(de,j,J,Z)}return fe}function P(G,j,J){const Z=Ga(e),q=j;if(to(J)&&q.body&&G.valueDeclaration&&G.valueDeclaration.pos>=q.body.pos&&G.valueDeclaration.end<=q.body.end&&Z>=2){let K=d(q);return K===void 0&&(K=Ye(q.parameters,ye)||!1,u(q,K)),!K}return!1;function ye(K){return ie(K.name)||!!K.initializer&&ie(K.initializer)}function ie(K){switch(K.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return ie(K.name);case 173:return Oc(K)?!A:ie(K.name);default:return M9(K)||eu(K)?Z<7:Ha(K)&&K.dotDotDotToken&&ff(K.parent)?Z<4:Ri(K)?!1:Jo(K,ie)||!1}}}function k(G,j){return G.kind!==220&&G.kind!==219?WS(G)||(Ms(G)||G.kind===173&&!ua(G))&&(!j||j!==G.name):j&&j===G.name?!1:G.asteriskToken||di(G,1024)?!0:!OT(G)}function W(G,j){switch(G.kind){case 170:return!!j&&j===G.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function O(G,j){if(G.declarations){for(const J of G.declarations)if(J.kind===169&&(bm(J.parent)?AS(J.parent):J.parent)===j)return!(bm(J.parent)&&hn(J.parent.parent.tags,hm))}return!1}}function H6(e,t=!0){switch(C.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 225:return e.operator===41?np(e.operand)||t&&gD(e.operand):e.operator===40?np(e.operand):!1;default:return!1}}function Sre(e){for(;e.kind===218;)e=e.expression;return e}function q6(e){switch(C.type(e),e.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function zV(e){const t=Dn(e,vl);return!!t&&!t.importClause}var Ere=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],Are=new Set(Ere),J6=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),hD=new Set([...Ere,...Ere.map(e=>`node:${e}`),...J6]);function K6(e,t,r,i){const o=Ir(e),s=/import|require/g;for(;s.exec(e.text)!==null;){const l=$Ge(e,s.lastIndex,t);if(o&&Zu(l,r))i(l,l.arguments[0]);else if(Qu(l)&&l.arguments.length>=1&&(!r||ds(l.arguments[0])))i(l,l.arguments[0]);else if(t&&ry(l))i(l,l.argument.literal);else if(t&&o_(l)){const u=hI(l);u&&ka(u)&&u.text&&i(l,u)}}}function $Ge(e,t,r){const i=Ir(e);let o=e;const s=l=>{if(l.pos<=t&&(tr&&t(r))}function MM(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,d){if(i){const h=i(l,d);if(h)return h}let g;return Ye(u,(h,y)=>{if(h&&o?.has(h.sourceFile.path)){(g??(g=new Set)).add(h);return}const E=r(h,d,y);if(E||!h)return E;(o||(o=new Set)).add(h.sourceFile.path)})||Ye(u,h=>h&&!g?.has(h)?s(h.commandLine.projectReferences,h.references,h):void 0)}}function jV(e,t,r){return e&&QGe(e,t,r)}function QGe(e,t,r){return KR(e,t,i=>Cd(i.initializer)?hn(i.initializer.elements,o=>ka(o)&&o.text===r):void 0)}function xre(e,t,r){return UV(e,t,i=>ka(i.initializer)&&i.initializer.text===r?i.initializer:void 0)}function UV(e,t,r){return KR(e,t,r)}function _s(e,t=!0){const r=e&&N0e(e);return r&&!t&&Op(r),HT(r,!1)}function Yk(e,t,r){let i=r(e);return i?jr(i,e):i=N0e(e,r),i&&!t&&Op(i),i}function N0e(e,t){const r=t?s=>Yk(s,!0,t):_s,o=kn(e,r,void 0,t?s=>s&&HV(s,!0,t):s=>s&&OS(s),r);if(o===e){const s=ka(e)?jr(L.createStringLiteralFromNode(e),e):np(e)?jr(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return vt(s,e)}return o.parent=void 0,o}function OS(e,t=!0){if(e){const r=L.createNodeArray(e.map(i=>_s(i,t)),e.hasTrailingComma);return vt(r,e),r}return e}function HV(e,t,r){return L.createNodeArray(e.map(i=>Yk(i,t,r)),e.hasTrailingComma)}function Op(e){qV(e),Rre(e)}function qV(e){Dre(e,1024,ZGe)}function Rre(e){Dre(e,2048,dV)}function Dre(e,t,r){Qh(e,t);const i=r(e);i&&Dre(i,t,r)}function ZGe(e){return Jo(e,t=>t)}function Cre(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:d,createBaseNode:g};function s(h){return new(o||(o=Rd.getSourceFileConstructor()))(h,-1,-1)}function l(h){return new(r||(r=Rd.getIdentifierConstructor()))(h,-1,-1)}function u(h){return new(i||(i=Rd.getPrivateIdentifierConstructor()))(h,-1,-1)}function d(h){return new(t||(t=Rd.getTokenConstructor()))(h,-1,-1)}function g(h){return new(e||(e=Rd.getNodeConstructor()))(h,-1,-1)}}function Nre(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:y,parenthesizeExpressionOfComputedPropertyName:E,parenthesizeConditionOfConditionalExpression:A,parenthesizeBranchOfConditionalExpression:R,parenthesizeExpressionOfExportDefault:N,parenthesizeExpressionOfNew:P,parenthesizeLeftSideOfAccess:k,parenthesizeOperandOfPostfixUnary:W,parenthesizeOperandOfPrefixUnary:O,parenthesizeExpressionsOfCommaDelimitedList:G,parenthesizeExpressionForDisallowedComma:j,parenthesizeExpressionOfExpressionStatement:J,parenthesizeConciseBodyOfArrowFunction:Z,parenthesizeCheckTypeOfConditionalType:q,parenthesizeExtendsTypeOfConditionalType:ye,parenthesizeConstituentTypesOfUnionType:K,parenthesizeConstituentTypeOfUnionType:ie,parenthesizeConstituentTypesOfIntersectionType:de,parenthesizeConstituentTypeOfIntersectionType:pe,parenthesizeOperandOfTypeOperator:fe,parenthesizeOperandOfReadonlyTypeOperator:ve,parenthesizeNonArrayTypeOfPostfixType:xe,parenthesizeElementTypesOfTupleType:X,parenthesizeElementTypeOfTupleType:Ce,parenthesizeTypeOfOptionalType:Se,parenthesizeTypeArguments:Ne,parenthesizeLeadingTypeArgument:re};function i(Be){t||(t=new Map);let lt=t.get(Be);return lt||(lt=ce=>h(Be,ce),t.set(Be,lt)),lt}function o(Be){r||(r=new Map);let lt=r.get(Be);return lt||(lt=ce=>y(Be,void 0,ce),r.set(Be,lt)),lt}function s(Be,lt){return Be===61?lt===56||lt===57:lt===61?Be===56||Be===57:!1}function l(Be,lt,ce,Re){const _e=Wm(lt);if(Nr(_e)&&s(Be,_e.operatorToken.kind))return!0;const je=bk(227,Be),Ge=WG(227,Be);if(!ce&<.kind===220&&je>3)return!0;const We=oM(_e);switch(js(We,je)){case-1:return!(!ce&&Ge===1&<.kind===230);case 1:return!1;case 0:if(ce)return Ge===1;if(Nr(_e)&&_e.operatorToken.kind===Be){if(u(Be))return!1;if(Be===40){const Wt=Re?d(Re):0;if(LN(Wt)&&Wt===d(_e))return!1}}return OG(_e)===0}}function u(Be){return Be===42||Be===52||Be===51||Be===53||Be===28}function d(Be){if(Be=Wm(Be),LN(Be.kind))return Be.kind;if(Be.kind===227&&Be.operatorToken.kind===40){if(Be.cachedLiteralKind!==void 0)return Be.cachedLiteralKind;const lt=d(Be.left),ce=LN(lt)&<===d(Be.right)?lt:0;return Be.cachedLiteralKind=ce,ce}return 0}function g(Be,lt,ce,Re){return Wm(lt).kind===218?lt:l(Be,lt,ce,Re)?e.createParenthesizedExpression(lt):lt}function h(Be,lt){return g(Be,lt,!0)}function y(Be,lt,ce){return g(Be,ce,!1,lt)}function E(Be){return JM(Be)?e.createParenthesizedExpression(Be):Be}function A(Be){const lt=bk(228,58),ce=Wm(Be),Re=oM(ce);return js(Re,lt)!==1?e.createParenthesizedExpression(Be):Be}function R(Be){const lt=Wm(Be);return JM(lt)?e.createParenthesizedExpression(Be):Be}function N(Be){const lt=Wm(Be);let ce=JM(lt);if(!ce)switch(dD(lt,!1).kind){case 232:case 219:ce=!0}return ce?e.createParenthesizedExpression(Be):Be}function P(Be){const lt=dD(Be,!0);switch(lt.kind){case 214:return e.createParenthesizedExpression(Be);case 215:return lt.arguments?Be:e.createParenthesizedExpression(Be)}return k(Be)}function k(Be,lt){const ce=Wm(Be);return $u(ce)&&(ce.kind!==215||ce.arguments)&&(lt||!eu(ce))?Be:vt(e.createParenthesizedExpression(Be),Be)}function W(Be){return $u(Be)?Be:vt(e.createParenthesizedExpression(Be),Be)}function O(Be){return G9(Be)?Be:vt(e.createParenthesizedExpression(Be),Be)}function G(Be){const lt=Zi(Be,j);return vt(e.createNodeArray(lt,Be.hasTrailingComma),Be)}function j(Be){const lt=Wm(Be),ce=oM(lt),Re=bk(227,28);return ce>Re?Be:vt(e.createParenthesizedExpression(Be),Be)}function J(Be){const lt=Wm(Be);if(Zo(lt)){const Re=lt.expression,_e=Wm(Re).kind;if(_e===219||_e===220){const je=e.updateCallExpression(lt,vt(e.createParenthesizedExpression(Re),Re),lt.typeArguments,lt.arguments);return e.restoreOuterExpressions(Be,je,8)}}const ce=dD(lt,!1).kind;return ce===211||ce===219?vt(e.createParenthesizedExpression(Be),Be):Be}function Z(Be){return!ea(Be)&&(JM(Be)||dD(Be,!1).kind===211)?vt(e.createParenthesizedExpression(Be),Be):Be}function q(Be){switch(Be.kind){case 185:case 186:case 195:return e.createParenthesizedType(Be)}return Be}function ye(Be){switch(Be.kind){case 195:return e.createParenthesizedType(Be)}return Be}function ie(Be){switch(Be.kind){case 193:case 194:return e.createParenthesizedType(Be)}return q(Be)}function K(Be){return e.createNodeArray(Zi(Be,ie))}function pe(Be){switch(Be.kind){case 193:case 194:return e.createParenthesizedType(Be)}return ie(Be)}function de(Be){return e.createNodeArray(Zi(Be,pe))}function fe(Be){switch(Be.kind){case 194:return e.createParenthesizedType(Be)}return pe(Be)}function ve(Be){switch(Be.kind){case 199:return e.createParenthesizedType(Be)}return fe(Be)}function xe(Be){switch(Be.kind){case 196:case 199:case 187:return e.createParenthesizedType(Be)}return fe(Be)}function X(Be){return e.createNodeArray(Zi(Be,Ce))}function Ce(Be){return Je(Be)?e.createParenthesizedType(Be):Be}function Je(Be){return xD(Be)?Be.postfix:vD(Be)||w_(Be)||yD(Be)||JT(Be)?Je(Be.type):FS(Be)?Je(Be.falseType):cv(Be)||UI(Be)?Je(Ba(Be.types)):_1(Be)?!!Be.typeParameter.constraint&&Je(Be.typeParameter.constraint):!1}function Se(Be){return Je(Be)?e.createParenthesizedType(Be):xe(Be)}function re(Be){return Vee(Be)&&Be.typeParameters?e.createParenthesizedType(Be):Be}function be(Be,lt){return lt===0?re(Be):Be}function Ne(Be){if(yt(Be))return e.createNodeArray(Zi(Be,be))}}var Mre={getParenthesizeLeftSideOfBinaryForOperator:e=>Vs,getParenthesizeRightSideOfBinaryForOperator:e=>Vs,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Vs,parenthesizeConditionOfConditionalExpression:Vs,parenthesizeBranchOfConditionalExpression:Vs,parenthesizeExpressionOfExportDefault:Vs,parenthesizeExpressionOfNew:e=>ma(e,$u),parenthesizeLeftSideOfAccess:e=>ma(e,$u),parenthesizeOperandOfPostfixUnary:e=>ma(e,$u),parenthesizeOperandOfPrefixUnary:e=>ma(e,G9),parenthesizeExpressionsOfCommaDelimitedList:e=>ma(e,mS),parenthesizeExpressionForDisallowedComma:Vs,parenthesizeExpressionOfExpressionStatement:Vs,parenthesizeConciseBodyOfArrowFunction:Vs,parenthesizeCheckTypeOfConditionalType:Vs,parenthesizeExtendsTypeOfConditionalType:Vs,parenthesizeConstituentTypesOfUnionType:e=>ma(e,mS),parenthesizeConstituentTypeOfUnionType:Vs,parenthesizeConstituentTypesOfIntersectionType:e=>ma(e,mS),parenthesizeConstituentTypeOfIntersectionType:Vs,parenthesizeOperandOfTypeOperator:Vs,parenthesizeOperandOfReadonlyTypeOperator:Vs,parenthesizeNonArrayTypeOfPostfixType:Vs,parenthesizeElementTypesOfTupleType:e=>ma(e,mS),parenthesizeElementTypeOfTupleType:Vs,parenthesizeTypeOfOptionalType:Vs,parenthesizeTypeArguments:e=>e&&ma(e,mS),parenthesizeLeadingTypeArgument:Vs};function Pre(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:d,convertToAssignmentElementTarget:g};function t(h,y){if(ea(h))return h;const E=e.createReturnStatement(h);vt(E,h);const A=e.createBlock([E],y);return vt(A,h),A}function r(h){var y;if(!h.body)return C.fail("Cannot convert a FunctionDeclaration without a body");const E=e.createFunctionExpression((y=fS(h))==null?void 0:y.filter(A=>!zI(A)&&!i4(A)),h.asteriskToken,h.name,h.typeParameters,h.parameters,h.type,h.body);return jr(E,h),vt(E,h),PM(h)&&$6(E,!0),E}function i(h){var y;const E=e.createClassExpression((y=h.modifiers)==null?void 0:y.filter(A=>!zI(A)&&!i4(A)),h.name,h.typeParameters,h.heritageClauses,h.members);return jr(E,h),vt(E,h),PM(h)&&$6(E,!0),E}function o(h){if(Ha(h)){if(h.dotDotDotToken)return C.assertNode(h.name,He),jr(vt(e.createSpreadElement(h.name),h),h);const y=g(h.name);return h.initializer?jr(vt(e.createAssignment(y,h.initializer),h),h):y}return ma(h,St)}function s(h){if(Ha(h)){if(h.dotDotDotToken)return C.assertNode(h.name,He),jr(vt(e.createSpreadAssignment(h.name),h),h);if(h.propertyName){const y=g(h.name);return jr(vt(e.createPropertyAssignment(h.propertyName,h.initializer?e.createAssignment(y,h.initializer):y),h),h)}return C.assertNode(h.name,He),jr(vt(e.createShorthandPropertyAssignment(h.name,h.initializer),h),h)}return ma(h,ny)}function l(h){switch(h.kind){case 208:case 210:return d(h);case 207:case 211:return u(h)}}function u(h){return ff(h)?jr(vt(e.createObjectLiteralExpression(Vt(h.elements,s)),h),h):ma(h,Wa)}function d(h){return uv(h)?jr(vt(e.createArrayLiteralExpression(Vt(h.elements,o)),h),h):ma(h,Cd)}function g(h){return Qo(h)?l(h):ma(h,St)}}var Lre={convertToFunctionBlock:ha,convertToFunctionExpression:ha,convertToClassExpression:ha,convertToArrayAssignmentElement:ha,convertToObjectAssignmentElement:ha,convertToAssignmentPattern:ha,convertToObjectAssignmentPattern:ha,convertToArrayAssignmentPattern:ha,convertToAssignmentElementTarget:ha},JV=0,kre=(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))(kre||{}),M0e=[];function P0e(e){M0e.push(e)}function $k(e,t){const r=e&8?Vs:jr,i=Cu(()=>e&1?Mre:Nre(k)),o=Cu(()=>e&2?Lre:Pre(k)),s=Fh(T=>(M,V)=>or(M,T,V)),l=Fh(T=>M=>ut(T,M)),u=Fh(T=>M=>an(M,T)),d=Fh(T=>()=>Wo(T)),g=Fh(T=>M=>Z1(T,M)),h=Fh(T=>(M,V)=>Mr(T,M,V)),y=Fh(T=>(M,V)=>vp(T,M,V)),E=Fh(T=>(M,V)=>Kb(T,M,V)),A=Fh(T=>(M,V)=>w0(T,M,V)),R=Fh(T=>(M,V,ue)=>My(T,M,V,ue)),N=Fh(T=>(M,V,ue)=>DC(T,M,V,ue)),P=Fh(T=>(M,V,ue,tt)=>O0(T,M,V,ue,tt)),k={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:W,createNumericLiteral:J,createBigIntLiteral:Z,createStringLiteral:ye,createStringLiteralFromNode:ie,createRegularExpressionLiteral:K,createLiteralLikeNode:pe,createIdentifier:ve,createTempVariable:xe,createLoopVariable:X,createUniqueName:Ce,getGeneratedNameForNode:Je,createPrivateIdentifier:re,createUniquePrivateName:Ne,getGeneratedPrivateNameForNode:Be,createToken:ce,createSuper:Re,createThis:_e,createNull:je,createTrue:Ge,createFalse:We,createModifier:at,createModifiersFromModifierFlags:Wt,createQualifiedName:cn,updateQualifiedName:gn,createComputedPropertyName:Kn,updateComputedPropertyName:_t,createTypeParameterDeclaration:en,updateTypeParameterDeclaration:ir,createParameterDeclaration:Di,updateParameterDeclaration:lo,createDecorator:zt,updateDecorator:Zr,createPropertySignature:Ai,updatePropertySignature:Ni,createPropertyDeclaration:Ci,updatePropertyDeclaration:$e,createMethodSignature:At,updateMethodSignature:mn,createMethodDeclaration:dr,updateMethodDeclaration:ri,createConstructorDeclaration:Mn,updateConstructorDeclaration:Uo,createGetAccessorDeclaration:Ft,updateGetAccessorDeclaration:le,createSetAccessorDeclaration:ne,updateSetAccessorDeclaration:Fe,createCallSignature:dt,updateCallSignature:Lt,createConstructSignature:Ue,updateConstructSignature:Rt,createIndexSignature:It,updateIndexSignature:Ot,createClassStaticBlockDeclaration:qi,updateClassStaticBlockDeclaration:$o,createTemplateLiteralTypeSpan:nt,updateTemplateLiteralTypeSpan:Kt,createKeywordTypeNode:Tr,createTypePredicateNode:Oe,updateTypePredicateNode:Nt,createTypeReferenceNode:he,updateTypeReferenceNode:B,createFunctionTypeNode:Ae,updateFunctionTypeNode:te,createConstructorTypeNode:Xt,updateConstructorTypeNode:Bt,createTypeQueryNode:Jn,updateTypeQueryNode:ft,createTypeLiteralNode:Mt,updateTypeLiteralNode:jt,createArrayTypeNode:Qt,updateArrayTypeNode:In,createTupleTypeNode:yn,updateTupleTypeNode:wt,createNamedTupleMember:En,updateNamedTupleMember:xn,createOptionalTypeNode:Ln,updateOptionalTypeNode:ln,createRestTypeNode:Ii,updateRestTypeNode:ra,createUnionTypeNode:Gl,updateUnionTypeNode:xl,createIntersectionTypeNode:Ps,updateIntersectionTypeNode:co,createConditionalTypeNode:Go,updateConditionalTypeNode:Sc,createInferTypeNode:$s,updateInferTypeNode:Ra,createImportTypeNode:Lo,updateImportTypeNode:fa,createParenthesizedType:is,updateParenthesizedType:qa,createThisTypeNode:Zt,createTypeOperatorNode:As,updateTypeOperatorNode:ql,createIndexedAccessTypeNode:lc,updateIndexedAccessTypeNode:vd,createMappedTypeNode:Fs,updateMappedTypeNode:Ee,createLiteralTypeNode:Y,updateLiteralTypeNode:pt,createTemplateLiteralType:tc,updateTemplateLiteralType:bf,createObjectBindingPattern:qt,updateObjectBindingPattern:fn,createArrayBindingPattern:ur,updateArrayBindingPattern:si,createBindingElement:Dr,updateBindingElement:Fn,createArrayLiteralExpression:ro,updateArrayLiteralExpression:So,createObjectLiteralExpression:Ns,updateObjectLiteralExpression:Da,createPropertyAccessExpression:e&4?(T,M)=>Cr(Ec(T,M),262144):Ec,updatePropertyAccessExpression:mc,createPropertyAccessChain:e&4?(T,M,V)=>Cr(Hs(T,M,V),262144):Hs,updatePropertyAccessChain:Ll,createElementAccessExpression:Pd,updateElementAccessExpression:nf,createElementAccessChain:op,updateElementAccessChain:ze,createCallExpression:er,updateCallExpression:go,createCallChain:Za,updateCallChain:es,createNewExpression:Va,updateNewExpression:Pc,createTaggedTemplateExpression:tl,updateTaggedTemplateExpression:kl,createTypeAssertion:Jl,updateTypeAssertion:rf,createParenthesizedExpression:bd,updateParenthesizedExpression:ld,createFunctionExpression:jp,updateFunctionExpression:Eu,createArrowFunction:Xf,updateArrowFunction:G_,createDeleteExpression:Cg,updateDeleteExpression:Ng,createTypeOfExpression:ap,updateTypeOfExpression:Xc,createVoidExpression:bh,updateVoidExpression:Tf,createAwaitExpression:p_,updateAwaitExpression:oe,createPrefixUnaryExpression:ut,updatePrefixUnaryExpression:tn,createPostfixUnaryExpression:an,updatePostfixUnaryExpression:wn,createBinaryExpression:or,updateBinaryExpression:Ti,createConditionalExpression:$i,updateConditionalExpression:z,createTemplateExpression:Ve,updateTemplateExpression:kt,createTemplateHead:ml,createTemplateMiddle:Ca,createTemplateTail:cd,createNoSubstitutionTemplateLiteral:Up,createTemplateLiteralLikeNode:Vo,createYieldExpression:Sf,updateYieldExpression:Yf,createSpreadElement:Ty,updateSpreadElement:bv,createClassExpression:zu,updateClassExpression:V_,createOmittedExpression:Th,createExpressionWithTypeArguments:Im,updateExpressionWithTypeArguments:jb,createAsExpression:Xe,updateAsExpression:mt,createNonNullExpression:Yt,updateNonNullExpression:Rn,createSatisfiesExpression:Qn,updateSatisfiesExpression:Lr,createNonNullChain:Yn,updateNonNullChain:lr,createMetaProperty:Oi,updateMetaProperty:Ro,createTemplateSpan:_i,updateTemplateSpan:Do,createSemicolonClassElement:Qi,createBlock:hl,updateBlock:sp,createVariableStatement:xm,updateVariableStatement:Td,createEmptyStatement:Rm,createExpressionStatement:Hp,updateExpressionStatement:v0,createIfStatement:f_,updateIfStatement:j_,createDoStatement:b0,updateDoStatement:U_,createWhileStatement:bC,updateWhileStatement:QP,createForStatement:TC,updateForStatement:Mg,createForInStatement:T0,updateForInStatement:U1,createForOfStatement:Tv,updateForOfStatement:H1,createContinueStatement:Ix,updateContinueStatement:ZP,createBreakStatement:q1,updateBreakStatement:xx,createReturnStatement:S0,updateReturnStatement:SC,createWithStatement:J1,updateWithStatement:Rx,createSwitchStatement:sE,updateSwitchStatement:Ub,createLabeledStatement:Dx,updateLabeledStatement:Cx,createThrowStatement:lE,updateThrowStatement:Hb,createTryStatement:Sv,updateTryStatement:Sy,createDebuggerStatement:Ey,createVariableDeclaration:Ay,updateVariableDeclaration:qb,createVariableDeclarationList:E0,updateVariableDeclarationList:K1,createFunctionDeclaration:A0,updateFunctionDeclaration:ns,createClassDeclaration:EC,updateClassDeclaration:Iy,createInterfaceDeclaration:xy,updateInterfaceDeclaration:H_,createTypeAliasDeclaration:cl,updateTypeAliasDeclaration:qd,createEnumDeclaration:lp,updateEnumDeclaration:Jd,createModuleDeclaration:I0,updateModuleDeclaration:Au,createModuleBlock:q_,updateModuleBlock:Bu,createCaseBlock:Dm,updateCaseBlock:qm,createNamespaceExportDeclaration:x0,updateNamespaceExportDeclaration:R0,createImportEqualsDeclaration:AC,updateImportEqualsDeclaration:Ev,createImportDeclaration:cE,updateImportDeclaration:Qe,createImportClause:Y1,updateImportClause:Pg,createAssertClause:Jm,updateAssertClause:Av,createAssertEntry:Jb,updateAssertEntry:Iu,createImportTypeAssertionContainer:Sh,updateImportTypeAssertionContainer:Cm,createImportAttributes:D0,updateImportAttributes:ja,createImportAttribute:Ef,updateImportAttribute:Iv,createNamespaceImport:$1,updateNamespaceImport:Ry,createNamespaceExport:dE,updateNamespaceExport:$f,createNamedImports:Lg,updateNamedImports:C0,createImportSpecifier:xv,updateImportSpecifier:m_,createExportAssignment:uE,updateExportAssignment:N0,createExportDeclaration:Jr,updateExportDeclaration:Vr,createNamedExports:Q1,updateNamedExports:Dy,createExportSpecifier:pE,updateExportSpecifier:IC,createMissingDeclaration:tL,createExternalModuleReference:zr,updateExternalModuleReference:xu,get createJSDocAllType(){return d(313)},get createJSDocUnknownType(){return d(314)},get createJSDocNonNullableType(){return y(316)},get updateJSDocNonNullableType(){return E(316)},get createJSDocNullableType(){return y(315)},get updateJSDocNullableType(){return E(315)},get createJSDocOptionalType(){return g(317)},get updateJSDocOptionalType(){return h(317)},get createJSDocVariadicType(){return g(319)},get updateJSDocVariadicType(){return h(319)},get createJSDocNamepathType(){return g(320)},get updateJSDocNamepathType(){return h(320)},createJSDocFunctionType:xC,updateJSDocFunctionType:Nx,createJSDocTypeLiteral:cu,updateJSDocTypeLiteral:J_,createJSDocTypeExpression:Eh,updateJSDocTypeExpression:Xb,createJSDocSignature:eA,updateJSDocSignature:Yb,createJSDocTemplateTag:cp,updateJSDocTemplateTag:Rv,createJSDocTypedefTag:M0,updateJSDocTypedefTag:Mx,createJSDocParameterTag:P0,updateJSDocParameterTag:$b,createJSDocPropertyTag:Px,updateJSDocPropertyTag:Cy,createJSDocCallbackTag:h_,updateJSDocCallbackTag:Qb,createJSDocOverloadTag:L0,updateJSDocOverloadTag:Dv,createJSDocAugmentsTag:Zb,updateJSDocAugmentsTag:Xm,createJSDocImplementsTag:Ny,updateJSDocImplementsTag:wx,createJSDocSeeTag:kg,updateJSDocSeeTag:eT,createJSDocImportTag:dp,updateJSDocImportTag:Zf,createJSDocNameReference:dd,updateJSDocNameReference:fE,createJSDocMemberName:wg,updateJSDocMemberName:k0,createJSDocLink:tA,updateJSDocLink:Og,createJSDocLinkCode:RC,updateJSDocLinkCode:Lx,createJSDocLinkPlain:kx,updateJSDocLinkPlain:nL,get createJSDocTypeTag(){return N(345)},get updateJSDocTypeTag(){return P(345)},get createJSDocReturnTag(){return N(343)},get updateJSDocReturnTag(){return P(343)},get createJSDocThisTag(){return N(344)},get updateJSDocThisTag(){return P(344)},get createJSDocAuthorTag(){return A(331)},get updateJSDocAuthorTag(){return R(331)},get createJSDocClassTag(){return A(333)},get updateJSDocClassTag(){return R(333)},get createJSDocPublicTag(){return A(334)},get updateJSDocPublicTag(){return R(334)},get createJSDocPrivateTag(){return A(335)},get updateJSDocPrivateTag(){return R(335)},get createJSDocProtectedTag(){return A(336)},get updateJSDocProtectedTag(){return R(336)},get createJSDocReadonlyTag(){return A(337)},get updateJSDocReadonlyTag(){return R(337)},get createJSDocOverrideTag(){return A(338)},get updateJSDocOverrideTag(){return R(338)},get createJSDocDeprecatedTag(){return A(332)},get updateJSDocDeprecatedTag(){return R(332)},get createJSDocThrowsTag(){return N(350)},get updateJSDocThrowsTag(){return P(350)},get createJSDocSatisfiesTag(){return N(351)},get updateJSDocSatisfiesTag(){return P(351)},createJSDocEnumTag:ud,updateJSDocEnumTag:Ox,createJSDocUnknownTag:nA,updateJSDocUnknownTag:hc,createJSDocText:mE,updateJSDocText:Ah,createJSDocComment:tT,updateJSDocComment:Cv,createJsxElement:Wx,updateJsxElement:rL,createJsxSelfClosingElement:Vl,updateJsxSelfClosingElement:CC,createJsxOpeningElement:rA,updateJsxOpeningElement:hE,createJsxClosingElement:Fx,updateJsxClosingElement:du,createJsxFragment:bp,createJsxText:W0,updateJsxText:Tp,createJsxOpeningFragment:oA,createJsxJsxClosingFragment:Wg,updateJsxFragment:iA,createJsxAttribute:zx,updateJsxAttribute:aA,createJsxAttributes:Ym,updateJsxAttributes:Bx,createJsxSpreadAttribute:NC,updateJsxSpreadAttribute:Gx,createJsxExpression:sA,updateJsxExpression:Vx,createJsxNamespacedName:Nv,updateJsxNamespacedName:qp,createCaseClause:__,updateCaseClause:lA,createDefaultClause:cA,updateDefaultClause:os,createHeritageClause:Wr,updateHeritageClause:If,createCatchClause:Yc,updateCatchClause:F0,createPropertyAssignment:dA,updatePropertyAssignment:_E,createShorthandPropertyAssignment:uA,updateShorthandPropertyAssignment:D,createSpreadAssignment:Et,updateSpreadAssignment:An,createEnumMember:vi,updateEnumMember:wi,createSourceFile:Ao,updateSourceFile:B0,createRedirectedSourceFile:Li,createBundle:Vu,updateBundle:nT,createSyntheticExpression:jx,createSyntaxList:Nm,createNotEmittedStatement:bl,createNotEmittedTypeElement:$m,createPartiallyEmittedExpression:pA,updatePartiallyEmittedExpression:Mv,createCommaListExpression:gE,updateCommaListExpression:Iz,createSyntheticReferenceExpression:iL,updateSyntheticReferenceExpression:Ux,cloneNode:fA,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:xz,createImmediatelyInvokedArrowFunction:yE,createVoidZero:mA,createExportDefault:aL,createExternalModuleExport:qx,createTypeCheck:uo,createIsNotTypeCheck:iT,createMethodCall:ar,createGlobalMethodCall:vE,createFunctionBindCall:sL,createFunctionCallCall:MC,createFunctionApplyCall:PC,createArraySliceCall:uW,createArrayConcatCall:hA,createObjectDefinePropertyCall:Rz,createObjectGetOwnPropertyDescriptorCall:LC,createReflectGetCall:K_,createReflectSetCall:pW,createPropertyDescriptor:Dz,createCallBinding:kC,createAssignmentTargetWrapper:g_,inlineExpressions:ee,getInternalName:rt,getLocalName:Pt,getExportName:nn,getDeclarationName:_n,getNamespaceMemberName:ei,getExternalModuleOrNamespaceExportName:wr,restoreOuterExpressions:cL,restoreEnclosingLabel:V0,createUseStrictPrologue:ao,copyPrologue:pr,copyStandardPrologue:zs,copyCustomPrologue:Is,ensureUseStrict:as,liftToBlock:em,mergeLexicalEnvironment:Lv,replaceModifiers:kv,replaceDecoratorsAndModifiers:Fg,replacePropertyName:oT};return Ye(M0e,T=>T(k)),k;function W(T,M){if(T===void 0||T===ae)T=[];else if(mS(T)){if(M===void 0||T.hasTrailingComma===M)return T.transformFlags===void 0&&k0e(T),C.attachNodeArrayDebugInfo(T),T;const tt=T.slice();return tt.pos=T.pos,tt.end=T.end,tt.hasTrailingComma=M,tt.transformFlags=T.transformFlags,C.attachNodeArrayDebugInfo(tt),tt}const V=T.length,ue=V>=1&&V<=4?T.slice():T;return ue.pos=-1,ue.end=-1,ue.hasTrailingComma=!!M,ue.transformFlags=0,k0e(ue),C.attachNodeArrayDebugInfo(ue),ue}function O(T){return t.createBaseNode(T)}function G(T){const M=O(T);return M.symbol=void 0,M.localSymbol=void 0,M}function j(T,M){return T!==M&&(T.typeArguments=M.typeArguments),br(T,M)}function J(T,M=0){const V=typeof T=="number"?T+"":T;C.assert(V.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ue=G(9);return ue.text=V,ue.numericLiteralFlags=M,M&384&&(ue.transformFlags|=1024),ue}function Z(T){const M=lt(10);return M.text=typeof T=="string"?T:kS(T)+"n",M.transformFlags|=32,M}function q(T,M){const V=G(11);return V.text=T,V.singleQuote=M,V}function ye(T,M,V){const ue=q(T,M);return ue.hasExtendedUnicodeEscape=V,V&&(ue.transformFlags|=1024),ue}function ie(T){const M=q(zf(T),void 0);return M.textSourceNode=T,M}function K(T){const M=lt(14);return M.text=T,M}function pe(T,M){switch(T){case 9:return J(M,0);case 10:return Z(M);case 11:return ye(M,void 0);case 12:return W0(M,!1);case 13:return W0(M,!0);case 14:return K(M);case 15:return Vo(T,M,void 0,0)}}function de(T){const M=t.createBaseIdentifierNode(80);return M.escapedText=T,M.jsDoc=void 0,M.flowNode=void 0,M.symbol=void 0,M}function fe(T,M,V,ue){const tt=de(Nl(T));return nw(tt,{flags:M,id:JV,prefix:V,suffix:ue}),JV++,tt}function ve(T,M,V){M===void 0&&T&&(M=jE(T)),M===80&&(M=void 0);const ue=de(Nl(T));return V&&(ue.flags|=256),ue.escapedText==="await"&&(ue.transformFlags|=67108864),ue.flags&256&&(ue.transformFlags|=1024),ue}function xe(T,M,V,ue){let tt=1;M&&(tt|=8);const rn=fe("",tt,V,ue);return T&&T(rn),rn}function X(T){let M=2;return T&&(M|=8),fe("",M,void 0,void 0)}function Ce(T,M=0,V,ue){return C.assert(!(M&7),"Argument out of range: flags"),C.assert((M&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),fe(T,3|M,V,ue)}function Je(T,M=0,V,ue){C.assert(!(M&7),"Argument out of range: flags");const tt=T?dg(T)?n0(!1,V,T,ue,Kr):`generated@${ls(T)}`:"";(V||ue)&&(M|=16);const rn=fe(tt,4|M,V,ue);return rn.original=T,rn}function Se(T){const M=t.createBasePrivateIdentifierNode(81);return M.escapedText=T,M.transformFlags|=16777216,M}function re(T){return po(T,"#")||C.fail("First character of private identifier must be #: "+T),Se(Nl(T))}function be(T,M,V,ue){const tt=Se(Nl(T));return nw(tt,{flags:M,id:JV,prefix:V,suffix:ue}),JV++,tt}function Ne(T,M,V){T&&!po(T,"#")&&C.fail("First character of private identifier must be #: "+T);const ue=8|(T?3:1);return be(T??"",ue,M,V)}function Be(T,M,V){const ue=dg(T)?n0(!0,M,T,V,Kr):`#generated@${ls(T)}`,rn=be(ue,4|(M||V?16:0),M,V);return rn.original=T,rn}function lt(T){return t.createBaseTokenNode(T)}function ce(T){C.assert(T>=0&&T<=166,"Invalid token"),C.assert(T<=15||T>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),C.assert(T<=9||T>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),C.assert(T!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const M=lt(T);let V=0;switch(T){case 134:V=384;break;case 160:V=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:V=1;break;case 108:V=134218752,M.flowNode=void 0;break;case 126:V=1024;break;case 129:V=16777216;break;case 110:V=16384,M.flowNode=void 0;break}return V&&(M.transformFlags|=V),M}function Re(){return ce(108)}function _e(){return ce(110)}function je(){return ce(106)}function Ge(){return ce(112)}function We(){return ce(97)}function at(T){return ce(T)}function Wt(T){const M=[];return T&32&&M.push(at(95)),T&128&&M.push(at(138)),T&2048&&M.push(at(90)),T&4096&&M.push(at(87)),T&1&&M.push(at(125)),T&2&&M.push(at(123)),T&4&&M.push(at(124)),T&64&&M.push(at(128)),T&256&&M.push(at(126)),T&16&&M.push(at(164)),T&8&&M.push(at(148)),T&512&&M.push(at(129)),T&1024&&M.push(at(134)),T&8192&&M.push(at(103)),T&16384&&M.push(at(147)),M.length?M:void 0}function cn(T,M){const V=O(167);return V.left=T,V.right=Vc(M),V.transformFlags|=Fr(V.left)|Qk(V.right),V.flowNode=void 0,V}function gn(T,M,V){return T.left!==M||T.right!==V?br(cn(M,V),T):T}function Kn(T){const M=O(168);return M.expression=i().parenthesizeExpressionOfComputedPropertyName(T),M.transformFlags|=Fr(M.expression)|1024|131072,M}function _t(T,M){return T.expression!==M?br(Kn(M),T):T}function en(T,M,V,ue){const tt=G(169);return tt.modifiers=cs(T),tt.name=Vc(M),tt.constraint=V,tt.default=ue,tt.transformFlags=1,tt.expression=void 0,tt.jsDoc=void 0,tt}function ir(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.constraint!==ue||T.default!==tt?br(en(M,V,ue,tt),T):T}function Di(T,M,V,ue,tt,rn){const Or=G(170);return Or.modifiers=cs(T),Or.dotDotDotToken=M,Or.name=Vc(V),Or.questionToken=ue,Or.type=tt,Or.initializer=uu(rn),Tb(Or.name)?Or.transformFlags=1:Or.transformFlags=rs(Or.modifiers)|Fr(Or.dotDotDotToken)|xb(Or.name)|Fr(Or.questionToken)|Fr(Or.initializer)|(Or.questionToken??Or.type?1:0)|(Or.dotDotDotToken??Or.initializer?1024:0)|(Xh(Or.modifiers)&31?8192:0),Or.jsDoc=void 0,Or}function lo(T,M,V,ue,tt,rn,Or){return T.modifiers!==M||T.dotDotDotToken!==V||T.name!==ue||T.questionToken!==tt||T.type!==rn||T.initializer!==Or?br(Di(M,V,ue,tt,rn,Or),T):T}function zt(T){const M=O(171);return M.expression=i().parenthesizeLeftSideOfAccess(T,!1),M.transformFlags|=Fr(M.expression)|1|8192|33554432,M}function Zr(T,M){return T.expression!==M?br(zt(M),T):T}function Ai(T,M,V,ue){const tt=G(172);return tt.modifiers=cs(T),tt.name=Vc(M),tt.type=ue,tt.questionToken=V,tt.transformFlags=1,tt.initializer=void 0,tt.jsDoc=void 0,tt}function Ni(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.questionToken!==ue||T.type!==tt?Pr(Ai(M,V,ue,tt),T):T}function Pr(T,M){return T!==M&&(T.initializer=M.initializer),br(T,M)}function Ci(T,M,V,ue,tt){const rn=G(173);rn.modifiers=cs(T),rn.name=Vc(M),rn.questionToken=V&&Db(V)?V:void 0,rn.exclamationToken=V&&iw(V)?V:void 0,rn.type=ue,rn.initializer=uu(tt);const Or=rn.flags&33554432||Xh(rn.modifiers)&128;return rn.transformFlags=rs(rn.modifiers)|xb(rn.name)|Fr(rn.initializer)|(Or||rn.questionToken||rn.exclamationToken||rn.type?1:0)|(va(rn.name)||Xh(rn.modifiers)&256&&rn.initializer?8192:0)|16777216,rn.jsDoc=void 0,rn}function $e(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.questionToken!==(ue!==void 0&&Db(ue)?ue:void 0)||T.exclamationToken!==(ue!==void 0&&iw(ue)?ue:void 0)||T.type!==tt||T.initializer!==rn?br(Ci(M,V,ue,tt,rn),T):T}function At(T,M,V,ue,tt,rn){const Or=G(174);return Or.modifiers=cs(T),Or.name=Vc(M),Or.questionToken=V,Or.typeParameters=cs(ue),Or.parameters=cs(tt),Or.type=rn,Or.transformFlags=1,Or.jsDoc=void 0,Or.locals=void 0,Or.nextContainer=void 0,Or.typeArguments=void 0,Or}function mn(T,M,V,ue,tt,rn,Or){return T.modifiers!==M||T.name!==V||T.questionToken!==ue||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or?j(At(M,V,ue,tt,rn,Or),T):T}function dr(T,M,V,ue,tt,rn,Or,ko){const nl=G(175);if(nl.modifiers=cs(T),nl.asteriskToken=M,nl.name=Vc(V),nl.questionToken=ue,nl.exclamationToken=void 0,nl.typeParameters=cs(tt),nl.parameters=W(rn),nl.type=Or,nl.body=ko,!nl.body)nl.transformFlags=1;else{const of=Xh(nl.modifiers)&1024,aT=!!nl.asteriskToken,Ih=of&&aT;nl.transformFlags=rs(nl.modifiers)|Fr(nl.asteriskToken)|xb(nl.name)|Fr(nl.questionToken)|rs(nl.typeParameters)|rs(nl.parameters)|Fr(nl.type)|Fr(nl.body)&-67108865|(Ih?128:of?256:aT?2048:0)|(nl.questionToken||nl.typeParameters||nl.type?1:0)|1024}return nl.typeArguments=void 0,nl.jsDoc=void 0,nl.locals=void 0,nl.nextContainer=void 0,nl.flowNode=void 0,nl.endFlowNode=void 0,nl.returnFlowNode=void 0,nl}function ri(T,M,V,ue,tt,rn,Or,ko,nl){return T.modifiers!==M||T.asteriskToken!==V||T.name!==ue||T.questionToken!==tt||T.typeParameters!==rn||T.parameters!==Or||T.type!==ko||T.body!==nl?ai(dr(M,V,ue,tt,rn,Or,ko,nl),T):T}function ai(T,M){return T!==M&&(T.exclamationToken=M.exclamationToken),br(T,M)}function qi(T){const M=G(176);return M.body=T,M.transformFlags=Fr(T)|16777216,M.modifiers=void 0,M.jsDoc=void 0,M.locals=void 0,M.nextContainer=void 0,M.endFlowNode=void 0,M.returnFlowNode=void 0,M}function $o(T,M){return T.body!==M?Ia(qi(M),T):T}function Ia(T,M){return T!==M&&(T.modifiers=M.modifiers),br(T,M)}function Mn(T,M,V){const ue=G(177);return ue.modifiers=cs(T),ue.parameters=W(M),ue.body=V,ue.body?ue.transformFlags=rs(ue.modifiers)|rs(ue.parameters)|Fr(ue.body)&-67108865|1024:ue.transformFlags=1,ue.typeParameters=void 0,ue.type=void 0,ue.typeArguments=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.returnFlowNode=void 0,ue}function Uo(T,M,V,ue){return T.modifiers!==M||T.parameters!==V||T.body!==ue?ot(Mn(M,V,ue),T):T}function ot(T,M){return T!==M&&(T.typeParameters=M.typeParameters,T.type=M.type),j(T,M)}function Ft(T,M,V,ue,tt){const rn=G(178);return rn.modifiers=cs(T),rn.name=Vc(M),rn.parameters=W(V),rn.type=ue,rn.body=tt,rn.body?rn.transformFlags=rs(rn.modifiers)|xb(rn.name)|rs(rn.parameters)|Fr(rn.type)|Fr(rn.body)&-67108865|(rn.type?1:0):rn.transformFlags=1,rn.typeArguments=void 0,rn.typeParameters=void 0,rn.jsDoc=void 0,rn.locals=void 0,rn.nextContainer=void 0,rn.flowNode=void 0,rn.endFlowNode=void 0,rn.returnFlowNode=void 0,rn}function le(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.parameters!==ue||T.type!==tt||T.body!==rn?ht(Ft(M,V,ue,tt,rn),T):T}function ht(T,M){return T!==M&&(T.typeParameters=M.typeParameters),j(T,M)}function ne(T,M,V,ue){const tt=G(179);return tt.modifiers=cs(T),tt.name=Vc(M),tt.parameters=W(V),tt.body=ue,tt.body?tt.transformFlags=rs(tt.modifiers)|xb(tt.name)|rs(tt.parameters)|Fr(tt.body)&-67108865|(tt.type?1:0):tt.transformFlags=1,tt.typeArguments=void 0,tt.typeParameters=void 0,tt.type=void 0,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.flowNode=void 0,tt.endFlowNode=void 0,tt.returnFlowNode=void 0,tt}function Fe(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.parameters!==ue||T.body!==tt?it(ne(M,V,ue,tt),T):T}function it(T,M){return T!==M&&(T.typeParameters=M.typeParameters,T.type=M.type),j(T,M)}function dt(T,M,V){const ue=G(180);return ue.typeParameters=cs(T),ue.parameters=cs(M),ue.type=V,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Lt(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?j(dt(M,V,ue),T):T}function Ue(T,M,V){const ue=G(181);return ue.typeParameters=cs(T),ue.parameters=cs(M),ue.type=V,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Rt(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?j(Ue(M,V,ue),T):T}function It(T,M,V){const ue=G(182);return ue.modifiers=cs(T),ue.parameters=cs(M),ue.type=V,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Ot(T,M,V,ue){return T.parameters!==V||T.type!==ue||T.modifiers!==M?j(It(M,V,ue),T):T}function nt(T,M){const V=O(205);return V.type=T,V.literal=M,V.transformFlags=1,V}function Kt(T,M,V){return T.type!==M||T.literal!==V?br(nt(M,V),T):T}function Tr(T){return ce(T)}function Oe(T,M,V){const ue=O(183);return ue.assertsModifier=T,ue.parameterName=Vc(M),ue.type=V,ue.transformFlags=1,ue}function Nt(T,M,V,ue){return T.assertsModifier!==M||T.parameterName!==V||T.type!==ue?br(Oe(M,V,ue),T):T}function he(T,M){const V=O(184);return V.typeName=Vc(T),V.typeArguments=M&&i().parenthesizeTypeArguments(W(M)),V.transformFlags=1,V}function B(T,M,V){return T.typeName!==M||T.typeArguments!==V?br(he(M,V),T):T}function Ae(T,M,V){const ue=G(185);return ue.typeParameters=cs(T),ue.parameters=cs(M),ue.type=V,ue.transformFlags=1,ue.modifiers=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function te(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?xt(Ae(M,V,ue),T):T}function xt(T,M){return T!==M&&(T.modifiers=M.modifiers),j(T,M)}function Xt(...T){return T.length===4?Pe(...T):T.length===3?gt(...T):C.fail("Incorrect number of arguments specified.")}function Pe(T,M,V,ue){const tt=G(186);return tt.modifiers=cs(T),tt.typeParameters=cs(M),tt.parameters=cs(V),tt.type=ue,tt.transformFlags=1,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.typeArguments=void 0,tt}function gt(T,M,V){return Pe(void 0,T,M,V)}function Bt(...T){return T.length===5?gr(...T):T.length===4?tr(...T):C.fail("Incorrect number of arguments specified.")}function gr(T,M,V,ue,tt){return T.modifiers!==M||T.typeParameters!==V||T.parameters!==ue||T.type!==tt?j(Xt(M,V,ue,tt),T):T}function tr(T,M,V,ue){return gr(T,T.modifiers,M,V,ue)}function Jn(T,M){const V=O(187);return V.exprName=T,V.typeArguments=M&&i().parenthesizeTypeArguments(M),V.transformFlags=1,V}function ft(T,M,V){return T.exprName!==M||T.typeArguments!==V?br(Jn(M,V),T):T}function Mt(T){const M=G(188);return M.members=W(T),M.transformFlags=1,M}function jt(T,M){return T.members!==M?br(Mt(M),T):T}function Qt(T){const M=O(189);return M.elementType=i().parenthesizeNonArrayTypeOfPostfixType(T),M.transformFlags=1,M}function In(T,M){return T.elementType!==M?br(Qt(M),T):T}function yn(T){const M=O(190);return M.elements=W(i().parenthesizeElementTypesOfTupleType(T)),M.transformFlags=1,M}function wt(T,M){return T.elements!==M?br(yn(M),T):T}function En(T,M,V,ue){const tt=G(203);return tt.dotDotDotToken=T,tt.name=M,tt.questionToken=V,tt.type=ue,tt.transformFlags=1,tt.jsDoc=void 0,tt}function xn(T,M,V,ue,tt){return T.dotDotDotToken!==M||T.name!==V||T.questionToken!==ue||T.type!==tt?br(En(M,V,ue,tt),T):T}function Ln(T){const M=O(191);return M.type=i().parenthesizeTypeOfOptionalType(T),M.transformFlags=1,M}function ln(T,M){return T.type!==M?br(Ln(M),T):T}function Ii(T){const M=O(192);return M.type=T,M.transformFlags=1,M}function ra(T,M){return T.type!==M?br(Ii(M),T):T}function sa(T,M,V){const ue=O(T);return ue.types=k.createNodeArray(V(M)),ue.transformFlags=1,ue}function zo(T,M,V){return T.types!==M?br(sa(T.kind,M,V),T):T}function Gl(T){return sa(193,T,i().parenthesizeConstituentTypesOfUnionType)}function xl(T,M){return zo(T,M,i().parenthesizeConstituentTypesOfUnionType)}function Ps(T){return sa(194,T,i().parenthesizeConstituentTypesOfIntersectionType)}function co(T,M){return zo(T,M,i().parenthesizeConstituentTypesOfIntersectionType)}function Go(T,M,V,ue){const tt=O(195);return tt.checkType=i().parenthesizeCheckTypeOfConditionalType(T),tt.extendsType=i().parenthesizeExtendsTypeOfConditionalType(M),tt.trueType=V,tt.falseType=ue,tt.transformFlags=1,tt.locals=void 0,tt.nextContainer=void 0,tt}function Sc(T,M,V,ue,tt){return T.checkType!==M||T.extendsType!==V||T.trueType!==ue||T.falseType!==tt?br(Go(M,V,ue,tt),T):T}function $s(T){const M=O(196);return M.typeParameter=T,M.transformFlags=1,M}function Ra(T,M){return T.typeParameter!==M?br($s(M),T):T}function tc(T,M){const V=O(204);return V.head=T,V.templateSpans=W(M),V.transformFlags=1,V}function bf(T,M,V){return T.head!==M||T.templateSpans!==V?br(tc(M,V),T):T}function Lo(T,M,V,ue,tt=!1){const rn=O(206);return rn.argument=T,rn.attributes=M,rn.assertions&&rn.assertions.assertClause&&rn.attributes&&(rn.assertions.assertClause=rn.attributes),rn.qualifier=V,rn.typeArguments=ue&&i().parenthesizeTypeArguments(ue),rn.isTypeOf=tt,rn.transformFlags=1,rn}function fa(T,M,V,ue,tt,rn=T.isTypeOf){return T.argument!==M||T.attributes!==V||T.qualifier!==ue||T.typeArguments!==tt||T.isTypeOf!==rn?br(Lo(M,V,ue,tt,rn),T):T}function is(T){const M=O(197);return M.type=T,M.transformFlags=1,M}function qa(T,M){return T.type!==M?br(is(M),T):T}function Zt(){const T=O(198);return T.transformFlags=1,T}function As(T,M){const V=O(199);return V.operator=T,V.type=T===148?i().parenthesizeOperandOfReadonlyTypeOperator(M):i().parenthesizeOperandOfTypeOperator(M),V.transformFlags=1,V}function ql(T,M){return T.type!==M?br(As(T.operator,M),T):T}function lc(T,M){const V=O(200);return V.objectType=i().parenthesizeNonArrayTypeOfPostfixType(T),V.indexType=M,V.transformFlags=1,V}function vd(T,M,V){return T.objectType!==M||T.indexType!==V?br(lc(M,V),T):T}function Fs(T,M,V,ue,tt,rn){const Or=G(201);return Or.readonlyToken=T,Or.typeParameter=M,Or.nameType=V,Or.questionToken=ue,Or.type=tt,Or.members=rn&&W(rn),Or.transformFlags=1,Or.locals=void 0,Or.nextContainer=void 0,Or}function Ee(T,M,V,ue,tt,rn,Or){return T.readonlyToken!==M||T.typeParameter!==V||T.nameType!==ue||T.questionToken!==tt||T.type!==rn||T.members!==Or?br(Fs(M,V,ue,tt,rn,Or),T):T}function Y(T){const M=O(202);return M.literal=T,M.transformFlags=1,M}function pt(T,M){return T.literal!==M?br(Y(M),T):T}function qt(T){const M=O(207);return M.elements=W(T),M.transformFlags|=rs(M.elements)|1024|524288,M.transformFlags&32768&&(M.transformFlags|=65664),M}function fn(T,M){return T.elements!==M?br(qt(M),T):T}function ur(T){const M=O(208);return M.elements=W(T),M.transformFlags|=rs(M.elements)|1024|524288,M}function si(T,M){return T.elements!==M?br(ur(M),T):T}function Dr(T,M,V,ue){const tt=G(209);return tt.dotDotDotToken=T,tt.propertyName=Vc(M),tt.name=Vc(V),tt.initializer=uu(ue),tt.transformFlags|=Fr(tt.dotDotDotToken)|xb(tt.propertyName)|xb(tt.name)|Fr(tt.initializer)|(tt.dotDotDotToken?32768:0)|1024,tt.flowNode=void 0,tt}function Fn(T,M,V,ue,tt){return T.propertyName!==V||T.dotDotDotToken!==M||T.name!==ue||T.initializer!==tt?br(Dr(M,V,ue,tt),T):T}function ro(T,M){const V=O(210),ue=T&&Zs(T),tt=W(T,ue&&Jc(ue)?!0:void 0);return V.elements=i().parenthesizeExpressionsOfCommaDelimitedList(tt),V.multiLine=M,V.transformFlags|=rs(V.elements),V}function So(T,M){return T.elements!==M?br(ro(M,T.multiLine),T):T}function Ns(T,M){const V=G(211);return V.properties=W(T),V.multiLine=M,V.transformFlags|=rs(V.properties),V.jsDoc=void 0,V}function Da(T,M){return T.properties!==M?br(Ns(M,T.multiLine),T):T}function Qs(T,M,V){const ue=G(212);return ue.expression=T,ue.questionDotToken=M,ue.name=V,ue.transformFlags=Fr(ue.expression)|Fr(ue.questionDotToken)|(He(ue.name)?Qk(ue.name):Fr(ue.name)|536870912),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Ec(T,M){const V=Qs(i().parenthesizeLeftSideOfAccess(T,!1),void 0,Vc(M));return OM(T)&&(V.transformFlags|=384),V}function mc(T,M,V){return nF(T)?Ll(T,M,T.questionDotToken,ma(V,He)):T.expression!==M||T.name!==V?br(Ec(M,V),T):T}function Hs(T,M,V){const ue=Qs(i().parenthesizeLeftSideOfAccess(T,!0),M,Vc(V));return ue.flags|=64,ue.transformFlags|=32,ue}function Ll(T,M,V,ue){return C.assert(!!(T.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),T.expression!==M||T.questionDotToken!==V||T.name!==ue?br(Hs(M,V,ue),T):T}function vh(T,M,V){const ue=G(213);return ue.expression=T,ue.questionDotToken=M,ue.argumentExpression=V,ue.transformFlags|=Fr(ue.expression)|Fr(ue.questionDotToken)|Fr(ue.argumentExpression),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Pd(T,M){const V=vh(i().parenthesizeLeftSideOfAccess(T,!1),void 0,wv(M));return OM(T)&&(V.transformFlags|=384),V}function nf(T,M,V){return N9(T)?ze(T,M,T.questionDotToken,V):T.expression!==M||T.argumentExpression!==V?br(Pd(M,V),T):T}function op(T,M,V){const ue=vh(i().parenthesizeLeftSideOfAccess(T,!0),M,wv(V));return ue.flags|=64,ue.transformFlags|=32,ue}function ze(T,M,V,ue){return C.assert(!!(T.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),T.expression!==M||T.questionDotToken!==V||T.argumentExpression!==ue?br(op(M,V,ue),T):T}function Jt(T,M,V,ue){const tt=G(214);return tt.expression=T,tt.questionDotToken=M,tt.typeArguments=V,tt.arguments=ue,tt.transformFlags|=Fr(tt.expression)|Fr(tt.questionDotToken)|rs(tt.typeArguments)|rs(tt.arguments),tt.typeArguments&&(tt.transformFlags|=1),mp(tt.expression)&&(tt.transformFlags|=16384),tt}function er(T,M,V){const ue=Jt(i().parenthesizeLeftSideOfAccess(T,!1),void 0,cs(M),i().parenthesizeExpressionsOfCommaDelimitedList(W(V)));return WM(ue.expression)&&(ue.transformFlags|=8388608),ue}function go(T,M,V,ue){return qE(T)?es(T,M,T.questionDotToken,V,ue):T.expression!==M||T.typeArguments!==V||T.arguments!==ue?br(er(M,V,ue),T):T}function Za(T,M,V,ue){const tt=Jt(i().parenthesizeLeftSideOfAccess(T,!0),M,cs(V),i().parenthesizeExpressionsOfCommaDelimitedList(W(ue)));return tt.flags|=64,tt.transformFlags|=32,tt}function es(T,M,V,ue,tt){return C.assert(!!(T.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),T.expression!==M||T.questionDotToken!==V||T.typeArguments!==ue||T.arguments!==tt?br(Za(M,V,ue,tt),T):T}function Va(T,M,V){const ue=G(215);return ue.expression=i().parenthesizeExpressionOfNew(T),ue.typeArguments=cs(M),ue.arguments=V?i().parenthesizeExpressionsOfCommaDelimitedList(V):void 0,ue.transformFlags|=Fr(ue.expression)|rs(ue.typeArguments)|rs(ue.arguments)|32,ue.typeArguments&&(ue.transformFlags|=1),ue}function Pc(T,M,V,ue){return T.expression!==M||T.typeArguments!==V||T.arguments!==ue?br(Va(M,V,ue),T):T}function tl(T,M,V){const ue=O(216);return ue.tag=i().parenthesizeLeftSideOfAccess(T,!1),ue.typeArguments=cs(M),ue.template=V,ue.transformFlags|=Fr(ue.tag)|rs(ue.typeArguments)|Fr(ue.template)|1024,ue.typeArguments&&(ue.transformFlags|=1),zG(ue.template)&&(ue.transformFlags|=128),ue}function kl(T,M,V,ue){return T.tag!==M||T.typeArguments!==V||T.template!==ue?br(tl(M,V,ue),T):T}function Jl(T,M){const V=O(217);return V.expression=i().parenthesizeOperandOfPrefixUnary(M),V.type=T,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function rf(T,M,V){return T.type!==M||T.expression!==V?br(Jl(M,V),T):T}function bd(T){const M=O(218);return M.expression=T,M.transformFlags=Fr(M.expression),M.jsDoc=void 0,M}function ld(T,M){return T.expression!==M?br(bd(M),T):T}function jp(T,M,V,ue,tt,rn,Or){const ko=G(219);ko.modifiers=cs(T),ko.asteriskToken=M,ko.name=Vc(V),ko.typeParameters=cs(ue),ko.parameters=W(tt),ko.type=rn,ko.body=Or;const nl=Xh(ko.modifiers)&1024,of=!!ko.asteriskToken,aT=nl&&of;return ko.transformFlags=rs(ko.modifiers)|Fr(ko.asteriskToken)|xb(ko.name)|rs(ko.typeParameters)|rs(ko.parameters)|Fr(ko.type)|Fr(ko.body)&-67108865|(aT?128:nl?256:of?2048:0)|(ko.typeParameters||ko.type?1:0)|4194304,ko.typeArguments=void 0,ko.jsDoc=void 0,ko.locals=void 0,ko.nextContainer=void 0,ko.flowNode=void 0,ko.endFlowNode=void 0,ko.returnFlowNode=void 0,ko}function Eu(T,M,V,ue,tt,rn,Or,ko){return T.name!==ue||T.modifiers!==M||T.asteriskToken!==V||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or||T.body!==ko?j(jp(M,V,ue,tt,rn,Or,ko),T):T}function Xf(T,M,V,ue,tt,rn){const Or=G(220);Or.modifiers=cs(T),Or.typeParameters=cs(M),Or.parameters=W(V),Or.type=ue,Or.equalsGreaterThanToken=tt??ce(39),Or.body=i().parenthesizeConciseBodyOfArrowFunction(rn);const ko=Xh(Or.modifiers)&1024;return Or.transformFlags=rs(Or.modifiers)|rs(Or.typeParameters)|rs(Or.parameters)|Fr(Or.type)|Fr(Or.equalsGreaterThanToken)|Fr(Or.body)&-67108865|(Or.typeParameters||Or.type?1:0)|(ko?16640:0)|1024,Or.typeArguments=void 0,Or.jsDoc=void 0,Or.locals=void 0,Or.nextContainer=void 0,Or.flowNode=void 0,Or.endFlowNode=void 0,Or.returnFlowNode=void 0,Or}function G_(T,M,V,ue,tt,rn,Or){return T.modifiers!==M||T.typeParameters!==V||T.parameters!==ue||T.type!==tt||T.equalsGreaterThanToken!==rn||T.body!==Or?j(Xf(M,V,ue,tt,rn,Or),T):T}function Cg(T){const M=O(221);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function Ng(T,M){return T.expression!==M?br(Cg(M),T):T}function ap(T){const M=O(222);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function Xc(T,M){return T.expression!==M?br(ap(M),T):T}function bh(T){const M=O(223);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function Tf(T,M){return T.expression!==M?br(bh(M),T):T}function p_(T){const M=O(224);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression)|256|128|2097152,M}function oe(T,M){return T.expression!==M?br(p_(M),T):T}function ut(T,M){const V=O(225);return V.operator=T,V.operand=i().parenthesizeOperandOfPrefixUnary(M),V.transformFlags|=Fr(V.operand),(T===46||T===47)&&He(V.operand)&&!pl(V.operand)&&!fy(V.operand)&&(V.transformFlags|=268435456),V}function tn(T,M){return T.operand!==M?br(ut(T.operator,M),T):T}function an(T,M){const V=O(226);return V.operator=M,V.operand=i().parenthesizeOperandOfPostfixUnary(T),V.transformFlags|=Fr(V.operand),He(V.operand)&&!pl(V.operand)&&!fy(V.operand)&&(V.transformFlags|=268435456),V}function wn(T,M){return T.operand!==M?br(an(M,T.operator),T):T}function or(T,M,V){const ue=G(227),tt=Jx(M),rn=tt.kind;return ue.left=i().parenthesizeLeftSideOfBinary(rn,T),ue.operatorToken=tt,ue.right=i().parenthesizeRightSideOfBinary(rn,ue.left,V),ue.transformFlags|=Fr(ue.left)|Fr(ue.operatorToken)|Fr(ue.right),rn===61?ue.transformFlags|=32:rn===64?Wa(ue.left)?ue.transformFlags|=5248|ti(ue.left):Cd(ue.left)&&(ue.transformFlags|=5120|ti(ue.left)):rn===43||rn===68?ue.transformFlags|=512:cM(rn)&&(ue.transformFlags|=16),rn===103&&eo(ue.left)&&(ue.transformFlags|=536870912),ue.jsDoc=void 0,ue}function ti(T){return yw(T)?65536:0}function Ti(T,M,V,ue){return T.left!==M||T.operatorToken!==V||T.right!==ue?br(or(M,V,ue),T):T}function $i(T,M,V,ue,tt){const rn=O(228);return rn.condition=i().parenthesizeConditionOfConditionalExpression(T),rn.questionToken=M??ce(58),rn.whenTrue=i().parenthesizeBranchOfConditionalExpression(V),rn.colonToken=ue??ce(59),rn.whenFalse=i().parenthesizeBranchOfConditionalExpression(tt),rn.transformFlags|=Fr(rn.condition)|Fr(rn.questionToken)|Fr(rn.whenTrue)|Fr(rn.colonToken)|Fr(rn.whenFalse),rn.flowNodeWhenFalse=void 0,rn.flowNodeWhenTrue=void 0,rn}function z(T,M,V,ue,tt,rn){return T.condition!==M||T.questionToken!==V||T.whenTrue!==ue||T.colonToken!==tt||T.whenFalse!==rn?br($i(M,V,ue,tt,rn),T):T}function Ve(T,M){const V=O(229);return V.head=T,V.templateSpans=W(M),V.transformFlags|=Fr(V.head)|rs(V.templateSpans)|1024,V}function kt(T,M,V){return T.head!==M||T.templateSpans!==V?br(Ve(M,V),T):T}function On(T,M,V,ue=0){C.assert(!(ue&-7177),"Unsupported template flags.");let tt;if(V!==void 0&&V!==M&&(tt=eVe(T,V),typeof tt=="object"))return C.fail("Invalid raw text");if(M===void 0){if(tt===void 0)return C.fail("Arguments 'text' and 'rawText' may not both be undefined.");M=tt}else tt!==void 0&&C.assert(M===tt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return M}function yo(T){let M=1024;return T&&(M|=128),M}function ta(T,M,V,ue){const tt=lt(T);return tt.text=M,tt.rawText=V,tt.templateFlags=ue&7176,tt.transformFlags=yo(tt.templateFlags),tt}function Eo(T,M,V,ue){const tt=G(T);return tt.text=M,tt.rawText=V,tt.templateFlags=ue&7176,tt.transformFlags=yo(tt.templateFlags),tt}function Vo(T,M,V,ue){return T===15?Eo(T,M,V,ue):ta(T,M,V,ue)}function ml(T,M,V){return T=On(16,T,M,V),Vo(16,T,M,V)}function Ca(T,M,V){return T=On(16,T,M,V),Vo(17,T,M,V)}function cd(T,M,V){return T=On(16,T,M,V),Vo(18,T,M,V)}function Up(T,M,V){return T=On(16,T,M,V),Eo(15,T,M,V)}function Sf(T,M){C.assert(!T||!!M,"A `YieldExpression` with an asteriskToken must have an expression.");const V=O(230);return V.expression=M&&i().parenthesizeExpressionForDisallowedComma(M),V.asteriskToken=T,V.transformFlags|=Fr(V.expression)|Fr(V.asteriskToken)|1024|128|1048576,V}function Yf(T,M,V){return T.expression!==V||T.asteriskToken!==M?br(Sf(M,V),T):T}function Ty(T){const M=O(231);return M.expression=i().parenthesizeExpressionForDisallowedComma(T),M.transformFlags|=Fr(M.expression)|1024|32768,M}function bv(T,M){return T.expression!==M?br(Ty(M),T):T}function zu(T,M,V,ue,tt){const rn=G(232);return rn.modifiers=cs(T),rn.name=Vc(M),rn.typeParameters=cs(V),rn.heritageClauses=cs(ue),rn.members=W(tt),rn.transformFlags|=rs(rn.modifiers)|xb(rn.name)|rs(rn.typeParameters)|rs(rn.heritageClauses)|rs(rn.members)|(rn.typeParameters?1:0)|1024,rn.jsDoc=void 0,rn}function V_(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.heritageClauses!==tt||T.members!==rn?br(zu(M,V,ue,tt,rn),T):T}function Th(){return O(233)}function Im(T,M){const V=O(234);return V.expression=i().parenthesizeLeftSideOfAccess(T,!1),V.typeArguments=M&&i().parenthesizeTypeArguments(M),V.transformFlags|=Fr(V.expression)|rs(V.typeArguments)|1024,V}function jb(T,M,V){return T.expression!==M||T.typeArguments!==V?br(Im(M,V),T):T}function Xe(T,M){const V=O(235);return V.expression=T,V.type=M,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function mt(T,M,V){return T.expression!==M||T.type!==V?br(Xe(M,V),T):T}function Yt(T){const M=O(236);return M.expression=i().parenthesizeLeftSideOfAccess(T,!1),M.transformFlags|=Fr(M.expression)|1,M}function Rn(T,M){return iF(T)?lr(T,M):T.expression!==M?br(Yt(M),T):T}function Qn(T,M){const V=O(239);return V.expression=T,V.type=M,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function Lr(T,M,V){return T.expression!==M||T.type!==V?br(Qn(M,V),T):T}function Yn(T){const M=O(236);return M.flags|=64,M.expression=i().parenthesizeLeftSideOfAccess(T,!0),M.transformFlags|=Fr(M.expression)|1,M}function lr(T,M){return C.assert(!!(T.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),T.expression!==M?br(Yn(M),T):T}function Oi(T,M){const V=O(237);switch(V.keywordToken=T,V.name=M,V.transformFlags|=Fr(V.name),T){case 105:V.transformFlags|=1024;break;case 102:V.transformFlags|=32;break;default:return C.assertNever(T)}return V.flowNode=void 0,V}function Ro(T,M){return T.name!==M?br(Oi(T.keywordToken,M),T):T}function _i(T,M){const V=O(240);return V.expression=T,V.literal=M,V.transformFlags|=Fr(V.expression)|Fr(V.literal)|1024,V}function Do(T,M,V){return T.expression!==M||T.literal!==V?br(_i(M,V),T):T}function Qi(){const T=O(241);return T.transformFlags|=1024,T}function hl(T,M){const V=O(242);return V.statements=W(T),V.multiLine=M,V.transformFlags|=rs(V.statements),V.jsDoc=void 0,V.locals=void 0,V.nextContainer=void 0,V}function sp(T,M){return T.statements!==M?br(hl(M,T.multiLine),T):T}function xm(T,M){const V=O(244);return V.modifiers=cs(T),V.declarationList=Mo(M)?E0(M):M,V.transformFlags|=rs(V.modifiers)|Fr(V.declarationList),Xh(V.modifiers)&128&&(V.transformFlags=1),V.jsDoc=void 0,V.flowNode=void 0,V}function Td(T,M,V){return T.modifiers!==M||T.declarationList!==V?br(xm(M,V),T):T}function Rm(){const T=O(243);return T.jsDoc=void 0,T}function Hp(T){const M=O(245);return M.expression=i().parenthesizeExpressionOfExpressionStatement(T),M.transformFlags|=Fr(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function v0(T,M){return T.expression!==M?br(Hp(M),T):T}function f_(T,M,V){const ue=O(246);return ue.expression=T,ue.thenStatement=zg(M),ue.elseStatement=zg(V),ue.transformFlags|=Fr(ue.expression)|Fr(ue.thenStatement)|Fr(ue.elseStatement),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function j_(T,M,V,ue){return T.expression!==M||T.thenStatement!==V||T.elseStatement!==ue?br(f_(M,V,ue),T):T}function b0(T,M){const V=O(247);return V.statement=zg(T),V.expression=M,V.transformFlags|=Fr(V.statement)|Fr(V.expression),V.jsDoc=void 0,V.flowNode=void 0,V}function U_(T,M,V){return T.statement!==M||T.expression!==V?br(b0(M,V),T):T}function bC(T,M){const V=O(248);return V.expression=T,V.statement=zg(M),V.transformFlags|=Fr(V.expression)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function QP(T,M,V){return T.expression!==M||T.statement!==V?br(bC(M,V),T):T}function TC(T,M,V,ue){const tt=O(249);return tt.initializer=T,tt.condition=M,tt.incrementor=V,tt.statement=zg(ue),tt.transformFlags|=Fr(tt.initializer)|Fr(tt.condition)|Fr(tt.incrementor)|Fr(tt.statement),tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.flowNode=void 0,tt}function Mg(T,M,V,ue,tt){return T.initializer!==M||T.condition!==V||T.incrementor!==ue||T.statement!==tt?br(TC(M,V,ue,tt),T):T}function T0(T,M,V){const ue=O(250);return ue.initializer=T,ue.expression=M,ue.statement=zg(V),ue.transformFlags|=Fr(ue.initializer)|Fr(ue.expression)|Fr(ue.statement),ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.flowNode=void 0,ue}function U1(T,M,V,ue){return T.initializer!==M||T.expression!==V||T.statement!==ue?br(T0(M,V,ue),T):T}function Tv(T,M,V,ue){const tt=O(251);return tt.awaitModifier=T,tt.initializer=M,tt.expression=i().parenthesizeExpressionForDisallowedComma(V),tt.statement=zg(ue),tt.transformFlags|=Fr(tt.awaitModifier)|Fr(tt.initializer)|Fr(tt.expression)|Fr(tt.statement)|1024,T&&(tt.transformFlags|=128),tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.flowNode=void 0,tt}function H1(T,M,V,ue,tt){return T.awaitModifier!==M||T.initializer!==V||T.expression!==ue||T.statement!==tt?br(Tv(M,V,ue,tt),T):T}function Ix(T){const M=O(252);return M.label=Vc(T),M.transformFlags|=Fr(M.label)|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function ZP(T,M){return T.label!==M?br(Ix(M),T):T}function q1(T){const M=O(253);return M.label=Vc(T),M.transformFlags|=Fr(M.label)|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function xx(T,M){return T.label!==M?br(q1(M),T):T}function S0(T){const M=O(254);return M.expression=T,M.transformFlags|=Fr(M.expression)|128|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function SC(T,M){return T.expression!==M?br(S0(M),T):T}function J1(T,M){const V=O(255);return V.expression=T,V.statement=zg(M),V.transformFlags|=Fr(V.expression)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function Rx(T,M,V){return T.expression!==M||T.statement!==V?br(J1(M,V),T):T}function sE(T,M){const V=O(256);return V.expression=i().parenthesizeExpressionForDisallowedComma(T),V.caseBlock=M,V.transformFlags|=Fr(V.expression)|Fr(V.caseBlock),V.jsDoc=void 0,V.flowNode=void 0,V.possiblyExhaustive=!1,V}function Ub(T,M,V){return T.expression!==M||T.caseBlock!==V?br(sE(M,V),T):T}function Dx(T,M){const V=O(257);return V.label=Vc(T),V.statement=zg(M),V.transformFlags|=Fr(V.label)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function Cx(T,M,V){return T.label!==M||T.statement!==V?br(Dx(M,V),T):T}function lE(T){const M=O(258);return M.expression=T,M.transformFlags|=Fr(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function Hb(T,M){return T.expression!==M?br(lE(M),T):T}function Sv(T,M,V){const ue=O(259);return ue.tryBlock=T,ue.catchClause=M,ue.finallyBlock=V,ue.transformFlags|=Fr(ue.tryBlock)|Fr(ue.catchClause)|Fr(ue.finallyBlock),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Sy(T,M,V,ue){return T.tryBlock!==M||T.catchClause!==V||T.finallyBlock!==ue?br(Sv(M,V,ue),T):T}function Ey(){const T=O(260);return T.jsDoc=void 0,T.flowNode=void 0,T}function Ay(T,M,V,ue){const tt=G(261);return tt.name=Vc(T),tt.exclamationToken=M,tt.type=V,tt.initializer=uu(ue),tt.transformFlags|=xb(tt.name)|Fr(tt.initializer)|(tt.exclamationToken??tt.type?1:0),tt.jsDoc=void 0,tt}function qb(T,M,V,ue,tt){return T.name!==M||T.type!==ue||T.exclamationToken!==V||T.initializer!==tt?br(Ay(M,V,ue,tt),T):T}function E0(T,M=0){const V=O(262);return V.flags|=M&7,V.declarations=W(T),V.transformFlags|=rs(V.declarations)|4194304,M&7&&(V.transformFlags|=263168),M&4&&(V.transformFlags|=4),V}function K1(T,M){return T.declarations!==M?br(E0(M,T.flags),T):T}function A0(T,M,V,ue,tt,rn,Or){const ko=G(263);if(ko.modifiers=cs(T),ko.asteriskToken=M,ko.name=Vc(V),ko.typeParameters=cs(ue),ko.parameters=W(tt),ko.type=rn,ko.body=Or,!ko.body||Xh(ko.modifiers)&128)ko.transformFlags=1;else{const nl=Xh(ko.modifiers)&1024,of=!!ko.asteriskToken,aT=nl&&of;ko.transformFlags=rs(ko.modifiers)|Fr(ko.asteriskToken)|xb(ko.name)|rs(ko.typeParameters)|rs(ko.parameters)|Fr(ko.type)|Fr(ko.body)&-67108865|(aT?128:nl?256:of?2048:0)|(ko.typeParameters||ko.type?1:0)|4194304}return ko.typeArguments=void 0,ko.jsDoc=void 0,ko.locals=void 0,ko.nextContainer=void 0,ko.endFlowNode=void 0,ko.returnFlowNode=void 0,ko}function ns(T,M,V,ue,tt,rn,Or,ko){return T.modifiers!==M||T.asteriskToken!==V||T.name!==ue||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or||T.body!==ko?X1(A0(M,V,ue,tt,rn,Or,ko),T):T}function X1(T,M){return T!==M&&T.modifiers===M.modifiers&&(T.modifiers=M.modifiers),j(T,M)}function EC(T,M,V,ue,tt){const rn=G(264);return rn.modifiers=cs(T),rn.name=Vc(M),rn.typeParameters=cs(V),rn.heritageClauses=cs(ue),rn.members=W(tt),Xh(rn.modifiers)&128?rn.transformFlags=1:(rn.transformFlags|=rs(rn.modifiers)|xb(rn.name)|rs(rn.typeParameters)|rs(rn.heritageClauses)|rs(rn.members)|(rn.typeParameters?1:0)|1024,rn.transformFlags&8192&&(rn.transformFlags|=1)),rn.jsDoc=void 0,rn}function Iy(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.heritageClauses!==tt||T.members!==rn?br(EC(M,V,ue,tt,rn),T):T}function xy(T,M,V,ue,tt){const rn=G(265);return rn.modifiers=cs(T),rn.name=Vc(M),rn.typeParameters=cs(V),rn.heritageClauses=cs(ue),rn.members=W(tt),rn.transformFlags=1,rn.jsDoc=void 0,rn}function H_(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.heritageClauses!==tt||T.members!==rn?br(xy(M,V,ue,tt,rn),T):T}function cl(T,M,V,ue){const tt=G(266);return tt.modifiers=cs(T),tt.name=Vc(M),tt.typeParameters=cs(V),tt.type=ue,tt.transformFlags=1,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt}function qd(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.type!==tt?br(cl(M,V,ue,tt),T):T}function lp(T,M,V){const ue=G(267);return ue.modifiers=cs(T),ue.name=Vc(M),ue.members=W(V),ue.transformFlags|=rs(ue.modifiers)|Fr(ue.name)|rs(ue.members)|1,ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function Jd(T,M,V,ue){return T.modifiers!==M||T.name!==V||T.members!==ue?br(lp(M,V,ue),T):T}function I0(T,M,V,ue=0){const tt=G(268);return tt.modifiers=cs(T),tt.flags|=ue&2088,tt.name=M,tt.body=V,Xh(tt.modifiers)&128?tt.transformFlags=1:tt.transformFlags|=rs(tt.modifiers)|Fr(tt.name)|Fr(tt.body)|1,tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt}function Au(T,M,V,ue){return T.modifiers!==M||T.name!==V||T.body!==ue?br(I0(M,V,ue,T.flags),T):T}function q_(T){const M=O(269);return M.statements=W(T),M.transformFlags|=rs(M.statements),M.jsDoc=void 0,M}function Bu(T,M){return T.statements!==M?br(q_(M),T):T}function Dm(T){const M=O(270);return M.clauses=W(T),M.transformFlags|=rs(M.clauses),M.locals=void 0,M.nextContainer=void 0,M}function qm(T,M){return T.clauses!==M?br(Dm(M),T):T}function x0(T){const M=G(271);return M.name=Vc(T),M.transformFlags|=Qk(M.name)|1,M.modifiers=void 0,M.jsDoc=void 0,M}function R0(T,M){return T.name!==M?eL(x0(M),T):T}function eL(T,M){return T!==M&&(T.modifiers=M.modifiers),br(T,M)}function AC(T,M,V,ue){const tt=G(272);return tt.modifiers=cs(T),tt.name=Vc(V),tt.isTypeOnly=M,tt.moduleReference=ue,tt.transformFlags|=rs(tt.modifiers)|Qk(tt.name)|Fr(tt.moduleReference),uy(tt.moduleReference)||(tt.transformFlags|=1),tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt}function Ev(T,M,V,ue,tt){return T.modifiers!==M||T.isTypeOnly!==V||T.name!==ue||T.moduleReference!==tt?br(AC(M,V,ue,tt),T):T}function cE(T,M,V,ue){const tt=O(273);return tt.modifiers=cs(T),tt.importClause=M,tt.moduleSpecifier=V,tt.attributes=tt.assertClause=ue,tt.transformFlags|=Fr(tt.importClause)|Fr(tt.moduleSpecifier),tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt}function Qe(T,M,V,ue,tt){return T.modifiers!==M||T.importClause!==V||T.moduleSpecifier!==ue||T.attributes!==tt?br(cE(M,V,ue,tt),T):T}function Y1(T,M,V){const ue=G(274);return typeof T=="boolean"&&(T=T?156:void 0),ue.isTypeOnly=T===156,ue.phaseModifier=T,ue.name=M,ue.namedBindings=V,ue.transformFlags|=Fr(ue.name)|Fr(ue.namedBindings),T===156&&(ue.transformFlags|=1),ue.transformFlags&=-67108865,ue}function Pg(T,M,V,ue){return typeof M=="boolean"&&(M=M?156:void 0),T.phaseModifier!==M||T.name!==V||T.namedBindings!==ue?br(Y1(M,V,ue),T):T}function Jm(T,M){const V=O(301);return V.elements=W(T),V.multiLine=M,V.token=132,V.transformFlags|=4,V}function Av(T,M,V){return T.elements!==M||T.multiLine!==V?br(Jm(M,V),T):T}function Jb(T,M){const V=O(302);return V.name=T,V.value=M,V.transformFlags|=4,V}function Iu(T,M,V){return T.name!==M||T.value!==V?br(Jb(M,V),T):T}function Sh(T,M){const V=O(303);return V.assertClause=T,V.multiLine=M,V}function Cm(T,M,V){return T.assertClause!==M||T.multiLine!==V?br(Sh(M,V),T):T}function D0(T,M,V){const ue=O(301);return ue.token=V??118,ue.elements=W(T),ue.multiLine=M,ue.transformFlags|=4,ue}function ja(T,M,V){return T.elements!==M||T.multiLine!==V?br(D0(M,V,T.token),T):T}function Ef(T,M){const V=O(302);return V.name=T,V.value=M,V.transformFlags|=4,V}function Iv(T,M,V){return T.name!==M||T.value!==V?br(Ef(M,V),T):T}function $1(T){const M=G(275);return M.name=T,M.transformFlags|=Fr(M.name),M.transformFlags&=-67108865,M}function Ry(T,M){return T.name!==M?br($1(M),T):T}function dE(T){const M=G(281);return M.name=T,M.transformFlags|=Fr(M.name)|32,M.transformFlags&=-67108865,M}function $f(T,M){return T.name!==M?br(dE(M),T):T}function Lg(T){const M=O(276);return M.elements=W(T),M.transformFlags|=rs(M.elements),M.transformFlags&=-67108865,M}function C0(T,M){return T.elements!==M?br(Lg(M),T):T}function xv(T,M,V){const ue=G(277);return ue.isTypeOnly=T,ue.propertyName=M,ue.name=V,ue.transformFlags|=Fr(ue.propertyName)|Fr(ue.name),ue.transformFlags&=-67108865,ue}function m_(T,M,V,ue){return T.isTypeOnly!==M||T.propertyName!==V||T.name!==ue?br(xv(M,V,ue),T):T}function uE(T,M,V){const ue=G(278);return ue.modifiers=cs(T),ue.isExportEquals=M,ue.expression=M?i().parenthesizeRightSideOfBinary(64,void 0,V):i().parenthesizeExpressionOfExportDefault(V),ue.transformFlags|=rs(ue.modifiers)|Fr(ue.expression),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function N0(T,M,V){return T.modifiers!==M||T.expression!==V?br(uE(M,T.isExportEquals,V),T):T}function Jr(T,M,V,ue,tt){const rn=G(279);return rn.modifiers=cs(T),rn.isTypeOnly=M,rn.exportClause=V,rn.moduleSpecifier=ue,rn.attributes=rn.assertClause=tt,rn.transformFlags|=rs(rn.modifiers)|Fr(rn.exportClause)|Fr(rn.moduleSpecifier),rn.transformFlags&=-67108865,rn.jsDoc=void 0,rn}function Vr(T,M,V,ue,tt,rn){return T.modifiers!==M||T.isTypeOnly!==V||T.exportClause!==ue||T.moduleSpecifier!==tt||T.attributes!==rn?Sd(Jr(M,V,ue,tt,rn),T):T}function Sd(T,M){return T!==M&&T.modifiers===M.modifiers&&(T.modifiers=M.modifiers),br(T,M)}function Q1(T){const M=O(280);return M.elements=W(T),M.transformFlags|=rs(M.elements),M.transformFlags&=-67108865,M}function Dy(T,M){return T.elements!==M?br(Q1(M),T):T}function pE(T,M,V){const ue=O(282);return ue.isTypeOnly=T,ue.propertyName=Vc(M),ue.name=Vc(V),ue.transformFlags|=Fr(ue.propertyName)|Fr(ue.name),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function IC(T,M,V,ue){return T.isTypeOnly!==M||T.propertyName!==V||T.name!==ue?br(pE(M,V,ue),T):T}function tL(){const T=G(283);return T.jsDoc=void 0,T}function zr(T){const M=O(284);return M.expression=T,M.transformFlags|=Fr(M.expression),M.transformFlags&=-67108865,M}function xu(T,M){return T.expression!==M?br(zr(M),T):T}function Wo(T){return O(T)}function vp(T,M,V=!1){const ue=Z1(T,V?M&&i().parenthesizeNonArrayTypeOfPostfixType(M):M);return ue.postfix=V,ue}function Z1(T,M){const V=O(T);return V.type=M,V}function Kb(T,M,V){return M.type!==V?br(vp(T,V,M.postfix),M):M}function Mr(T,M,V){return M.type!==V?br(Z1(T,V),M):M}function xC(T,M){const V=G(318);return V.parameters=cs(T),V.type=M,V.transformFlags=rs(V.parameters)|(V.type?1:0),V.jsDoc=void 0,V.locals=void 0,V.nextContainer=void 0,V.typeArguments=void 0,V}function Nx(T,M,V){return T.parameters!==M||T.type!==V?br(xC(M,V),T):T}function cu(T,M=!1){const V=G(323);return V.jsDocPropertyTags=cs(T),V.isArrayType=M,V}function J_(T,M,V){return T.jsDocPropertyTags!==M||T.isArrayType!==V?br(cu(M,V),T):T}function Eh(T){const M=O(310);return M.type=T,M}function Xb(T,M){return T.type!==M?br(Eh(M),T):T}function eA(T,M,V){const ue=G(324);return ue.typeParameters=cs(T),ue.parameters=W(M),ue.type=V,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue}function Yb(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?br(eA(M,V,ue),T):T}function Af(T){const M=KV(T.kind);return T.tagName.escapedText===Nl(M)?T.tagName:ve(M)}function Km(T,M,V){const ue=O(T);return ue.tagName=M,ue.comment=V,ue}function Qf(T,M,V){const ue=G(T);return ue.tagName=M,ue.comment=V,ue}function cp(T,M,V,ue){const tt=Km(346,T??ve("template"),ue);return tt.constraint=M,tt.typeParameters=W(V),tt}function Rv(T,M=Af(T),V,ue,tt){return T.tagName!==M||T.constraint!==V||T.typeParameters!==ue||T.comment!==tt?br(cp(M,V,ue,tt),T):T}function M0(T,M,V,ue){const tt=Qf(347,T??ve("typedef"),ue);return tt.typeExpression=M,tt.fullName=V,tt.name=Dj(V),tt.locals=void 0,tt.nextContainer=void 0,tt}function Mx(T,M=Af(T),V,ue,tt){return T.tagName!==M||T.typeExpression!==V||T.fullName!==ue||T.comment!==tt?br(M0(M,V,ue,tt),T):T}function P0(T,M,V,ue,tt,rn){const Or=Qf(342,T??ve("param"),rn);return Or.typeExpression=ue,Or.name=M,Or.isNameFirst=!!tt,Or.isBracketed=V,Or}function $b(T,M=Af(T),V,ue,tt,rn,Or){return T.tagName!==M||T.name!==V||T.isBracketed!==ue||T.typeExpression!==tt||T.isNameFirst!==rn||T.comment!==Or?br(P0(M,V,ue,tt,rn,Or),T):T}function Px(T,M,V,ue,tt,rn){const Or=Qf(349,T??ve("prop"),rn);return Or.typeExpression=ue,Or.name=M,Or.isNameFirst=!!tt,Or.isBracketed=V,Or}function Cy(T,M=Af(T),V,ue,tt,rn,Or){return T.tagName!==M||T.name!==V||T.isBracketed!==ue||T.typeExpression!==tt||T.isNameFirst!==rn||T.comment!==Or?br(Px(M,V,ue,tt,rn,Or),T):T}function h_(T,M,V,ue){const tt=Qf(339,T??ve("callback"),ue);return tt.typeExpression=M,tt.fullName=V,tt.name=Dj(V),tt.locals=void 0,tt.nextContainer=void 0,tt}function Qb(T,M=Af(T),V,ue,tt){return T.tagName!==M||T.typeExpression!==V||T.fullName!==ue||T.comment!==tt?br(h_(M,V,ue,tt),T):T}function L0(T,M,V){const ue=Km(340,T??ve("overload"),V);return ue.typeExpression=M,ue}function Dv(T,M=Af(T),V,ue){return T.tagName!==M||T.typeExpression!==V||T.comment!==ue?br(L0(M,V,ue),T):T}function Zb(T,M,V){const ue=Km(329,T??ve("augments"),V);return ue.class=M,ue}function Xm(T,M=Af(T),V,ue){return T.tagName!==M||T.class!==V||T.comment!==ue?br(Zb(M,V,ue),T):T}function Ny(T,M,V){const ue=Km(330,T??ve("implements"),V);return ue.class=M,ue}function kg(T,M,V){const ue=Km(348,T??ve("see"),V);return ue.name=M,ue}function eT(T,M,V,ue){return T.tagName!==M||T.name!==V||T.comment!==ue?br(kg(M,V,ue),T):T}function dd(T){const M=O(311);return M.name=T,M}function fE(T,M){return T.name!==M?br(dd(M),T):T}function wg(T,M){const V=O(312);return V.left=T,V.right=M,V.transformFlags|=Fr(V.left)|Fr(V.right),V}function k0(T,M,V){return T.left!==M||T.right!==V?br(wg(M,V),T):T}function tA(T,M){const V=O(325);return V.name=T,V.text=M,V}function Og(T,M,V){return T.name!==M?br(tA(M,V),T):T}function RC(T,M){const V=O(326);return V.name=T,V.text=M,V}function Lx(T,M,V){return T.name!==M?br(RC(M,V),T):T}function kx(T,M){const V=O(327);return V.name=T,V.text=M,V}function nL(T,M,V){return T.name!==M?br(kx(M,V),T):T}function wx(T,M=Af(T),V,ue){return T.tagName!==M||T.class!==V||T.comment!==ue?br(Ny(M,V,ue),T):T}function w0(T,M,V){return Km(T,M??ve(KV(T)),V)}function My(T,M,V=Af(M),ue){return M.tagName!==V||M.comment!==ue?br(w0(T,V,ue),M):M}function DC(T,M,V,ue){const tt=Km(T,M??ve(KV(T)),ue);return tt.typeExpression=V,tt}function O0(T,M,V=Af(M),ue,tt){return M.tagName!==V||M.typeExpression!==ue||M.comment!==tt?br(DC(T,V,ue,tt),M):M}function nA(T,M){return Km(328,T,M)}function hc(T,M,V){return T.tagName!==M||T.comment!==V?br(nA(M,V),T):T}function ud(T,M,V){const ue=Qf(341,T??ve(KV(341)),V);return ue.typeExpression=M,ue.locals=void 0,ue.nextContainer=void 0,ue}function Ox(T,M=Af(T),V,ue){return T.tagName!==M||T.typeExpression!==V||T.comment!==ue?br(ud(M,V,ue),T):T}function dp(T,M,V,ue,tt){const rn=Km(352,T??ve("import"),tt);return rn.importClause=M,rn.moduleSpecifier=V,rn.attributes=ue,rn.comment=tt,rn}function Zf(T,M,V,ue,tt,rn){return T.tagName!==M||T.comment!==rn||T.importClause!==V||T.moduleSpecifier!==ue||T.attributes!==tt?br(dp(M,V,ue,tt,rn),T):T}function mE(T){const M=O(322);return M.text=T,M}function Ah(T,M){return T.text!==M?br(mE(M),T):T}function tT(T,M){const V=O(321);return V.comment=T,V.tags=cs(M),V}function Cv(T,M,V){return T.comment!==M||T.tags!==V?br(tT(M,V),T):T}function Wx(T,M,V){const ue=O(285);return ue.openingElement=T,ue.children=W(M),ue.closingElement=V,ue.transformFlags|=Fr(ue.openingElement)|rs(ue.children)|Fr(ue.closingElement)|2,ue}function rL(T,M,V,ue){return T.openingElement!==M||T.children!==V||T.closingElement!==ue?br(Wx(M,V,ue),T):T}function Vl(T,M,V){const ue=O(286);return ue.tagName=T,ue.typeArguments=cs(M),ue.attributes=V,ue.transformFlags|=Fr(ue.tagName)|rs(ue.typeArguments)|Fr(ue.attributes)|2,ue.typeArguments&&(ue.transformFlags|=1),ue}function CC(T,M,V,ue){return T.tagName!==M||T.typeArguments!==V||T.attributes!==ue?br(Vl(M,V,ue),T):T}function rA(T,M,V){const ue=O(287);return ue.tagName=T,ue.typeArguments=cs(M),ue.attributes=V,ue.transformFlags|=Fr(ue.tagName)|rs(ue.typeArguments)|Fr(ue.attributes)|2,M&&(ue.transformFlags|=1),ue}function hE(T,M,V,ue){return T.tagName!==M||T.typeArguments!==V||T.attributes!==ue?br(rA(M,V,ue),T):T}function Fx(T){const M=O(288);return M.tagName=T,M.transformFlags|=Fr(M.tagName)|2,M}function du(T,M){return T.tagName!==M?br(Fx(M),T):T}function bp(T,M,V){const ue=O(289);return ue.openingFragment=T,ue.children=W(M),ue.closingFragment=V,ue.transformFlags|=Fr(ue.openingFragment)|rs(ue.children)|Fr(ue.closingFragment)|2,ue}function iA(T,M,V,ue){return T.openingFragment!==M||T.children!==V||T.closingFragment!==ue?br(bp(M,V,ue),T):T}function W0(T,M){const V=O(12);return V.text=T,V.containsOnlyTriviaWhiteSpaces=!!M,V.transformFlags|=2,V}function Tp(T,M,V){return T.text!==M||T.containsOnlyTriviaWhiteSpaces!==V?br(W0(M,V),T):T}function oA(){const T=O(290);return T.transformFlags|=2,T}function Wg(){const T=O(291);return T.transformFlags|=2,T}function zx(T,M){const V=G(292);return V.name=T,V.initializer=M,V.transformFlags|=Fr(V.name)|Fr(V.initializer)|2,V}function aA(T,M,V){return T.name!==M||T.initializer!==V?br(zx(M,V),T):T}function Ym(T){const M=G(293);return M.properties=W(T),M.transformFlags|=rs(M.properties)|2,M}function Bx(T,M){return T.properties!==M?br(Ym(M),T):T}function NC(T){const M=O(294);return M.expression=T,M.transformFlags|=Fr(M.expression)|2,M}function Gx(T,M){return T.expression!==M?br(NC(M),T):T}function sA(T,M){const V=O(295);return V.dotDotDotToken=T,V.expression=M,V.transformFlags|=Fr(V.dotDotDotToken)|Fr(V.expression)|2,V}function Vx(T,M){return T.expression!==M?br(sA(T.dotDotDotToken,M),T):T}function Nv(T,M){const V=O(296);return V.namespace=T,V.name=M,V.transformFlags|=Fr(V.namespace)|Fr(V.name)|2,V}function qp(T,M,V){return T.namespace!==M||T.name!==V?br(Nv(M,V),T):T}function __(T,M){const V=O(297);return V.expression=i().parenthesizeExpressionForDisallowedComma(T),V.statements=W(M),V.transformFlags|=Fr(V.expression)|rs(V.statements),V.jsDoc=void 0,V}function lA(T,M,V){return T.expression!==M||T.statements!==V?br(__(M,V),T):T}function cA(T){const M=O(298);return M.statements=W(T),M.transformFlags=rs(M.statements),M}function os(T,M){return T.statements!==M?br(cA(M),T):T}function Wr(T,M){const V=O(299);switch(V.token=T,V.types=W(M),V.transformFlags|=rs(V.types),T){case 96:V.transformFlags|=1024;break;case 119:V.transformFlags|=1;break;default:return C.assertNever(T)}return V}function If(T,M){return T.types!==M?br(Wr(T.token,M),T):T}function Yc(T,M){const V=O(300);return V.variableDeclaration=Y_(T),V.block=M,V.transformFlags|=Fr(V.variableDeclaration)|Fr(V.block)|(T?0:64),V.locals=void 0,V.nextContainer=void 0,V}function F0(T,M,V){return T.variableDeclaration!==M||T.block!==V?br(Yc(M,V),T):T}function dA(T,M){const V=G(304);return V.name=Vc(T),V.initializer=i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=xb(V.name)|Fr(V.initializer),V.modifiers=void 0,V.questionToken=void 0,V.exclamationToken=void 0,V.jsDoc=void 0,V}function _E(T,M,V){return T.name!==M||T.initializer!==V?z0(dA(M,V),T):T}function z0(T,M){return T!==M&&(T.modifiers=M.modifiers,T.questionToken=M.questionToken,T.exclamationToken=M.exclamationToken),br(T,M)}function uA(T,M){const V=G(305);return V.name=Vc(T),V.objectAssignmentInitializer=M&&i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=Qk(V.name)|Fr(V.objectAssignmentInitializer)|1024,V.equalsToken=void 0,V.modifiers=void 0,V.questionToken=void 0,V.exclamationToken=void 0,V.jsDoc=void 0,V}function D(T,M,V){return T.name!==M||T.objectAssignmentInitializer!==V?me(uA(M,V),T):T}function me(T,M){return T!==M&&(T.modifiers=M.modifiers,T.questionToken=M.questionToken,T.exclamationToken=M.exclamationToken,T.equalsToken=M.equalsToken),br(T,M)}function Et(T){const M=G(306);return M.expression=i().parenthesizeExpressionForDisallowedComma(T),M.transformFlags|=Fr(M.expression)|128|65536,M.jsDoc=void 0,M}function An(T,M){return T.expression!==M?br(Et(M),T):T}function vi(T,M){const V=G(307);return V.name=Vc(T),V.initializer=M&&i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=Fr(V.name)|Fr(V.initializer)|1,V.jsDoc=void 0,V}function wi(T,M,V){return T.name!==M||T.initializer!==V?br(vi(M,V),T):T}function Ao(T,M,V){const ue=t.createBaseSourceFileNode(308);return ue.statements=W(T),ue.endOfFileToken=M,ue.flags|=V,ue.text="",ue.fileName="",ue.path="",ue.resolvedPath="",ue.originalFileName="",ue.languageVersion=1,ue.languageVariant=0,ue.scriptKind=0,ue.isDeclarationFile=!1,ue.hasNoDefaultLib=!1,ue.transformFlags|=rs(ue.statements)|Fr(ue.endOfFileToken),ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.nodeCount=0,ue.identifierCount=0,ue.symbolCount=0,ue.parseDiagnostics=void 0,ue.bindDiagnostics=void 0,ue.bindSuggestionDiagnostics=void 0,ue.lineMap=void 0,ue.externalModuleIndicator=void 0,ue.setExternalModuleIndicator=void 0,ue.pragmas=void 0,ue.checkJsDirective=void 0,ue.referencedFiles=void 0,ue.typeReferenceDirectives=void 0,ue.libReferenceDirectives=void 0,ue.amdDependencies=void 0,ue.commentDirectives=void 0,ue.identifiers=void 0,ue.packageJsonLocations=void 0,ue.packageJsonScope=void 0,ue.imports=void 0,ue.moduleAugmentations=void 0,ue.ambientModuleNames=void 0,ue.classifiableNames=void 0,ue.impliedNodeFormat=void 0,ue}function Li(T){const M=Object.create(T.redirectTarget);return Object.defineProperties(M,{id:{get(){return this.redirectInfo.redirectTarget.id},set(V){this.redirectInfo.redirectTarget.id=V}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(V){this.redirectInfo.redirectTarget.symbol=V}}}),M.redirectInfo=T,M}function Ja(T){const M=Li(T.redirectInfo);return M.flags|=T.flags&-17,M.fileName=T.fileName,M.path=T.path,M.resolvedPath=T.resolvedPath,M.originalFileName=T.originalFileName,M.packageJsonLocations=T.packageJsonLocations,M.packageJsonScope=T.packageJsonScope,M.emitNode=void 0,M}function _c(T){const M=t.createBaseSourceFileNode(308);M.flags|=T.flags&-17;for(const V in T)if(!(Rs(M,V)||!Rs(T,V))){if(V==="emitNode"){M.emitNode=void 0;continue}M[V]=T[V]}return M}function Kd(T){const M=T.redirectInfo?Ja(T):_c(T);return r(M,T),M}function Gu(T,M,V,ue,tt,rn,Or){const ko=Kd(T);return ko.statements=W(M),ko.isDeclarationFile=V,ko.referencedFiles=ue,ko.typeReferenceDirectives=tt,ko.hasNoDefaultLib=rn,ko.libReferenceDirectives=Or,ko.transformFlags=rs(ko.statements)|Fr(ko.endOfFileToken),ko}function B0(T,M,V=T.isDeclarationFile,ue=T.referencedFiles,tt=T.typeReferenceDirectives,rn=T.hasNoDefaultLib,Or=T.libReferenceDirectives){return T.statements!==M||T.isDeclarationFile!==V||T.referencedFiles!==ue||T.typeReferenceDirectives!==tt||T.hasNoDefaultLib!==rn||T.libReferenceDirectives!==Or?br(Gu(T,M,V,ue,tt,rn,Or),T):T}function Vu(T){const M=O(309);return M.sourceFiles=T,M.syntheticFileReferences=void 0,M.syntheticTypeReferences=void 0,M.syntheticLibReferences=void 0,M.hasNoDefaultLib=void 0,M}function nT(T,M){return T.sourceFiles!==M?br(Vu(M),T):T}function jx(T,M=!1,V){const ue=O(238);return ue.type=T,ue.isSpread=M,ue.tupleNameSource=V,ue}function Nm(T){const M=O(353);return M._children=T,M}function bl(T){const M=O(354);return M.original=T,vt(M,T),M}function pA(T,M){const V=O(356);return V.expression=T,V.original=M,V.transformFlags|=Fr(V.expression)|1,vt(V,M),V}function Mv(T,M){return T.expression!==M?br(pA(M,T.original),T):T}function $m(){return O(355)}function Pv(T){if(Os(T)&&!DN(T)&&!T.original&&!T.emitNode&&!T.id){if(BM(T))return T.elements;if(Nr(T)&&Kre(T.operatorToken))return[T.left,T.right]}return T}function gE(T){const M=O(357);return M.elements=W(wm(T,Pv)),M.transformFlags|=rs(M.elements),M}function Iz(T,M){return T.elements!==M?br(gE(M),T):T}function iL(T,M){const V=O(358);return V.expression=T,V.thisArg=M,V.transformFlags|=Fr(V.expression)|Fr(V.thisArg),V}function Ux(T,M,V){return T.expression!==M||T.thisArg!==V?br(iL(M,V),T):T}function oL(T){const M=de(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),nw(M,{...T.emitNode.autoGenerate}),M}function dW(T){const M=de(T.escapedText);M.flags|=T.flags&-17,M.jsDoc=T.jsDoc,M.flowNode=T.flowNode,M.symbol=T.symbol,M.transformFlags=T.transformFlags,r(M,T);const V=m1(T);return V&&lv(M,V),M}function rT(T){const M=Se(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),nw(M,{...T.emitNode.autoGenerate}),M}function Hx(T){const M=Se(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),M}function fA(T){if(T===void 0)return T;if(Yi(T))return Kd(T);if(pl(T))return oL(T);if(He(T))return dW(T);if(KE(T))return rT(T);if(eo(T))return Hx(T);const M=oF(T.kind)?t.createBaseNode(T.kind):t.createBaseTokenNode(T.kind);M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T);for(const V in T)Rs(M,V)||!Rs(T,V)||(M[V]=T[V]);return M}function xz(T,M,V){return er(jp(void 0,void 0,void 0,void 0,M?[M]:[],void 0,hl(T,!0)),void 0,V?[V]:[])}function yE(T,M,V){return er(Xf(void 0,void 0,M?[M]:[],void 0,void 0,hl(T,!0)),void 0,V?[V]:[])}function mA(){return bh(J("0"))}function aL(T){return uE(void 0,!1,T)}function qx(T){return Jr(void 0,!1,Q1([pE(!1,void 0,T)]))}function uo(T,M){return M==="null"?k.createStrictEquality(T,je()):M==="undefined"?k.createStrictEquality(T,mA()):k.createStrictEquality(ap(T),ye(M))}function iT(T,M){return M==="null"?k.createStrictInequality(T,je()):M==="undefined"?k.createStrictInequality(T,mA()):k.createStrictInequality(ap(T),ye(M))}function ar(T,M,V){return qE(T)?Za(Hs(T,void 0,M),void 0,void 0,V):er(Ec(T,M),void 0,V)}function sL(T,M,V){return ar(T,"bind",[M,...V])}function MC(T,M,V){return ar(T,"call",[M,...V])}function PC(T,M,V){return ar(T,"apply",[M,V])}function vE(T,M,V){return ar(ve(T),M,V)}function uW(T,M){return ar(T,"slice",M===void 0?[]:[wv(M)])}function hA(T,M){return ar(T,"concat",M)}function Rz(T,M,V){return vE("Object","defineProperty",[T,wv(M),V])}function LC(T,M){return vE("Object","getOwnPropertyDescriptor",[T,wv(M)])}function K_(T,M,V){return vE("Reflect","get",V?[T,M,V]:[T,M])}function pW(T,M,V,ue){return vE("Reflect","set",ue?[T,M,V,ue]:[T,M,V])}function G0(T,M,V){return V?(T.push(dA(M,V)),!0):!1}function Dz(T,M){const V=[];G0(V,"enumerable",wv(T.enumerable)),G0(V,"configurable",wv(T.configurable));let ue=G0(V,"writable",wv(T.writable));ue=G0(V,"value",T.value)||ue;let tt=G0(V,"get",T.get);return tt=G0(V,"set",T.set)||tt,C.assert(!(ue&&tt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ns(V,!M)}function lL(T,M){switch(T.kind){case 218:return ld(T,M);case 217:return rf(T,T.type,M);case 235:return mt(T,M,T.type);case 239:return Lr(T,M,T.type);case 236:return Rn(T,M);case 234:return jb(T,M,T.typeArguments);case 356:return Mv(T,M)}}function fW(T){return wu(T)&&Os(T)&&Os(sv(T))&&Os(Zh(T))&&!yt(_D(T))&&!yt(tw(T))}function cL(T,M,V=63){return T&&v4(T,V)&&!fW(T)?lL(T,cL(T.expression,M)):M}function V0(T,M,V){if(!M)return T;const ue=Cx(M,M.label,Mb(M.statement)?V0(T,M.statement):T);return V&&V(M),ue}function X_(T,M){const V=us(T);switch(V.kind){case 80:return M;case 110:case 9:case 10:case 11:return!1;case 210:return V.elements.length!==0;case 211:return V.properties.length>0;default:return!0}}function kC(T,M,V,ue=!1){const tt=Hl(T,63);let rn,Or;return mp(tt)?(rn=_e(),Or=tt):OM(tt)?(rn=_e(),Or=V!==void 0&&V<2?vt(ve("_super"),tt):tt):Qa(tt)&8192?(rn=mA(),Or=i().parenthesizeLeftSideOfAccess(tt,!1)):qr(tt)?X_(tt.expression,ue)?(rn=xe(M),Or=Ec(vt(k.createAssignment(rn,tt.expression),tt.expression),tt.name),vt(Or,tt)):(rn=tt.expression,Or=tt):Ws(tt)?X_(tt.expression,ue)?(rn=xe(M),Or=Pd(vt(k.createAssignment(rn,tt.expression),tt.expression),tt.argumentExpression),vt(Or,tt)):(rn=tt.expression,Or=tt):(rn=mA(),Or=i().parenthesizeLeftSideOfAccess(T,!1)),{target:Or,thisArg:rn}}function g_(T,M){return Ec(bd(Ns([ne(void 0,"value",[Di(void 0,void 0,T,void 0,void 0,void 0)],hl([Hp(M)]))])),"value")}function ee(T){return T.length>10?gE(T):_u(T,k.createComma)}function ke(T,M,V,ue=0,tt){const rn=tt?T&&$8(T):Oo(T);if(rn&&He(rn)&&!pl(rn)){const Or=ps(vt(fA(rn),rn),rn.parent);return ue|=Qa(rn),V||(ue|=96),M||(ue|=3072),ue&&Cr(Or,ue),Or}return Je(T)}function rt(T,M,V){return ke(T,M,V,98304)}function Pt(T,M,V,ue){return ke(T,M,V,32768,ue)}function nn(T,M,V){return ke(T,M,V,16384)}function _n(T,M,V){return ke(T,M,V)}function ei(T,M,V,ue){const tt=Ec(T,Os(M)?M:fA(M));vt(tt,M);let rn=0;return ue||(rn|=96),V||(rn|=3072),rn&&Cr(tt,rn),tt}function wr(T,M,V,ue){return T&&di(M,32)?ei(T,ke(M),V,ue):nn(M,V,ue)}function pr(T,M,V,ue){const tt=zs(T,M,0,V);return Is(T,M,tt,ue)}function Si(T){return ka(T.expression)&&T.expression.text==="use strict"}function ao(){return ou(Hp(ye("use strict")))}function zs(T,M,V=0,ue){C.assert(M.length===0,"Prologue directives should be at the first statement in the target statements array");let tt=!1;const rn=T.length;for(;Vko&&of.splice(tt,0,...M.slice(ko,nl)),ko>Or&&of.splice(ue,0,...M.slice(Or,ko)),Or>rn&&of.splice(V,0,...M.slice(rn,Or)),rn>0)if(V===0)of.splice(0,0,...M.slice(0,rn));else{const aT=new Map;for(let Ih=0;Ih=0;Ih--){const Kx=M[Ih];aT.has(Kx.expression.text)||of.unshift(Kx)}}return mS(T)?vt(W(of,T.hasTrailingComma),T):T}function kv(T,M){let V;return typeof M=="number"?V=Wt(M):V=M,sl(T)?ir(T,V,T.name,T.constraint,T.default):to(T)?lo(T,V,T.dotDotDotToken,T.name,T.questionToken,T.type,T.initializer):yD(T)?gr(T,V,T.typeParameters,T.parameters,T.type):Tu(T)?Ni(T,V,T.name,T.questionToken,T.type):Po(T)?$e(T,V,T.name,T.questionToken??T.exclamationToken,T.type,T.initializer):Gm(T)?mn(T,V,T.name,T.questionToken,T.typeParameters,T.parameters,T.type):Ml(T)?ri(T,V,T.asteriskToken,T.name,T.questionToken,T.typeParameters,T.parameters,T.type,T.body):Pl(T)?Uo(T,V,T.parameters,T.body):Hf(T)?le(T,V,T.name,T.parameters,T.type,T.body):gp(T)?Fe(T,V,T.name,T.parameters,T.body):Cb(T)?Ot(T,V,T.parameters,T.type):Us(T)?Eu(T,V,T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body):Xs(T)?G_(T,V,T.typeParameters,T.parameters,T.type,T.equalsGreaterThanToken,T.body):uc(T)?V_(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):sc(T)?Td(T,V,T.declarationList):ec(T)?ns(T,V,T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body):Cc(T)?Iy(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):gd(T)?H_(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):vm(T)?qd(T,V,T.name,T.typeParameters,T.type):QT(T)?Jd(T,V,T.name,T.members):pc(T)?Au(T,V,T.name,T.body):zc(T)?Ev(T,V,T.isTypeOnly,T.name,T.moduleReference):vl(T)?Qe(T,V,T.importClause,T.moduleSpecifier,T.attributes):ll(T)?N0(T,V,T.expression):fc(T)?Vr(T,V,T.isTypeOnly,T.exportClause,T.moduleSpecifier,T.attributes):C.assertNever(T)}function Fg(T,M){return to(T)?lo(T,M,T.dotDotDotToken,T.name,T.questionToken,T.type,T.initializer):Po(T)?$e(T,M,T.name,T.questionToken??T.exclamationToken,T.type,T.initializer):Ml(T)?ri(T,M,T.asteriskToken,T.name,T.questionToken,T.typeParameters,T.parameters,T.type,T.body):Hf(T)?le(T,M,T.name,T.parameters,T.type,T.body):gp(T)?Fe(T,M,T.name,T.parameters,T.body):uc(T)?V_(T,M,T.name,T.typeParameters,T.heritageClauses,T.members):Cc(T)?Iy(T,M,T.name,T.typeParameters,T.heritageClauses,T.members):C.assertNever(T)}function oT(T,M){switch(T.kind){case 178:return le(T,T.modifiers,M,T.parameters,T.type,T.body);case 179:return Fe(T,T.modifiers,M,T.parameters,T.body);case 175:return ri(T,T.modifiers,T.asteriskToken,M,T.questionToken,T.typeParameters,T.parameters,T.type,T.body);case 174:return mn(T,T.modifiers,M,T.questionToken,T.typeParameters,T.parameters,T.type);case 173:return $e(T,T.modifiers,M,T.questionToken??T.exclamationToken,T.type,T.initializer);case 172:return Ni(T,T.modifiers,M,T.questionToken,T.type);case 304:return _E(T,M,T.initializer)}}function cs(T){return T?W(T):void 0}function Vc(T){return typeof T=="string"?ve(T):T}function wv(T){return typeof T=="string"?ye(T):typeof T=="number"?J(T):typeof T=="boolean"?T?Ge():We():T}function uu(T){return T&&i().parenthesizeExpressionForDisallowedComma(T)}function Jx(T){return typeof T=="number"?ce(T):T}function zg(T){return T&&cie(T)?vt(r(Rm(),T),T):T}function Y_(T){return typeof T=="string"||T&&!yi(T)?Ay(T,void 0,void 0,void 0):T}function br(T,M){return T!==M&&(r(T,M),vt(T,M)),T}}function KV(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return C.fail(`Unsupported kind: ${C.formatSyntaxKind(e)}`)}}var av,L0e={};function eVe(e,t){switch(av||(av=cg(99,!1,0)),e){case 15:av.setText("`"+t+"`");break;case 16:av.setText("`"+t+"${");break;case 17:av.setText("}"+t+"${");break;case 18:av.setText("}"+t+"`");break}let r=av.scan();if(r===20&&(r=av.reScanTemplateToken(!1)),av.isUnterminated())return av.setText(void 0),L0e;let i;switch(r){case 15:case 16:case 17:case 18:i=av.getTokenValue();break}return i===void 0||av.scan()!==1?(av.setText(void 0),L0e):(av.setText(void 0),i)}function xb(e){return e&&He(e)?Qk(e):Fr(e)}function Qk(e){return Fr(e)&-67108865}function tVe(e,t){return t|e.transformFlags&134234112}function Fr(e){if(!e)return 0;const t=e.transformFlags&~nVe(e.kind);return nd(e)&&bc(e.name)?tVe(e.name,t):t}function rs(e){return e?e.transformFlags:0}function k0e(e){let t=0;for(const r of e)t|=Fr(r);e.transformFlags=t}function nVe(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var X6=Cre();function Y6(e){return e.flags|=16,e}var rVe={createBaseSourceFileNode:e=>Y6(X6.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Y6(X6.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Y6(X6.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Y6(X6.createBaseTokenNode(e)),createBaseNode:e=>Y6(X6.createBaseNode(e))},L=$k(4,rVe),w0e;function O0e(e,t,r){return new(w0e||(w0e=Rd.getSourceMapSourceConstructor()))(e,t,r)}function jr(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=iVe(r,e.emitNode))}return e}function iVe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:d,constantValue:g,helpers:h,startsOnNewLine:y,snippetElement:E,classThis:A,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Xr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Xr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),d&&(t.tokenSourceMapRanges=oVe(d,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),h)for(const N of h)t.helpers=$g(t.helpers,N);return y!==void 0&&(t.startsOnNewLine=y),E!==void 0&&(t.snippetElement=E),A&&(t.classThis=A),R&&(t.assignedName=R),t}function oVe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}function jd(e){if(e.emitNode)C.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(DN(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};const t=Wn(jo(Wn(e)))??C.fail("Could not determine parsed source file.");jd(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function XV(e){var t,r;const i=(r=(t=Wn(jo(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function Zk(e){const t=jd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Cr(e,t){return jd(e).flags=t,e}function Qh(e,t){const r=jd(e);return r.flags=r.flags|t,e}function ew(e,t){return jd(e).internalFlags=t,e}function f1(e,t){const r=jd(e);return r.internalFlags=r.internalFlags|t,e}function sv(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ua(e,t){return jd(e).sourceMapRange=t,e}function W0e(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function wre(e,t,r){const i=jd(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function PM(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function $6(e,t){return jd(e).startsOnNewLine=t,e}function Zh(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function Dc(e,t){return jd(e).commentRange=t,e}function _D(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function qT(e,t){return jd(e).leadingComments=t,e}function Rb(e,t,r,i){return qT(e,Bn(_D(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function tw(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function wI(e,t){return jd(e).trailingComments=t,e}function LM(e,t,r,i){return wI(e,Bn(tw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Ore(e,t){qT(e,_D(t)),wI(e,tw(t));const r=jd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Wre(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Fre(e,t){const r=jd(e);return r.constantValue=t,e}function OI(e,t){const r=jd(e);return r.helpers=Bn(r.helpers,t),e}function Ag(e,t){if(yt(t)){const r=jd(e);for(const i of t)r.helpers=$g(r.helpers,i)}return e}function F0e(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?uN(i,t):!1}function YV(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function zre(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!yt(o))return;const s=jd(t);let l=0;for(let u=0;u0&&(o[u-l]=d)}l>0&&(o.length-=l)}function $V(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function QV(e,t){const r=jd(e);return r.snippetElement=t,e}function ZV(e){return jd(e).internalFlags|=4,e}function Bre(e,t){const r=jd(e);return r.typeNode=t,e}function Gre(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function lv(e,t){return jd(e).identifierTypeArguments=t,e}function m1(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function nw(e,t){return jd(e).autoGenerate=t,e}function z0e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Vre(e,t){return jd(e).generatedImportReference=t,e}function jre(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var Ure=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(Ure||{});function Hre(e){const t=e.factory,r=Cu(()=>ew(t.createTrue(),8)),i=Cu(()=>ew(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:N,createRunInitializersHelper:P,createAssignHelper:k,createAwaitHelper:W,createAsyncGeneratorHelper:O,createAsyncDelegatorHelper:G,createAsyncValuesHelper:j,createRestHelper:J,createAwaiterHelper:Z,createExtendsHelper:q,createTemplateObjectHelper:ye,createSpreadArrayHelper:ie,createPropKeyHelper:K,createSetFunctionNameHelper:pe,createValuesHelper:de,createReadHelper:fe,createGeneratorHelper:ve,createImportStarHelper:xe,createImportStarCallbackHelper:X,createImportDefaultHelper:Ce,createExportStarHelper:Je,createClassPrivateFieldGetHelper:Se,createClassPrivateFieldSetHelper:re,createClassPrivateFieldInHelper:be,createAddDisposableResourceHelper:Ne,createDisposeResourcesHelper:Be,createRewriteRelativeImportExtensionsHelper:lt};function o(ce){return Cr(t.createIdentifier(ce),8196)}function s(ce,Re,_e,je){e.requestEmitHelper(aVe);const Ge=[];return Ge.push(t.createArrayLiteralExpression(ce,!0)),Ge.push(Re),_e&&(Ge.push(_e),je&&Ge.push(je)),t.createCallExpression(o("__decorate"),void 0,Ge)}function l(ce,Re){return e.requestEmitHelper(sVe),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(ce),Re])}function u(ce,Re,_e){return e.requestEmitHelper(lVe),vt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(Re+""),ce]),_e)}function d(ce){const Re=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),ce.name),t.createPropertyAssignment(t.createIdentifier("metadata"),ce.metadata)];return t.createObjectLiteralExpression(Re)}function g(ce){const Re=ce.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ce.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ce.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Re))}function h(ce){const Re=ce.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ce.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ce.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(Re,t.createIdentifier("value")))])))}function y(ce){const Re=ce.computed?ce.name:He(ce.name)?t.createStringLiteralFromNode(ce.name):ce.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(Re,103,t.createIdentifier("obj"))))}function E(ce,Re){const _e=[];return _e.push(y(ce)),Re.get&&_e.push(g(ce)),Re.set&&_e.push(h(ce)),t.createObjectLiteralExpression(_e)}function A(ce){const Re=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(ce.kind)),t.createPropertyAssignment(t.createIdentifier("name"),ce.name.computed?ce.name.name:t.createStringLiteralFromNode(ce.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),ce.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),ce.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),E(ce.name,ce.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),ce.metadata)];return t.createObjectLiteralExpression(Re)}function R(ce){return ce.kind==="class"?d(ce):A(ce)}function N(ce,Re,_e,je,Ge,We){return e.requestEmitHelper(cVe),t.createCallExpression(o("__esDecorate"),void 0,[ce??t.createNull(),Re??t.createNull(),_e,R(je),Ge,We])}function P(ce,Re,_e){return e.requestEmitHelper(dVe),t.createCallExpression(o("__runInitializers"),void 0,_e?[ce,Re,_e]:[ce,Re])}function k(ce){return Ga(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,ce):(e.requestEmitHelper(uVe),t.createCallExpression(o("__assign"),void 0,ce))}function W(ce){return e.requestEmitHelper(Q6),t.createCallExpression(o("__await"),void 0,[ce])}function O(ce,Re){return e.requestEmitHelper(Q6),e.requestEmitHelper(pVe),(ce.emitNode||(ce.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[Re?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),ce])}function G(ce){return e.requestEmitHelper(Q6),e.requestEmitHelper(fVe),t.createCallExpression(o("__asyncDelegator"),void 0,[ce])}function j(ce){return e.requestEmitHelper(mVe),t.createCallExpression(o("__asyncValues"),void 0,[ce])}function J(ce,Re,_e,je){e.requestEmitHelper(hVe);const Ge=[];let We=0;for(let at=0;at{let i="";for(let o=0;o= 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; };`},sVe={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); };`},lVe={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); } };`},cVe={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; };`},dVe={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; };`},uVe={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); };`},Q6={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); }`},pVe={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Q6],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 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), 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]); } };`},fVe={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Q6],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; } };`},mVe={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); } };`},hVe={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; };`},_Ve={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()); }); };`},gVe={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 __()); }; })();`},yVe={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; };`},vVe={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; };`},bVe={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)); };`},TVe={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };`},SVe={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 }); };`},EVe={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."); };`},AVe={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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); return g.next = verb(0), g["throw"] = verb(1), g["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 }; } };`},Jre={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]; }));`},IVe={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; });`},G0e={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Jre,IVe],priority:2,text:` var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })();`},xVe={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };`},RVe={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Jre],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); };`},DVe={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); };`},CVe={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; };`},NVe={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); };`},MVe={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, inner; 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 (async) inner = dispose; } if (typeof dispose !== "function") throw new TypeError("Object not disposable."); if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; env.stack.push({ value: value, dispose: dispose, async: async }); } else if (async) { env.stack.push({ async: true }); } return value; };`},PVe={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; } var r, s = 0; function next() { while (r = env.stack.pop()) { try { if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); if (r.dispose) { var result = r.dispose.call(r.value); if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); } else s |= 1; } catch (e) { fail(e); } } if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); 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; });`},LVe={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:` var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { if (typeof path === "string" && /^\\.\\.?\\//.test(path)) { return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); }); } return path; };`},Z6={name:"typescript:async-super",scoped:!0,text:B0e` const ${"_superIndex"} = name => super[name];`},e4={name:"typescript:advanced-async-super",scoped:!0,text:B0e` 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 kM(e,t){return Zo(e)&&He(e.expression)&&(Qa(e.expression)&8192)!==0&&e.expression.escapedText===t}function np(e){return e.kind===9}function gD(e){return e.kind===10}function ka(e){return e.kind===11}function WI(e){return e.kind===12}function ej(e){return e.kind===14}function h1(e){return e.kind===15}function FI(e){return e.kind===16}function tj(e){return e.kind===17}function t4(e){return e.kind===18}function n4(e){return e.kind===26}function Kre(e){return e.kind===28}function nj(e){return e.kind===40}function rj(e){return e.kind===41}function rw(e){return e.kind===42}function iw(e){return e.kind===54}function Db(e){return e.kind===58}function Xre(e){return e.kind===59}function r4(e){return e.kind===29}function Yre(e){return e.kind===39}function He(e){return e.kind===80}function eo(e){return e.kind===81}function zI(e){return e.kind===95}function i4(e){return e.kind===90}function wM(e){return e.kind===134}function $re(e){return e.kind===131}function ij(e){return e.kind===135}function Qre(e){return e.kind===148}function BI(e){return e.kind===126}function Zre(e){return e.kind===128}function eie(e){return e.kind===164}function oj(e){return e.kind===129}function OM(e){return e.kind===108}function WM(e){return e.kind===102}function tie(e){return e.kind===84}function Lu(e){return e.kind===167}function va(e){return e.kind===168}function sl(e){return e.kind===169}function to(e){return e.kind===170}function Fc(e){return e.kind===171}function Tu(e){return e.kind===172}function Po(e){return e.kind===173}function Gm(e){return e.kind===174}function Ml(e){return e.kind===175}function Zl(e){return e.kind===176}function Pl(e){return e.kind===177}function Hf(e){return e.kind===178}function gp(e){return e.kind===179}function GI(e){return e.kind===180}function FM(e){return e.kind===181}function Cb(e){return e.kind===182}function VI(e){return e.kind===183}function Wp(e){return e.kind===184}function w_(e){return e.kind===185}function yD(e){return e.kind===186}function WS(e){return e.kind===187}function ku(e){return e.kind===188}function ow(e){return e.kind===189}function jI(e){return e.kind===190}function vD(e){return e.kind===203}function o4(e){return e.kind===191}function a4(e){return e.kind===192}function cv(e){return e.kind===193}function UI(e){return e.kind===194}function FS(e){return e.kind===195}function _1(e){return e.kind===196}function g1(e){return e.kind===197}function zM(e){return e.kind===198}function JT(e){return e.kind===199}function zS(e){return e.kind===200}function y1(e){return e.kind===201}function dv(e){return e.kind===202}function e_(e){return e.kind===206}function aj(e){return e.kind===205}function nie(e){return e.kind===204}function ff(e){return e.kind===207}function uv(e){return e.kind===208}function Ha(e){return e.kind===209}function Cd(e){return e.kind===210}function Wa(e){return e.kind===211}function qr(e){return e.kind===212}function Ws(e){return e.kind===213}function Zo(e){return e.kind===214}function BS(e){return e.kind===215}function KT(e){return e.kind===216}function s4(e){return e.kind===217}function wu(e){return e.kind===218}function Us(e){return e.kind===219}function Xs(e){return e.kind===220}function rie(e){return e.kind===221}function bD(e){return e.kind===222}function HI(e){return e.kind===223}function Nb(e){return e.kind===224}function XT(e){return e.kind===225}function sj(e){return e.kind===226}function Nr(e){return e.kind===227}function v1(e){return e.kind===228}function l4(e){return e.kind===229}function aw(e){return e.kind===230}function qf(e){return e.kind===231}function uc(e){return e.kind===232}function Jc(e){return e.kind===233}function dy(e){return e.kind===234}function TD(e){return e.kind===235}function SD(e){return e.kind===239}function qI(e){return e.kind===236}function b1(e){return e.kind===237}function V0e(e){return e.kind===238}function iie(e){return e.kind===356}function BM(e){return e.kind===357}function ED(e){return e.kind===240}function oie(e){return e.kind===241}function ea(e){return e.kind===242}function sc(e){return e.kind===244}function lj(e){return e.kind===243}function od(e){return e.kind===245}function YT(e){return e.kind===246}function j0e(e){return e.kind===247}function cj(e){return e.kind===248}function $T(e){return e.kind===249}function c4(e){return e.kind===250}function sw(e){return e.kind===251}function U0e(e){return e.kind===252}function H0e(e){return e.kind===253}function tf(e){return e.kind===254}function aie(e){return e.kind===255}function GM(e){return e.kind===256}function Mb(e){return e.kind===257}function dj(e){return e.kind===258}function T1(e){return e.kind===259}function q0e(e){return e.kind===260}function yi(e){return e.kind===261}function _d(e){return e.kind===262}function ec(e){return e.kind===263}function Cc(e){return e.kind===264}function gd(e){return e.kind===265}function vm(e){return e.kind===266}function QT(e){return e.kind===267}function pc(e){return e.kind===268}function t_(e){return e.kind===269}function VM(e){return e.kind===270}function lw(e){return e.kind===271}function zc(e){return e.kind===272}function vl(e){return e.kind===273}function Vm(e){return e.kind===274}function J0e(e){return e.kind===303}function sie(e){return e.kind===301}function K0e(e){return e.kind===302}function S1(e){return e.kind===301}function lie(e){return e.kind===302}function Ig(e){return e.kind===275}function O_(e){return e.kind===281}function n_(e){return e.kind===276}function Su(e){return e.kind===277}function ll(e){return e.kind===278}function fc(e){return e.kind===279}function Jf(e){return e.kind===280}function iu(e){return e.kind===282}function d4(e){return e.kind===80||e.kind===11}function X0e(e){return e.kind===283}function cie(e){return e.kind===354}function JI(e){return e.kind===358}function uy(e){return e.kind===284}function r_(e){return e.kind===285}function E1(e){return e.kind===286}function ph(e){return e.kind===287}function GS(e){return e.kind===288}function ZT(e){return e.kind===289}function jm(e){return e.kind===290}function die(e){return e.kind===291}function i_(e){return e.kind===292}function VS(e){return e.kind===293}function KI(e){return e.kind===294}function AD(e){return e.kind===295}function fh(e){return e.kind===296}function ID(e){return e.kind===297}function jM(e){return e.kind===298}function Fp(e){return e.kind===299}function jS(e){return e.kind===300}function Nc(e){return e.kind===304}function Ud(e){return e.kind===305}function xg(e){return e.kind===306}function py(e){return e.kind===307}function Yi(e){return e.kind===308}function uie(e){return e.kind===309}function e0(e){return e.kind===310}function UM(e){return e.kind===311}function t0(e){return e.kind===312}function pie(e){return e.kind===325}function fie(e){return e.kind===326}function Y0e(e){return e.kind===327}function mie(e){return e.kind===313}function hie(e){return e.kind===314}function xD(e){return e.kind===315}function u4(e){return e.kind===316}function uj(e){return e.kind===317}function RD(e){return e.kind===318}function p4(e){return e.kind===319}function $0e(e){return e.kind===320}function mh(e){return e.kind===321}function A1(e){return e.kind===323}function pv(e){return e.kind===324}function XI(e){return e.kind===329}function Q0e(e){return e.kind===331}function _ie(e){return e.kind===333}function pj(e){return e.kind===339}function fj(e){return e.kind===334}function mj(e){return e.kind===335}function hj(e){return e.kind===336}function _j(e){return e.kind===337}function f4(e){return e.kind===338}function DD(e){return e.kind===340}function gj(e){return e.kind===332}function Z0e(e){return e.kind===348}function cw(e){return e.kind===341}function mf(e){return e.kind===342}function m4(e){return e.kind===343}function yj(e){return e.kind===344}function HM(e){return e.kind===345}function bm(e){return e.kind===346}function I1(e){return e.kind===347}function eSe(e){return e.kind===328}function gie(e){return e.kind===349}function h4(e){return e.kind===330}function _4(e){return e.kind===351}function tSe(e){return e.kind===350}function o_(e){return e.kind===352}function CD(e){return e.kind===353}var qM=new WeakMap;function vj(e,t){var r;const i=e.kind;return oF(i)?i===353?e._children:(r=qM.get(t))==null?void 0:r.get(e):ae}function yie(e,t,r){e.kind===353&&C.fail("Should not need to re-set the children of a SyntaxList.");let i=qM.get(t);return i===void 0&&(i=new WeakMap,qM.set(t,i)),i.set(e,r),r}function bj(e,t){var r;e.kind===353&&C.fail("Did not expect to unset the children of a SyntaxList."),(r=qM.get(t))==null||r.delete(e)}function vie(e,t){const r=qM.get(e);r!==void 0&&(qM.delete(e),qM.set(t,r))}function dw(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function x1(e,t,r,i){if(va(r))return vt(e.createElementAccessExpression(t,r.expression),i);{const o=vt(dg(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return Qh(o,128),o}}function bie(e,t){const r=r0.createIdentifier(e||"React");return ps(r,jo(t)),r}function Tie(e,t,r){if(Lu(t)){const i=Tie(e,t.left,r),o=e.createIdentifier(Kr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return bie(Kr(t),r)}function Tj(e,t,r,i){return t?Tie(e,t,i):e.createPropertyAccessExpression(bie(r,i),"createElement")}function kVe(e,t,r,i){return t?Tie(e,t,i):e.createPropertyAccessExpression(bie(r,i),"Fragment")}function Sie(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)ou(u),l.push(u);else l.push(o[0]);return vt(e.createCallExpression(t,void 0,l),s)}function Eie(e,t,r,i,o,s,l){const d=[kVe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const g of o)ou(g),d.push(g);else d.push(o[0]);return vt(e.createCallExpression(Tj(e,t,i,s),void 0,d),l)}function Sj(e,t,r){if(_d(t)){const i=$a(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return vt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=vt(e.createAssignment(t,r),t);return vt(e.createExpressionStatement(i),t)}}function uw(e,t){if(Lu(t)){const r=uw(e,t.left),i=ps(vt(e.cloneNode(t.right),t.right),t.right.parent);return vt(e.createPropertyAccessExpression(r,i),t)}else return ps(vt(e.cloneNode(t),t),t.parent)}function Ej(e,t){return He(t)?e.createStringLiteralFromNode(t):va(t)?ps(vt(e.cloneNode(t.expression),t.expression),t.expression.parent):ps(vt(e.cloneNode(t),t),t.parent)}function wVe(e,t,r,i,o){const{firstAccessor:s,getAccessor:l,setAccessor:u}=NS(t,r);if(r===s)return vt(e.createObjectDefinePropertyCall(i,Ej(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&vt(jr(e.createFunctionExpression(fS(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&vt(jr(e.createFunctionExpression(fS(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function OVe(e,t,r){return jr(vt(e.createAssignment(x1(e,r,t.name,t.name),t.initializer),t),t)}function WVe(e,t,r){return jr(vt(e.createAssignment(x1(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function FVe(e,t,r){return jr(vt(e.createAssignment(x1(e,r,t.name,t.name),jr(vt(e.createFunctionExpression(fS(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Aie(e,t,r,i){switch(r.name&&eo(r.name)&&C.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 178:case 179:return wVe(e,t.properties,r,i,!!t.multiLine);case 304:return OVe(e,r,i);case 305:return WVe(e,r,i);case 175:return FVe(e,r,i)}}function g4(e,t,r,i,o){const s=t.operator;C.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),vt(r,t.operand);let u=XT(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return vt(u,t),o&&(u=e.createAssignment(o,u),vt(u,t)),r=e.createComma(r,u),vt(r,t),sj(t)&&(r=e.createComma(r,l),vt(r,t)),r}function Aj(e){return(Qa(e)&65536)!==0}function fy(e){return(Qa(e)&32768)!==0}function y4(e){return(Qa(e)&16384)!==0}function nSe(e){return ka(e.expression)&&e.expression.text==="use strict"}function Ij(e){for(const t of e)if(Uh(t)){if(nSe(t))return t}else break}function Iie(e){const t=Ic(e);return t!==void 0&&Uh(t)&&nSe(t)}function pw(e){return e.kind===227&&e.operatorToken.kind===28}function JM(e){return pw(e)||BM(e)}function US(e){return wu(e)&&Ir(e)&&!!PT(e)}function ND(e){const t=Yy(e);return C.assertIsDefined(t),t}function v4(e,t=63){switch(e.kind){case 218:return t&-2147483648&&US(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function Hl(e,t=63){for(;v4(e,t);)e=e.expression;return e}function xie(e,t=63){let r=e.parent;for(;v4(r,t);)r=r.parent,C.assert(r);return r}function ou(e){return $6(e,!0)}function fw(e){const t=yl(e,Yi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Rie(e){const t=yl(e,Yi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function xj(e,t,r,i,o,s,l){if(i.importHelpers&&UR(r,i)){const u=vu(i),d=k1(r,i),g=zVe(r);if(d!==1&&(u>=5&&u<=99||d===99||d===void 0&&u===200)){if(g){const h=[];for(const y of g){const E=y.importName;E&&kf(h,E)}if(yt(h)){h.sort(Wd);const y=e.createNamedImports(Vt(h,N=>SF(r,N)?e.createImportSpecifier(!1,void 0,e.createIdentifier(N)):e.createImportSpecifier(!1,e.createIdentifier(N),t.getUnscopedHelperName(N)))),E=yl(r,Yi),A=jd(E);A.externalHelpers=!0;const R=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,y),e.createStringLiteral(fb),void 0);return f1(R,2),R}}}else{const h=BVe(e,r,i,g,o,s||l);if(h){const y=e.createImportEqualsDeclaration(void 0,!1,h,e.createExternalModuleReference(e.createStringLiteral(fb)));return f1(y,2),y}}}}function zVe(e){return Un(YV(e),t=>!t.scoped)}function BVe(e,t,r,i,o,s){const l=fw(t);if(l)return l;if(yt(i)||(o||$h(r)&&s)&&yP(t,r)<4){const d=yl(t,Yi),g=jd(d);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(fb))}}function MD(e,t,r){const i=QR(t);if(i&&!o1(t)&&!AF(t)){const o=i.name;return o.kind===11?e.getGeneratedNameForNode(t):pl(o)?o:e.createIdentifier(yS(r,o)||Kr(o))}if(t.kind===273&&t.importClause||t.kind===279&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function YI(e,t,r,i,o,s){const l=hI(t);if(l&&ka(l))return VVe(t,i,e,o,s)||GVe(e,l,r)||e.cloneNode(l)}function GVe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function mw(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&i.outFile)return e.createStringLiteral(jG(r,t.fileName))}}function VVe(e,t,r,i,o){return mw(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function hw(e){if(C2(e))return e.initializer;if(Nc(e)){const t=e.initializer;return id(t,!0)?t.right:void 0}if(Ud(e))return e.objectAssignmentInitializer;if(id(e,!0))return e.right;if(qf(e))return hw(e.expression)}function Pb(e){if(C2(e))return e.name;if(ny(e)){switch(e.kind){case 304:return Pb(e.initializer);case 305:return e.name;case 306:return Pb(e.expression)}return}return id(e,!0)?Pb(e.left):qf(e)?Pb(e.expression):e}function b4(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function Rj(e){const t=T4(e);return C.assert(!!t||xg(e),"Invalid property name for binding element."),t}function T4(e){switch(e.kind){case 209:if(e.propertyName){const r=e.propertyName;return eo(r)?C.failBadSyntaxKind(r):va(r)&&rSe(r.expression)?r.expression:r}break;case 304:if(e.name){const r=e.name;return eo(r)?C.failBadSyntaxKind(r):va(r)&&rSe(r.expression)?r.expression:r}break;case 306:return e.name&&eo(e.name)?C.failBadSyntaxKind(e.name):e.name}const t=Pb(e);if(t&&bc(t))return t}function rSe(e){const t=e.kind;return t===11||t===9}function PD(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function Dj(e){if(e){let t=e;for(;;){if(He(t)||!t.body)return He(t)?t:t.name;t=t.body}}}function iSe(e){const t=e.kind;return t===177||t===179}function Die(e){const t=e.kind;return t===177||t===178||t===179}function Cj(e){const t=e.kind;return t===304||t===305||t===263||t===177||t===182||t===176||t===283||t===244||t===265||t===266||t===267||t===268||t===272||t===273||t===271||t===279||t===278}function Cie(e){const t=e.kind;return t===176||t===304||t===305||t===283||t===271}function Nie(e){return Db(e)||iw(e)}function Mie(e){return He(e)||zM(e)}function Pie(e){return Qre(e)||nj(e)||rj(e)}function Lie(e){return Db(e)||nj(e)||rj(e)}function kie(e){return He(e)||ka(e)}function jVe(e){return e===43}function UVe(e){return e===42||e===44||e===45}function HVe(e){return jVe(e)||UVe(e)}function qVe(e){return e===40||e===41}function JVe(e){return qVe(e)||HVe(e)}function KVe(e){return e===48||e===49||e===50}function Nj(e){return KVe(e)||JVe(e)}function XVe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function YVe(e){return XVe(e)||Nj(e)}function $Ve(e){return e===35||e===37||e===36||e===38}function QVe(e){return $Ve(e)||YVe(e)}function ZVe(e){return e===51||e===52||e===53}function eje(e){return ZVe(e)||QVe(e)}function tje(e){return e===56||e===57}function nje(e){return tje(e)||eje(e)}function rje(e){return e===61||nje(e)||sy(e)}function ije(e){return rje(e)||e===28}function wie(e){return ije(e.kind)}var Mj;(e=>{function t(h,y,E,A,R,N,P){const k=y>0?R[y-1]:void 0;return C.assertEqual(E[y],t),R[y]=h.onEnter(A[y],k,P),E[y]=u(h,t),y}e.enter=t;function r(h,y,E,A,R,N,P){C.assertEqual(E[y],r),C.assertIsDefined(h.onLeft),E[y]=u(h,r);const k=h.onLeft(A[y].left,R[y],A[y]);return k?(g(y,A,k),d(y,E,A,R,k)):y}e.left=r;function i(h,y,E,A,R,N,P){return C.assertEqual(E[y],i),C.assertIsDefined(h.onOperator),E[y]=u(h,i),h.onOperator(A[y].operatorToken,R[y],A[y]),y}e.operator=i;function o(h,y,E,A,R,N,P){C.assertEqual(E[y],o),C.assertIsDefined(h.onRight),E[y]=u(h,o);const k=h.onRight(A[y].right,R[y],A[y]);return k?(g(y,A,k),d(y,E,A,R,k)):y}e.right=o;function s(h,y,E,A,R,N,P){C.assertEqual(E[y],s),E[y]=u(h,s);const k=h.onExit(A[y],R[y]);if(y>0){if(y--,h.foldState){const W=E[y]===s?"right":"left";R[y]=h.foldState(R[y],k,W)}}else N.value=k;return y}e.exit=s;function l(h,y,E,A,R,N,P){return C.assertEqual(E[y],l),y}e.done=l;function u(h,y){switch(y){case t:if(h.onLeft)return r;case r:if(h.onOperator)return i;case i:if(h.onRight)return o;case o:return s;case s:return l;case l:return l;default:C.fail("Invalid state")}}e.nextState=u;function d(h,y,E,A,R){return h++,y[h]=t,E[h]=R,A[h]=void 0,h}function g(h,y,E){if(C.shouldAssert(2))for(;h>=0;)C.assert(y[h]!==E,"Circular traversal detected."),h--}})(Mj||(Mj={}));var oje=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 S4(e,t,r,i,o,s){const l=new oje(e,t,r,i,o,s);return u;function u(d,g){const h={value:void 0},y=[Mj.enter],E=[d],A=[void 0];let R=0;for(;y[R]!==Mj.done;)R=y[R](l,R,y,E,A,h,g);return C.assertEqual(R,0),h.value}}function aje(e){return e===95||e===90}function _w(e){const t=e.kind;return aje(t)}function Oie(e,t){if(t!==void 0)return t.length===0?t:vt(e.createNodeArray([],t.hasTrailingComma),t)}function gw(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(dg(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function LD(e,t){return typeof e=="object"?n0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function sje(e,t){return typeof e=="string"?e:lje(e,C.checkDefined(t))}function lje(e,t){return KE(e)?t(e).slice(1):pl(e)?t(e):eo(e)?e.escapedText.slice(1):Kr(e)}function n0(e,t,r,i,o){return t=LD(t,o),i=LD(i,o),r=sje(r,o),`${e?"#":""}${t}${r}${i}`}function Pj(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Wie(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 Fie(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 E4(e){let t=e.expression;for(;;){if(t=Hl(t),BM(t)){t=Ba(t.elements);continue}if(pw(t)){t=t.right;continue}if(id(t,!0)&&pl(t.left))return t;break}}function cje(e){return wu(e)&&Os(e)&&!e.emitNode}function A4(e,t){if(cje(e))A4(e.expression,t);else if(pw(e))A4(e.left,t),A4(e.right,t);else if(BM(e))for(const r of e.elements)A4(r,t);else t.push(e)}function zie(e){const t=[];return A4(e,t),t}function yw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of PD(e)){const r=Pb(t);if(r&&ON(r)&&(r.transformFlags&65536||r.transformFlags&128&&yw(r)))return!0}return!1}function vt(e,t){return t?uh(e,t.pos,t.end):e}function Tm(e){const t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function HS(e){const t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var oSe,aSe,sSe,lSe,cSe,Bie={createBaseSourceFileNode:e=>new(cSe||(cSe=Rd.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(sSe||(sSe=Rd.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(lSe||(lSe=Rd.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(aSe||(aSe=Rd.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(oSe||(oSe=Rd.getNodeConstructor()))(e,-1,-1)},r0=$k(1,Bie);function dn(e,t){return t&&e(t)}function Xi(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function Lj(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function vw(e){return Ye(e.statements,dje)||uje(e)}function dje(e){return Tm(e)&&pje(e,95)||zc(e)&&uy(e.moduleReference)||vl(e)||ll(e)||fc(e)?e:void 0}function uje(e){return e.flags&8388608?dSe(e):void 0}function dSe(e){return fje(e)?e:Jo(e,dSe)}function pje(e,t){return yt(e.modifiers,r=>r.kind===t)}function fje(e){return b1(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var mje={167:function(t,r,i){return dn(r,t.left)||dn(r,t.right)},169:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.constraint)||dn(r,t.default)||dn(r,t.expression)},305:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||dn(r,t.equalsToken)||dn(r,t.objectAssignmentInitializer)},306:function(t,r,i){return dn(r,t.expression)},170:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.dotDotDotToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.type)||dn(r,t.initializer)},173:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||dn(r,t.type)||dn(r,t.initializer)},172:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.type)||dn(r,t.initializer)},304:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||dn(r,t.initializer)},261:function(t,r,i){return dn(r,t.name)||dn(r,t.exclamationToken)||dn(r,t.type)||dn(r,t.initializer)},209:function(t,r,i){return dn(r,t.dotDotDotToken)||dn(r,t.propertyName)||dn(r,t.name)||dn(r,t.initializer)},182:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},186:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},185:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},180:uSe,181:uSe,175:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},174:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},177:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},178:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},179:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},263:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},219:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},220:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.equalsGreaterThanToken)||dn(r,t.body)},176:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.body)},184:function(t,r,i){return dn(r,t.typeName)||Xi(r,i,t.typeArguments)},183:function(t,r,i){return dn(r,t.assertsModifier)||dn(r,t.parameterName)||dn(r,t.type)},187:function(t,r,i){return dn(r,t.exprName)||Xi(r,i,t.typeArguments)},188:function(t,r,i){return Xi(r,i,t.members)},189:function(t,r,i){return dn(r,t.elementType)},190:function(t,r,i){return Xi(r,i,t.elements)},193:pSe,194:pSe,195:function(t,r,i){return dn(r,t.checkType)||dn(r,t.extendsType)||dn(r,t.trueType)||dn(r,t.falseType)},196:function(t,r,i){return dn(r,t.typeParameter)},206:function(t,r,i){return dn(r,t.argument)||dn(r,t.attributes)||dn(r,t.qualifier)||Xi(r,i,t.typeArguments)},303:function(t,r,i){return dn(r,t.assertClause)},197:fSe,199:fSe,200:function(t,r,i){return dn(r,t.objectType)||dn(r,t.indexType)},201:function(t,r,i){return dn(r,t.readonlyToken)||dn(r,t.typeParameter)||dn(r,t.nameType)||dn(r,t.questionToken)||dn(r,t.type)||Xi(r,i,t.members)},202:function(t,r,i){return dn(r,t.literal)},203:function(t,r,i){return dn(r,t.dotDotDotToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.type)},207:mSe,208:mSe,210:function(t,r,i){return Xi(r,i,t.elements)},211:function(t,r,i){return Xi(r,i,t.properties)},212:function(t,r,i){return dn(r,t.expression)||dn(r,t.questionDotToken)||dn(r,t.name)},213:function(t,r,i){return dn(r,t.expression)||dn(r,t.questionDotToken)||dn(r,t.argumentExpression)},214:hSe,215:hSe,216:function(t,r,i){return dn(r,t.tag)||dn(r,t.questionDotToken)||Xi(r,i,t.typeArguments)||dn(r,t.template)},217:function(t,r,i){return dn(r,t.type)||dn(r,t.expression)},218:function(t,r,i){return dn(r,t.expression)},221:function(t,r,i){return dn(r,t.expression)},222:function(t,r,i){return dn(r,t.expression)},223:function(t,r,i){return dn(r,t.expression)},225:function(t,r,i){return dn(r,t.operand)},230:function(t,r,i){return dn(r,t.asteriskToken)||dn(r,t.expression)},224:function(t,r,i){return dn(r,t.expression)},226:function(t,r,i){return dn(r,t.operand)},227:function(t,r,i){return dn(r,t.left)||dn(r,t.operatorToken)||dn(r,t.right)},235:function(t,r,i){return dn(r,t.expression)||dn(r,t.type)},236:function(t,r,i){return dn(r,t.expression)},239:function(t,r,i){return dn(r,t.expression)||dn(r,t.type)},237:function(t,r,i){return dn(r,t.name)},228:function(t,r,i){return dn(r,t.condition)||dn(r,t.questionToken)||dn(r,t.whenTrue)||dn(r,t.colonToken)||dn(r,t.whenFalse)},231:function(t,r,i){return dn(r,t.expression)},242:_Se,269:_Se,308:function(t,r,i){return Xi(r,i,t.statements)||dn(r,t.endOfFileToken)},244:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.declarationList)},262:function(t,r,i){return Xi(r,i,t.declarations)},245:function(t,r,i){return dn(r,t.expression)},246:function(t,r,i){return dn(r,t.expression)||dn(r,t.thenStatement)||dn(r,t.elseStatement)},247:function(t,r,i){return dn(r,t.statement)||dn(r,t.expression)},248:function(t,r,i){return dn(r,t.expression)||dn(r,t.statement)},249:function(t,r,i){return dn(r,t.initializer)||dn(r,t.condition)||dn(r,t.incrementor)||dn(r,t.statement)},250:function(t,r,i){return dn(r,t.initializer)||dn(r,t.expression)||dn(r,t.statement)},251:function(t,r,i){return dn(r,t.awaitModifier)||dn(r,t.initializer)||dn(r,t.expression)||dn(r,t.statement)},252:gSe,253:gSe,254:function(t,r,i){return dn(r,t.expression)},255:function(t,r,i){return dn(r,t.expression)||dn(r,t.statement)},256:function(t,r,i){return dn(r,t.expression)||dn(r,t.caseBlock)},270:function(t,r,i){return Xi(r,i,t.clauses)},297:function(t,r,i){return dn(r,t.expression)||Xi(r,i,t.statements)},298:function(t,r,i){return Xi(r,i,t.statements)},257:function(t,r,i){return dn(r,t.label)||dn(r,t.statement)},258:function(t,r,i){return dn(r,t.expression)},259:function(t,r,i){return dn(r,t.tryBlock)||dn(r,t.catchClause)||dn(r,t.finallyBlock)},300:function(t,r,i){return dn(r,t.variableDeclaration)||dn(r,t.block)},171:function(t,r,i){return dn(r,t.expression)},264:ySe,232:ySe,265:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.heritageClauses)||Xi(r,i,t.members)},266:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||dn(r,t.type)},267:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.members)},307:function(t,r,i){return dn(r,t.name)||dn(r,t.initializer)},268:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.body)},272:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.moduleReference)},273:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.importClause)||dn(r,t.moduleSpecifier)||dn(r,t.attributes)},274:function(t,r,i){return dn(r,t.name)||dn(r,t.namedBindings)},301:function(t,r,i){return Xi(r,i,t.elements)},302:function(t,r,i){return dn(r,t.name)||dn(r,t.value)},271:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)},275:function(t,r,i){return dn(r,t.name)},281:function(t,r,i){return dn(r,t.name)},276:vSe,280:vSe,279:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.exportClause)||dn(r,t.moduleSpecifier)||dn(r,t.attributes)},277:bSe,282:bSe,278:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.expression)},229:function(t,r,i){return dn(r,t.head)||Xi(r,i,t.templateSpans)},240:function(t,r,i){return dn(r,t.expression)||dn(r,t.literal)},204:function(t,r,i){return dn(r,t.head)||Xi(r,i,t.templateSpans)},205:function(t,r,i){return dn(r,t.type)||dn(r,t.literal)},168:function(t,r,i){return dn(r,t.expression)},299:function(t,r,i){return Xi(r,i,t.types)},234:function(t,r,i){return dn(r,t.expression)||Xi(r,i,t.typeArguments)},284:function(t,r,i){return dn(r,t.expression)},283:function(t,r,i){return Xi(r,i,t.modifiers)},357:function(t,r,i){return Xi(r,i,t.elements)},285:function(t,r,i){return dn(r,t.openingElement)||Xi(r,i,t.children)||dn(r,t.closingElement)},289:function(t,r,i){return dn(r,t.openingFragment)||Xi(r,i,t.children)||dn(r,t.closingFragment)},286:TSe,287:TSe,293:function(t,r,i){return Xi(r,i,t.properties)},292:function(t,r,i){return dn(r,t.name)||dn(r,t.initializer)},294:function(t,r,i){return dn(r,t.expression)},295:function(t,r,i){return dn(r,t.dotDotDotToken)||dn(r,t.expression)},288:function(t,r,i){return dn(r,t.tagName)},296:function(t,r,i){return dn(r,t.namespace)||dn(r,t.name)},191:KM,192:KM,310:KM,316:KM,315:KM,317:KM,319:KM,318:function(t,r,i){return Xi(r,i,t.parameters)||dn(r,t.type)},321:function(t,r,i){return(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))||Xi(r,i,t.tags)},348:function(t,r,i){return dn(r,t.tagName)||dn(r,t.name)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},311:function(t,r,i){return dn(r,t.name)},312:function(t,r,i){return dn(r,t.left)||dn(r,t.right)},342:SSe,349:SSe,331:function(t,r,i){return dn(r,t.tagName)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},330:function(t,r,i){return dn(r,t.tagName)||dn(r,t.class)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},329:function(t,r,i){return dn(r,t.tagName)||dn(r,t.class)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},346:function(t,r,i){return dn(r,t.tagName)||dn(r,t.constraint)||Xi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},347:function(t,r,i){return dn(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===310?dn(r,t.typeExpression)||dn(r,t.fullName)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment)):dn(r,t.fullName)||dn(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment)))},339:function(t,r,i){return dn(r,t.tagName)||dn(r,t.fullName)||dn(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},343:XM,345:XM,344:XM,341:XM,351:XM,350:XM,340:XM,324:function(t,r,i){return Ye(t.typeParameters,r)||Ye(t.parameters,r)||dn(r,t.type)},325:Gie,326:Gie,327:Gie,323:function(t,r,i){return Ye(t.jsDocPropertyTags,r)},328:kD,333:kD,334:kD,335:kD,336:kD,337:kD,332:kD,338:kD,352:hje,356:_je};function uSe(e,t,r){return Xi(t,r,e.typeParameters)||Xi(t,r,e.parameters)||dn(t,e.type)}function pSe(e,t,r){return Xi(t,r,e.types)}function fSe(e,t,r){return dn(t,e.type)}function mSe(e,t,r){return Xi(t,r,e.elements)}function hSe(e,t,r){return dn(t,e.expression)||dn(t,e.questionDotToken)||Xi(t,r,e.typeArguments)||Xi(t,r,e.arguments)}function _Se(e,t,r){return Xi(t,r,e.statements)}function gSe(e,t,r){return dn(t,e.label)}function ySe(e,t,r){return Xi(t,r,e.modifiers)||dn(t,e.name)||Xi(t,r,e.typeParameters)||Xi(t,r,e.heritageClauses)||Xi(t,r,e.members)}function vSe(e,t,r){return Xi(t,r,e.elements)}function bSe(e,t,r){return dn(t,e.propertyName)||dn(t,e.name)}function TSe(e,t,r){return dn(t,e.tagName)||Xi(t,r,e.typeArguments)||dn(t,e.attributes)}function KM(e,t,r){return dn(t,e.type)}function SSe(e,t,r){return dn(t,e.tagName)||(e.isNameFirst?dn(t,e.name)||dn(t,e.typeExpression):dn(t,e.typeExpression)||dn(t,e.name))||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function XM(e,t,r){return dn(t,e.tagName)||dn(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function Gie(e,t,r){return dn(t,e.name)}function kD(e,t,r){return dn(t,e.tagName)||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function hje(e,t,r){return dn(t,e.tagName)||dn(t,e.importClause)||dn(t,e.moduleSpecifier)||dn(t,e.attributes)||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function _je(e,t,r){return dn(t,e.expression)}function Jo(e,t,r){if(e===void 0||e.kind<=166)return;const i=mje[e.kind];return i===void 0?void 0:i(e,t,r)}function $I(e,t,r){const i=ESe(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>=167)for(const d of ESe(s))i.push(d),o.push(s)}}}function ESe(e){const t=[];return Jo(e,r,r),t;function r(i){t.unshift(i)}}function ASe(e){e.externalModuleIndicator=vw(e)}function QI(e,t,r,i=!1,o){var s,l;(s=xr)==null||s.push(xr.Phase.Parse,"createSourceFile",{path:e},!0),Dl("beforeParse");let u;const{languageVersion:d,setExternalModuleIndicator:g,impliedNodeFormat:h,jsDocParsingMode:y}=typeof r=="object"?r:{languageVersion:r};if(d===100)u=i0.parseSourceFile(e,t,d,void 0,i,6,gs,y);else{const E=h===void 0?g:A=>(A.impliedNodeFormat=h,(g||ASe)(A));u=i0.parseSourceFile(e,t,d,void 0,i,o,E,y)}return Dl("afterParse"),wf("Parse","beforeParse","afterParse"),(l=xr)==null||l.pop(),u}function ZI(e,t){return i0.parseIsolatedEntityName(e,t)}function bw(e,t){return i0.parseJsonText(e,t)}function Bc(e){return e.externalModuleIndicator!==void 0}function kj(e,t,r,i=!1){const o=wj.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Vie(e,t,r){const i=i0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&i0.fixupParentReferences(i.jsDoc),i}function ISe(e,t,r){return i0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}var i0;(e=>{var t=cg(99,!0),r=40960,i,o,s,l,u;function d(ee){return We++,ee}var g={createBaseSourceFileNode:ee=>d(new u(ee,0,0)),createBaseIdentifierNode:ee=>d(new s(ee,0,0)),createBasePrivateIdentifierNode:ee=>d(new l(ee,0,0)),createBaseTokenNode:ee=>d(new o(ee,0,0)),createBaseNode:ee=>d(new i(ee,0,0))},h=$k(11,g),{createNodeArray:y,createNumericLiteral:E,createStringLiteral:A,createLiteralLikeNode:R,createIdentifier:N,createPrivateIdentifier:P,createToken:k,createArrayLiteralExpression:W,createObjectLiteralExpression:O,createPropertyAccessExpression:G,createPropertyAccessChain:j,createElementAccessExpression:J,createElementAccessChain:Z,createCallExpression:q,createCallChain:ye,createNewExpression:ie,createParenthesizedExpression:K,createBlock:pe,createVariableStatement:de,createExpressionStatement:fe,createIfStatement:ve,createWhileStatement:xe,createForStatement:X,createForOfStatement:Ce,createVariableDeclaration:Je,createVariableDeclarationList:Se}=h,re,be,Ne,Be,lt,ce,Re,_e,je,Ge,We,at,Wt,cn,gn,Kn,_t=!0,en=!1;function ir(ee,ke,rt,Pt,nn=!1,_n,ei,wr=0){var pr;if(_n=P6(ee,_n),_n===6){const ao=lo(ee,ke,rt,Pt,nn);return Iw(ao,(pr=ao.statements[0])==null?void 0:pr.expression,ao.parseDiagnostics,!1,void 0),ao.referencedFiles=ae,ao.typeReferenceDirectives=ae,ao.libReferenceDirectives=ae,ao.amdDependencies=ae,ao.hasNoDefaultLib=!1,ao.pragmas=bt,ao}zt(ee,ke,rt,Pt,_n,wr);const Si=Ai(rt,nn,_n,ei||ASe,wr);return Zr(),Si}e.parseSourceFile=ir;function Di(ee,ke){zt("",ee,ke,void 0,1,0),Pe();const rt=ut(!0),Pt=te()===1&&!Re.length;return Zr(),Pt?rt:void 0}e.parseIsolatedEntityName=Di;function lo(ee,ke,rt=2,Pt,nn=!1){zt(ee,ke,rt,Pt,6,0),be=Kn,Pe();const _n=B();let ei,wr;if(te()===1)ei=qa([],_n,_n),wr=tc();else{let ao;for(;te()!==1;){let as;switch(te()){case 23:as=Qb();break;case 112:case 97:case 106:as=tc();break;case 41:wt(()=>Pe()===9&&Pe()!==59)?as=Iv():as=Dv();break;case 9:case 11:if(wt(()=>Pe()!==59)){as=kt();break}default:as=Dv();break}ao&&Mo(ao)?ao.push(as):ao?ao=[ao,as]:(ao=as,te()!==1&&Kt(f.Unexpected_token))}const zs=Mo(ao)?Zt(W(ao),_n):C.checkDefined(ao),Is=fe(zs);Zt(Is,_n),ei=qa([Is],_n),wr=$s(1,f.Unexpected_token)}const pr=At(ee,2,6,!1,ei,wr,be,gs);nn&&$e(pr),pr.nodeCount=We,pr.identifierCount=Wt,pr.identifiers=at,pr.parseDiagnostics=RI(Re,pr),_e&&(pr.jsDocDiagnostics=RI(_e,pr));const Si=pr;return Zr(),Si}e.parseJsonText=lo;function zt(ee,ke,rt,Pt,nn,_n){switch(i=Rd.getNodeConstructor(),o=Rd.getTokenConstructor(),s=Rd.getIdentifierConstructor(),l=Rd.getPrivateIdentifierConstructor(),u=Rd.getSourceFileConstructor(),re=ya(ee),Ne=ke,Be=rt,je=Pt,lt=nn,ce=Lk(nn),Re=[],cn=0,at=new Map,Wt=0,We=0,be=0,_t=!0,lt){case 1:case 2:Kn=524288;break;case 6:Kn=134742016;break;default:Kn=0;break}en=!1,t.setText(Ne),t.setOnError(he),t.setScriptTarget(Be),t.setLanguageVariant(ce),t.setScriptKind(lt),t.setJSDocParsingMode(_n)}function Zr(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Ne=void 0,Be=void 0,je=void 0,lt=void 0,ce=void 0,be=0,Re=void 0,_e=void 0,cn=0,at=void 0,gn=void 0,_t=!0}function Ai(ee,ke,rt,Pt,nn){const _n=ad(re);_n&&(Kn|=33554432),be=Kn,Pe();const ei=Va(0,bp);C.assert(te()===1);const wr=Ae(),pr=Pr(tc(),wr),Si=At(re,ee,rt,_n,ei,pr,be,Pt);return Oj(Si,Ne),Wj(Si,ao),Si.commentDirectives=t.getCommentDirectives(),Si.nodeCount=We,Si.identifierCount=Wt,Si.identifiers=at,Si.parseDiagnostics=RI(Re,Si),Si.jsDocParsingMode=nn,_e&&(Si.jsDocDiagnostics=RI(_e,Si)),ke&&$e(Si),Si;function ao(zs,Is,as){Re.push(xI(re,Ne,zs,Is,as))}}let Ni=!1;function Pr(ee,ke){if(!ke)return ee;C.assert(!ee.jsDoc);const rt=Ui(fG(ee,Ne),Pt=>g_.parseJSDocComment(ee,Pt.pos,Pt.end-Pt.pos));return rt.length&&(ee.jsDoc=rt),Ni&&(Ni=!1,ee.flags|=536870912),ee}function Ci(ee){const ke=je,rt=wj.createSyntaxCursor(ee);je={currentNode:ao};const Pt=[],nn=Re;Re=[];let _n=0,ei=pr(ee.statements,0);for(;ei!==-1;){const zs=ee.statements[_n],Is=ee.statements[ei];Xr(Pt,ee.statements,_n,ei),_n=Si(ee.statements,ei);const as=ho(nn,xf=>xf.start>=zs.pos),em=as>=0?ho(nn,xf=>xf.start>=Is.pos,as):-1;as>=0&&Xr(Re,nn,as,em>=0?em:void 0),yn(()=>{const xf=Kn;for(Kn|=65536,t.resetTokenState(Is.pos),Pe();te()!==1;){const Lv=t.getTokenFullStart(),kv=Pc(0,bp);if(Pt.push(kv),Lv===t.getTokenFullStart()&&Pe(),_n>=0){const Fg=ee.statements[_n];if(kv.end===Fg.pos)break;kv.end>Fg.pos&&(_n=Si(ee.statements,_n+1))}}Kn=xf},2),ei=_n>=0?pr(ee.statements,_n):-1}if(_n>=0){const zs=ee.statements[_n];Xr(Pt,ee.statements,_n);const Is=ho(nn,as=>as.start>=zs.pos);Is>=0&&Xr(Re,nn,Is)}return je=ke,h.updateSourceFile(ee,vt(y(Pt),ee.statements));function wr(zs){return!(zs.flags&65536)&&!!(zs.transformFlags&67108864)}function pr(zs,Is){for(let as=Is;as118}function Ln(){return te()===80?!0:te()===127&&Ue()||te()===135&&nt()?!1:te()>118}function ln(ee,ke,rt=!0){return te()===ee?(rt&&Pe(),!0):(ke?Kt(ke):Kt(f._0_expected,_a(ee)),!1)}const Ii=Object.keys(q8).filter(ee=>ee.length>2);function ra(ee){if(KT(ee)){Oe(La(Ne,ee.template.pos),ee.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}const ke=He(ee)?Kr(ee):void 0;if(!ke||!fp(ke,Be)){Kt(f._0_expected,_a(27));return}const rt=La(Ne,ee.pos);switch(ke){case"const":case"let":case"var":Oe(rt,ee.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":sa(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":Oe(rt,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":sa(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":sa(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}const Pt=pS(ke,Ii,Vs)??zo(ke);if(Pt){Oe(rt,ee.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,Pt);return}te()!==0&&Oe(rt,ee.end,f.Unexpected_keyword_or_identifier)}function sa(ee,ke,rt){te()===rt?Kt(ke):Kt(ee,t.getTokenValue())}function zo(ee){for(const ke of Ii)if(ee.length>ke.length+2&&po(ee,ke))return`${ke} ${ee.slice(ke.length)}`}function Gl(ee,ke,rt){if(te()===60&&!t.hasPrecedingLineBreak()){Kt(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(te()===21){Kt(f.Cannot_start_a_function_call_in_a_type_annotation),Pe();return}if(ke&&!Lo()){rt?Kt(f._0_expected,_a(27)):Kt(f.Expected_for_property_initializer);return}if(!fa()){if(rt){Kt(f._0_expected,_a(27));return}ra(ee)}}function xl(ee){return te()===ee?(gt(),!0):(C.assert(YF(ee)),Kt(f._0_expected,_a(ee)),!1)}function Ps(ee,ke,rt,Pt){if(te()===ke){Pe();return}const nn=Kt(f._0_expected,_a(ke));rt&&nn&&pa(nn,xI(re,Ne,Pt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,_a(ee),_a(ke)))}function co(ee){return te()===ee?(Pe(),!0):!1}function Go(ee){if(te()===ee)return tc()}function Sc(ee){if(te()===ee)return bf()}function $s(ee,ke,rt){return Go(ee)||As(ee,!1,ke||f._0_expected,rt||_a(ee))}function Ra(ee){const ke=Sc(ee);return ke||(C.assert(YF(ee)),As(ee,!1,f._0_expected,_a(ee)))}function tc(){const ee=B(),ke=te();return Pe(),Zt(k(ke),ee)}function bf(){const ee=B(),ke=te();return gt(),Zt(k(ke),ee)}function Lo(){return te()===27?!0:te()===20||te()===1||t.hasPrecedingLineBreak()}function fa(){return Lo()?(te()===27&&Pe(),!0):!1}function is(){return fa()||ln(27)}function qa(ee,ke,rt,Pt){const nn=y(ee,Pt);return uh(nn,ke,rt??t.getTokenFullStart()),nn}function Zt(ee,ke,rt){return uh(ee,ke,rt??t.getTokenFullStart()),Kn&&(ee.flags|=Kn),en&&(en=!1,ee.flags|=262144),ee}function As(ee,ke,rt,...Pt){ke?Tr(t.getTokenFullStart(),0,rt,...Pt):rt&&Kt(rt,...Pt);const nn=B(),_n=ee===80?N("",void 0):lb(ee)?h.createTemplateLiteralLikeNode(ee,"","",void 0):ee===9?E("",void 0):ee===11?A("",void 0):ee===283?h.createMissingDeclaration():k(ee);return Zt(_n,nn)}function ql(ee){let ke=at.get(ee);return ke===void 0&&at.set(ee,ke=ee),ke}function lc(ee,ke,rt){if(ee){Wt++;const wr=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():B(),pr=te(),Si=ql(t.getTokenValue()),ao=t.hasExtendedUnicodeEscape();return xt(),Zt(N(Si,pr,ao),wr)}if(te()===81)return Kt(rt||f.Private_identifiers_are_not_allowed_outside_class_bodies),lc(!0);if(te()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return lc(!0);Wt++;const Pt=te()===1,nn=t.isReservedWord(),_n=t.getTokenText(),ei=nn?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return As(80,Pt,ke||ei,_n)}function vd(ee){return lc(xn(),void 0,ee)}function Fs(ee,ke){return lc(Ln(),ee,ke)}function Ee(ee){return lc(Xu(te()),ee)}function Y(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Kt(f.Unicode_escape_sequence_cannot_appear_here),lc(Xu(te()))}function pt(){return Xu(te())||te()===11||te()===9||te()===10}function qt(){return Xu(te())||te()===11}function fn(ee){if(te()===11||te()===9||te()===10){const ke=kt();return ke.text=ql(ke.text),ke}return te()===23?si():te()===81?Dr():Ee()}function ur(){return fn()}function si(){const ee=B();ln(23);const ke=Mn(Au);return ln(24),Zt(h.createComputedPropertyName(ke),ee)}function Dr(){const ee=B(),ke=P(ql(t.getTokenValue()));return Pe(),Zt(ke,ee)}function Fn(ee){return te()===ee&&En(So)}function ro(){return Pe(),t.hasPrecedingLineBreak()?!1:Ec()}function So(){switch(te()){case 87:return Pe()===94;case 95:return Pe(),te()===90?wt(Hs):te()===156?wt(Da):Ns();case 90:return Hs();case 126:return Pe(),Ec();case 139:case 153:return Pe(),mc();default:return ro()}}function Ns(){return te()===60||te()!==42&&te()!==130&&te()!==19&&Ec()}function Da(){return Pe(),Ns()}function Qs(){return db(te())&&En(So)}function Ec(){return te()===23||te()===19||te()===42||te()===26||pt()}function mc(){return te()===23||pt()}function Hs(){return Pe(),te()===86||te()===100||te()===120||te()===60||te()===128&&wt(dp)||te()===134&&wt(Zf)}function Ll(ee,ke){if(tl(ee))return!0;switch(ee){case 0:case 1:case 3:return!(te()===27&&ke)&&Cv();case 2:return te()===84||te()===90;case 4:return wt(Rm);case 5:return wt(uA)||te()===27&&!ke;case 6:return te()===23||pt();case 12:switch(te()){case 23:case 42:case 26:case 25:return!0;default:return pt()}case 18:return pt();case 9:return te()===23||te()===26||pt();case 24:return qt();case 7:return te()===19?wt(vh):ke?Ln()&&!ze():lp()&&!ze();case 8:return Vx();case 10:return te()===28||te()===26||Vx();case 19:return te()===103||te()===87||Ln();case 15:switch(te()){case 28:case 25:return!0}case 11:return te()===26||Jd();case 16:return mt(!1);case 17:return mt(!0);case 20:case 21:return te()===28||Ub();case 22:return pA();case 23:return te()===161&&wt(Wg)?!1:te()===11?!0:Xu(te());case 13:return Xu(te())||te()===19;case 14:return!0;case 25:return!0;case 26:return C.fail("ParsingContext.Count used as a context");default:C.assertNever(ee,"Non-exhaustive case in 'isListElement'.")}}function vh(){if(C.assert(te()===19),Pe()===20){const ee=Pe();return ee===28||ee===19||ee===96||ee===119}return!0}function Pd(){return Pe(),Ln()}function nf(){return Pe(),Xu(te())}function op(){return Pe(),eee(te())}function ze(){return te()===119||te()===96?wt(Jt):!1}function Jt(){return Pe(),Jd()}function er(){return Pe(),Ub()}function go(ee){if(te()===1)return!0;switch(ee){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return te()===20;case 3:return te()===20||te()===84||te()===90;case 7:return te()===19||te()===96||te()===119;case 8:return Za();case 19:return te()===32||te()===21||te()===19||te()===96||te()===119;case 11:return te()===22||te()===27;case 15:case 21:case 10:return te()===24;case 17:case 16:case 18:return te()===22||te()===24;case 20:return te()!==28;case 22:return te()===19||te()===20;case 13:return te()===32||te()===44;case 14:return te()===30&&wt(xz);default:return!1}}function Za(){return!!(Lo()||Iu(te())||te()===39)}function es(){C.assert(cn,"Missing parsing context");for(let ee=0;ee<26;ee++)if(cn&1<=0)}function bh(ee){return ee===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Tf(){const ee=qa([],B());return ee.isMissingList=!0,ee}function p_(ee){return!!ee.isMissingList}function oe(ee,ke,rt,Pt){if(ln(rt)){const nn=Xc(ee,ke);return ln(Pt),nn}return Tf()}function ut(ee,ke){const rt=B();let Pt=ee?Ee(ke):Fs(ke);for(;co(25)&&te()!==30;)Pt=Zt(h.createQualifiedName(Pt,an(ee,!1,!0)),rt);return Pt}function tn(ee,ke){return Zt(h.createQualifiedName(ee,ke),ee.pos)}function an(ee,ke,rt){if(t.hasPrecedingLineBreak()&&Xu(te())&&wt(Ox))return As(80,!0,f.Identifier_expected);if(te()===81){const Pt=Dr();return ke?Pt:As(80,!0,f.Identifier_expected)}return ee?rt?Ee():Y():Fs()}function wn(ee){const ke=B(),rt=[];let Pt;do Pt=Ve(ee),rt.push(Pt);while(Pt.literal.kind===17);return qa(rt,ke)}function or(ee){const ke=B();return Zt(h.createTemplateExpression(On(ee),wn(ee)),ke)}function ti(){const ee=B();return Zt(h.createTemplateLiteralType(On(!1),Ti()),ee)}function Ti(){const ee=B(),ke=[];let rt;do rt=$i(),ke.push(rt);while(rt.literal.kind===17);return qa(ke,ee)}function $i(){const ee=B();return Zt(h.createTemplateLiteralTypeSpan(cl(),z(!1)),ee)}function z(ee){return te()===20?(Jn(ee),yo()):$s(18,f._0_expected,_a(20))}function Ve(ee){const ke=B();return Zt(h.createTemplateSpan(Mn(Au),z(ee)),ke)}function kt(){return Eo(te())}function On(ee){!ee&&t.getTokenFlags()&26656&&Jn(!1);const ke=Eo(te());return C.assert(ke.kind===16,"Template head has wrong token kind"),ke}function yo(){const ee=Eo(te());return C.assert(ee.kind===17||ee.kind===18,"Template fragment has wrong token kind"),ee}function ta(ee){const ke=ee===15||ee===18,rt=t.getTokenText();return rt.substring(1,rt.length-(t.isUnterminated()?0:ke?1:2))}function Eo(ee){const ke=B(),rt=lb(ee)?h.createTemplateLiteralLikeNode(ee,t.getTokenValue(),ta(ee),t.getTokenFlags()&7176):ee===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):ee===11?A(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):LN(ee)?R(ee,t.getTokenValue()):C.fail();return t.hasExtendedUnicodeEscape()&&(rt.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(rt.isUnterminated=!0),Pe(),Zt(rt,ke)}function Vo(){return ut(!0,f.Type_expected)}function ml(){if(!t.hasPrecedingLineBreak()&&ft()===30)return oe(20,cl,30,32)}function Ca(){const ee=B();return Zt(h.createTypeReferenceNode(Vo(),ml()),ee)}function cd(ee){switch(ee.kind){case 184:return Wl(ee.typeName);case 185:case 186:{const{parameters:ke,type:rt}=ee;return p_(ke)||cd(rt)}case 197:return cd(ee.type);default:return!1}}function Up(ee){return Pe(),Zt(h.createTypePredicateNode(void 0,ee,cl()),ee.pos)}function Sf(){const ee=B();return Pe(),Zt(h.createThisTypeNode(),ee)}function Yf(){const ee=B();return Pe(),Zt(h.createJSDocAllType(),ee)}function Ty(){const ee=B();return Pe(),Zt(h.createJSDocNonNullableType(sE(),!1),ee)}function bv(){const ee=B();return Pe(),te()===28||te()===20||te()===22||te()===32||te()===64||te()===52?Zt(h.createJSDocUnknownType(),ee):Zt(h.createJSDocNullableType(cl(),!1),ee)}function zu(){const ee=B(),ke=Ae();if(En(Hx)){const rt=_i(36),Pt=lr(59,!1);return Pr(Zt(h.createJSDocFunctionType(rt,Pt),ee),ke)}return Zt(h.createTypeReferenceNode(Ee(),void 0),ee)}function V_(){const ee=B();let ke;return(te()===110||te()===105)&&(ke=Ee(),ln(59)),Zt(h.createParameterDeclaration(void 0,void 0,ke,void 0,Th(),void 0),ee)}function Th(){t.setSkipJsDocLeadingAsterisks(!0);const ee=B();if(co(144)){const Pt=h.createJSDocNamepathType(void 0);e:for(;;)switch(te()){case 20:case 1:case 28:case 5:break e;default:gt()}return t.setSkipJsDocLeadingAsterisks(!1),Zt(Pt,ee)}const ke=co(26);let rt=Iy();return t.setSkipJsDocLeadingAsterisks(!1),ke&&(rt=Zt(h.createJSDocVariadicType(rt),ee)),te()===64?(Pe(),Zt(h.createJSDocOptionalType(rt),ee)):rt}function Im(){const ee=B();ln(114);const ke=ut(!0),rt=t.hasPrecedingLineBreak()?void 0:bl();return Zt(h.createTypeQueryNode(ke,rt),ee)}function jb(){const ee=B(),ke=wi(!1,!0),rt=Fs();let Pt,nn;co(96)&&(Ub()||!Jd()?Pt=cl():nn=C0());const _n=co(64)?cl():void 0,ei=h.createTypeParameterDeclaration(ke,rt,Pt,_n);return ei.expression=nn,Zt(ei,ee)}function Xe(){if(te()===30)return oe(19,jb,30,32)}function mt(ee){return te()===26||Vx()||db(te())||te()===60||Ub(!ee)}function Yt(ee){const ke=Nv(f.Private_identifiers_cannot_be_used_as_parameters);return F2(ke)===0&&!yt(ee)&&db(te())&&Pe(),ke}function Rn(){return xn()||te()===23||te()===19}function Qn(ee){return Yn(ee)}function Lr(ee){return Yn(ee,!1)}function Yn(ee,ke=!0){const rt=B(),Pt=Ae(),nn=ee?ne(()=>wi(!0)):Fe(()=>wi(!0));if(te()===110){const pr=h.createParameterDeclaration(nn,void 0,lc(!0),void 0,qd(),void 0),Si=Ic(nn);return Si&&Nt(Si,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Pr(Zt(pr,rt),Pt)}const _n=_t;_t=!1;const ei=Go(26);if(!ke&&!Rn())return;const wr=Pr(Zt(h.createParameterDeclaration(nn,ei,Yt(nn),Go(58),qd(),q_()),rt),Pt);return _t=_n,wr}function lr(ee,ke){if(Oi(ee,ke))return ot(Iy)}function Oi(ee,ke){return ee===39?(ln(ee),!0):co(59)?!0:ke&&te()===39?(Kt(f._0_expected,_a(59)),Pe(),!0):!1}function Ro(ee,ke){const rt=Ue(),Pt=nt();ri(!!(ee&1)),qi(!!(ee&2));const nn=ee&32?Xc(17,V_):Xc(16,()=>ke?Qn(Pt):Lr(Pt));return ri(rt),qi(Pt),nn}function _i(ee){if(!ln(21))return Tf();const ke=Ro(ee,!0);return ln(22),ke}function Do(){co(28)||is()}function Qi(ee){const ke=B(),rt=Ae();ee===181&&ln(105);const Pt=Xe(),nn=_i(4),_n=lr(59,!0);Do();const ei=ee===180?h.createCallSignature(Pt,nn,_n):h.createConstructSignature(Pt,nn,_n);return Pr(Zt(ei,ke),rt)}function hl(){return te()===23&&wt(sp)}function sp(){if(Pe(),te()===26||te()===24)return!0;if(db(te())){if(Pe(),Ln())return!0}else if(Ln())Pe();else return!1;return te()===59||te()===28?!0:te()!==58?!1:(Pe(),te()===59||te()===28||te()===24)}function xm(ee,ke,rt){const Pt=oe(16,()=>Qn(!1),23,24),nn=qd();Do();const _n=h.createIndexSignature(rt,Pt,nn);return Pr(Zt(_n,ee),ke)}function Td(ee,ke,rt){const Pt=ur(),nn=Go(58);let _n;if(te()===21||te()===30){const ei=Xe(),wr=_i(4),pr=lr(59,!0);_n=h.createMethodSignature(rt,Pt,nn,ei,wr,pr)}else{const ei=qd();_n=h.createPropertySignature(rt,Pt,nn,ei),te()===64&&(_n.initializer=q_())}return Do(),Pr(Zt(_n,ee),ke)}function Rm(){if(te()===21||te()===30||te()===139||te()===153)return!0;let ee=!1;for(;db(te());)ee=!0,Pe();return te()===23?!0:(pt()&&(ee=!0,Pe()),ee?te()===21||te()===30||te()===58||te()===59||te()===28||Lo():!1)}function Hp(){if(te()===21||te()===30)return Qi(180);if(te()===105&&wt(v0))return Qi(181);const ee=B(),ke=Ae(),rt=wi(!1);return Fn(139)?z0(ee,ke,rt,178,4):Fn(153)?z0(ee,ke,rt,179,4):hl()?xm(ee,ke,rt):Td(ee,ke,rt)}function v0(){return Pe(),te()===21||te()===30}function f_(){return Pe()===25}function j_(){switch(Pe()){case 21:case 30:case 25:return!0}return!1}function b0(){const ee=B();return Zt(h.createTypeLiteralNode(U_()),ee)}function U_(){let ee;return ln(19)?(ee=Va(4,Hp),ln(20)):ee=Tf(),ee}function bC(){return Pe(),te()===40||te()===41?Pe()===148:(te()===148&&Pe(),te()===23&&Pd()&&Pe()===103)}function QP(){const ee=B(),ke=Ee();ln(103);const rt=cl();return Zt(h.createTypeParameterDeclaration(void 0,ke,rt,void 0),ee)}function TC(){const ee=B();ln(19);let ke;(te()===148||te()===40||te()===41)&&(ke=tc(),ke.kind!==148&&ln(148)),ln(23);const rt=QP(),Pt=co(130)?cl():void 0;ln(24);let nn;(te()===58||te()===40||te()===41)&&(nn=tc(),nn.kind!==58&&ln(58));const _n=qd();is();const ei=Va(4,Hp);return ln(20),Zt(h.createMappedTypeNode(ke,rt,Pt,nn,_n,ei),ee)}function Mg(){const ee=B();if(co(26))return Zt(h.createRestTypeNode(cl()),ee);const ke=cl();if(xD(ke)&&ke.pos===ke.type.pos){const rt=h.createOptionalTypeNode(ke.type);return vt(rt,ke),rt.flags=ke.flags,rt}return ke}function T0(){return Pe()===59||te()===58&&Pe()===59}function U1(){return te()===26?Xu(Pe())&&T0():Xu(te())&&T0()}function Tv(){if(wt(U1)){const ee=B(),ke=Ae(),rt=Go(26),Pt=Ee(),nn=Go(58);ln(59);const _n=Mg(),ei=h.createNamedTupleMember(rt,Pt,nn,_n);return Pr(Zt(ei,ee),ke)}return Mg()}function H1(){const ee=B();return Zt(h.createTupleTypeNode(oe(21,Tv,23,24)),ee)}function Ix(){const ee=B();ln(21);const ke=cl();return ln(22),Zt(h.createParenthesizedType(ke),ee)}function ZP(){let ee;if(te()===128){const ke=B();Pe();const rt=Zt(k(128),ke);ee=qa([rt],ke)}return ee}function q1(){const ee=B(),ke=Ae(),rt=ZP(),Pt=co(105);C.assert(!rt||Pt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const nn=Xe(),_n=_i(4),ei=lr(39,!1),wr=Pt?h.createConstructorTypeNode(rt,nn,_n,ei):h.createFunctionTypeNode(nn,_n,ei);return Pr(Zt(wr,ee),ke)}function xx(){const ee=tc();return te()===25?void 0:ee}function S0(ee){const ke=B();ee&&Pe();let rt=te()===112||te()===97||te()===106?tc():Eo(te());return ee&&(rt=Zt(h.createPrefixUnaryExpression(41,rt),ke)),Zt(h.createLiteralTypeNode(rt),ke)}function SC(){return Pe(),te()===102}function J1(){be|=4194304;const ee=B(),ke=co(114);ln(102),ln(21);const rt=cl();let Pt;if(co(28)){const ei=t.getTokenStart();ln(19);const wr=te();if(wr===118||wr===132?Pe():Kt(f._0_expected,_a(118)),ln(59),Pt=iT(wr,!0),co(28),!ln(20)){const pr=Zs(Re);pr&&pr.code===f._0_expected.code&&pa(pr,xI(re,Ne,ei,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ln(22);const nn=co(25)?Vo():void 0,_n=ml();return Zt(h.createImportTypeNode(rt,Pt,nn,_n,ke),ee)}function Rx(){return Pe(),te()===9||te()===10}function sE(){switch(te()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return En(xx)||Ca();case 67:t.reScanAsteriskEqualsToken();case 42:return Yf();case 61:t.reScanQuestionToken();case 58:return bv();case 100:return zu();case 54:return Ty();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return S0();case 41:return wt(Rx)?S0(!0):Ca();case 116:return tc();case 110:{const ee=Sf();return te()===142&&!t.hasPrecedingLineBreak()?Up(ee):ee}case 114:return wt(SC)?J1():Im();case 19:return wt(bC)?TC():b0();case 23:return H1();case 21:return Ix();case 102:return J1();case 131:return wt(Ox)?H_():Ca();case 16:return ti();default:return Ca()}}function Ub(ee){switch(te()){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!ee;case 41:return!ee&&wt(Rx);case 21:return!ee&&wt(Dx);default:return Ln()}}function Dx(){return Pe(),te()===22||mt(!1)||Ub()}function Cx(){const ee=B();let ke=sE();for(;!t.hasPrecedingLineBreak();)switch(te()){case 54:Pe(),ke=Zt(h.createJSDocNonNullableType(ke,!0),ee);break;case 58:if(wt(er))return ke;Pe(),ke=Zt(h.createJSDocNullableType(ke,!0),ee);break;case 23:if(ln(23),Ub()){const rt=cl();ln(24),ke=Zt(h.createIndexedAccessTypeNode(ke,rt),ee)}else ln(24),ke=Zt(h.createArrayTypeNode(ke),ee);break;default:return ke}return ke}function lE(ee){const ke=B();return ln(ee),Zt(h.createTypeOperatorNode(ee,Ey()),ke)}function Hb(){if(co(96)){const ee=Ft(cl);if(It()||te()!==58)return ee}}function Sv(){const ee=B(),ke=Fs(),rt=En(Hb),Pt=h.createTypeParameterDeclaration(void 0,ke,rt);return Zt(Pt,ee)}function Sy(){const ee=B();return ln(140),Zt(h.createInferTypeNode(Sv()),ee)}function Ey(){const ee=te();switch(ee){case 143:case 158:case 148:return lE(ee);case 140:return Sy()}return ot(Cx)}function Ay(ee){if(ns()){const ke=q1();let rt;return w_(ke)?rt=ee?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:rt=ee?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,Nt(ke,rt),ke}}function qb(ee,ke,rt){const Pt=B(),nn=ee===52,_n=co(ee);let ei=_n&&Ay(nn)||ke();if(te()===ee||_n){const wr=[ei];for(;co(ee);)wr.push(Ay(nn)||ke());ei=Zt(rt(qa(wr,Pt)),Pt)}return ei}function E0(){return qb(51,Ey,h.createIntersectionTypeNode)}function K1(){return qb(52,E0,h.createUnionTypeNode)}function A0(){return Pe(),te()===105}function ns(){return te()===30||te()===21&&wt(EC)?!0:te()===105||te()===128&&wt(A0)}function X1(){if(db(te())&&wi(!1),Ln()||te()===110)return Pe(),!0;if(te()===23||te()===19){const ee=Re.length;return Nv(),ee===Re.length}return!1}function EC(){return Pe(),!!(te()===22||te()===26||X1()&&(te()===59||te()===28||te()===58||te()===64||te()===22&&(Pe(),te()===39)))}function Iy(){const ee=B(),ke=Ln()&&En(xy),rt=cl();return ke?Zt(h.createTypePredicateNode(void 0,ke,rt),ee):rt}function xy(){const ee=Fs();if(te()===142&&!t.hasPrecedingLineBreak())return Pe(),ee}function H_(){const ee=B(),ke=$s(131),rt=te()===110?Sf():Fs(),Pt=co(142)?cl():void 0;return Zt(h.createTypePredicateNode(ke,rt,Pt),ee)}function cl(){if(Kn&81920)return $o(81920,cl);if(ns())return q1();const ee=B(),ke=K1();if(!It()&&!t.hasPrecedingLineBreak()&&co(96)){const rt=Ft(cl);ln(58);const Pt=ot(cl);ln(59);const nn=ot(cl);return Zt(h.createConditionalTypeNode(ke,rt,Pt,nn),ee)}return ke}function qd(){return co(59)?cl():void 0}function lp(){switch(te()){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 wt(j_);default:return Ln()}}function Jd(){if(lp())return!0;switch(te()){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 Cm()?!0:Ln()}}function I0(){return te()!==19&&te()!==100&&te()!==86&&te()!==60&&Jd()}function Au(){const ee=Ot();ee&&ai(!1);const ke=B();let rt=Bu(!0),Pt;for(;Pt=Go(28);)rt=ja(rt,Pt,Bu(!0),ke);return ee&&ai(!0),rt}function q_(){return co(64)?Bu(!0):void 0}function Bu(ee){if(Dm())return x0();const ke=eL(ee)||Qe(ee);if(ke)return ke;const rt=B(),Pt=Ae(),nn=Jb(0);return nn.kind===80&&te()===39?R0(rt,nn,ee,Pt,void 0):$u(nn)&&sy(gr())?ja(nn,tc(),Bu(ee),rt):Av(nn,rt,ee)}function Dm(){return te()===127?Ue()?!0:wt(mE):!1}function qm(){return Pe(),!t.hasPrecedingLineBreak()&&Ln()}function x0(){const ee=B();return Pe(),!t.hasPrecedingLineBreak()&&(te()===42||Jd())?Zt(h.createYieldExpression(Go(42),Bu(!0)),ee):Zt(h.createYieldExpression(void 0,void 0),ee)}function R0(ee,ke,rt,Pt,nn){C.assert(te()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const _n=h.createParameterDeclaration(void 0,void 0,ke,void 0,void 0,void 0);Zt(_n,ke.pos);const ei=qa([_n],_n.pos,_n.end),wr=$s(39),pr=Jm(!!nn,rt),Si=h.createArrowFunction(nn,void 0,ei,void 0,wr,pr);return Pr(Zt(Si,ee),Pt)}function eL(ee){const ke=AC();if(ke!==0)return ke===1?Pg(!0,!0):En(()=>cE(ee))}function AC(){return te()===21||te()===30||te()===134?wt(Ev):te()===39?1:0}function Ev(){if(te()===134&&(Pe(),t.hasPrecedingLineBreak()||te()!==21&&te()!==30))return 0;const ee=te(),ke=Pe();if(ee===21){if(ke===22)switch(Pe()){case 39:case 59:case 19:return 1;default:return 0}if(ke===23||ke===19)return 2;if(ke===26)return 1;if(db(ke)&&ke!==134&&wt(Pd))return Pe()===130?0:1;if(!Ln()&&ke!==110)return 0;switch(Pe()){case 59:return 1;case 58:return Pe(),te()===59||te()===28||te()===64||te()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return C.assert(ee===30),!Ln()&&te()!==87?0:ce===1?wt(()=>{co(87);const Pt=Pe();if(Pt===96)switch(Pe()){case 64:case 32:case 44:return!1;default:return!0}else if(Pt===28||Pt===64)return!0;return!1})?1:0:2}function cE(ee){const ke=t.getTokenStart();if(gn?.has(ke))return;const rt=Pg(!1,ee);return rt||(gn||(gn=new Set)).add(ke),rt}function Qe(ee){if(te()===134&&wt(Y1)===1){const ke=B(),rt=Ae(),Pt=Ao(),nn=Jb(0);return R0(ke,nn,ee,rt,Pt)}}function Y1(){if(te()===134){if(Pe(),t.hasPrecedingLineBreak()||te()===39)return 0;const ee=Jb(0);if(!t.hasPrecedingLineBreak()&&ee.kind===80&&te()===39)return 1}return 0}function Pg(ee,ke){const rt=B(),Pt=Ae(),nn=Ao(),_n=yt(nn,wM)?2:0,ei=Xe();let wr;if(ln(21)){if(ee)wr=Ro(_n,ee);else{const Lv=Ro(_n,ee);if(!Lv)return;wr=Lv}if(!ln(22)&&!ee)return}else{if(!ee)return;wr=Tf()}const pr=te()===59,Si=lr(59,!1);if(Si&&!ee&&cd(Si))return;let ao=Si;for(;ao?.kind===197;)ao=ao.type;const zs=ao&&RD(ao);if(!ee&&te()!==39&&(zs||te()!==19))return;const Is=te(),as=$s(39),em=Is===39||Is===19?Jm(yt(nn,wM),ke):Fs();if(!ke&&pr&&te()!==59)return;const xf=h.createArrowFunction(nn,ei,wr,Si,as,em);return Pr(Zt(xf,rt),Pt)}function Jm(ee,ke){if(te()===19)return eT(ee?2:0);if(te()!==27&&te()!==100&&te()!==86&&Cv()&&!I0())return eT(16|(ee?2:0));const rt=Ue();ri(!1);const Pt=_t;_t=!1;const nn=ee?ne(()=>Bu(ke)):Fe(()=>Bu(ke));return _t=Pt,ri(rt),nn}function Av(ee,ke,rt){const Pt=Go(58);if(!Pt)return ee;let nn;return Zt(h.createConditionalExpression(ee,Pt,$o(r,()=>Bu(!1)),nn=$s(59),fm(nn)?Bu(rt):As(80,!1,f._0_expected,_a(59))),ke)}function Jb(ee){const ke=B(),rt=C0();return Sh(ee,rt,ke)}function Iu(ee){return ee===103||ee===165}function Sh(ee,ke,rt){for(;;){gr();const Pt=Tk(te());if(!(te()===43?Pt>=ee:Pt>ee)||te()===103&&Rt())break;if(te()===130||te()===152){if(t.hasPrecedingLineBreak())break;{const _n=te();Pe(),ke=_n===152?D0(ke,cl()):Ef(ke,cl())}}else ke=ja(ke,tc(),Jb(Pt),rt)}return ke}function Cm(){return Rt()&&te()===103?!1:Tk(te())>0}function D0(ee,ke){return Zt(h.createSatisfiesExpression(ee,ke),ee.pos)}function ja(ee,ke,rt,Pt){return Zt(h.createBinaryExpression(ee,ke,rt),Pt)}function Ef(ee,ke){return Zt(h.createAsExpression(ee,ke),ee.pos)}function Iv(){const ee=B();return Zt(h.createPrefixUnaryExpression(te(),Xt(xv)),ee)}function $1(){const ee=B();return Zt(h.createDeleteExpression(Xt(xv)),ee)}function Ry(){const ee=B();return Zt(h.createTypeOfExpression(Xt(xv)),ee)}function dE(){const ee=B();return Zt(h.createVoidExpression(Xt(xv)),ee)}function $f(){return te()===135?nt()?!0:wt(mE):!1}function Lg(){const ee=B();return Zt(h.createAwaitExpression(Xt(xv)),ee)}function C0(){if(m_()){const rt=B(),Pt=uE();return te()===43?Sh(Tk(te()),Pt,rt):Pt}const ee=te(),ke=xv();if(te()===43){const rt=La(Ne,ke.pos),{end:Pt}=ke;ke.kind===217?Oe(rt,Pt,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(C.assert(YF(ee)),Oe(rt,Pt,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,_a(ee)))}return ke}function xv(){switch(te()){case 40:case 41:case 55:case 54:return Iv();case 91:return $1();case 114:return Ry();case 116:return dE();case 30:return ce===1?Sd(!0,void 0,void 0,!0):cu();case 135:if($f())return Lg();default:return uE()}}function m_(){switch(te()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ce!==1)return!1;default:return!0}}function uE(){if(te()===46||te()===47){const ke=B();return Zt(h.createPrefixUnaryExpression(te(),Xt(N0)),ke)}else if(ce===1&&te()===30&&wt(op))return Sd(!0);const ee=N0();if(C.assert($u(ee)),(te()===46||te()===47)&&!t.hasPrecedingLineBreak()){const ke=te();return Pe(),Zt(h.createPostfixUnaryExpression(ee,ke),ee.pos)}return ee}function N0(){const ee=B();let ke;return te()===102?wt(v0)?(be|=4194304,ke=tc()):wt(f_)?(Pe(),Pe(),ke=Zt(h.createMetaProperty(102,Ee()),ee),ke.name.escapedText==="defer"?(te()===21||te()===30)&&(be|=4194304):be|=8388608):ke=Jr():ke=te()===108?Vr():Jr(),cp(ee,ke)}function Jr(){const ee=B(),ke=P0();return Af(ee,ke,!0)}function Vr(){const ee=B();let ke=tc();if(te()===30){const rt=B(),Pt=En(M0);Pt!==void 0&&(Oe(rt,B(),f.super_may_not_use_type_arguments),Km()||(ke=h.createExpressionWithTypeArguments(ke,Pt)))}return te()===21||te()===25||te()===23?ke:($s(25,f.super_must_be_followed_by_an_argument_list_or_member_access),Zt(G(ke,an(!0,!0,!0)),ee))}function Sd(ee,ke,rt,Pt=!1){const nn=B(),_n=tL(ee);let ei;if(_n.kind===287){let wr=pE(_n),pr;const Si=wr[wr.length-1];if(Si?.kind===285&&!o0(Si.openingElement.tagName,Si.closingElement.tagName)&&o0(_n.tagName,Si.closingElement.tagName)){const ao=Si.children.end,zs=Zt(h.createJsxElement(Si.openingElement,Si.children,Zt(h.createJsxClosingElement(Zt(N(""),ao,ao)),ao,ao)),Si.openingElement.pos,ao);wr=qa([...wr.slice(0,wr.length-1),zs],wr.pos,ao),pr=Si.closingElement}else pr=xC(_n,ee),o0(_n.tagName,pr.tagName)||(rt&&ph(rt)&&o0(pr.tagName,rt.tagName)?Nt(_n.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,BN(Ne,_n.tagName)):Nt(pr.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,BN(Ne,_n.tagName)));ei=Zt(h.createJsxElement(_n,wr,pr),nn)}else _n.kind===290?ei=Zt(h.createJsxFragment(_n,pE(_n),Nx(ee)),nn):(C.assert(_n.kind===286),ei=_n);if(!Pt&&ee&&te()===30){const wr=typeof ke>"u"?ei.pos:ke,pr=En(()=>Sd(!0,wr));if(pr){const Si=As(28,!1);return MV(Si,pr.pos,0),Oe(La(Ne,wr),pr.end,f.JSX_expressions_must_have_one_parent_element),Zt(h.createBinaryExpression(ei,Si,pr),nn)}}return ei}function Q1(){const ee=B(),ke=h.createJsxText(t.getTokenValue(),Ge===13);return Ge=t.scanJsxToken(),Zt(ke,ee)}function Dy(ee,ke){switch(ke){case 1:if(jm(ee))Nt(ee,f.JSX_fragment_has_no_corresponding_closing_tag);else{const rt=ee.tagName,Pt=Math.min(La(Ne,rt.pos),rt.end);Oe(Pt,rt.end,f.JSX_element_0_has_no_corresponding_closing_tag,BN(Ne,ee.tagName))}return;case 31:case 7:return;case 12:case 13:return Q1();case 19:return Wo(!1);case 30:return Sd(!1,void 0,ee);default:return C.assertNever(ke)}}function pE(ee){const ke=[],rt=B(),Pt=cn;for(cn|=16384;;){const nn=Dy(ee,Ge=t.reScanJsxToken());if(!nn||(ke.push(nn),ph(ee)&&nn?.kind===285&&!o0(nn.openingElement.tagName,nn.closingElement.tagName)&&o0(ee.tagName,nn.closingElement.tagName)))break}return cn=Pt,qa(ke,rt)}function IC(){const ee=B();return Zt(h.createJsxAttributes(Va(13,vp)),ee)}function tL(ee){const ke=B();if(ln(30),te()===32)return Qt(),Zt(h.createJsxOpeningFragment(),ke);const rt=zr(),Pt=Kn&524288?void 0:bl(),nn=IC();let _n;return te()===32?(Qt(),_n=h.createJsxOpeningElement(rt,Pt,nn)):(ln(44),ln(32,void 0,!1)&&(ee?Pe():Qt()),_n=h.createJsxSelfClosingElement(rt,Pt,nn)),Zt(_n,ke)}function zr(){const ee=B(),ke=xu();if(fh(ke))return ke;let rt=ke;for(;co(25);)rt=Zt(G(rt,an(!0,!1,!1)),ee);return rt}function xu(){const ee=B();jt();const ke=te()===110,rt=Y();return co(59)?(jt(),Zt(h.createJsxNamespacedName(rt,Y()),ee)):ke?Zt(h.createToken(110),ee):rt}function Wo(ee){const ke=B();if(!ln(19))return;let rt,Pt;return te()!==20&&(ee||(rt=Go(26)),Pt=Au()),ee?ln(20):ln(20,void 0,!1)&&Qt(),Zt(h.createJsxExpression(rt,Pt),ke)}function vp(){if(te()===19)return Mr();const ee=B();return Zt(h.createJsxAttribute(Kb(),Z1()),ee)}function Z1(){if(te()===64){if(In()===11)return kt();if(te()===19)return Wo(!0);if(te()===30)return Sd(!0);Kt(f.or_JSX_element_expected)}}function Kb(){const ee=B();jt();const ke=Y();return co(59)?(jt(),Zt(h.createJsxNamespacedName(ke,Y()),ee)):ke}function Mr(){const ee=B();ln(19),ln(26);const ke=Au();return ln(20),Zt(h.createJsxSpreadAttribute(ke),ee)}function xC(ee,ke){const rt=B();ln(31);const Pt=zr();return ln(32,void 0,!1)&&(ke||!o0(ee.tagName,Pt)?Pe():Qt()),Zt(h.createJsxClosingElement(Pt),rt)}function Nx(ee){const ke=B();return ln(31),ln(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(ee?Pe():Qt()),Zt(h.createJsxJsxClosingFragment(),ke)}function cu(){C.assert(ce!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const ee=B();ln(30);const ke=cl();ln(32);const rt=xv();return Zt(h.createTypeAssertion(ke,rt),ee)}function J_(){return Pe(),Xu(te())||te()===23||Km()}function Eh(){return te()===29&&wt(J_)}function Xb(ee){if(ee.flags&64)return!0;if(qI(ee)){let ke=ee.expression;for(;qI(ke)&&!(ke.flags&64);)ke=ke.expression;if(ke.flags&64){for(;qI(ee);)ee.flags|=64,ee=ee.expression;return!0}}return!1}function eA(ee,ke,rt){const Pt=an(!0,!0,!0),nn=rt||Xb(ke),_n=nn?j(ke,rt,Pt):G(ke,Pt);if(nn&&eo(_n.name)&&Nt(_n.name,f.An_optional_chain_cannot_contain_private_identifiers),dy(ke)&&ke.typeArguments){const ei=ke.typeArguments.pos-1,wr=La(Ne,ke.typeArguments.end)+1;Oe(ei,wr,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Zt(_n,ee)}function Yb(ee,ke,rt){let Pt;if(te()===24)Pt=As(80,!0,f.An_element_access_expression_should_take_an_argument);else{const _n=Mn(Au);uf(_n)&&(_n.text=ql(_n.text)),Pt=_n}ln(24);const nn=rt||Xb(ke)?Z(ke,rt,Pt):J(ke,Pt);return Zt(nn,ee)}function Af(ee,ke,rt){for(;;){let Pt,nn=!1;if(rt&&Eh()?(Pt=$s(29),nn=Xu(te())):nn=co(25),nn){ke=eA(ee,ke,Pt);continue}if((Pt||!Ot())&&co(23)){ke=Yb(ee,ke,Pt);continue}if(Km()){ke=!Pt&&ke.kind===234?Qf(ee,ke.expression,Pt,ke.typeArguments):Qf(ee,ke,Pt,void 0);continue}if(!Pt){if(te()===54&&!t.hasPrecedingLineBreak()){Pe(),ke=Zt(h.createNonNullExpression(ke),ee);continue}const _n=En(M0);if(_n){ke=Zt(h.createExpressionWithTypeArguments(ke,_n),ee);continue}}return ke}}function Km(){return te()===15||te()===16}function Qf(ee,ke,rt,Pt){const nn=h.createTaggedTemplateExpression(ke,Pt,te()===15?(Jn(!0),kt()):or(!0));return(rt||ke.flags&64)&&(nn.flags|=64),nn.questionDotToken=rt,Zt(nn,ee)}function cp(ee,ke){for(;;){ke=Af(ee,ke,!0);let rt;const Pt=Go(29);if(Pt&&(rt=En(M0),Km())){ke=Qf(ee,ke,Pt,rt);continue}if(rt||te()===21){!Pt&&ke.kind===234&&(rt=ke.typeArguments,ke=ke.expression);const nn=Rv(),_n=Pt||Xb(ke)?ye(ke,Pt,rt,nn):q(ke,rt,nn);ke=Zt(_n,ee);continue}if(Pt){const nn=As(80,!1,f.Identifier_expected);ke=Zt(j(ke,Pt,nn),ee)}break}return ke}function Rv(){ln(21);const ee=Xc(11,h_);return ln(22),ee}function M0(){if(Kn&524288||ft()!==30)return;Pe();const ee=Xc(20,cl);if(gr()===32)return Pe(),ee&&Mx()?ee:void 0}function Mx(){switch(te()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Cm()||!Jd()}function P0(){switch(te()){case 15:t.getTokenFlags()&26656&&Jn(!1);case 9:case 10:case 11:return kt();case 110:case 108:case 106:case 112:case 97:return tc();case 21:return $b();case 23:return Qb();case 19:return Dv();case 134:if(!wt(Zf))break;return Zb();case 60:return Ja();case 86:return _c();case 100:return Zb();case 105:return Ny();case 44:case 69:if(tr()===14)return kt();break;case 16:return or(!1);case 81:return Dr()}return Fs(f.Expression_expected)}function $b(){const ee=B(),ke=Ae();ln(21);const rt=Mn(Au);return ln(22),Pr(Zt(K(rt),ee),ke)}function Px(){const ee=B();ln(26);const ke=Bu(!0);return Zt(h.createSpreadElement(ke),ee)}function Cy(){return te()===26?Px():te()===28?Zt(h.createOmittedExpression(),B()):Bu(!0)}function h_(){return $o(r,Cy)}function Qb(){const ee=B(),ke=t.getTokenStart(),rt=ln(23),Pt=t.hasPrecedingLineBreak(),nn=Xc(15,Cy);return Ps(23,24,rt,ke),Zt(W(nn,Pt),ee)}function L0(){const ee=B(),ke=Ae();if(Go(26)){const ao=Bu(!0);return Pr(Zt(h.createSpreadAssignment(ao),ee),ke)}const rt=wi(!0);if(Fn(139))return z0(ee,ke,rt,178,0);if(Fn(153))return z0(ee,ke,rt,179,0);const Pt=Go(42),nn=Ln(),_n=ur(),ei=Go(58),wr=Go(54);if(Pt||te()===21||te()===30)return F0(ee,ke,rt,Pt,_n,ei,wr);let pr;if(nn&&te()!==59){const ao=Go(64),zs=ao?Mn(()=>Bu(!0)):void 0;pr=h.createShorthandPropertyAssignment(_n,zs),pr.equalsToken=ao}else{ln(59);const ao=Mn(()=>Bu(!0));pr=h.createPropertyAssignment(_n,ao)}return pr.modifiers=rt,pr.questionToken=ei,pr.exclamationToken=wr,Pr(Zt(pr,ee),ke)}function Dv(){const ee=B(),ke=t.getTokenStart(),rt=ln(19),Pt=t.hasPrecedingLineBreak(),nn=Xc(12,L0,!0);return Ps(19,20,rt,ke),Zt(O(nn,Pt),ee)}function Zb(){const ee=Ot();ai(!1);const ke=B(),rt=Ae(),Pt=wi(!1);ln(100);const nn=Go(42),_n=nn?1:0,ei=yt(Pt,wM)?2:0,wr=_n&&ei?it(Xm):_n?le(Xm):ei?ne(Xm):Xm(),pr=Xe(),Si=_i(_n|ei),ao=lr(59,!1),zs=eT(_n|ei);ai(ee);const Is=h.createFunctionExpression(Pt,nn,wr,pr,Si,ao,zs);return Pr(Zt(Is,ke),rt)}function Xm(){return xn()?vd():void 0}function Ny(){const ee=B();if(ln(105),co(25)){const _n=Ee();return Zt(h.createMetaProperty(105,_n),ee)}const ke=B();let rt=Af(ke,P0(),!1),Pt;rt.kind===234&&(Pt=rt.typeArguments,rt=rt.expression),te()===29&&Kt(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,BN(Ne,rt));const nn=te()===21?Rv():void 0;return Zt(ie(rt,Pt,nn),ee)}function kg(ee,ke){const rt=B(),Pt=Ae(),nn=t.getTokenStart(),_n=ln(19,ke);if(_n||ee){const ei=t.hasPrecedingLineBreak(),wr=Va(1,bp);Ps(19,20,_n,nn);const pr=Pr(Zt(pe(wr,ei),rt),Pt);return te()===64&&(Kt(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),Pe()),pr}else{const ei=Tf();return Pr(Zt(pe(ei,void 0),rt),Pt)}}function eT(ee,ke){const rt=Ue();ri(!!(ee&1));const Pt=nt();qi(!!(ee&2));const nn=_t;_t=!1;const _n=Ot();_n&&ai(!1);const ei=kg(!!(ee&16),ke);return _n&&ai(!0),_t=nn,ri(rt),qi(Pt),ei}function dd(){const ee=B(),ke=Ae();return ln(27),Pr(Zt(h.createEmptyStatement(),ee),ke)}function fE(){const ee=B(),ke=Ae();ln(101);const rt=t.getTokenStart(),Pt=ln(21),nn=Mn(Au);Ps(21,22,Pt,rt);const _n=bp(),ei=co(93)?bp():void 0;return Pr(Zt(ve(nn,_n,ei),ee),ke)}function wg(){const ee=B(),ke=Ae();ln(92);const rt=bp();ln(117);const Pt=t.getTokenStart(),nn=ln(21),_n=Mn(Au);return Ps(21,22,nn,Pt),co(27),Pr(Zt(h.createDoStatement(rt,_n),ee),ke)}function k0(){const ee=B(),ke=Ae();ln(117);const rt=t.getTokenStart(),Pt=ln(21),nn=Mn(Au);Ps(21,22,Pt,rt);const _n=bp();return Pr(Zt(xe(nn,_n),ee),ke)}function tA(){const ee=B(),ke=Ae();ln(99);const rt=Go(135);ln(21);let Pt;te()!==27&&(te()===115||te()===121||te()===87||te()===160&&wt(Vl)||te()===135&&wt(Fx)?Pt=lA(!0):Pt=Uo(Au));let nn;if(rt?ln(165):co(165)){const _n=Mn(()=>Bu(!0));ln(22),nn=Ce(rt,Pt,_n,bp())}else if(co(103)){const _n=Mn(Au);ln(22),nn=h.createForInStatement(Pt,_n,bp())}else{ln(27);const _n=te()!==27&&te()!==22?Mn(Au):void 0;ln(27);const ei=te()!==22?Mn(Au):void 0;ln(22),nn=X(Pt,_n,ei,bp())}return Pr(Zt(nn,ee),ke)}function Og(ee){const ke=B(),rt=Ae();ln(ee===253?83:88);const Pt=Lo()?void 0:Fs();is();const nn=ee===253?h.createBreakStatement(Pt):h.createContinueStatement(Pt);return Pr(Zt(nn,ke),rt)}function RC(){const ee=B(),ke=Ae();ln(107);const rt=Lo()?void 0:Mn(Au);return is(),Pr(Zt(h.createReturnStatement(rt),ee),ke)}function Lx(){const ee=B(),ke=Ae();ln(118);const rt=t.getTokenStart(),Pt=ln(21),nn=Mn(Au);Ps(21,22,Pt,rt);const _n=Ia(67108864,bp);return Pr(Zt(h.createWithStatement(nn,_n),ee),ke)}function kx(){const ee=B(),ke=Ae();ln(84);const rt=Mn(Au);ln(59);const Pt=Va(3,bp);return Pr(Zt(h.createCaseClause(rt,Pt),ee),ke)}function nL(){const ee=B();ln(90),ln(59);const ke=Va(3,bp);return Zt(h.createDefaultClause(ke),ee)}function wx(){return te()===84?kx():nL()}function w0(){const ee=B();ln(19);const ke=Va(2,wx);return ln(20),Zt(h.createCaseBlock(ke),ee)}function My(){const ee=B(),ke=Ae();ln(109),ln(21);const rt=Mn(Au);ln(22);const Pt=w0();return Pr(Zt(h.createSwitchStatement(rt,Pt),ee),ke)}function DC(){const ee=B(),ke=Ae();ln(111);let rt=t.hasPrecedingLineBreak()?void 0:Mn(Au);return rt===void 0&&(Wt++,rt=Zt(N(""),B())),fa()||ra(rt),Pr(Zt(h.createThrowStatement(rt),ee),ke)}function O0(){const ee=B(),ke=Ae();ln(113);const rt=kg(!1),Pt=te()===85?nA():void 0;let nn;return(!Pt||te()===98)&&(ln(98,f.catch_or_finally_expected),nn=kg(!1)),Pr(Zt(h.createTryStatement(rt,Pt,nn),ee),ke)}function nA(){const ee=B();ln(85);let ke;co(21)?(ke=__(),ln(22)):ke=void 0;const rt=kg(!1);return Zt(h.createCatchClause(ke,rt),ee)}function hc(){const ee=B(),ke=Ae();return ln(89),is(),Pr(Zt(h.createDebuggerStatement(),ee),ke)}function ud(){const ee=B();let ke=Ae(),rt;const Pt=te()===21,nn=Mn(Au);return He(nn)&&co(59)?rt=h.createLabeledStatement(nn,bp()):(fa()||ra(nn),rt=fe(nn),Pt&&(ke=!1)),Pr(Zt(rt,ee),ke)}function Ox(){return Pe(),Xu(te())&&!t.hasPrecedingLineBreak()}function dp(){return Pe(),te()===86&&!t.hasPrecedingLineBreak()}function Zf(){return Pe(),te()===100&&!t.hasPrecedingLineBreak()}function mE(){return Pe(),(Xu(te())||te()===9||te()===10||te()===11)&&!t.hasPrecedingLineBreak()}function Ah(){for(;;)switch(te()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return hE();case 135:return du();case 120:case 156:case 166:return qm();case 144:case 145:return aA();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const ee=te();if(Pe(),t.hasPrecedingLineBreak())return!1;if(ee===138&&te()===156)return!0;continue;case 162:return Pe(),te()===19||te()===80||te()===95;case 102:return Pe(),te()===166||te()===11||te()===42||te()===19||Xu(te());case 95:let ke=Pe();if(ke===156&&(ke=wt(Pe)),ke===64||ke===42||ke===19||ke===90||ke===130||ke===60)return!0;continue;case 126:Pe();continue;default:return!1}}function tT(){return wt(Ah)}function Cv(){switch(te()){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 tT()||wt(j_);case 87:case 95:return tT();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return tT()||!wt(Ox);default:return Jd()}}function Wx(){return Pe(),xn()||te()===19||te()===23}function rL(){return wt(Wx)}function Vl(){return rA(!0)}function CC(){return Pe(),te()===64||te()===27||te()===59}function rA(ee){return Pe(),ee&&te()===165?wt(CC):(xn()||te()===19)&&!t.hasPrecedingLineBreak()}function hE(){return wt(rA)}function Fx(ee){return Pe()===160?rA(ee):!1}function du(){return wt(Fx)}function bp(){switch(te()){case 27:return dd();case 19:return kg(!1);case 115:return os(B(),Ae(),void 0);case 121:if(rL())return os(B(),Ae(),void 0);break;case 135:if(du())return os(B(),Ae(),void 0);break;case 160:if(hE())return os(B(),Ae(),void 0);break;case 100:return Wr(B(),Ae(),void 0);case 86:return Kd(B(),Ae(),void 0);case 101:return fE();case 92:return wg();case 117:return k0();case 99:return tA();case 88:return Og(252);case 83:return Og(253);case 107:return RC();case 118:return Lx();case 109:return My();case 111:return DC();case 113:case 85:case 98:return O0();case 89:return hc();case 60:return W0();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(tT())return W0();break}return ud()}function iA(ee){return ee.kind===138}function W0(){const ee=B(),ke=Ae(),rt=wi(!0);if(yt(rt,iA)){const nn=Tp(ee);if(nn)return nn;for(const _n of rt)_n.flags|=33554432;return Ia(33554432,()=>oA(ee,ke,rt))}else return oA(ee,ke,rt)}function Tp(ee){return Ia(33554432,()=>{const ke=tl(cn,ee);if(ke)return kl(ke)})}function oA(ee,ke,rt){switch(te()){case 115:case 121:case 87:case 160:case 135:return os(ee,ke,rt);case 100:return Wr(ee,ke,rt);case 86:return Kd(ee,ke,rt);case 120:return $m(ee,ke,rt);case 156:return Pv(ee,ke,rt);case 94:return Iz(ee,ke,rt);case 162:case 144:case 145:return dW(ee,ke,rt);case 102:return mA(ee,ke,rt);case 95:switch(Pe(),te()){case 90:case 64:return V0(ee,ke,rt);case 130:return yE(ee,ke,rt);default:return cL(ee,ke,rt)}default:if(rt){const Pt=As(283,!0,f.Declaration_expected);return IM(Pt,ee),Pt.modifiers=rt,Pt}return}}function Wg(){return Pe()===11}function zx(){return Pe(),te()===161||te()===64}function aA(){return Pe(),!t.hasPrecedingLineBreak()&&(Ln()||te()===11)}function Ym(ee,ke){if(te()!==19){if(ee&4){Do();return}if(Lo()){is();return}}return eT(ee,ke)}function Bx(){const ee=B();if(te()===28)return Zt(h.createOmittedExpression(),ee);const ke=Go(26),rt=Nv(),Pt=q_();return Zt(h.createBindingElement(ke,void 0,rt,Pt),ee)}function NC(){const ee=B(),ke=Go(26),rt=xn();let Pt=ur(),nn;rt&&te()!==59?(nn=Pt,Pt=void 0):(ln(59),nn=Nv());const _n=q_();return Zt(h.createBindingElement(ke,Pt,nn,_n),ee)}function Gx(){const ee=B();ln(19);const ke=Mn(()=>Xc(9,NC));return ln(20),Zt(h.createObjectBindingPattern(ke),ee)}function sA(){const ee=B();ln(23);const ke=Mn(()=>Xc(10,Bx));return ln(24),Zt(h.createArrayBindingPattern(ke),ee)}function Vx(){return te()===19||te()===23||te()===81||xn()}function Nv(ee){return te()===23?sA():te()===19?Gx():vd(ee)}function qp(){return __(!0)}function __(ee){const ke=B(),rt=Ae(),Pt=Nv(f.Private_identifiers_are_not_allowed_in_variable_declarations);let nn;ee&&Pt.kind===80&&te()===54&&!t.hasPrecedingLineBreak()&&(nn=tc());const _n=qd(),ei=Iu(te())?void 0:q_(),wr=Je(Pt,nn,_n,ei);return Pr(Zt(wr,ke),rt)}function lA(ee){const ke=B();let rt=0;switch(te()){case 115:break;case 121:rt|=1;break;case 87:rt|=2;break;case 160:rt|=4;break;case 135:C.assert(du()),rt|=6,Pe();break;default:C.fail()}Pe();let Pt;if(te()===165&&wt(cA))Pt=Tf();else{const nn=Rt();dr(ee),Pt=Xc(8,ee?__:qp),dr(nn)}return Zt(Se(Pt,rt),ke)}function cA(){return Pd()&&Pe()===22}function os(ee,ke,rt){const Pt=lA(!1);is();const nn=de(rt,Pt);return Pr(Zt(nn,ee),ke)}function Wr(ee,ke,rt){const Pt=nt(),nn=Xh(rt);ln(100);const _n=Go(42),ei=nn&2048?Xm():vd(),wr=_n?1:0,pr=nn&1024?2:0,Si=Xe();nn&32&&qi(!0);const ao=_i(wr|pr),zs=lr(59,!1),Is=Ym(wr|pr,f.or_expected);qi(Pt);const as=h.createFunctionDeclaration(rt,_n,ei,Si,ao,zs,Is);return Pr(Zt(as,ee),ke)}function If(){if(te()===137)return ln(137);if(te()===11&&wt(Pe)===21)return En(()=>{const ee=kt();return ee.text==="constructor"?ee:void 0})}function Yc(ee,ke,rt){return En(()=>{if(If()){const Pt=Xe(),nn=_i(0),_n=lr(59,!1),ei=Ym(0,f.or_expected),wr=h.createConstructorDeclaration(rt,nn,ei);return wr.typeParameters=Pt,wr.type=_n,Pr(Zt(wr,ee),ke)}})}function F0(ee,ke,rt,Pt,nn,_n,ei,wr){const pr=Pt?1:0,Si=yt(rt,wM)?2:0,ao=Xe(),zs=_i(pr|Si),Is=lr(59,!1),as=Ym(pr|Si,wr),em=h.createMethodDeclaration(rt,Pt,nn,_n,ao,zs,Is,as);return em.exclamationToken=ei,Pr(Zt(em,ee),ke)}function dA(ee,ke,rt,Pt,nn){const _n=!nn&&!t.hasPrecedingLineBreak()?Go(54):void 0,ei=qd(),wr=$o(90112,q_);Gl(Pt,ei,wr);const pr=h.createPropertyDeclaration(rt,Pt,nn||_n,ei,wr);return Pr(Zt(pr,ee),ke)}function _E(ee,ke,rt){const Pt=Go(42),nn=ur(),_n=Go(58);return Pt||te()===21||te()===30?F0(ee,ke,rt,Pt,nn,_n,void 0,f.or_expected):dA(ee,ke,rt,nn,_n)}function z0(ee,ke,rt,Pt,nn){const _n=ur(),ei=Xe(),wr=_i(0),pr=lr(59,!1),Si=Ym(nn),ao=Pt===178?h.createGetAccessorDeclaration(rt,_n,wr,pr,Si):h.createSetAccessorDeclaration(rt,_n,wr,Si);return ao.typeParameters=ei,gp(ao)&&(ao.type=pr),Pr(Zt(ao,ee),ke)}function uA(){let ee;if(te()===60)return!0;for(;db(te());){if(ee=te(),O9(ee))return!0;Pe()}if(te()===42||(pt()&&(ee=te(),Pe()),te()===23))return!0;if(ee!==void 0){if(!ep(ee)||ee===153||ee===139)return!0;switch(te()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Lo()}}return!1}function D(ee,ke,rt){$s(126);const Pt=me(),nn=Pr(Zt(h.createClassStaticBlockDeclaration(Pt),ee),ke);return nn.modifiers=rt,nn}function me(){const ee=Ue(),ke=nt();ri(!1),qi(!0);const rt=kg(!1);return ri(ee),qi(ke),rt}function Et(){if(nt()&&te()===135){const ee=B(),ke=Fs(f.Expression_expected);Pe();const rt=Af(ee,ke,!0);return cp(ee,rt)}return N0()}function An(){const ee=B();if(!co(60))return;const ke=ht(Et);return Zt(h.createDecorator(ke),ee)}function vi(ee,ke,rt){const Pt=B(),nn=te();if(te()===87&&ke){if(!En(ro))return}else{if(rt&&te()===126&&wt(fA))return;if(ee&&te()===126)return;if(!Qs())return}return Zt(k(nn),Pt)}function wi(ee,ke,rt){const Pt=B();let nn,_n,ei,wr=!1,pr=!1,Si=!1;if(ee&&te()===60)for(;_n=An();)nn=Bn(nn,_n);for(;ei=vi(wr,ke,rt);)ei.kind===126&&(wr=!0),nn=Bn(nn,ei),pr=!0;if(pr&&ee&&te()===60)for(;_n=An();)nn=Bn(nn,_n),Si=!0;if(Si)for(;ei=vi(wr,ke,rt);)ei.kind===126&&(wr=!0),nn=Bn(nn,ei);return nn&&qa(nn,Pt)}function Ao(){let ee;if(te()===134){const ke=B();Pe();const rt=Zt(k(134),ke);ee=qa([rt],ke)}return ee}function Li(){const ee=B(),ke=Ae();if(te()===27)return Pe(),Pr(Zt(h.createSemicolonClassElement(),ee),ke);const rt=wi(!0,!0,!0);if(te()===126&&wt(fA))return D(ee,ke,rt);if(Fn(139))return z0(ee,ke,rt,178,0);if(Fn(153))return z0(ee,ke,rt,179,0);if(te()===137||te()===11){const Pt=Yc(ee,ke,rt);if(Pt)return Pt}if(hl())return xm(ee,ke,rt);if(Xu(te())||te()===11||te()===9||te()===10||te()===42||te()===23)if(yt(rt,iA)){for(const nn of rt)nn.flags|=33554432;return Ia(33554432,()=>_E(ee,ke,rt))}else return _E(ee,ke,rt);if(rt){const Pt=As(80,!0,f.Declaration_expected);return dA(ee,ke,rt,Pt,void 0)}return C.fail("Should not have attempted to parse class member declaration.")}function Ja(){const ee=B(),ke=Ae(),rt=wi(!0);if(te()===86)return Gu(ee,ke,rt,232);const Pt=As(283,!0,f.Expression_expected);return IM(Pt,ee),Pt.modifiers=rt,Pt}function _c(){return Gu(B(),Ae(),void 0,232)}function Kd(ee,ke,rt){return Gu(ee,ke,rt,264)}function Gu(ee,ke,rt,Pt){const nn=nt();ln(86);const _n=B0(),ei=Xe();yt(rt,zI)&&qi(!0);const wr=nT();let pr;ln(19)?(pr=Mv(),ln(20)):pr=Tf(),qi(nn);const Si=Pt===264?h.createClassDeclaration(rt,_n,ei,wr,pr):h.createClassExpression(rt,_n,ei,wr,pr);return Pr(Zt(Si,ee),ke)}function B0(){return xn()&&!Vu()?lc(xn()):void 0}function Vu(){return te()===119&&wt(nf)}function nT(){if(pA())return Va(22,jx)}function jx(){const ee=B(),ke=te();C.assert(ke===96||ke===119),Pe();const rt=Xc(7,Nm);return Zt(h.createHeritageClause(ke,rt),ee)}function Nm(){const ee=B(),ke=N0();if(ke.kind===234)return ke;const rt=bl();return Zt(h.createExpressionWithTypeArguments(ke,rt),ee)}function bl(){return te()===30?oe(20,cl,30,32):void 0}function pA(){return te()===96||te()===119}function Mv(){return Va(5,Li)}function $m(ee,ke,rt){ln(120);const Pt=Fs(),nn=Xe(),_n=nT(),ei=U_(),wr=h.createInterfaceDeclaration(rt,Pt,nn,_n,ei);return Pr(Zt(wr,ee),ke)}function Pv(ee,ke,rt){ln(156),t.hasPrecedingLineBreak()&&Kt(f.Line_break_not_permitted_here);const Pt=Fs(),nn=Xe();ln(64);const _n=te()===141&&En(xx)||cl();is();const ei=h.createTypeAliasDeclaration(rt,Pt,nn,_n);return Pr(Zt(ei,ee),ke)}function gE(){const ee=B(),ke=Ae(),rt=ur(),Pt=Mn(q_);return Pr(Zt(h.createEnumMember(rt,Pt),ee),ke)}function Iz(ee,ke,rt){ln(94);const Pt=Fs();let nn;ln(19)?(nn=dt(()=>Xc(6,gE)),ln(20)):nn=Tf();const _n=h.createEnumDeclaration(rt,Pt,nn);return Pr(Zt(_n,ee),ke)}function iL(){const ee=B();let ke;return ln(19)?(ke=Va(1,bp),ln(20)):ke=Tf(),Zt(h.createModuleBlock(ke),ee)}function Ux(ee,ke,rt,Pt){const nn=Pt&32,_n=Pt&8?Ee():Fs(),ei=co(25)?Ux(B(),!1,void 0,8|nn):iL(),wr=h.createModuleDeclaration(rt,_n,ei,Pt);return Pr(Zt(wr,ee),ke)}function oL(ee,ke,rt){let Pt=0,nn;te()===162?(nn=Fs(),Pt|=2048):(nn=kt(),nn.text=ql(nn.text));let _n;te()===19?_n=iL():is();const ei=h.createModuleDeclaration(rt,nn,_n,Pt);return Pr(Zt(ei,ee),ke)}function dW(ee,ke,rt){let Pt=0;if(te()===162)return oL(ee,ke,rt);if(co(145))Pt|=32;else if(ln(144),te()===11)return oL(ee,ke,rt);return Ux(ee,ke,rt,Pt)}function rT(){return te()===149&&wt(Hx)}function Hx(){return Pe()===21}function fA(){return Pe()===19}function xz(){return Pe()===44}function yE(ee,ke,rt){ln(130),ln(145);const Pt=Fs();is();const nn=h.createNamespaceExportDeclaration(Pt);return nn.modifiers=rt,Pr(Zt(nn,ee),ke)}function mA(ee,ke,rt){ln(102);const Pt=t.getTokenFullStart();let nn;Ln()&&(nn=Fs());let _n;if(nn?.escapedText==="type"&&(te()!==161||Ln()&&wt(zx))&&(Ln()||ar())?(_n=156,nn=Ln()?Fs():void 0):nn?.escapedText==="defer"&&(te()===161?!wt(Wg):te()!==28&&te()!==64)&&(_n=166,nn=Ln()?Fs():void 0),nn&&!sL()&&_n!==166)return MC(ee,ke,rt,nn,_n===156);const ei=aL(nn,Pt,_n,void 0),wr=hA(),pr=qx();is();const Si=h.createImportDeclaration(rt,ei,wr,pr);return Pr(Zt(Si,ee),ke)}function aL(ee,ke,rt,Pt=!1){let nn;return(ee||te()===42||te()===19)&&(nn=PC(ee,ke,rt,Pt),ln(161)),nn}function qx(){const ee=te();if((ee===118||ee===132)&&!t.hasPrecedingLineBreak())return iT(ee)}function uo(){const ee=B(),ke=Xu(te())?Ee():Eo(11);ln(59);const rt=Bu(!0);return Zt(h.createImportAttribute(ke,rt),ee)}function iT(ee,ke){const rt=B();ke||ln(ee);const Pt=t.getTokenStart();if(ln(19)){const nn=t.hasPrecedingLineBreak(),_n=Xc(24,uo,!0);if(!ln(20)){const ei=Zs(Re);ei&&ei.code===f._0_expected.code&&pa(ei,xI(re,Ne,Pt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Zt(h.createImportAttributes(_n,nn,ee),rt)}else{const nn=qa([],B(),void 0,!1);return Zt(h.createImportAttributes(nn,!1,ee),rt)}}function ar(){return te()===42||te()===19}function sL(){return te()===28||te()===161}function MC(ee,ke,rt,Pt,nn){ln(64);const _n=vE();is();const ei=h.createImportEqualsDeclaration(rt,nn,Pt,_n);return Pr(Zt(ei,ee),ke)}function PC(ee,ke,rt,Pt){let nn;return(!ee||co(28))&&(Pt&&t.setSkipJsDocLeadingAsterisks(!0),te()===42?nn=Rz():nn=pW(276),Pt&&t.setSkipJsDocLeadingAsterisks(!1)),Zt(h.createImportClause(rt,ee,nn),ke)}function vE(){return rT()?uW():ut(!1)}function uW(){const ee=B();ln(149),ln(21);const ke=hA();return ln(22),Zt(h.createExternalModuleReference(ke),ee)}function hA(){if(te()===11){const ee=kt();return ee.text=ql(ee.text),ee}else return Au()}function Rz(){const ee=B();ln(42),ln(130);const ke=Fs();return Zt(h.createNamespaceImport(ke),ee)}function LC(){return Xu(te())||te()===11}function K_(ee){return te()===11?kt():ee()}function pW(ee){const ke=B(),rt=ee===276?h.createNamedImports(oe(23,Dz,19,20)):h.createNamedExports(oe(23,G0,19,20));return Zt(rt,ke)}function G0(){const ee=Ae();return Pr(lL(282),ee)}function Dz(){return lL(277)}function lL(ee){const ke=B();let rt=ep(te())&&!Ln(),Pt=t.getTokenStart(),nn=t.getTokenEnd(),_n=!1,ei,wr=!0,pr=K_(Ee);if(pr.kind===80&&pr.escapedText==="type")if(te()===130){const zs=Ee();if(te()===130){const Is=Ee();LC()?(_n=!0,ei=zs,pr=K_(ao),wr=!1):(ei=pr,pr=Is,wr=!1)}else LC()?(ei=pr,wr=!1,pr=K_(ao)):(_n=!0,pr=zs)}else LC()&&(_n=!0,pr=K_(ao));wr&&te()===130&&(ei=pr,ln(130),pr=K_(ao)),ee===277&&(pr.kind!==80?(Oe(La(Ne,pr.pos),pr.end,f.Identifier_expected),pr=uh(As(80,!1),pr.pos,pr.pos)):rt&&Oe(Pt,nn,f.Identifier_expected));const Si=ee===277?h.createImportSpecifier(_n,ei,pr):h.createExportSpecifier(_n,ei,pr);return Zt(Si,ke);function ao(){return rt=ep(te())&&!Ln(),Pt=t.getTokenStart(),nn=t.getTokenEnd(),Ee()}}function fW(ee){return Zt(h.createNamespaceExport(K_(Ee)),ee)}function cL(ee,ke,rt){const Pt=nt();qi(!0);let nn,_n,ei;const wr=co(156),pr=B();co(42)?(co(130)&&(nn=fW(pr)),ln(161),_n=hA()):(nn=pW(280),(te()===161||te()===11&&!t.hasPrecedingLineBreak())&&(ln(161),_n=hA()));const Si=te();_n&&(Si===118||Si===132)&&!t.hasPrecedingLineBreak()&&(ei=iT(Si)),is(),qi(Pt);const ao=h.createExportDeclaration(rt,wr,nn,_n,ei);return Pr(Zt(ao,ee),ke)}function V0(ee,ke,rt){const Pt=nt();qi(!0);let nn;co(64)?nn=!0:ln(90);const _n=Bu(!0);is(),qi(Pt);const ei=h.createExportAssignment(rt,nn,_n);return Pr(Zt(ei,ee),ke)}let X_;(ee=>{ee[ee.SourceElements=0]="SourceElements",ee[ee.BlockStatements=1]="BlockStatements",ee[ee.SwitchClauses=2]="SwitchClauses",ee[ee.SwitchClauseStatements=3]="SwitchClauseStatements",ee[ee.TypeMembers=4]="TypeMembers",ee[ee.ClassMembers=5]="ClassMembers",ee[ee.EnumMembers=6]="EnumMembers",ee[ee.HeritageClauseElement=7]="HeritageClauseElement",ee[ee.VariableDeclarations=8]="VariableDeclarations",ee[ee.ObjectBindingElements=9]="ObjectBindingElements",ee[ee.ArrayBindingElements=10]="ArrayBindingElements",ee[ee.ArgumentExpressions=11]="ArgumentExpressions",ee[ee.ObjectLiteralMembers=12]="ObjectLiteralMembers",ee[ee.JsxAttributes=13]="JsxAttributes",ee[ee.JsxChildren=14]="JsxChildren",ee[ee.ArrayLiteralMembers=15]="ArrayLiteralMembers",ee[ee.Parameters=16]="Parameters",ee[ee.JSDocParameters=17]="JSDocParameters",ee[ee.RestProperties=18]="RestProperties",ee[ee.TypeParameters=19]="TypeParameters",ee[ee.TypeArguments=20]="TypeArguments",ee[ee.TupleElementTypes=21]="TupleElementTypes",ee[ee.HeritageClauses=22]="HeritageClauses",ee[ee.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",ee[ee.ImportAttributes=24]="ImportAttributes",ee[ee.JSDocComment=25]="JSDocComment",ee[ee.Count=26]="Count"})(X_||(X_={}));let kC;(ee=>{ee[ee.False=0]="False",ee[ee.True=1]="True",ee[ee.Unknown=2]="Unknown"})(kC||(kC={}));let g_;(ee=>{function ke(Si,ao,zs){zt("file.js",Si,99,void 0,1,0),t.setText(Si,ao,zs),Ge=t.scan();const Is=rt(),as=At("file.js",99,1,!1,[],k(1),0,gs),em=RI(Re,as);return _e&&(as.jsDocDiagnostics=RI(_e,as)),Zr(),Is?{jsDocTypeExpression:Is,diagnostics:em}:void 0}ee.parseJSDocTypeExpressionForTests=ke;function rt(Si){const ao=B(),zs=(Si?co:ln)(19),Is=Ia(16777216,Th);(!Si||zs)&&xl(20);const as=h.createJSDocTypeExpression(Is);return $e(as),Zt(as,ao)}ee.parseJSDocTypeExpression=rt;function Pt(){const Si=B(),ao=co(19),zs=B();let Is=ut(!1);for(;te()===81;)Mt(),gt(),Is=Zt(h.createJSDocMemberName(Is,Fs()),zs);ao&&xl(20);const as=h.createJSDocNameReference(Is);return $e(as),Zt(as,Si)}ee.parseJSDocNameReference=Pt;function nn(Si,ao,zs){zt("",Si,99,void 0,1,0);const Is=Ia(16777216,()=>pr(ao,zs)),em=RI(Re,{languageVariant:0,text:Si});return Zr(),Is?{jsDoc:Is,diagnostics:em}:void 0}ee.parseIsolatedJSDocComment=nn;function _n(Si,ao,zs){const Is=Ge,as=Re.length,em=en,xf=Ia(16777216,()=>pr(ao,zs));return ps(xf,Si),Kn&524288&&(_e||(_e=[]),Xr(_e,Re,as)),Ge=Is,Re.length=as,en=em,xf}ee.parseJSDocComment=_n;let ei;(Si=>{Si[Si.BeginningOfLine=0]="BeginningOfLine",Si[Si.SawAsterisk=1]="SawAsterisk",Si[Si.SavingComments=2]="SavingComments",Si[Si.SavingBackticks=3]="SavingBackticks"})(ei||(ei={}));let wr;(Si=>{Si[Si.Property=1]="Property",Si[Si.Parameter=2]="Parameter",Si[Si.CallbackParameter=4]="CallbackParameter"})(wr||(wr={}));function pr(Si=0,ao){const zs=Ne,Is=ao===void 0?zs.length:Si+ao;if(ao=Is-Si,C.assert(Si>=0),C.assert(Si<=Is),C.assert(Is<=zs.length),!Lj(zs,Si))return;let as,em,xf,Lv,kv,Fg=[];const oT=[],cs=cn;cn|=1<<25;const Vc=t.scanRange(Si+3,ao-5,wv);return cn=cs,Vc;function wv(){let zn=1,Ur,$r=Si-(zs.lastIndexOf(` `,Si)+1)+4;function Mi(Bs){Ur||(Ur=$r),Fg.push(Bs),$r+=Bs.length}for(gt();xh(5););xh(4)&&(zn=0,$r=0);e:for(;;){switch(te()){case 60:Jx(Fg),kv||(kv=B()),nl(T($r)),zn=0,Ur=void 0;break;case 4:Fg.push(t.getTokenText()),zn=0,$r=0;break;case 42:const Bs=t.getTokenText();zn===1?(zn=2,Mi(Bs)):(C.assert(zn===0),zn=1,$r+=Bs.length);break;case 5:C.assert(zn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const Ed=t.getTokenText();Ur!==void 0&&$r+Ed.length>Ur&&Fg.push(Ed.slice(Ur-$r)),$r+=Ed.length;break;case 1:break e;case 82:zn=2,Mi(t.getTokenValue());break;case 19:zn=2;const Rh=t.getTokenFullStart(),Mm=t.getTokenEnd()-1,Qm=ue(Mm);if(Qm){Lv||uu(Fg),oT.push(Zt(h.createJSDocText(Fg.join("")),Lv??Si,Rh)),oT.push(Qm),Fg=[],Lv=t.getTokenEnd();break}default:zn=2,Mi(t.getTokenText());break}zn===2?Bt(!1):gt()}const Wi=Fg.join("").trimEnd();oT.length&&Wi.length&&oT.push(Zt(h.createJSDocText(Wi),Lv??Si,kv)),oT.length&&as&&C.assertIsDefined(kv,"having parsed tags implies that the end of the comment span should be set");const Na=as&&qa(as,em,xf);return Zt(h.createJSDocComment(oT.length?qa(oT,Si,kv):Wi.length?Wi:void 0,Na),Si,Is)}function uu(zn){for(;zn.length&&(zn[0]===` `||zn[0]==="\r");)zn.shift()}function Jx(zn){for(;zn.length;){const Ur=zn[zn.length-1].trimEnd();if(Ur==="")zn.pop();else if(Ur.lengthEd&&(Mi.push(Bg.slice(Ed-zn)),Bs=2),zn+=Bg.length;break;case 19:Bs=2;const Py=t.getTokenFullStart(),wC=t.getTokenEnd()-1,mL=ue(wC);mL?(Wi.push(Zt(h.createJSDocText(Mi.join("")),Na??$r,Py)),Wi.push(mL),Mi=[],Na=t.getTokenEnd()):Rh(t.getTokenText());break;case 62:Bs===3?Bs=2:Bs=3,Rh(t.getTokenText());break;case 82:Bs!==3&&(Bs=2),Rh(t.getTokenValue());break;case 42:if(Bs===0){Bs=1,zn+=1;break}default:Bs!==3&&(Bs=2),Rh(t.getTokenText());break}Bs===2||Bs===3?Mm=Bt(Bs===3):Mm=gt()}uu(Mi);const Qm=Mi.join("").trimEnd();if(Wi.length)return Qm.length&&Wi.push(Zt(h.createJSDocText(Qm),Na??$r)),qa(Wi,$r,t.getTokenEnd());if(Qm.length)return Qm}function ue(zn){const Ur=En(rn);if(!Ur)return;gt(),Y_();const $r=tt(),Mi=[];for(;te()!==20&&te()!==4&&te()!==1;)Mi.push(t.getTokenText()),gt();const Wi=Ur==="link"?h.createJSDocLink:Ur==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return Zt(Wi($r,Mi.join("")),zn,t.getTokenEnd())}function tt(){if(Xu(te())){const zn=B();let Ur=Ee();for(;co(25);)Ur=Zt(h.createQualifiedName(Ur,te()===81?As(80,!1):Ee()),zn);for(;te()===81;)Mt(),gt(),Ur=Zt(h.createJSDocMemberName(Ur,Fs()),zn);return Ur}}function rn(){if(br(),te()===19&>()===60&&Xu(gt())){const zn=t.getTokenValue();if(Or(zn))return zn}}function Or(zn){return zn==="link"||zn==="linkcode"||zn==="linkplain"}function ko(zn,Ur,$r,Mi){return Zt(h.createJSDocUnknownTag(Ur,M(zn,B(),$r,Mi)),zn)}function nl(zn){zn&&(as?as.push(zn):(as=[zn],em=zn.pos),xf=zn.end)}function of(){return br(),te()===19?rt():void 0}function aT(){const zn=xh(23);zn&&Y_();const Ur=xh(62),$r=FX();return Ur&&Ra(62),zn&&(Y_(),Go(64)&&Au(),ln(24)),{name:$r,isBracketed:zn}}function Ih(zn){switch(zn.kind){case 151:return!0;case 189:return Ih(zn.elementType);default:return Wp(zn)&&He(zn.typeName)&&zn.typeName.escapedText==="Object"&&!zn.typeArguments}}function Kx(zn,Ur,$r,Mi){let Wi=of(),Na=!Wi;br();const{name:Bs,isBracketed:Ed}=aT(),Rh=br();Na&&!wt(rn)&&(Wi=of());const Mm=M(zn,B(),Mi,Rh),Qm=Wme(Wi,Bs,$r,Mi);Qm&&(Wi=Qm,Na=!0);const Bg=$r===1?h.createJSDocPropertyTag(Ur,Bs,Ed,Wi,Na,Mm):h.createJSDocParameterTag(Ur,Bs,Ed,Wi,Na,Mm);return Zt(Bg,zn)}function Wme(zn,Ur,$r,Mi){if(zn&&Ih(zn.type)){const Wi=B();let Na,Bs;for(;Na=En(()=>_A($r,Mi,Ur));)Na.kind===342||Na.kind===349?Bs=Bn(Bs,Na):Na.kind===346&&Nt(Na.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Bs){const Ed=Zt(h.createJSDocTypeLiteral(Bs,zn.type.kind===189),Wi);return Zt(h.createJSDocTypeExpression(Ed),Wi)}}}function dL(zn,Ur,$r,Mi){yt(as,m4)&&Oe(Ur.pos,t.getTokenStart(),f._0_tag_already_specified,Gi(Ur.escapedText));const Wi=of();return Zt(h.createJSDocReturnTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function Xx(zn,Ur,$r,Mi){yt(as,HM)&&Oe(Ur.pos,t.getTokenStart(),f._0_tag_already_specified,Gi(Ur.escapedText));const Wi=rt(!0),Na=$r!==void 0&&Mi!==void 0?M(zn,B(),$r,Mi):void 0;return Zt(h.createJSDocTypeTag(Ur,Wi,Na),zn)}function Fme(zn,Ur,$r,Mi){const Na=te()===23||wt(()=>gt()===60&&Xu(gt())&&Or(t.getTokenValue()))?void 0:Pt(),Bs=$r!==void 0&&Mi!==void 0?M(zn,B(),$r,Mi):void 0;return Zt(h.createJSDocSeeTag(Ur,Na,Bs),zn)}function zme(zn,Ur,$r,Mi){const Wi=of(),Na=M(zn,B(),$r,Mi);return Zt(h.createJSDocThrowsTag(Ur,Wi,Na),zn)}function mW(zn,Ur,$r,Mi){const Wi=B(),Na=PX();let Bs=t.getTokenFullStart();const Ed=M(zn,Bs,$r,Mi);Ed||(Bs=t.getTokenFullStart());const Rh=typeof Ed!="string"?qa(so([Zt(Na,Wi,Bs)],Ed),Wi):Na.text+Ed;return Zt(h.createJSDocAuthorTag(Ur,Rh),zn)}function PX(){const zn=[];let Ur=!1,$r=t.getToken();for(;$r!==1&&$r!==4;){if($r===30)Ur=!0;else{if($r===60&&!Ur)break;if($r===32&&Ur){zn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}zn.push(t.getTokenText()),$r=gt()}return h.createJSDocText(zn.join(""))}function sT(zn,Ur,$r,Mi){const Wi=bE();return Zt(h.createJSDocImplementsTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function Bme(zn,Ur,$r,Mi){const Wi=bE();return Zt(h.createJSDocAugmentsTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function Gme(zn,Ur,$r,Mi){const Wi=rt(!1),Na=$r!==void 0&&Mi!==void 0?M(zn,B(),$r,Mi):void 0;return Zt(h.createJSDocSatisfiesTag(Ur,Wi,Na),zn)}function Vme(zn,Ur,$r,Mi){const Wi=t.getTokenFullStart();let Na;Ln()&&(Na=Fs());const Bs=aL(Na,Wi,156,!0),Ed=hA(),Rh=qx(),Mm=$r!==void 0&&Mi!==void 0?M(zn,B(),$r,Mi):void 0;return Zt(h.createJSDocImportTag(Ur,Bs,Ed,Rh,Mm),zn)}function bE(){const zn=co(19),Ur=B(),$r=uL();t.setSkipJsDocLeadingAsterisks(!0);const Mi=bl();t.setSkipJsDocLeadingAsterisks(!1);const Wi=h.createExpressionWithTypeArguments($r,Mi),Na=Zt(Wi,Ur);return zn&&(Y_(),ln(20)),Na}function uL(){const zn=B();let Ur=Jp();for(;co(25);){const $r=Jp();Ur=Zt(G(Ur,$r),zn)}return Ur}function Yx(zn,Ur,$r,Mi,Wi){return Zt(Ur($r,M(zn,B(),Mi,Wi)),zn)}function LX(zn,Ur,$r,Mi){const Wi=rt(!0);return Y_(),Zt(h.createJSDocThisTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function pL(zn,Ur,$r,Mi){const Wi=rt(!0);return Y_(),Zt(h.createJSDocEnumTag(Ur,Wi,M(zn,B(),$r,Mi)),zn)}function kX(zn,Ur,$r,Mi){let Wi=of();br();const Na=hW();Y_();let Bs=V($r),Ed;if(!Wi||Ih(Wi.type)){let Mm,Qm,Bg,Py=!1;for(;(Mm=En(()=>Hme($r)))&&Mm.kind!==346;)if(Py=!0,Mm.kind===345)if(Qm){const wC=Kt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);wC&&pa(wC,xI(re,Ne,0,0,f.The_tag_was_first_specified_here));break}else Qm=Mm;else Bg=Bn(Bg,Mm);if(Py){const wC=Wi&&Wi.type.kind===189,mL=h.createJSDocTypeLiteral(Bg,wC);Wi=Qm&&Qm.typeExpression&&!Ih(Qm.typeExpression.type)?Qm.typeExpression:Zt(mL,zn),Ed=Wi.end}}Ed=Ed||Bs!==void 0?B():(Na??Wi??Ur).end,Bs||(Bs=M(zn,Ed,$r,Mi));const Rh=h.createJSDocTypedefTag(Ur,Wi,Na,Bs);return Zt(Rh,zn,Ed)}function hW(zn){const Ur=t.getTokenStart();if(!Xu(te()))return;const $r=Jp();if(co(25)){const Mi=hW(!0),Wi=h.createModuleDeclaration(void 0,$r,Mi,zn?8:void 0);return Zt(Wi,Ur)}return zn&&($r.flags|=4096),$r}function fL(zn){const Ur=B();let $r,Mi;for(;$r=En(()=>_A(4,zn));){if($r.kind===346){Nt($r.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Mi=Bn(Mi,$r)}return qa(Mi||[],Ur)}function wX(zn,Ur){const $r=fL(Ur),Mi=En(()=>{if(xh(60)){const Wi=T(Ur);if(Wi&&Wi.kind===343)return Wi}});return Zt(h.createJSDocSignature(void 0,$r,Mi),zn)}function OX(zn,Ur,$r,Mi){const Wi=hW();Y_();let Na=V($r);const Bs=wX(zn,$r);Na||(Na=M(zn,B(),$r,Mi));const Ed=Na!==void 0?B():Bs.end;return Zt(h.createJSDocCallbackTag(Ur,Bs,Wi,Na),zn,Ed)}function jme(zn,Ur,$r,Mi){Y_();let Wi=V($r);const Na=wX(zn,$r);Wi||(Wi=M(zn,B(),$r,Mi));const Bs=Wi!==void 0?B():Na.end;return Zt(h.createJSDocOverloadTag(Ur,Na,Wi),zn,Bs)}function Ume(zn,Ur){for(;!He(zn)||!He(Ur);)if(!He(zn)&&!He(Ur)&&zn.right.escapedText===Ur.right.escapedText)zn=zn.left,Ur=Ur.left;else return!1;return zn.escapedText===Ur.escapedText}function Hme(zn){return _A(1,zn)}function _A(zn,Ur,$r){let Mi=!0,Wi=!1;for(;;)switch(gt()){case 60:if(Mi){const Na=WX(zn,Ur);return Na&&(Na.kind===342||Na.kind===349)&&$r&&(He(Na.name)||!Ume($r,Na.name.left))?!1:Na}Wi=!1;break;case 4:Mi=!0,Wi=!1;break;case 42:Wi&&(Mi=!1),Wi=!0;break;case 80:Mi=!1;break;case 1:return!1}}function WX(zn,Ur){C.assert(te()===60);const $r=t.getTokenFullStart();gt();const Mi=Jp(),Wi=br();let Na;switch(Mi.escapedText){case"type":return zn===1&&Xx($r,Mi);case"prop":case"property":Na=1;break;case"arg":case"argument":case"param":Na=6;break;case"template":return _r($r,Mi,Ur,Wi);case"this":return LX($r,Mi,Ur,Wi);default:return!1}return zn&Na?Kx($r,Mi,zn,Ur):!1}function qme(){const zn=B(),Ur=xh(23);Ur&&Y_();const $r=wi(!1,!0),Mi=Jp(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Wi;if(Ur&&(Y_(),ln(64),Wi=Ia(16777216,Th),ln(24)),!Wl(Mi))return Zt(h.createTypeParameterDeclaration($r,Mi,void 0,Wi),zn)}function Ov(){const zn=B(),Ur=[];do{Y_();const $r=qme();$r!==void 0&&Ur.push($r),br()}while(xh(28));return qa(Ur,zn)}function _r(zn,Ur,$r,Mi){const Wi=te()===19?rt():void 0,Na=Ov();return Zt(h.createJSDocTemplateTag(Ur,Wi,Na,M(zn,B(),$r,Mi)),zn)}function xh(zn){return te()===zn?(gt(),!0):!1}function FX(){let zn=Jp();for(co(23)&&ln(24);co(25);){const Ur=Jp();co(23)&&ln(24),zn=tn(zn,Ur)}return zn}function Jp(zn){if(!Xu(te()))return As(80,!zn,zn||f.Identifier_expected);Wt++;const Ur=t.getTokenStart(),$r=t.getTokenEnd(),Mi=te(),Wi=ql(t.getTokenValue()),Na=Zt(N(Wi,Mi),Ur,$r);return gt(),Na}}})(g_=e.JSDocParser||(e.JSDocParser={}))})(i0||(i0={}));var xSe=new WeakSet;function gje(e){xSe.has(e)&&C.fail("Source file has already been incrementally parsed"),xSe.add(e)}var RSe=new WeakSet;function yje(e){return RSe.has(e)}function jie(e){RSe.add(e)}var wj;(e=>{function t(A,R,N,P){if(P=P||C.shouldAssert(2),h(A,R,N,P),gee(N))return A;if(A.statements.length===0)return i0.parseSourceFile(A.fileName,R,A.languageVersion,void 0,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);gje(A),i0.fixupParentReferences(A);const k=A.text,W=y(A),O=d(A,N);h(A,R,O,P),C.assert(O.span.start<=N.span.start),C.assert(Cl(O.span)===Cl(N.span)),C.assert(Cl(RN(O))===Cl(RN(N)));const G=RN(O).length-O.span.length;u(A,O.span.start,Cl(O.span),Cl(RN(O)),G,k,R,P);const j=i0.parseSourceFile(A.fileName,R,A.languageVersion,W,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);return j.commentDirectives=r(A.commentDirectives,j.commentDirectives,O.span.start,Cl(O.span),G,k,R,P),j.impliedNodeFormat=A.impliedNodeFormat,vie(A,j),j}e.updateSourceFile=t;function r(A,R,N,P,k,W,O,G){if(!A)return R;let j,J=!1;for(const q of A){const{range:ye,type:ie}=q;if(ye.endP){Z();const K={range:{pos:ye.pos+k,end:ye.end+k},type:ie};j=Bn(j,K),G&&C.assert(W.substring(ye.pos,ye.end)===O.substring(K.range.pos,K.range.end))}}return Z(),j;function Z(){J||(J=!0,j?R&&j.push(...R):j=R)}}function i(A,R,N,P,k,W,O){N?j(A):G(A);return;function G(J){let Z="";if(O&&o(J)&&(Z=k.substring(J.pos,J.end)),bj(J,R),uh(J,J.pos+P,J.end+P),O&&o(J)&&C.assert(Z===W.substring(J.pos,J.end)),Jo(J,G,j),ef(J))for(const q of J.jsDoc)G(q);l(J,O)}function j(J){uh(J,J.pos+P,J.end+P);for(const Z of J)G(Z)}}function o(A){switch(A.kind){case 11:case 9:case 80:return!0}return!1}function s(A,R,N,P,k){C.assert(A.end>=R,"Adjusting an element that was entirely before the change range"),C.assert(A.pos<=N,"Adjusting an element that was entirely after the change range"),C.assert(A.pos<=A.end);const W=Math.min(A.pos,P),O=A.end>=N?A.end+k:Math.min(A.end,P);if(C.assert(W<=O),A.parent){const G=A.parent;C.assertGreaterThanOrEqual(W,G.pos),C.assertLessThanOrEqual(O,G.end)}uh(A,W,O)}function l(A,R){if(R){let N=A.pos;const P=k=>{C.assert(k.pos>=N),N=k.end};if(ef(A))for(const k of A.jsDoc)P(k);Jo(A,P),C.assert(N<=A.end)}}function u(A,R,N,P,k,W,O,G){j(A);return;function j(Z){if(C.assert(Z.pos<=Z.end),Z.pos>N){i(Z,A,!1,k,W,O,G);return}const q=Z.end;if(q>=R){if(jie(Z),bj(Z,A),s(Z,R,N,P,k),Jo(Z,j,J),ef(Z))for(const ye of Z.jsDoc)j(ye);l(Z,G);return}C.assert(qN){i(Z,A,!0,k,W,O,G);return}const q=Z.end;if(q>=R){jie(Z),s(Z,R,N,P,k);for(const ye of Z)j(ye);return}C.assert(q0&&O<=1;O++){const G=g(A,P);C.assert(G.pos<=P);const j=G.pos;P=Math.max(0,j-1)}const k=oc(P,Cl(R.span)),W=R.newLength+(R.span.start-P);return E2(k,W)}function g(A,R){let N=A,P;if(Jo(A,W),P){const O=k(P);O.pos>N.pos&&(N=O)}return N;function k(O){for(;;){const G=dV(O);if(G)O=G;else return O}}function W(O){if(!Wl(O))if(O.pos<=R){if(O.pos>=N.pos&&(N=O),RR),!0}}function h(A,R,N,P){const k=A.text;if(N&&(C.assert(k.length-N.span.length+N.newLength===R.length),P||C.shouldAssert(3))){const W=k.substr(0,N.span.start),O=R.substr(0,N.span.start);C.assert(W===O);const G=k.substring(Cl(N.span),k.length),j=R.substring(Cl(RN(N)),R.length);C.assert(G===j)}}function y(A){let R=A.statements,N=0;C.assert(N=J.pos&&O=J.pos&&O{A[A.Value=-1]="Value"})(E||(E={}))})(wj||(wj={}));function ad(e){return I4(e)!==void 0}function I4(e){const t=ZA(e,w6,!1);if(t)return t;if(El(e,".ts")){const r=xc(e),i=r.lastIndexOf(".d.");if(i>=0)return r.substring(i)}}function vje(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 Oj(e,t){const r=[];for(const i of lg(t,0)||ae){const o=t.substring(i.pos,i.end);Eje(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 Wj(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;Ye(XA(r),u=>{const{types:d,lib:g,path:h,["resolution-mode"]:y,preserve:E}=u.arguments,A=E==="true"?!0:void 0;if(u.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(d){const R=vje(y,d.pos,d.end,t);s.push({pos:d.pos,end:d.end,fileName:d.value,...R?{resolutionMode:R}:{},...A?{preserve:A}:{}})}else g?l.push({pos:g.pos,end:g.end,fileName:g.value,...A?{preserve:A}:{}}):h?o.push({pos:h.pos,end:h.end,fileName:h.value,...A?{preserve:A}:{}}):t(u.range.pos,u.range.end-u.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Vt(XA(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":{Ye(XA(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:C.fail("Unhandled pragma kind")}})}var Uie=new Map;function bje(e){if(Uie.has(e))return Uie.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Uie.set(e,t),t}var Tje=/^\/\/\/\s*<(\S+)\s.*?\/>/m,Sje=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Eje(e,t,r){const i=t.kind===2&&Tje.exec(r);if(i){const s=i[1].toLowerCase(),l=W8[s];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const d of l.args){const h=bje(d.name).exec(r);if(!h&&!d.optional)return;if(h){const y=h[2]||h[3];if(d.captureSpan){const E=t.pos+h.index+h[1].length+1;u[d.name]={value:y,pos:E,end:E+y.length}}else u[d.name]=y}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&Sje.exec(r);if(o)return DSe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+(?:\S.*)?)?$/gm;let l;for(;l=s.exec(r);)DSe(e,t,4,l)}}function DSe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=W8[o];if(!s||!(s.kind&r))return;const l=i[2],u=Aje(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function Aje(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let o=0;o[""+t,e])),NSe=[["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"],["es2024","lib.es2024.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.arraybuffer","lib.es2017.arraybuffer.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.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"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.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.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],x4=NSe.map(e=>e[0]),Fj=new Map(NSe),ex=[{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:uoe},allowConfigDirTemplateSubstitution:!0,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:uoe},allowConfigDirTemplateSubstitution:!0,category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],R4=[{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,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,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:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:f.Compiler_Diagnostics,description:f.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,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}],zj={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,es2023:10,es2024:11,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},qie={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,node18:101,node20:102,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},MSe=[{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:"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},zj,qie,{name:"lib",type:"list",element:{name:"lib",type:Fj,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:CSe,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:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!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.Backwards_Compatibility,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",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,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:"isolatedDeclarations",type:"boolean",category:f.Interop_Constraints,description:f.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:f.Interop_Constraints,description:f.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:f.Language_and_Environment,description:f.Enable_lib_replacement,defaultValueDescription:!0},{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:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,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,allowConfigDirTemplateSubstitution:!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,allowConfigDirTemplateSubstitution:!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,allowConfigDirTemplateSubstitution:!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:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{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:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Check_side_effect_imports,defaultValueDescription:!1},{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,affectsSourceFile:!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.Backwards_Compatibility,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}],Um=[...R4,...MSe],Jie=Um.filter(e=>!!e.affectsSemanticDiagnostics),Kie=Um.filter(e=>!!e.affectsEmit),Xie=Um.filter(e=>!!e.affectsDeclarationPath),Bj=Um.filter(e=>!!e.affectsModuleResolution),Gj=Um.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),Yie=Um.filter(e=>!!e.affectsProgramStructure),$ie=Um.filter(e=>Rs(e,"transpileOptionValue")),Ije=Um.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),xje=ex.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Qie=Um.filter(Rje);function Rje(e){return!Bo(e.type)}var R1={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},Vj=[R1,{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},{name:"stopBuildOnErrors",category:f.Command_line_Options,description:f.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],Sw=[...R4,...Vj],D4=[{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}];function C4(e){const t=new Map,r=new Map;return Ye(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}var PSe;function wD(){return PSe||(PSe=C4(Um))}var Dje={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:FSe},LSe={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function Zie(e){return kSe(e,Il)}function kSe(e,t){const r=Co(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 N4(e,t,r){return yEe(e,(t??"").trim(),r)}function eoe(e,t="",r){if(t=t.trim(),po(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return tx(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Ui(i,o=>tx(e.element,parseInt(o),r));case"string":return Ui(i,o=>tx(e.element,o||"",r));case"boolean":case"object":return C.fail(`List of ${e.element.type} is not yet supported.`);default:return Ui(i,o=>N4(e.element,o,r))}}function wSe(e){return e.name}function toe(e,t,r,i,o){var s;const l=(s=t.alternateMode)==null?void 0:s.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(l)return a0(o,i,l!==R1?t.alternateMode.diagnostic:f.Option_build_must_be_the_first_command_line_argument,e);const u=pS(e,t.optionDeclarations,wSe);return u?a0(o,i,t.unknownDidYouMeanDiagnostic,r||e,u.name):a0(o,i,t.unknownOptionDiagnostic,r||e)}function jj(e,t,r){const i={};let o;const s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(g){let h=0;for(;hjc.readFile(A)));if(!Bo(h)){l.push(h);return}const y=[];let E=0;for(;;){for(;E=h.length)break;const A=E;if(h.charCodeAt(A)===34){for(E++;E32;)E++;y.push(h.substring(A,E))}}u(y)}}function OSe(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]=tx(i,!1,s),t++):(l==="true"&&t++,s.push(Il(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Il(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!po(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Il(r.optionTypeMismatchDiagnostic,i.name,Kj(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=tx(i,parseInt(e[t]),s),t++;break;case"boolean":const l=e[t];o[i.name]=tx(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=tx(i,e[t]||"",s),t++;break;case"list":const u=eoe(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":C.fail("listOrElement not supported here");break;default:o[i.name]=N4(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}var M4={alternateMode:Dje,getOptionsNameMap:wD,optionDeclarations:Um,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument};function noe(e,t){return jj(M4,e,t)}function Uj(e,t){return roe(wD,e,t)}function roe(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)}var WSe;function FSe(){return WSe||(WSe=C4(Sw))}var Cje={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:wD},Nje={alternateMode:Cje,getOptionsNameMap:FSe,optionDeclarations:Sw,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};function ioe(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=jj(Nje,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function rp(e,...t){return ma(Il(e,...t).messageText,Bo)}function Ew(e,t,r,i,o,s){const l=YM(e,g=>r.readFile(g));if(!Bo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=bw(e,l),d=r.getCurrentDirectory();return u.path=ks(e,d,Fd(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,xw(u,r,To(ci(e),d),t,To(e,d),void 0,s,i,o)}function Aw(e,t){const r=YM(e,t);return Bo(r)?Hj(e,r):{config:{},error:r}}function Hj(e,t){const r=bw(e,t);return{config:$Se(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function ooe(e,t){const r=YM(e,t);return Bo(r)?bw(e,r):{fileName:e,parseDiagnostics:[r]}}function YM(e,t){let r;try{r=t(e)}catch(i){return Il(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Il(f.Cannot_read_file_0,e):r}function qj(e){return ER(e,wSe)}var zSe={optionDeclarations:D4,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},BSe;function GSe(){return BSe||(BSe=C4(ex))}var Jj={getOptionsNameMap:GSe,optionDeclarations:ex,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},VSe;function jSe(){return VSe||(VSe=qj(Um))}var USe;function HSe(){return USe||(USe=qj(ex))}var qSe;function JSe(){return qSe||(qSe=qj(D4))}var P4={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},KSe={name:"compilerOptions",type:"object",elementOptions:jSe(),extraKeyDiagnostics:M4},XSe={name:"watchOptions",type:"object",elementOptions:HSe(),extraKeyDiagnostics:Jj},YSe={name:"typeAcquisition",type:"object",elementOptions:JSe(),extraKeyDiagnostics:zSe},aoe;function Mje(){return aoe===void 0&&(aoe={name:void 0,type:"object",elementOptions:qj([KSe,XSe,YSe,P4,{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},Hie])}),aoe}function $Se(e,t,r){var i;const o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==211){if(t.push(Wf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,xc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Cd(o)){const s=hn(o.elements,Wa);if(s)return Iw(e,s,t,!0,r)}return{}}return Iw(e,o,t,!0,r)}function soe(e,t){var r;return Iw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function Iw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o?.rootOptions);function s(g,h){var y;const E=i?{}:void 0;for(const A of g.properties){if(A.kind!==304){r.push(Wf(e,A,f.Property_assignment_expected));continue}A.questionToken&&r.push(Wf(e,A.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),d(A.name)||r.push(Wf(e,A.name,f.String_literal_with_double_quotes_expected));const R=U2(A.name)?void 0:pI(A.name),N=R&&Gi(R),P=N?(y=h?.elementOptions)==null?void 0:y.get(N):void 0,k=u(A.initializer,P);typeof N<"u"&&(i&&(E[N]=k),o?.onPropertySet(N,k,A,h,P))}return E}function l(g,h){if(!i){g.forEach(y=>u(y,h));return}return Un(g.map(y=>u(y,h)),y=>y!==void 0)}function u(g,h){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return d(g)||r.push(Wf(e,g,f.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 225:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 211:return s(g,h);case 210:return l(g.elements,h&&h.element)}h?r.push(Wf(e,g,f.Compiler_option_0_requires_a_value_of_type_1,h.name,Kj(h))):r.push(Wf(e,g,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function d(g){return ka(g)&&HF(g,e)}}function Kj(e){return e.type==="listOrElement"?`${Kj(e.element)} or Array`:e.type==="list"?"Array":Bo(e.type)?e.type:"string"}function QSe(e,t){if(e){if(Rw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Mo(t);if(e.type==="listOrElement")return Mo(t)||QSe(e.element,t);const r=Bo(e.type)?e.type:"string";return typeof t===r}return!1}function Xj(e,t,r){var i,o,s;const l=Fd(r.useCaseSensitiveFileNames),u=Vt(Un(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?kje(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):cS),R=>NR(To(t,r.getCurrentDirectory()),To(R,r.getCurrentDirectory()),l)),d={configFilePath:To(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},g=Yj(e.options,d),h=e.watchOptions&&wje(e.watchOptions),y={compilerOptions:{...L4(g),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:h&&L4(h),references:Vt(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:et(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:Lje(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(g.keys()),A={};for(const R in gM)if(!E.has(R)&&Pje(R,E)){const N=gM[R].computeValue(e.options),P=gM[R].computeValue({});N!==P&&(A[R]=gM[R].computeValue(e.options))}return zE(y.compilerOptions,L4(Yj(A,d))),y}function Pje(e,t){const r=new Set;return i(e);function i(o){var s;return gm(r,o)?yt((s=gM[o])==null?void 0:s.dependencies,l=>t.has(l)||i(l)):!1}}function L4(e){return Object.fromEntries(e)}function Lje(e){if(et(e)){if(et(e)!==1)return e;if(e[0]!==rEe)return e}}function kje(e,t,r,i){if(!t)return cS;const o=M6(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):cS}function ZSe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return ZSe(e.element);default:return e.type}}function k4(e,t){return Hc(t,(r,i)=>{if(r===e)return i})}function Yj(e,t){return eEe(e,wD(),t)}function wje(e){return eEe(e,GSe())}function eEe(e,{optionsNameMap:t},r){const i=new Map,o=r&&Fd(r.useCaseSensitiveFileNames);for(const s in e)if(Rs(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){C.assert(u.type!=="listOrElement");const d=ZSe(u);d?u.type==="list"?i.set(s,l.map(g=>k4(g,d))):i.set(s,k4(l,d)):r&&u.isFilePath?i.set(s,NR(r.configFilePath,To(l,ci(r.configFilePath)),o)):r&&u.type==="list"&&u.element.isFilePath?i.set(s,l.map(g=>NR(r.configFilePath,To(g,ci(r.configFilePath)),o))):i.set(s,l)}}return i}function loe(e,t){const r=" ",i=[],o=Object.keys(e).filter(h=>h!=="init"&&h!=="help"&&h!=="watch");if(i.push("{"),i.push(`${r}// ${Ho(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),i.push(`${r}"compilerOptions": {`),l(f.File_Layout),u("rootDir","./src","optional"),u("outDir","./dist","optional"),s(),l(f.Environment_Settings),l(f.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),u("module",199),u("target",99),u("types",[]),e.lib&&u("lib",e.lib),l(f.For_nodejs_Colon),i.push(`${r}${r}// "lib": ["esnext"],`),i.push(`${r}${r}// "types": ["node"],`),l(f.and_npm_install_D_types_Slashnode),s(),l(f.Other_Outputs),u("sourceMap",!0),u("declaration",!0),u("declarationMap",!0),s(),l(f.Stricter_Typechecking_Options),u("noUncheckedIndexedAccess",!0),u("exactOptionalPropertyTypes",!0),s(),l(f.Style_Options),u("noImplicitReturns",!0,"optional"),u("noImplicitOverride",!0,"optional"),u("noUnusedLocals",!0,"optional"),u("noUnusedParameters",!0,"optional"),u("noFallthroughCasesInSwitch",!0,"optional"),u("noPropertyAccessFromIndexSignature",!0,"optional"),s(),l(f.Recommended_Options),u("strict",!0),u("jsx",4),u("verbatimModuleSyntax",!0),u("isolatedModules",!0),u("noUncheckedSideEffectImports",!0),u("moduleDetection",3),u("skipLibCheck",!0),o.length>0)for(s();o.length>0;)u(o[0],e[o[0]]);function s(){i.push("")}function l(h){i.push(`${r}${r}// ${Ho(h)}`)}function u(h,y,E="never"){const A=o.indexOf(h);A>=0&&o.splice(A,1);let R;E==="always"?R=!0:E==="never"?R=!1:R=!Rs(e,h);const N=e[h]??y;R?i.push(`${r}${r}// "${h}": ${d(h,N)},`):i.push(`${r}${r}"${h}": ${d(h,N)},`)}function d(h,y){const E=Um.filter(R=>R.name===h)[0];E||C.fail(`No option named ${h}?`);const A=E.type instanceof Map?E.type:void 0;if(Mo(y)){const R="element"in E&&E.element.type instanceof Map?E.element.type:void 0;return`[${y.map(N=>g(N,R)).join(", ")}]`}else return g(y,A)}function g(h,y){return y&&(h=k4(h,y)??C.fail(`No matching value of ${h}`)),JSON.stringify(h)}return i.push(`${r}}`),i.push("}"),i.push(""),i.join(t)}function w4(e,t){const r={},i=wD().optionsNameMap;for(const o in e)Rs(e,o)&&(r[o]=Oje(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function Oje(e,t,r){if(e&&!Rw(t)){if(e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);C.assert(e.type!=="listOrElement")}return t}function tEe(e,t,r,i,o,s,l,u,d){return iEe(e,void 0,t,r,i,d,o,s,l,u)}function xw(e,t,r,i,o,s,l,u,d){var g,h;(g=xr)==null||g.push(xr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const y=iEe(void 0,e,t,r,i,d,o,s,l,u);return(h=xr)==null||h.pop(),y}function $j(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function Rw(e){return e==null}function nEe(e,t){return ci(To(e,t))}var rEe="**/*";function iEe(e,t,r,i,o={},s,l,u=[],d=[],g){C.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const h=[],y=dEe(e,t,r,i,l,u,h,g),{raw:E}=y,A=oEe(CB(o,y.options||{}),Ije,i),R=O4(s&&y.watchOptions?CB(s,y.watchOptions):y.watchOptions||s,i);A.configFilePath=l&&Bd(l);const N=ya(l?nEe(l,i):i),P=k();return t&&(t.configFileSpecs=P),$j(A,t),{options:A,watchOptions:R,fileNames:W(N),projectReferences:O(N),typeAcquisition:y.typeAcquisition||eU(),raw:E,errors:h,wildcardDirectories:Kje(P,N,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function k(){const q=J("references",Se=>typeof Se=="object","object"),ye=G(j("files"));if(ye){const Se=q==="no-prop"||Mo(q)&&q.length===0,re=Rs(E,"extends");if(ye.length===0&&Se&&!re)if(t){const be=l||"tsconfig.json",Ne=f.The_files_list_in_config_file_0_is_empty,Be=Y2(t,"files",ce=>ce.initializer),lt=a0(t,Be,Ne,be);h.push(lt)}else Z(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ie=G(j("include"));const K=j("exclude");let pe=!1,de=G(K);if(K==="no-prop"){const Se=A.outDir,re=A.declarationDir;(Se||re)&&(de=Un([Se,re],be=>!!be))}ye===void 0&&ie===void 0&&(ie=[rEe],pe=!0);let fe,ve,xe,X;ie&&(fe=TEe(ie,h,!0,t,"include"),xe=W4(fe,N)||fe),de&&(ve=TEe(de,h,!1,t,"exclude"),X=W4(ve,N)||ve);const Ce=Un(ye,Bo),Je=W4(Ce,N)||Ce;return{filesSpecs:ye,includeSpecs:ie,excludeSpecs:de,validatedFilesSpec:Je,validatedIncludeSpecs:xe,validatedExcludeSpecs:X,validatedFilesSpecBeforeSubstitution:Ce,validatedIncludeSpecsBeforeSubstitution:fe,validatedExcludeSpecsBeforeSubstitution:ve,isDefaultIncludeSpec:pe}}function W(q){const ye=$M(P,q,A,r,d);return cEe(ye,Dw(E),u)&&h.push(lEe(P,l)),ye}function O(q){let ye;const ie=J("references",K=>typeof K=="object","object");if(Mo(ie))for(const K of ie)typeof K.path!="string"?Z(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ye||(ye=[])).push({path:To(K.path,q),originalPath:K.path,prepend:K.prepend,circular:K.circular});return ye}function G(q){return Mo(q)?q:void 0}function j(q){return J(q,Bo,"string")}function J(q,ye,ie){if(Rs(E,q)&&!Rw(E[q]))if(Mo(E[q])){const K=E[q];return!t&&!Vn(K,ye)&&h.push(Il(f.Compiler_option_0_requires_a_value_of_type_1,q,ie)),K}else return Z(f.Compiler_option_0_requires_a_value_of_type_1,q,"Array"),"not-array";return"no-prop"}function Z(q,...ye){t||h.push(Il(q,...ye))}}function O4(e,t){return oEe(e,xje,t)}function oEe(e,t,r){if(!e)return e;let i;for(const s of t)if(e[s.name]!==void 0){const l=e[s.name];switch(s.type){case"string":C.assert(s.isFilePath),Qj(l)&&o(s,sEe(l,r));break;case"list":C.assert(s.element.isFilePath);const u=W4(l,r);u&&o(s,u);break;case"object":C.assert(s.name==="paths");const d=Wje(l,r);d&&o(s,d);break;default:C.fail("option type not supported")}}return i||e;function o(s,l){(i??(i=zE({},e)))[s.name]=l}}var aEe="${configDir}";function Qj(e){return Bo(e)&&po(e,aEe,!0)}function sEe(e,t){return To(e.replace(aEe,"./"),t)}function W4(e,t){if(!e)return e;let r;return e.forEach((i,o)=>{Qj(i)&&((r??(r=e.slice()))[o]=sEe(i,t))}),r}function Wje(e,t){let r;return Wh(e).forEach(o=>{if(!Mo(e[o]))return;const s=W4(e[o],t);s&&((r??(r=zE({},e)))[o]=s)}),r}function Fje(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 lEe({includeSpecs:e,excludeSpecs:t},r){return Il(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 cEe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function Zj(e){return!e.fileNames.length&&Rs(e.raw,"references")}function Dw(e){return!Rs(e,"files")&&!Rs(e,"references")}function F4(e,t,r,i,o){const s=i.length;return cEe(e,o)?i.push(lEe(r,t)):ul(i,l=>!Fje(l)),s!==i.length}function zje(e){return!!e.options}function dEe(e,t,r,i,o,s,l,u){var d;i=Bd(i);const g=To(o||"",i);if(s.includes(g))return l.push(Il(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,g].join(" -> "))),{raw:e||soe(t,l)};const h=e?Bje(e,r,i,o,l):Gje(t,r,i,o,l);if((d=h.options)!=null&&d.paths&&(h.options.pathsBasePath=i),h.extendedConfigPath){s=s.concat([g]);const A={options:{}};Bo(h.extendedConfigPath)?y(A,h.extendedConfigPath):h.extendedConfigPath.forEach(R=>y(A,R)),A.include&&(h.raw.include=A.include),A.exclude&&(h.raw.exclude=A.exclude),A.files&&(h.raw.files=A.files),h.raw.compileOnSave===void 0&&A.compileOnSave&&(h.raw.compileOnSave=A.compileOnSave),t&&A.extendedSourceFiles&&(t.extendedSourceFiles=Co(A.extendedSourceFiles.keys())),h.options=zE(A.options,h.options),h.watchOptions=h.watchOptions&&A.watchOptions?E(A,h.watchOptions):h.watchOptions||A.watchOptions}return h;function y(A,R){const N=Vje(t,R,r,s,l,u,A);if(N&&zje(N)){const P=N.raw;let k;const W=O=>{h.raw[O]||P[O]&&(A[O]=Vt(P[O],G=>Qj(G)||Cp(G)?G:Qr(k||(k=bN(ci(R),i,Fd(r.useCaseSensitiveFileNames))),G)))};W("include"),W("exclude"),W("files"),P.compileOnSave!==void 0&&(A.compileOnSave=P.compileOnSave),zE(A.options,N.options),A.watchOptions=A.watchOptions&&N.watchOptions?E(A,N.watchOptions):A.watchOptions||N.watchOptions}}function E(A,R){return A.watchOptionsCopied?zE(A.watchOptions,R):(A.watchOptionsCopied=!0,zE({},A.watchOptions,R))}}function Bje(e,t,r,i,o){Rs(e,"excludes")&&o.push(Il(f.Unknown_option_excludes_Did_you_mean_exclude));const s=_Ee(e.compilerOptions,r,o,i),l=gEe(e.typeAcquisition,r,o,i),u=Uje(e.watchOptions,r,o);e.compileOnSave=jje(e,r,o);const d=e.extends||e.extends===""?uEe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:d}}function uEe(e,t,r,i,o,s,l,u){let d;const g=i?nEe(i,r):r;if(Bo(e))d=pEe(e,t,g,o,l,u);else if(Mo(e)){d=[];for(let h=0;hW.name===A)&&(g=Bn(g,N.name))))}}function pEe(e,t,r,i,o,s){if(e=Bd(e),Cp(e)||po(e,"./")||po(e,"../")){let u=To(e,r);if(!t.fileExists(u)&&!el(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(a0(s,o,f.File_0_not_found,e));return}return u}const l=xoe(e,Qr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(a0(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(a0(s,o,f.File_0_not_found,e))}function Vje(e,t,r,i,o,s,l){const u=r.useCaseSensitiveFileNames?t:Zv(t);let d,g,h;if(s&&(d=s.get(u))?{extendedResult:g,extendedConfig:h}=d:(g=ooe(t,y=>r.readFile(y)),g.parseDiagnostics.length||(h=dEe(void 0,g,r,ci(t),xc(t),i,o,s)),s&&s.set(u,{extendedResult:g,extendedConfig:h})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(const y of g.extendedSourceFiles)l.extendedSourceFiles.add(y);if(g.parseDiagnostics.length){o.push(...g.parseDiagnostics);return}return h}function jje(e,t,r){if(!Rs(e,Hie.name))return!1;const i=D1(Hie,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function fEe(e,t,r){const i=[];return{options:_Ee(e,t,i,r),errors:i}}function mEe(e,t,r){const i=[];return{options:gEe(e,t,i,r),errors:i}}function hEe(e){return e&&xc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function _Ee(e,t,r,i){const o=hEe(i);return coe(jSe(),e,t,o,M4,r),i&&(o.configFilePath=Bd(i)),o}function eU(e){return{enable:!!e&&xc(e)==="jsconfig.json",include:[],exclude:[]}}function gEe(e,t,r,i){const o=eU(i);return coe(JSe(),e,t,o,zSe,r),o}function Uje(e,t,r){return coe(HSe(),e,t,void 0,Jj,r)}function coe(e,t,r,i,o,s){if(t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=D1(u,t[l],r,s):s.push(toe(l,o))}return i}}function a0(e,t,r,...i){return e&&t?Wf(e,t,r,...i):Il(r,...i)}function D1(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(a0(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(QSe(e,t)){const u=e.type;if(u==="list"&&Mo(t))return vEe(e,t,r,i,o,s,l);if(u==="listOrElement")return Mo(t)?vEe(e,t,r,i,o,s,l):D1(e.element,t,r,i,o,s,l);if(!Bo(e.type))return yEe(e,t,i,s,l);const d=tx(e,t,i,s,l);return Rw(d)?d:Hje(e,r,d)}else i.push(a0(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,Kj(e)))}function Hje(e,t,r){return e.isFilePath&&(r=Bd(r),r=Qj(r)?r:To(r,t),r===""&&(r=".")),r}function tx(e,t,r,i,o){var s;if(Rw(t))return;const l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(a0(o,i,...l))}function yEe(e,t,r,i,o){if(Rw(t))return;const s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return tx(e,l,r,i,o);r.push(kSe(e,(u,...d)=>a0(o,i,u,...d)))}function vEe(e,t,r,i,o,s,l){return Un(Vt(t,(u,d)=>D1(e.element,u,r,i,o,s?.elements[d],l)),u=>e.listPreserveFalsyValues?!0:!!u)}var qje=/(?:^|\/)\*\*\/?$/,Jje=/^[^*?]*(?=\/[^/]*[*?])/;function $M(e,t,r,i,o=ae){t=ya(t);const s=Fd(i.useCaseSensitiveFileNames),l=new Map,u=new Map,d=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:h,validatedExcludeSpecs:y}=e,E=vM(r,o),A=Gk(r,E);if(g)for(const k of g){const W=To(k,t);l.set(s(W),W)}let R;if(h&&h.length>0)for(const k of i.readDirectory(t,la(A),y,h,void 0)){if(El(k,".json")){if(!R){const G=h.filter(J=>el(J,".json")),j=Vt(C6(G,t,"files"),J=>`^${J}$`);R=j?j.map(J=>iv(J,i.useCaseSensitiveFileNames)):ae}if(ho(R,G=>G.test(k))!==-1){const G=s(k);!l.has(G)&&!d.has(G)&&d.set(G,k)}continue}if(Yje(k,l,u,E,s))continue;$je(k,u,E,s);const W=s(k);!l.has(W)&&!u.has(W)&&u.set(W,k)}const N=Co(l.values()),P=Co(u.values());return N.concat(P,Co(d.values()))}function doe(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!et(l)||!et(u))return!1;r=ya(r);const d=Fd(i);if(s){for(const g of s)if(d(To(g,r))===e)return!1}return B4(e,u,i,o,r)}function bEe(e){const t=po(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(el(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function z4(e,t,r,i){return B4(e,Un(t,o=>!bEe(o)),r,i)}function B4(e,t,r,i,o){const s=yM(t,Qr(ya(i),o),"exclude"),l=s&&iv(s,r);return l?l.test(e)?!0:!CR(e)&&l.test(Uc(e)):!1}function TEe(e,t,r,i,o){return e.filter(l=>{if(!Bo(l))return!1;const u=uoe(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){const d=kF(i,o,u);return a0(i,d,l,u)}}function uoe(e,t){if(C.assert(typeof e=="string"),t&&qje.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(bEe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function Kje({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=yM(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){const d=[];for(const g of e){const h=ya(Qr(r,g));if(s&&s.test(h))continue;const y=Xje(h,i);if(y){const{key:E,path:A,flags:R}=y,N=u.get(E),P=N!==void 0?l[N]:void 0;(P===void 0||PQl(e,l)?l:void 0);if(!s)return!1;for(const l of s){if(El(e,l)&&(l!==".ts"||!El(e,".d.ts")))return!1;const u=o(ov(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(El(e,".js")||El(e,".jsx")))continue;return!0}}return!1}function $je(e,t,r,i){const o=Ye(r,s=>Ql(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const l=o[s];if(El(e,l))return;const u=i(ov(e,l));t.delete(u)}}function foe(e){const t={};for(const r in e)if(Rs(e,r)){const i=Uj(r);i!==void 0&&(t[r]=moe(e[r],i))}return t}function moe(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(!Mo(e))return moe(e,t.element);case"list":const r=t.element;return Mo(e)?Ui(e,i=>moe(i,r)):"";default:return Hc(t.type,(i,o)=>{if(i===e)return o})}}function xo(e,t,...r){e.trace(DI(t,...r))}function Lb(e,t){return!!e.traceResolution&&t.trace!==void 0}function nx(e,t,r){let i;if(t&&e){const o=e.contents.packageJsonContent;typeof o.name=="string"&&typeof o.version=="string"&&(i={name:o.name,subModuleName:t.path.slice(e.packageDirectory.length+Js.length),version:o.version,peerDependencies:yUe(e,r)})}return t&&{path:t.path,extension:t.ext,packageId:i,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function tU(e){return nx(void 0,e,void 0)}function SEe(e){if(e)return C.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function G4(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 Qje(e){const t=[];return e&1&&t.push(...Bk),e&2&&t.push(...pD),e&4&&t.push(...w6),e&8&&t.push(".json"),t}function hoe(e){if(e)return C.assert(W6(e.extension)),{fileName:e.path,packageId:e.packageId}}function EEe(e,t,r,i,o,s,l,u,d){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!td(e)){const{resolvedFileName:g,originalPath:h}=xEe(t.path,l.host,l.traceEnabled);h&&(t={...t,path:g,originalPath:h})}return AEe(t,r,i,o,s,l.resultFromCache,u,d)}function AEe(e,t,r,i,o,s,l,u){return s?l?.isReadonly?{...s,failedLookupLocations:_oe(s.failedLookupLocations,r),affectingLocations:_oe(s.affectingLocations,i),resolutionDiagnostics:_oe(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=OD(s.failedLookupLocations,r),s.affectingLocations=OD(s.affectingLocations,i),s.resolutionDiagnostics=OD(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:QM(r),affectingLocations:QM(i),resolutionDiagnostics:QM(o),alternateResult:u}}function QM(e){return e.length?e:void 0}function OD(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function _oe(e,t){return e?.length?t.length?[...e,...t]:e.slice():QM(t)}function goe(e,t,r,i){if(!Rs(e,t)){i.traceEnabled&&xo(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&&xo(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 nU(e,t,r,i){const o=goe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&xo(i.host,f.package_json_had_a_falsy_0_field,t);return}const s=ya(Qr(r,o));return i.traceEnabled&&xo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function Zje(e,t,r){return nU(e,"typings",t,r)||nU(e,"types",t,r)}function eUe(e,t,r){return nU(e,"tsconfig",t,r)}function tUe(e,t,r){return nU(e,"main",t,r)}function nUe(e,t){const r=goe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&xo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function rUe(e,t){const r=nUe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)Rs(r,l)&&!k8.tryParse(l)&&xo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=V4(r);if(!i){t.traceEnabled&&xo(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,ge);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&xo(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}var yoe;function V4(e){yoe||(yoe=new ih(Le));for(const t in e){if(!Rs(e,t))continue;const r=k8.tryParse(t);if(r!==void 0&&r.test(yoe))return{version:t,paths:e[t]}}}function ZM(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ci(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return iUe(r)}function iUe(e){let t;return TN(ya(e),r=>{const i=Qr(r,oUe);(t??(t=[])).push(i)}),t}var oUe=Qr("node_modules","@types");function IEe(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Zg(e,t,!i)===0}function xEe(e,t,r){const i=OEe(e,t,r),o=IEe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function REe(e,t,r){const i=el(e,"/node_modules/@types")||el(e,"/node_modules/@types/")?XEe(t,r):t;return Qr(e,i)}function voe(e,t,r,i,o,s,l){C.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=Lb(r,i);o&&(r=o.commandLine.options);const d=t?ci(t):void 0;let g=d?s?.getFromDirectoryCache(e,l,d,o):void 0;if(!g&&d&&!td(e)&&(g=s?.getFromNonRelativeNameCache(e,l,d,o)),g)return u&&(xo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&xo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),xo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),j(g)),g;const h=ZM(r,i);u&&(t===void 0?h===void 0?xo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):xo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,h):h===void 0?xo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):xo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,h),o&&xo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=[],E=[];let A=boe(r);l!==void 0&&(A|=30);const R=ru(r);l===99&&3<=R&&R<=99&&(A|=32);const N=A&8?kb(r,l):[],P=[],k={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:E,packageJsonInfoCache:s,features:A,conditions:N,requestContainingDirectory:d,reportDiagnostic:q=>void P.push(q),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let W=J(),O=!0;W||(W=Z(),O=!1);let G;if(W){const{fileName:q,packageId:ye}=W;let ie=q,K;r.preserveSymlinks||({resolvedFileName:ie,originalPath:K}=xEe(q,i,u)),G={primary:O,resolvedFileName:ie,originalPath:K,packageId:ye,isExternalLibraryImport:wb(q)}}return g={resolvedTypeReferenceDirective:G,failedLookupLocations:QM(y),affectingLocations:QM(E),resolutionDiagnostics:QM(P)},d&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(d,o).set(e,l,g),td(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(d,g)),u&&j(g),g;function j(q){var ye;(ye=q.resolvedTypeReferenceDirective)!=null&&ye.resolvedFileName?q.resolvedTypeReferenceDirective.packageId?xo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,q.resolvedTypeReferenceDirective.resolvedFileName,kT(q.resolvedTypeReferenceDirective.packageId),q.resolvedTypeReferenceDirective.primary):xo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,q.resolvedTypeReferenceDirective.resolvedFileName,q.resolvedTypeReferenceDirective.primary):xo(i,f.Type_reference_directive_0_was_not_resolved,e)}function J(){if(h&&h.length)return u&&xo(i,f.Resolving_with_primary_search_path_0,h.join(", ")),Hn(h,q=>{const ye=REe(q,e,k),ie=ch(q,i);if(!ie&&u&&xo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,q),r.typeRoots){const K=zD(4,ye,!ie,k);if(K){const pe=Nw(K.path),de=pe?N1(pe,!1,k):void 0;return hoe(nx(de,K,k))}}return hoe(Doe(4,ye,!ie,k))});u&&xo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function Z(){const q=t&&ci(t);if(q!==void 0){let ye;if(!r.typeRoots||!el(t,_P))if(u&&xo(i,f.Looking_up_in_node_modules_folder_initial_location_0,q),td(e)){const{path:ie}=wEe(q,e);ye=aU(4,ie,!1,k,!0)}else{const ie=HEe(4,e,q,k,void 0,void 0);ye=ie&&ie.value}else u&&xo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return hoe(ye)}else u&&xo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function boe(e){let t=0;switch(ru(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 kb(e,t){const r=ru(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 rU(e,t,r,i,o){const s=tP(o?.getPackageJsonInfoCache(),i,r);return W_(i,t,l=>{if(xc(l)!=="node_modules"){const u=Qr(l,"node_modules"),d=Qr(u,e);return N1(d,!1,s)}})}function j4(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=ZM(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const l=ya(s),u=Qr(o,l,"package.json");if(!(t.fileExists(u)&&sD(u,t).typings===null)){const g=xc(l);g.charCodeAt(0)!==46&&r.push(g)}}}}return r}function U4(e){return!!e?.contents}function Toe(e){return!!e&&!e.contents}function Soe(e){var t;if(e===null||typeof e!="object")return""+e;if(Mo(e))return`[${(t=e.map(i=>Soe(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Rs(e,i)&&(r+=`${i}: ${Soe(e[i])}`);return r+"}"}function iU(e,t){return t.map(r=>Soe(x6(e,r))).join("|")+`|${e.pathsBasePath}`}function DEe(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:g,getOwnMap:()=>o};function s(y){return y?d(y.commandLine.options,!1):o}function l(y){return y?d(y.commandLine.options,!0):o}function u(y){e!==y&&(e?o=d(y,!0):r.set(y,o),e=y)}function d(y,E){let A=r.get(y);if(A)return A;const R=h(y);if(A=i.get(R),!A){if(e){const N=h(e);N===R?A=o:i.has(N)||i.set(N,o)}E&&(A??(A=new Map)),A&&i.set(R,A)}return A&&r.set(y,A),A}function g(){const y=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),r.set(e,o))}function h(y){let E=t.get(y);return E||t.set(y,E=iU(y,Bj)),E}}function aUe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r?.get(ks(u,e,t))}function o(u,d){(r||(r=new Map)).set(ks(u,e,t),d)}function s(){r=void 0}function l(){return r}}function CEe(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function sUe(e,t,r,i){const o=DEe(r,i);return{getFromDirectoryCache:d,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(g){o.update(g)}function u(g,h){const y=ks(g,e,t);return CEe(o,h,y,()=>WD())}function d(g,h,y,E){var A,R;const N=ks(y,e,t);return(R=(A=o.getMapOfCacheRedirects(E))==null?void 0:A.get(N))==null?void 0:R.get(g,h)}}function eP(e,t){return t===void 0?e:`${t}|${e}`}function WD(){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,d]=t.get(l);return o(s,u,d)})},size(){return e.size}};return r;function i(o,s){const l=eP(o,s);return t.set(l,[o,s]),l}}function lUe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function cUe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function dUe(e,t,r,i,o){const s=DEe(r,o);return{getFromNonRelativeNameCache:d,getOrCreateCacheForNonRelativeName:g,clear:l,update:u};function l(){s.clear()}function u(y){s.update(y)}function d(y,E,A,R){var N,P;return C.assert(!td(y)),(P=(N=s.getMapOfCacheRedirects(R))==null?void 0:N.get(eP(y,E)))==null?void 0:P.get(A)}function g(y,E,A){return C.assert(!td(y)),CEe(s,A,eP(y,E),h)}function h(){const y=new Map;return{get:E,set:A};function E(N){return y.get(ks(N,e,t))}function A(N,P){const k=ks(N,e,t);if(y.has(k))return;y.set(k,P);const W=i(P),O=W&&R(k,W);let G=k;for(;G!==O;){const j=ci(G);if(j===G||y.has(j))break;y.set(j,P),G=j}}function R(N,P){const k=ks(ci(P),e,t);let W=0;const O=Math.min(N.length,k.length);for(;Wi,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:s};function d(){g(),i.clear()}function g(){l.clear(),u.clear()}function h(y){l.update(y),u.update(y)}}function FD(e,t,r,i,o){const s=NEe(e,t,r,i,lUe,o);return s.getOrCreateCacheForModuleName=(l,u,d)=>s.getOrCreateCacheForNonRelativeName(l,u,d),s}function H4(e,t,r,i,o){return NEe(e,t,r,i,cUe,o)}function oU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function q4(e,t,r,i,o){return C1(e,t,oU(r),i,o)}function MEe(e,t,r,i){const o=ci(t);return r.getFromDirectoryCache(e,i,o,void 0)}function C1(e,t,r,i,o,s,l){const u=Lb(r,i);s&&(r=s.commandLine.options),u&&(xo(i,f.Resolving_module_0_from_1,e,t),s&&xo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const d=ci(t);let g=o?.getFromDirectoryCache(e,l,d,s);if(g)u&&xo(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,d);else{let h=r.moduleResolution;switch(h===void 0?(h=ru(r),u&&xo(i,f.Module_resolution_kind_is_not_specified_using_0,RR[h])):u&&xo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,RR[h]),h){case 3:g=mUe(e,t,r,i,o,s,l);break;case 99:g=hUe(e,t,r,i,o,s,l);break;case 2:g=Ioe(e,t,r,i,o,s,l?kb(r,l):void 0);break;case 1:g=Moe(e,t,r,i,o,s);break;case 100:g=Aoe(e,t,r,i,o,s,l?kb(r,l):void 0);break;default:return C.fail(`Unexpected moduleResolution: ${h}`)}o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(d,s).set(e,l,g),td(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(d,g))}return u&&(g.resolvedModule?g.resolvedModule.packageId?xo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,g.resolvedModule.resolvedFileName,kT(g.resolvedModule.packageId)):xo(i,f.Module_name_0_was_successfully_resolved_to_1,e,g.resolvedModule.resolvedFileName):xo(i,f.Module_name_0_was_not_resolved,e)),g}function PEe(e,t,r,i,o){const s=uUe(e,t,i,o);return s?s.value:td(t)?pUe(e,t,r,i,o):fUe(e,t,i,o)}function uUe(e,t,r,i){const{baseUrl:o,paths:s}=i.compilerOptions;if(s&&!Zp(t)){i.traceEnabled&&(o&&xo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),xo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const l=o6(i.compilerOptions,i.host),u=Uk(s);return Coe(e,t,l,s,u,r,!1,i)}}function pUe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&xo(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=ya(Qr(r,t));let l,u;for(const d of o.compilerOptions.rootDirs){let g=ya(d);el(g,Js)||(g+=Js);const h=po(s,g)&&(u===void 0||u.length(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))(Eoe||{});function mUe(e,t,r,i,o,s,l){return kEe(30,e,t,r,i,o,s,l)}function hUe(e,t,r,i,o,s,l){return kEe(30,e,t,r,i,o,s,l)}function kEe(e,t,r,i,o,s,l,u,d){const g=ci(r),h=u===99?32:0;let y=i.noDtsResolution?3:7;return PS(i)&&(y|=8),Cw(e|h,t,g,i,o,s,y,!1,l,d)}function _Ue(e,t,r){return Cw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function Aoe(e,t,r,i,o,s,l){const u=ci(t);let d=r.noDtsResolution?3:7;return PS(r)&&(d|=8),Cw(boe(r),e,u,r,i,o,d,!1,s,l)}function Ioe(e,t,r,i,o,s,l,u){let d;return u?d=8:r.noDtsResolution?(d=3,PS(r)&&(d|=8)):d=PS(r)?15:7,Cw(l?30:0,e,ci(t),r,i,o,d,!!u,s,l)}function xoe(e,t,r){return Cw(30,e,ci(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function Cw(e,t,r,i,o,s,l,u,d,g){var h,y,E,A,R;const N=Lb(i,o),P=[],k=[],W=ru(i);g??(g=kb(i,W===100||W===2?void 0:e&32?99:1));const O=[],G={compilerOptions:i,host:o,traceEnabled:N,failedLookupLocations:P,affectingLocations:k,packageJsonInfoCache:s,features:e,conditions:g??ae,requestContainingDirectory:r,reportDiagnostic:q=>void O.push(q),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&uD(W)&&xo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",G.conditions.map(q=>`'${q}'`).join(", "));let j;if(W===2){const q=l&5,ye=l&-6;j=q&&Z(q,G)||ye&&Z(ye,G)||void 0}else j=Z(l,G);let J;if(G.resolvedPackageDirectory&&!u&&!td(t)){const q=j?.value&&l&5&&!VEe(5,j.value.resolved.extension);if((h=j?.value)!=null&&h.isExternalLibraryImport&&q&&e&8&&g?.includes("import")){Ob(G,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ye={...G,features:G.features&-9,reportDiagnostic:gs},ie=Z(l&5,ye);(y=ie?.value)!=null&&y.isExternalLibraryImport&&(J=ie.value.resolved.path)}else if((!j?.value||q)&&W===2){Ob(G,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const ye={...G.compilerOptions,moduleResolution:100},ie={...G,compilerOptions:ye,features:30,conditions:kb(ye),reportDiagnostic:gs},K=Z(l&5,ie);(E=K?.value)!=null&&E.isExternalLibraryImport&&(J=K.value.resolved.path)}}return EEe(t,(A=j?.value)==null?void 0:A.resolved,(R=j?.value)==null?void 0:R.isExternalLibraryImport,P,k,O,G,s,J);function Z(q,ye){const K=PEe(q,t,r,(pe,de,fe,ve)=>aU(pe,de,fe,ve,!0),ye);if(K)return hf({resolved:K,isExternalLibraryImport:wb(K.path)});if(td(t)){const{path:pe,parts:de}=wEe(r,t),fe=aU(q,pe,!1,ye,!0);return fe&&hf({resolved:fe,isExternalLibraryImport:jn(de,"node_modules")})}else{if(e&2&&po(t,"#")){const de=SUe(q,t,r,ye,s,d);if(de)return de.value&&{value:{resolved:de.value,isExternalLibraryImport:!1}}}if(e&4){const de=TUe(q,t,r,ye,s,d);if(de)return de.value&&{value:{resolved:de.value,isExternalLibraryImport:!1}}}if(t.includes(":")){N&&xo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,G4(q));return}N&&xo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,G4(q));let pe=HEe(q,t,r,ye,s,d);return q&4&&(pe??(pe=$Ee(t,ye))),pe&&{value:pe.value&&{resolved:pe.value,isExternalLibraryImport:!0}}}}}function wEe(e,t){const r=Qr(e,t),i=zd(r),o=Zs(i);return{path:o==="."||o===".."?Uc(ya(r)):ya(r),parts:i}}function OEe(e,t,r){if(!t.realpath)return e;const i=ya(t.realpath(e));return r&&xo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function aU(e,t,r,i,o){if(i.traceEnabled&&xo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,G4(e)),!rb(t)){if(!r){const l=ci(t);ch(l,i.host)||(i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const s=zD(e,t,r,i);if(s){const l=o?Nw(s.path):void 0,u=l?N1(l,!1,i):void 0;return nx(u,s,i)}}if(r||ch(t,i.host)||(i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Doe(e,t,r,i,o)}var Rg="/node_modules/";function wb(e){return e.includes(Rg)}function Nw(e,t){const r=ya(e),i=r.lastIndexOf(Rg);if(i===-1)return;const o=i+Rg.length;let s=WEe(r,o,t);return r.charCodeAt(o)===64&&(s=WEe(r,s,t)),r.slice(0,s)}function WEe(e,t,r){const i=e.indexOf(Js,t+1);return i===-1?r?e.length:t:i}function Roe(e,t,r,i){return tU(zD(e,t,r,i))}function zD(e,t,r,i){const o=FEe(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=zEe(t,e,"",r,i);if(s)return s}}function FEe(e,t,r,i){if(!xc(t).includes("."))return;let s=bu(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const l=t.substring(s.length);return i.traceEnabled&&xo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),zEe(s,e,l,r,i)}function sU(e,t,r,i,o){if(e&1&&Ql(t,Bk)||e&4&&Ql(t,w6)){const s=lU(t,i,o),l=m6(t);return s!==void 0?{path:t,ext:l,resolvedUsingTsExtension:r?!el(r,l):void 0}:void 0}return o.isConfigLookup&&e===8&&El(t,".json")?lU(t,i,o)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:FEe(e,t,i,o)}function zEe(e,t,r,i,o){if(!i){const l=ci(e);l&&(i=!ch(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&&!ad(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){const d=lU(e+l,i,o);return d===void 0?void 0:{path:d,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function lU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return BEe(e,t,r);const o=Sg(e)??"",s=o?jk(e,o):e;return Ye(r.compilerOptions.moduleSuffixes,l=>BEe(s+l+o,t,r))}function BEe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&xo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&xo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Doe(e,t,r,i,o=!0){const s=o?N1(t,r,i):void 0;return nx(s,dU(e,t,r,i,s),i)}function cU(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=boe(t),d=tP(i?.getPackageJsonInfoCache(),r,t);d.conditions=kb(t),d.requestContainingDirectory=e.packageDirectory;const g=dU(l,e.packageDirectory,!1,d,e);if(s=Bn(s,g?.path),u&8&&e.contents.packageJsonContent.exports){const h=lS([kb(t,99),kb(t,1)],Qp);for(const y of h){const E={...d,failedLookupLocations:[],conditions:y,host:r},A=gUe(e,e.contents.packageJsonContent.exports,E,l);if(A)for(const R of A)s=$g(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function gUe(e,t,r,i){let o;if(Mo(t))for(const l of t)s(l);else if(typeof t=="object"&&t!==null&&K4(t))for(const l in t)s(t[l]);else s(t);return o;function s(l){var u,d;if(typeof l=="string"&&po(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,Qje(i),void 0,[U8(p1(l,"**/*"),".*")]).forEach(g=>{o=$g(o,{path:g,ext:ZA(g),resolvedUsingTsExtension:void 0})})}else{const g=zd(l).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;const h=Qr(e.packageDirectory,l),y=To(h,(d=(u=r.host).getCurrentDirectory)==null?void 0:d.call(u)),E=sU(i,y,l,!1,r);if(E)return o=$g(o,E,(A,R)=>A.path===R.path),!0}else if(Array.isArray(l)){for(const g of l)if(s(g))return!0}else if(typeof l=="object"&&l!==null)return Ye(Wh(l),g=>{if(g==="default"||jn(r.conditions,g)||Mw(r.conditions,g))return s(l[g]),!0})}}function tP(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Lb(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:ae,requestContainingDirectory:void 0,reportDiagnostic:gs,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function nP(e,t){return W_(t.host,e,r=>N1(r,!1,t))}function GEe(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=rUe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function yUe(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=vUe(e,t)||!1),e.contents.peerDependencies||void 0}function vUe(e,t){const r=goe(e.contents.packageJsonContent,"peerDependencies","object",t);if(r===void 0)return;t.traceEnabled&&xo(t.host,f.package_json_has_a_peerDependencies_field);const i=OEe(e.packageDirectory,t.host,t.traceEnabled),o=i.substring(0,i.lastIndexOf("node_modules")+12)+Js;let s="";for(const l in r)if(Rs(r,l)){const u=N1(o+l,!1,t);if(u){const d=u.contents.packageJsonContent.version;s+=`+${l}@${d}`,t.traceEnabled&&xo(t.host,f.Found_peerDependency_0_with_1_version,l,d)}else t.traceEnabled&&xo(t.host,f.Failed_to_find_peerDependency_0,l)}return s}function N1(e,t,r){var i,o,s,l,u,d;const{host:g,traceEnabled:h}=r,y=Qr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(y);return}const E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(y);if(E!==void 0){if(U4(E))return h&&xo(g,f.File_0_exists_according_to_earlier_cached_lookups,y),(s=r.affectingLocations)==null||s.push(y),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&h&&xo(g,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}const A=ch(e,g);if(A&&g.fileExists(y)){const R=sD(y,g);h&&xo(g,f.Found_package_json_at_0,y);const N={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,N),(u=r.affectingLocations)==null||u.push(y),N}else A&&h&&xo(g,f.File_0_does_not_exist,y),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:A}),(d=r.failedLookupLocations)==null||d.push(y)}function dU(e,t,r,i,o){const s=o&&GEe(o,i);let l;o&&IEe(o?.packageDirectory,t,i.host)&&(i.isConfigLookup?l=eUe(o.contents.packageJsonContent,o.packageDirectory,i):l=e&4&&Zje(o.contents.packageJsonContent,o.packageDirectory,i)||e&7&&tUe(o.contents.packageJsonContent,o.packageDirectory,i)||void 0);const u=(E,A,R,N)=>{const P=sU(E,A,void 0,R,N);if(P)return tU(P);const k=E===4?5:E,W=N.features,O=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,o?.contents.packageJsonContent.type!=="module"&&(N.features&=-33);const G=aU(k,A,R,N,!1);return N.features=W,N.candidateIsFromPackageJsonField=O,G},d=l?!ch(ci(l),i.host):void 0,g=r||!ch(t,i.host),h=Qr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||um(t,l))){const E=cf(t,l||h,!1);i.traceEnabled&&xo(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,Le,E);const A=Uk(s.paths),R=Coe(e,E,t,s.paths,A,u,d||g,i);if(R)return SEe(R.value)}const y=l&&SEe(u(e,l,d,i));if(y)return y;if(!(i.features&32))return zD(e,h,g,i)}function VEe(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 J4(e){let t=e.indexOf(Js);return e[0]==="@"&&(t=e.indexOf(Js,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function K4(e){return Vn(Wh(e),t=>po(t,"."))}function bUe(e){return!yt(Wh(e),t=>po(t,"."))}function TUe(e,t,r,i,o,s){var l,u;const d=To(r,(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=nP(d,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;const h=zd(t),y=zd(g.contents.packageJsonContent.name);if(!Vn(y,(P,k)=>h[k]===P))return;const E=h.slice(y.length),A=et(E)?`.${Js}${E.join(Js)}`:".";if(Ab(i.compilerOptions)&&!wb(r))return uU(g,e,A,i,o,s);const R=e&5,N=e&-6;return uU(g,R,A,i,o,s)||uU(g,N,A,i,o,s)}function uU(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"&&bUe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Rs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return UEe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(K4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&xo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),hf(void 0);const l=jEe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&xo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),hf(void 0)}}function SUe(e,t,r,i,o,s){var l,u;if(t==="#"||po(t,"#/"))return i.traceEnabled&&xo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),hf(void 0);const d=To(r,(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=nP(d,i);if(!g)return i.traceEnabled&&xo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),hf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&xo(i.host,f.package_json_scope_0_has_no_imports_defined,g.packageDirectory),hf(void 0);const h=jEe(e,i,o,s,t,g.contents.packageJsonContent.imports,g,!0);return h||(i.traceEnabled&&xo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),hf(void 0))}function pU(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 jEe(e,t,r,i,o,s,l,u){const d=UEe(e,t,r,i,o,l,u);if(!el(o,Js)&&!o.includes("*")&&Rs(s,o)){const y=s[o];return d(y,"",!1,o)}const g=xp(Un(Wh(s),y=>EUe(y)||el(y,"/")),pU);for(const y of g)if(t.features&16&&h(y,o)){const E=s[y],A=y.indexOf("*"),R=o.substring(y.substring(0,A).length,o.length-(y.length-1-A));return d(E,R,!0,y)}else if(el(y,"*")&&po(o,y.substring(0,y.length-1))){const E=s[y],A=o.substring(y.length-1);return d(E,A,!0,y)}else if(po(o,y)){const E=s[y],A=o.substring(y.length);return d(E,A,!1,y)}function h(y,E){if(el(y,"*"))return!1;const A=y.indexOf("*");return A===-1?!1:po(E,y.substring(0,A))&&el(E,y.substring(A+1))}}function EUe(e){const t=e.indexOf("*");return t!==-1&&t===e.lastIndexOf("*")}function UEe(e,t,r,i,o,s,l){return u;function u(d,g,h,y){var E,A;if(typeof d=="string"){if(!h&&g.length>0&&!el(d,"/"))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);if(!po(d,"./")){if(l&&!po(d,"../")&&!po(d,"/")&&!Cp(d)){const Z=h?d.replace(/\*/g,g):d+g;Ob(t,f.Using_0_subpath_1_with_target_2,"imports",y,Z),Ob(t,f.Resolving_module_0_from_1,Z,s.packageDirectory+"/");const q=Cw(t.features,Z,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return(E=t.failedLookupLocations)==null||E.push(...q.failedLookupLocations??ae),(A=t.affectingLocations)==null||A.push(...q.affectingLocations??ae),hf(q.resolvedModule?{path:q.resolvedModule.resolvedFileName,extension:q.resolvedModule.extension,packageId:q.resolvedModule.packageId,originalPath:q.resolvedModule.originalPath,resolvedUsingTsExtension:q.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0)}const W=(Zp(d)?zd(d).slice(1):zd(d)).slice(1);if(W.includes("..")||W.includes(".")||W.includes("node_modules"))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);const O=Qr(s.packageDirectory,d),G=zd(g);if(G.includes("..")||G.includes(".")||G.includes("node_modules"))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);t.traceEnabled&&xo(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,h?d.replace(/\*/g,g):d+g);const j=R(h?O.replace(/\*/g,g):O+g),J=P(j,g,Qr(s.packageDirectory,"package.json"),l);return J||hf(nx(s,sU(e,j,d,!1,t),t))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!et(d))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);for(const k of d){const W=u(k,g,h,y);if(W)return W}}else{Ob(t,f.Entering_conditional_exports);for(const k of Wh(d))if(k==="default"||t.conditions.includes(k)||Mw(t.conditions,k)){Ob(t,f.Matched_0_condition_1,l?"imports":"exports",k);const W=d[k],O=u(W,g,h,y);if(O)return Ob(t,f.Resolved_under_condition_0,k),Ob(t,f.Exiting_conditional_exports),O;Ob(t,f.Failed_to_resolve_under_condition_0,k)}else Ob(t,f.Saw_non_matching_condition_0,k);Ob(t,f.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&xo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),hf(void 0);return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);function R(k){var W,O;return k===void 0?k:To(k,(O=(W=t.host).getCurrentDirectory)==null?void 0:O.call(W))}function N(k,W){return Uc(Qr(k,W))}function P(k,W,O,G){var j,J,Z,q;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!k.includes("/node_modules/")&&(!t.compilerOptions.configFile||um(s.packageDirectory,R(t.compilerOptions.configFile.fileName),!fU(t)))){const ie=ay({useCaseSensitiveFileNames:()=>fU(t)}),K=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const pe=R(mP(t.compilerOptions,()=>[],((J=(j=t.host).getCurrentDirectory)==null?void 0:J.call(j))||"",ie));K.push(pe)}else if(t.requestContainingDirectory){const pe=R(Qr(t.requestContainingDirectory,"index.ts")),de=R(mP(t.compilerOptions,()=>[pe,R(O)],((q=(Z=t.host).getCurrentDirectory)==null?void 0:q.call(Z))||"",ie));K.push(de);let fe=Uc(de);for(;fe&&fe.length>1;){const ve=zd(fe);ve.pop();const xe=NT(ve);K.unshift(xe),fe=Uc(xe)}}K.length>1&&t.reportDiagnostic(Il(G?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,W===""?".":W,O));for(const pe of K){const de=ye(pe);for(const fe of de)if(um(fe,k,!fU(t))){const ve=k.slice(fe.length+1),xe=Qr(pe,ve),X=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Ce of X)if(El(xe,Ce)){const Je=UG(xe);for(const Se of Je){if(!VEe(e,Se))continue;const re=f2(xe,Se,Ce,!fU(t));if(t.host.fileExists(re))return hf(nx(s,sU(e,re,void 0,!1,t),t))}}}}}return;function ye(ie){var K,pe;const de=t.compilerOptions.configFile?((pe=(K=t.host).getCurrentDirectory)==null?void 0:pe.call(K))||"":ie,fe=[];return t.compilerOptions.declarationDir&&fe.push(R(N(de,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&fe.push(R(N(de,t.compilerOptions.outDir))),fe}}}}function Mw(e,t){if(!e.includes("types")||!po(t,"types@"))return!1;const r=k8.tryParse(t.substring(6));return r?r.test(Le):!1}function HEe(e,t,r,i,o,s){return qEe(e,t,r,i,!1,o,s)}function AUe(e,t,r){return qEe(4,e,t,r,!0,void 0,void 0)}function qEe(e,t,r,i,o,s,l){const u=i.features===0?void 0:i.features&32||i.conditions.includes("import")?99:1,d=e&5,g=e&-6;if(d){Ob(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,G4(d));const y=h(d);if(y)return y}if(g&&!o)return Ob(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,G4(g)),h(g);function h(y){return W_(i.host,Bd(r),E=>{if(xc(E)!=="node_modules"){const A=YEe(s,t,u,E,l,i);return A||hf(JEe(y,t,E,i,o,s,l))}})}}function W_(e,t,r){var i;const o=(i=e?.getGlobalTypingsCacheLocation)==null?void 0:i.call(e);return TN(t,s=>{const l=r(s);if(l!==void 0)return l;if(s===o)return!1})||void 0}function JEe(e,t,r,i,o,s,l){const u=Qr(r,"node_modules"),d=ch(u,i.host);if(!d&&i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){const g=KEe(e,t,u,d,i,s,l);if(g)return g}if(e&4){const g=Qr(u,"@types");let h=d;return d&&!ch(g,i.host)&&(i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),h=!1),KEe(4,XEe(t,i),g,h,i,s,l)}}function KEe(e,t,r,i,o,s,l){var u,d;const g=ya(Qr(r,t)),{packageName:h,rest:y}=J4(t),E=Qr(r,h);let A,R=N1(g,!i,o);if(y!==""&&R&&(!(o.features&8)||!Rs(((u=A=N1(E,!i,o))==null?void 0:u.contents.packageJsonContent)??ae,"exports"))){const k=zD(e,g,!i,o);if(k)return tU(k);const W=dU(e,g,!i,o,R);return nx(R,W,o)}const N=(k,W,O,G)=>{let j=(y||!(G.features&32))&&zD(k,W,O,G)||dU(k,W,O,G,R);return!j&&!y&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&G.features&32&&(j=zD(k,Qr(W,"index.js"),O,G)),nx(R,j,G)};if(y!==""&&(R=A??N1(E,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(d=uU(R,e,Qr(".",y),o,s,l))==null?void 0:d.value;const P=y!==""&&R?GEe(R,o):void 0;if(P){o.traceEnabled&&xo(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,P.version,Le,y);const k=i&&ch(E,o.host),W=Uk(P.paths),O=Coe(e,y,E,P.paths,W,N,!k,o);if(O)return O.value}return N(e,g,!i,o)}function Coe(e,t,r,i,o,s,l,u){const d=xV(o,t);if(d){const g=Bo(d)?void 0:wQ(d,t),h=Bo(d)?d:kQ(d);return u.traceEnabled&&xo(u.host,f.Module_name_0_matched_pattern_1,t,h),{value:Ye(i[h],E=>{const A=g?p1(E,g):E,R=ya(Qr(r,A));u.traceEnabled&&xo(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,A);const N=Sg(E);if(N!==void 0){const P=lU(R,l,u);if(P!==void 0)return tU({path:P,ext:N,resolvedUsingTsExtension:void 0})}return s(e,R,l||!ch(ci(R),u.host),u)})}}}var Noe="__";function XEe(e,t){const r=BD(e);return t.traceEnabled&&r!==e&&xo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function X4(e){return`@types/${BD(e)}`}function BD(e){if(po(e,"@")){const t=e.replace(Js,Noe);if(t!==e)return t.slice(1)}return e}function rP(e){const t=pN(e,"@types/");return t!==e?Pw(t):e}function Pw(e){return e.includes(Noe)?"@"+e.replace(Noe,Js):e}function YEe(e,t,r,i,o,s){const l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&xo(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 Moe(e,t,r,i,o,s){const l=Lb(r,i),u=[],d=[],g=ci(t),h=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:R=>void h.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=A(5)||A(2|(r.resolveJsonModule?8:0));return EEe(e,E&&E.value,E?.value&&wb(E.value.path),u,d,h,y,o);function A(R){const N=PEe(R,e,g,Roe,y);if(N)return{value:N};if(td(e)){const P=ya(Qr(g,e));return hf(Roe(R,P,!1,y))}else{const P=W_(y.host,g,k=>{const W=YEe(o,e,void 0,k,s,y);if(W)return W;const O=ya(Qr(k,e));return hf(Roe(R,O,!1,y))});if(P)return P;if(R&5){let k=AUe(e,g,y);return R&4&&(k??(k=$Ee(e,y))),k}}}}function $Ee(e,t){if(t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=REe(r,e,t),o=ch(r,t.host);!o&&t.traceEnabled&&xo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const s=zD(4,i,!o,t);if(s){const u=Nw(s.path),d=u?N1(u,!1,t):void 0;return hf(nx(d,s,t))}const l=Doe(4,i,!o,t);if(l)return hf(l)}}function GD(e,t){return Vne(e)||!!t&&ad(t)}function Poe(e,t,r,i,o,s){const l=Lb(r,i);l&&xo(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=[],d=[],g=[],h={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void g.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=JEe(4,e,o,h,!1,void 0,void 0);return AEe(y,!0,u,d,g,h.resultFromCache,void 0)}function hf(e){return e!==void 0?{value:e}:void 0}function Ob(e,t,...r){e.traceEnabled&&xo(e.host,t,...r)}function fU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Loe=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Loe||{});function my(e,t){return e.body&&!e.body.parent&&(ps(e.body,e),HT(e.body,!1)),e.body?koe(e.body,t):1}function koe(e,t=new Map){const r=ls(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=IUe(e,t);return t.set(r,i),i}function IUe(e,t){switch(e.kind){case 265:case 266:return 0;case 267:if(wT(e))return 2;break;case 273:case 272:if(!di(e,32))return 0;break;case 279:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===280){let i=0;for(const o of r.exportClause.elements){const s=xUe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 269:{let i=0;return Jo(e,o=>{const s=koe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:C.assertNever(s)}}),i}case 268:return my(e,t);case 80:if(e.flags&4096)return 0}return 1}function xUe(e,t){const r=e.propertyName||e.name;if(r.kind!==80)return 1;let i=e.parent;for(;i;){if(ea(i)||t_(i)||Yi(i)){const o=i.statements;let s;for(const l of o)if(A2(l,r)){l.parent||(ps(l,i),HT(l,!1));const u=koe(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===272&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}var woe=(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))(woe||{});function F_(e,t,r){return C.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:r})}var RUe=DUe();function Ooe(e,t){Dl("beforeBind"),RUe(e,t),Dl("afterBind"),wf("Bind","beforeBind","afterBind")}function DUe(){var e,t,r,i,o,s,l,u,d,g,h,y,E,A,R,N,P,k,W,O,G,j,J,Z,q,ye=!1,ie=0,K,pe,de=F_(1,void 0,void 0),fe=F_(1,void 0,void 0),ve=B();return X;function xe(z,Ve,...kt){return Wf(Wn(z)||e,z,Ve,...kt)}function X(z,Ve){var kt,On;e=z,t=Ve,r=Ga(t),q=Ce(e,Ve),pe=new Set,ie=0,K=Rd.getSymbolConstructor(),C.attachFlowNodeDebugInfo(de),C.attachFlowNodeDebugInfo(fe),e.locals||((kt=xr)==null||kt.push(xr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Fn(e),(On=xr)==null||On.pop(),e.symbolCount=ie,e.classifiableNames=pe,$s(),Ra()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,d=void 0,h=void 0,g=!1,y=void 0,E=void 0,A=void 0,R=void 0,N=void 0,P=void 0,k=void 0,O=void 0,G=!1,j=!1,J=!1,ye=!1,Z=0}function Ce(z,Ve){return Vd(Ve,"alwaysStrict")&&!z.isDeclarationFile?!0:!!z.externalModuleIndicator}function Je(z,Ve){return ie++,new K(z,Ve)}function Se(z,Ve,kt){z.flags|=kt,Ve.symbol=z,z.declarations=$g(z.declarations,Ve),kt&1955&&!z.exports&&(z.exports=da()),kt&6240&&!z.members&&(z.members=da()),z.constEnumOnlyModule&&z.flags&304&&(z.constEnumOnlyModule=!1),kt&111551&&YN(z,Ve)}function re(z){if(z.kind===278)return z.isExportEquals?"export=":"default";const Ve=Oo(z);if(Ve){if(gu(z)){const kt=zf(Ve);return M_(z)?"__global":`"${kt}"`}if(Ve.kind===168){const kt=Ve.expression;if(uf(kt))return Nl(kt.text);if(QF(kt))return _a(kt.operator)+kt.operand.text;C.fail("Only computed properties with literal names have declaration names")}if(eo(Ve)){const kt=hd(z);if(!kt)return;const On=kt.symbol;return vk(On,Ve.escapedText)}return fh(Ve)?LI(Ve):qh(Ve)?rM(Ve):void 0}switch(z.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(ac(z)===2)return"export=";C.fail("Unknown binary declaration kind");break;case 318:return gI(z)?"__new":"__call";case 170:return C.assert(z.parent.kind===318,"Impossible parameter parent kind",()=>`parent is: ${C.formatSyntaxKind(z.parent.kind)}, expected JSDocFunctionType`),"arg"+z.parent.parameters.indexOf(z)}}function be(z){return nd(z)?ws(z.name):Gi(C.checkDefined(re(z)))}function Ne(z,Ve,kt,On,yo,ta,Eo){C.assert(Eo||!oy(kt));const Vo=di(kt,2048)||iu(kt)&&N_(kt.name),ml=Eo?"__computed":Vo&&Ve?"default":re(kt);let Ca;if(ml===void 0)Ca=Je(0,"__missing");else if(Ca=z.get(ml),On&2885600&&pe.add(ml),!Ca)z.set(ml,Ca=Je(0,ml)),ta&&(Ca.isReplaceableByMethod=!0);else{if(ta&&!Ca.isReplaceableByMethod)return Ca;if(Ca.flags&yo){if(Ca.isReplaceableByMethod)z.set(ml,Ca=Je(0,ml));else if(!(On&3&&Ca.flags&67108864)){nd(kt)&&ps(kt.name,kt);let cd=Ca.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Up=!0;(Ca.flags&384||On&384)&&(cd=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Up=!1);let Sf=!1;et(Ca.declarations)&&(Vo||Ca.declarations&&Ca.declarations.length&&kt.kind===278&&!kt.isExportEquals)&&(cd=f.A_module_cannot_have_multiple_default_exports,Up=!1,Sf=!0);const Yf=[];vm(kt)&&Wl(kt.type)&&di(kt,32)&&Ca.flags&2887656&&Yf.push(xe(kt,f.Did_you_mean_0,`export type { ${Gi(kt.name.escapedText)} }`));const Ty=Oo(kt)||kt;Ye(Ca.declarations,(zu,V_)=>{const Th=Oo(zu)||zu,Im=Up?xe(Th,cd,be(zu)):xe(Th,cd);e.bindDiagnostics.push(Sf?pa(Im,xe(Ty,V_===0?f.Another_export_default_is_here:f.and_here)):Im),Sf&&Yf.push(xe(Th,f.The_first_export_default_is_here))});const bv=Up?xe(Ty,cd,be(kt)):xe(Ty,cd);e.bindDiagnostics.push(pa(bv,...Yf)),Ca=Je(0,ml)}}}return Se(Ca,kt,On),Ca.parent?C.assert(Ca.parent===Ve,"Existing symbol parent should match new one"):Ca.parent=Ve,Ca}function Be(z,Ve,kt){const On=!!(MT(z)&32)||lt(z);if(Ve&2097152)return z.kind===282||z.kind===272&&On?Ne(o.symbol.exports,o.symbol,z,Ve,kt):(C.assertNode(o,D_),Ne(o.locals,void 0,z,Ve,kt));if(hm(z)&&C.assert(Ir(z)),!gu(z)&&(On||o.flags&128)){if(!D_(o)||!o.locals||di(z,2048)&&!re(z))return Ne(o.symbol.exports,o.symbol,z,Ve,kt);const yo=Ve&111551?1048576:0,ta=Ne(o.locals,void 0,z,yo,kt);return ta.exportSymbol=Ne(o.symbol.exports,o.symbol,z,Ve,kt),z.localSymbol=ta,ta}else return C.assertNode(o,D_),Ne(o.locals,void 0,z,Ve,kt)}function lt(z){if(z.parent&&pc(z)&&(z=z.parent),!hm(z))return!1;if(!cw(z)&&z.fullName)return!0;const Ve=Oo(z);return Ve?!!(Dk(Ve.parent)&&Xf(Ve.parent)||rd(Ve.parent)&&MT(Ve.parent)&32):!1}function ce(z,Ve){const kt=o,On=s,yo=l,ta=j;if(z.kind===220&&z.body.kind!==242&&(j=!0),Ve&1?(z.kind!==220&&(s=o),o=l=z,Ve&32&&(o.locals=da(),En(o))):Ve&2&&(l=z,Ve&32&&(l.locals=void 0)),Ve&4){const Eo=y,Vo=E,ml=A,Ca=R,cd=k,Up=O,Sf=G,Yf=Ve&16&&!di(z,1024)&&!z.asteriskToken&&!!OT(z)||z.kind===176;Yf||(y=F_(2,void 0,void 0),Ve&144&&(y.node=z)),R=Yf||z.kind===177||Ir(z)&&(z.kind===263||z.kind===219)?en():void 0,k=void 0,E=void 0,A=void 0,O=void 0,G=!1,Ge(z),z.flags&=-5633,!(y.flags&1)&&Ve&8&&fm(z.body)&&(z.flags|=512,G&&(z.flags|=1024),z.endFlowNode=y),z.kind===308&&(z.flags|=Z,z.endFlowNode=y),R&&(zt(R,y),y=Ci(R),(z.kind===177||z.kind===176||Ir(z)&&(z.kind===263||z.kind===219))&&(z.returnFlowNode=y)),Yf||(y=Eo),E=Vo,A=ml,R=Ca,k=cd,O=Up,G=Sf}else Ve&64?(g=!1,Ge(z),C.assertNotNode(z,He),z.flags=g?z.flags|256:z.flags&-257):Ge(z);j=ta,o=kt,s=On,l=yo}function Re(z){_e(z,Ve=>Ve.kind===263?Fn(Ve):void 0),_e(z,Ve=>Ve.kind!==263?Fn(Ve):void 0)}function _e(z,Ve=Fn){z!==void 0&&Ye(z,Ve)}function je(z){Jo(z,Fn,_e)}function Ge(z){const Ve=ye;if(ye=!1,$i(z)){ZR(z)&&z.flowNode&&(z.flowNode=void 0),je(z),ro(z),ye=Ve;return}switch(z.kind>=244&&z.kind<=260&&(!t.allowUnreachableCode||z.kind===254)&&(z.flowNode=y),z.kind){case 248:Ia(z);break;case 247:Mn(z);break;case 249:Uo(z);break;case 250:case 251:ot(z);break;case 246:Ft(z);break;case 254:case 258:le(z);break;case 253:case 252:Fe(z);break;case 259:it(z);break;case 256:dt(z);break;case 270:Lt(z);break;case 297:Ue(z);break;case 245:Rt(z);break;case 257:Ot(z);break;case 225:Oe(z);break;case 226:Nt(z);break;case 227:if(nv(z)){ye=Ve,he(z);return}ve(z);break;case 221:Ae(z);break;case 228:te(z);break;case 261:Xt(z);break;case 212:case 213:yn(z);break;case 214:wt(z);break;case 236:In(z);break;case 347:case 339:case 341:gr(z);break;case 352:Jn(z);break;case 308:{Re(z.statements),Fn(z.endOfFileToken);break}case 242:case 269:Re(z.statements);break;case 209:Pe(z);break;case 170:gt(z);break;case 211:case 210:case 304:case 231:ye=Ve;default:je(z);break}ro(z),ye=Ve}function We(z){switch(z.kind){case 80:case 110:return!0;case 212:case 213:return Wt(z);case 214:return cn(z);case 218:if(US(z))return!1;case 236:return We(z.expression);case 227:return Kn(z);case 225:return z.operator===54&&We(z.operand);case 222:return We(z.expression)}return!1}function at(z){switch(z.kind){case 80:case 110:case 108:case 237:return!0;case 212:case 218:case 236:return at(z.expression);case 213:return(uf(z.argumentExpression)||Ds(z.argumentExpression))&&at(z.expression);case 227:return z.operatorToken.kind===28&&at(z.right)||sy(z.operatorToken.kind)&&$u(z.left)}return!1}function Wt(z){return at(z)||eu(z)&&Wt(z.expression)}function cn(z){if(z.arguments){for(const Ve of z.arguments)if(Wt(Ve))return!0}return!!(z.expression.kind===212&&Wt(z.expression.expression))}function gn(z,Ve){return bD(z)&&_t(z.expression)&&ds(Ve)}function Kn(z){switch(z.operatorToken.kind){case 64:case 76:case 77:case 78:return Wt(z.left);case 35:case 36:case 37:case 38:const Ve=us(z.left),kt=us(z.right);return _t(Ve)||_t(kt)||gn(kt,Ve)||gn(Ve,kt)||wN(kt)&&We(Ve)||wN(Ve)&&We(kt);case 104:return _t(z.left);case 103:return We(z.right);case 28:return We(z.right)}return!1}function _t(z){switch(z.kind){case 218:return _t(z.expression);case 227:switch(z.operatorToken.kind){case 64:return _t(z.left);case 28:return _t(z.right)}}return Wt(z)}function en(){return F_(4,void 0,void 0)}function ir(){return F_(8,void 0,void 0)}function Di(z,Ve,kt){return F_(1024,{target:z,antecedents:Ve},kt)}function lo(z){z.flags|=z.flags&2048?4096:2048}function zt(z,Ve){!(Ve.flags&1)&&!jn(z.antecedent,Ve)&&((z.antecedent||(z.antecedent=[])).push(Ve),lo(Ve))}function Zr(z,Ve,kt){return Ve.flags&1?Ve:kt?(kt.kind===112&&z&64||kt.kind===97&&z&32)&&!rF(kt)&&!M9(kt.parent)?de:We(kt)?(lo(Ve),F_(z,kt,Ve)):Ve:z&32?Ve:de}function Ai(z,Ve,kt,On){return lo(z),F_(128,{switchStatement:Ve,clauseStart:kt,clauseEnd:On},z)}function Ni(z,Ve,kt){lo(Ve),J=!0;const On=F_(z,kt,Ve);return k&&zt(k,On),On}function Pr(z,Ve){return lo(z),J=!0,F_(512,Ve,z)}function Ci(z){const Ve=z.antecedent;return Ve?Ve.length===1?Ve[0]:z:de}function $e(z){const Ve=z.parent;switch(Ve.kind){case 246:case 248:case 247:return Ve.expression===z;case 249:case 228:return Ve.condition===z}return!1}function At(z){for(;;)if(z.kind===218)z=z.expression;else if(z.kind===225&&z.operator===54)z=z.operand;else return xk(z)}function mn(z){return QG(us(z))}function dr(z){for(;wu(z.parent)||XT(z.parent)&&z.parent.operator===54;)z=z.parent;return!$e(z)&&!At(z.parent)&&!(eu(z.parent)&&z.parent.expression===z)}function ri(z,Ve,kt,On){const yo=N,ta=P;N=kt,P=On,z(Ve),N=yo,P=ta}function ai(z,Ve,kt){ri(Fn,z,Ve,kt),(!z||!mn(z)&&!At(z)&&!(eu(z)&&NN(z)))&&(zt(Ve,Zr(32,y,z)),zt(kt,Zr(64,y,z)))}function qi(z,Ve,kt){const On=E,yo=A;E=Ve,A=kt,Fn(z),E=On,A=yo}function $o(z,Ve){let kt=O;for(;kt&&z.parent.kind===257;)kt.continueTarget=Ve,kt=kt.next,z=z.parent;return Ve}function Ia(z){const Ve=$o(z,ir()),kt=en(),On=en();zt(Ve,y),y=Ve,ai(z.expression,kt,On),y=Ci(kt),qi(z.statement,On,Ve),zt(Ve,y),y=Ci(On)}function Mn(z){const Ve=ir(),kt=$o(z,en()),On=en();zt(Ve,y),y=Ve,qi(z.statement,On,kt),zt(kt,y),y=Ci(kt),ai(z.expression,Ve,On),y=Ci(On)}function Uo(z){const Ve=$o(z,ir()),kt=en(),On=en(),yo=en();Fn(z.initializer),zt(Ve,y),y=Ve,ai(z.condition,kt,yo),y=Ci(kt),qi(z.statement,yo,On),zt(On,y),y=Ci(On),Fn(z.incrementor),zt(Ve,y),y=Ci(yo)}function ot(z){const Ve=$o(z,ir()),kt=en();Fn(z.expression),zt(Ve,y),y=Ve,z.kind===251&&Fn(z.awaitModifier),zt(kt,y),Fn(z.initializer),z.initializer.kind!==262&&Kt(z.initializer),qi(z.statement,kt,Ve),zt(Ve,y),y=Ci(kt)}function Ft(z){const Ve=en(),kt=en(),On=en();ai(z.expression,Ve,kt),y=Ci(Ve),Fn(z.thenStatement),zt(On,y),y=Ci(kt),Fn(z.elseStatement),zt(On,y),y=Ci(On)}function le(z){const Ve=j;j=!0,Fn(z.expression),j=Ve,z.kind===254&&(G=!0,R&&zt(R,y)),y=de,J=!0}function ht(z){for(let Ve=O;Ve;Ve=Ve.next)if(Ve.name===z)return Ve}function ne(z,Ve,kt){const On=z.kind===253?Ve:kt;On&&(zt(On,y),y=de,J=!0)}function Fe(z){if(Fn(z.label),z.label){const Ve=ht(z.label.escapedText);Ve&&(Ve.referenced=!0,ne(z,Ve.breakTarget,Ve.continueTarget))}else ne(z,E,A)}function it(z){const Ve=R,kt=k,On=en(),yo=en();let ta=en();if(z.finallyBlock&&(R=yo),zt(ta,y),k=ta,Fn(z.tryBlock),zt(On,y),z.catchClause&&(y=Ci(ta),ta=en(),zt(ta,y),k=ta,Fn(z.catchClause),zt(On,y)),R=Ve,k=kt,z.finallyBlock){const Eo=en();Eo.antecedent=so(so(On.antecedent,ta.antecedent),yo.antecedent),y=Eo,Fn(z.finallyBlock),y.flags&1?y=de:(R&&yo.antecedent&&zt(R,Di(Eo,yo.antecedent,y)),k&&ta.antecedent&&zt(k,Di(Eo,ta.antecedent,y)),y=On.antecedent?Di(Eo,On.antecedent,y):de)}else y=Ci(On)}function dt(z){const Ve=en();Fn(z.expression);const kt=E,On=W;E=Ve,W=y,Fn(z.caseBlock),zt(Ve,y);const yo=Ye(z.caseBlock.clauses,ta=>ta.kind===298);z.possiblyExhaustive=!yo&&!Ve.antecedent,yo||zt(Ve,Ai(W,z,0,0)),E=kt,W=On,y=Ci(Ve)}function Lt(z){const Ve=z.clauses,kt=z.parent.expression.kind===112||We(z.parent.expression);let On=de;for(let yo=0;yofc(kt)||ll(kt))}function ra(z){z.flags&33554432&&!Ii(z)?z.flags|=128:z.flags&=-129}function sa(z){if(ra(z),gu(z))if(di(z,32)&&fn(z,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),iG(z))zo(z);else{let Ve;if(z.name.kind===11){const{text:On}=z.name;Ve=NI(On),Ve===void 0&&fn(z.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,On)}const kt=xn(z,512,110735);e.patternAmbientModules=Bn(e.patternAmbientModules,Ve&&!Bo(Ve)?{pattern:Ve,symbol:kt}:void 0)}else{const Ve=zo(z);if(Ve!==0){const{symbol:kt}=z;kt.constEnumOnlyModule=!(kt.flags&304)&&Ve===2&&kt.constEnumOnlyModule!==!1}}}function zo(z){const Ve=my(z),kt=Ve!==0;return xn(z,kt?512:1024,kt?110735:0),Ve}function Gl(z){const Ve=Je(131072,re(z));Se(Ve,z,131072);const kt=Je(2048,"__type");Se(kt,z,2048),kt.members=da(),kt.members.set(Ve.escapedName,Ve)}function xl(z){return Go(z,4096,"__object")}function Ps(z){return Go(z,4096,"__jsxAttributes")}function co(z,Ve,kt){return xn(z,Ve,kt)}function Go(z,Ve,kt){const On=Je(Ve,kt);return Ve&106508&&(On.parent=o.symbol),Se(On,z,Ve),On}function Sc(z,Ve,kt){switch(l.kind){case 268:Be(z,Ve,kt);break;case 308:if(Pp(o)){Be(z,Ve,kt);break}default:C.assertNode(l,D_),l.locals||(l.locals=da(),En(l)),Ne(l.locals,void 0,z,Ve,kt)}}function $s(){if(!d)return;const z=o,Ve=u,kt=l,On=i,yo=y;for(const ta of d){const Eo=ta.parent.parent;o=RF(Eo)||e,l=sh(Eo)||e,y=F_(2,void 0,void 0),i=ta,Fn(ta.typeExpression);const Vo=Oo(ta);if((cw(ta)||!ta.fullName)&&Vo&&Dk(Vo.parent)){const ml=Xf(Vo.parent);if(ml){jp(e.symbol,Vo.parent,ml,!!Dn(Vo,cd=>qr(cd)&&cd.name.escapedText==="prototype"),!1);const Ca=o;switch(lk(Vo.parent)){case 1:case 2:Pp(e)?o=e:o=void 0;break;case 4:o=Vo.parent.expression;break;case 3:o=Vo.parent.expression.name;break;case 5:o=qS(e,Vo.parent.expression)?e:qr(Vo.parent.expression)?Vo.parent.expression.name:Vo.parent.expression;break;case 0:return C.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Be(ta,524288,788968),o=Ca}}else cw(ta)||!ta.fullName||ta.fullName.kind===80?(i=ta.parent,Sc(ta,524288,788968)):Fn(ta.fullName)}o=z,u=Ve,l=kt,i=On,y=yo}function Ra(){if(h===void 0)return;const z=o,Ve=u,kt=l,On=i,yo=y;for(const ta of h){const Eo=AS(ta),Vo=Eo?RF(Eo):void 0,ml=Eo?sh(Eo):void 0;o=Vo||e,l=ml||e,y=F_(2,void 0,void 0),i=ta,Fn(ta.importClause)}o=z,u=Ve,l=kt,i=On,y=yo}function tc(z){if(!e.parseDiagnostics.length&&!(z.flags&33554432)&&!(z.flags&16777216)&&!tne(z)){const Ve=HE(z);if(Ve===void 0)return;q&&Ve>=119&&Ve<=127?e.bindDiagnostics.push(xe(z,bf(z),ws(z))):Ve===135?Bc(e)&&WF(z)?e.bindDiagnostics.push(xe(z,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,ws(z))):z.flags&65536&&e.bindDiagnostics.push(xe(z,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ws(z))):Ve===127&&z.flags&16384&&e.bindDiagnostics.push(xe(z,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ws(z)))}}function bf(z){return hd(z)?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 Lo(z){z.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(xe(z,f.constructor_is_a_reserved_word,ws(z))))}function fa(z){q&&$u(z.left)&&sy(z.operatorToken.kind)&&As(z,z.left)}function is(z){q&&z.variableDeclaration&&As(z,z.variableDeclaration.name)}function qa(z){if(q&&z.expression.kind===80){const Ve=ZE(e,z.expression);e.bindDiagnostics.push(Wc(e,Ve.start,Ve.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Zt(z){return He(z)&&(z.escapedText==="eval"||z.escapedText==="arguments")}function As(z,Ve){if(Ve&&Ve.kind===80){const kt=Ve;if(Zt(kt)){const On=ZE(e,Ve);e.bindDiagnostics.push(Wc(e,On.start,On.length,ql(z),Kr(kt)))}}}function ql(z){return hd(z)?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 lc(z){q&&!(z.flags&33554432)&&As(z,z.name)}function vd(z){return hd(z)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function Fs(z){if(r<2&&l.kind!==308&&l.kind!==268&&!zR(l)){const Ve=ZE(e,z);e.bindDiagnostics.push(Wc(e,Ve.start,Ve.length,vd(z)))}}function Ee(z){q&&As(z,z.operand)}function Y(z){q&&(z.operator===46||z.operator===47)&&As(z,z.operand)}function pt(z){q&&fn(z,f.with_statements_are_not_allowed_in_strict_mode)}function qt(z){q&&Ga(t)>=2&&($ee(z.statement)||sc(z.statement))&&fn(z.label,f.A_label_is_not_allowed_here)}function fn(z,Ve,...kt){const On=jh(e,z.pos);e.bindDiagnostics.push(Wc(e,On.start,On.length,Ve,...kt))}function ur(z,Ve,kt){si(z,Ve,Ve,kt)}function si(z,Ve,kt,On){Dr(z,{pos:hb(Ve,e),end:kt.end},On)}function Dr(z,Ve,kt){const On=Wc(e,Ve.pos,Ve.end-Ve.pos,kt);z?e.bindDiagnostics.push(On):e.bindSuggestionDiagnostics=Bn(e.bindSuggestionDiagnostics,{...On,category:2})}function Fn(z){if(!z)return;ps(z,i),xr&&(z.tracingPath=e.path);const Ve=q;if(Da(z),z.kind>166){const kt=i;i=z;const On=mU(z);On===0?Ge(z):ce(z,On),i=kt}else{const kt=i;z.kind===1&&(i=z),ro(z),i=kt}q=Ve}function ro(z){if(ef(z))if(Ir(z))for(const Ve of z.jsDoc)Fn(Ve);else for(const Ve of z.jsDoc)ps(Ve,z),HT(Ve,!1)}function So(z){if(!q)for(const Ve of z){if(!Uh(Ve))return;if(Ns(Ve)){q=!0;return}}}function Ns(z){const Ve=yS(e,z.expression);return Ve==='"use strict"'||Ve==="'use strict'"}function Da(z){switch(z.kind){case 80:if(z.flags&4096){let Eo=z.parent;for(;Eo&&!hm(Eo);)Eo=Eo.parent;Sc(Eo,524288,788968);break}case 110:return y&&(St(z)||i.kind===305)&&(z.flowNode=y),tc(z);case 167:y&&GF(z)&&(z.flowNode=y);break;case 237:case 108:z.flowNode=y;break;case 81:return Lo(z);case 212:case 213:const Ve=z;y&&at(Ve)&&(Ve.flowNode=y),qte(Ve)&&Pc(Ve),Ir(Ve)&&e.commonJsModuleIndicator&&gg(Ve)&&!Y4(l,"module")&&Ne(e.locals,void 0,Ve.expression,134217729,111550);break;case 227:switch(ac(z)){case 1:Jt(z);break;case 2:er(z);break;case 3:Jl(z.left,z);break;case 6:tl(z);break;case 4:Za(z);break;case 5:const Eo=z.left.expression;if(Ir(z)&&He(Eo)){const Vo=Y4(l,Eo.escapedText);if(FF(Vo?.valueDeclaration)){Za(z);break}}bd(z);break;case 0:break;default:C.fail("Unknown binary expression special property assignment kind")}return fa(z);case 300:return is(z);case 221:return qa(z);case 226:return Ee(z);case 225:return Y(z);case 255:return pt(z);case 257:return qt(z);case 198:g=!0;return;case 183:break;case 169:return ti(z);case 170:return ut(z);case 261:return oe(z);case 209:return z.flowNode=y,oe(z);case 173:case 172:return Qs(z);case 304:case 305:return wn(z,4,0);case 307:return wn(z,8,900095);case 180:case 181:case 182:return xn(z,131072,0);case 175:case 174:return wn(z,8192|(z.questionToken?16777216:0),mm(z)?0:103359);case 263:return tn(z);case 177:return xn(z,16384,0);case 178:return wn(z,32768,46015);case 179:return wn(z,65536,78783);case 185:case 318:case 324:case 186:return Gl(z);case 188:case 323:case 201:return Ec(z);case 333:return tr(z);case 211:return xl(z);case 219:case 220:return an(z);case 214:switch(ac(z)){case 7:return rf(z);case 8:return ze(z);case 9:return kl(z);case 0:break;default:return C.fail("Unknown call expression assignment declaration kind")}Ir(z)&&bh(z);break;case 232:case 264:return q=!0,Tf(z);case 265:return Sc(z,64,788872);case 266:return Sc(z,524288,788968);case 267:return p_(z);case 268:return sa(z);case 293:return Ps(z);case 292:return co(z,4,0);case 272:case 275:case 277:case 282:return xn(z,2097152,2097152);case 271:return vh(z);case 274:return nf(z);case 279:return Pd(z);case 278:return Ll(z);case 308:return So(z.statements),mc();case 242:if(!zR(z.parent))return;case 269:return So(z.statements);case 342:if(z.parent.kind===324)return ut(z);if(z.parent.kind!==323)break;case 349:const yo=z,ta=yo.isBracketed||yo.typeExpression&&yo.typeExpression.type.kind===317?16777220:4;return xn(yo,ta,0);case 347:case 339:case 341:return(d||(d=[])).push(z);case 340:return Fn(z.typeExpression);case 352:return(h||(h=[])).push(z)}}function Qs(z){const Ve=Yu(z),kt=Ve?98304:4,On=Ve?13247:0;return wn(z,kt|(z.questionToken?16777216:0),On)}function Ec(z){return Go(z,2048,"__type")}function mc(){if(ra(e),Bc(e))Hs();else if(Ff(e)){Hs();const z=e.symbol;Ne(e.symbol.exports,e.symbol,e,4,-1),e.symbol=z}}function Hs(){Go(e,512,`"${bu(e.fileName)}"`)}function Ll(z){if(!o.symbol||!o.symbol.exports)Go(z,111551,re(z));else{const Ve=gk(z)?2097152:4,kt=Ne(o.symbol.exports,o.symbol,z,Ve,-1);z.isExportEquals&&YN(kt,z)}}function vh(z){yt(z.modifiers)&&e.bindDiagnostics.push(xe(z,f.Modifiers_cannot_appear_here));const Ve=Yi(z.parent)?Bc(z.parent)?z.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;Ve?e.bindDiagnostics.push(xe(z,Ve)):(e.symbol.globalExports=e.symbol.globalExports||da(),Ne(e.symbol.globalExports,e.symbol,z,2097152,2097152))}function Pd(z){!o.symbol||!o.symbol.exports?Go(z,8388608,re(z)):z.exportClause?O_(z.exportClause)&&(ps(z.exportClause,z),Ne(o.symbol.exports,o.symbol,z.exportClause,2097152,2097152)):Ne(o.symbol.exports,o.symbol,z,8388608,0)}function nf(z){z.name&&xn(z,2097152,2097152)}function op(z){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=z,e.externalModuleIndicator||Hs()),!0)}function ze(z){if(!op(z))return;const Ve=Xc(z.arguments[0],void 0,(kt,On)=>(On&&Se(On,kt,67110400),On));Ve&&Ne(Ve.exports,Ve,z,1048580,0)}function Jt(z){if(!op(z))return;const Ve=Xc(z.left.expression,void 0,(kt,On)=>(On&&Se(On,kt,67110400),On));if(Ve){const On=XF(z.right)&&(n1(z.left.expression)||gg(z.left.expression))?2097152:1048580;ps(z.left,z),Ne(Ve.exports,Ve,z.left,On,0)}}function er(z){if(!op(z))return;const Ve=ak(z.right);if(nV(Ve)||o===e&&qS(e,Ve))return;if(Wa(Ve)&&Vn(Ve.properties,Ud)){Ye(Ve.properties,go);return}const kt=gk(z)?2097152:1049092,On=Ne(e.symbol.exports,e.symbol,z,kt|67108864,0);YN(On,z)}function go(z){Ne(e.symbol.exports,e.symbol,z,69206016,0)}function Za(z){if(C.assert(Ir(z)),Nr(z)&&qr(z.left)&&eo(z.left.name)||qr(z)&&eo(z.name))return;const kt=yu(z,!1,!1);switch(kt.kind){case 263:case 219:let On=kt.symbol;if(Nr(kt.parent)&&kt.parent.operatorToken.kind===64){const Eo=kt.parent.left;ES(Eo)&&Sb(Eo.expression)&&(On=ap(Eo.expression.expression,s))}On&&On.valueDeclaration&&(On.members=On.members||da(),oy(z)?es(z,On,On.members):Ne(On.members,On,z,67108868,0),Se(On,On.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:const yo=kt.parent,ta=ua(kt)?yo.symbol.exports:yo.symbol.members;oy(z)?es(z,yo.symbol,ta):Ne(ta,yo.symbol,z,67108868,0,!0);break;case 308:if(oy(z))break;kt.commonJsModuleIndicator?Ne(kt.symbol.exports,kt.symbol,z,1048580,0):xn(z,1,111550);break;case 268:break;default:C.failBadSyntaxKind(kt)}}function es(z,Ve,kt){Ne(kt,Ve,z,4,0,!0,!0),Va(z,Ve)}function Va(z,Ve){Ve&&(Ve.assignmentDeclarationMembers||(Ve.assignmentDeclarationMembers=new Map)).set(ls(z),z)}function Pc(z){z.expression.kind===110?Za(z):ES(z)&&z.parent.parent.kind===308&&(Sb(z.expression)?Jl(z,z.parent):ld(z))}function tl(z){ps(z.left,z),ps(z.right,z),G_(z.left.expression,z.left,!1,!0)}function kl(z){const Ve=ap(z.arguments[0].expression);Ve&&Ve.valueDeclaration&&Se(Ve,Ve.valueDeclaration,32),Eu(z,Ve,!0)}function Jl(z,Ve){const kt=z.expression,On=kt.expression;ps(On,kt),ps(kt,z),ps(z,Ve),G_(On,z,!0,!0)}function rf(z){let Ve=ap(z.arguments[0]);const kt=z.parent.parent.kind===308;Ve=jp(Ve,z.arguments[0],kt,!1,!1),Eu(z,Ve,!1)}function bd(z){var Ve;const kt=ap(z.left.expression,l)||ap(z.left.expression,o);if(!Ir(z)&&!Jte(kt))return;const On=cD(z.left);if(!(He(On)&&((Ve=Y4(o,On.escapedText))==null?void 0:Ve.flags)&2097152))if(ps(z.left,z),ps(z.right,z),He(z.left.expression)&&o===e&&qS(e,z.left.expression))Jt(z);else if(oy(z)){Go(z,67108868,"__computed");const yo=jp(kt,z.left.expression,Xf(z.left),!1,!1);Va(z,yo)}else ld(ma(z.left,i1))}function ld(z){C.assert(!He(z)),ps(z.expression,z),G_(z.expression,z,!1,!1)}function jp(z,Ve,kt,On,yo){return z?.flags&2097152||(kt&&!On&&(z=Xc(Ve,z,(Vo,ml,Ca)=>{if(ml)return Se(ml,Vo,67110400),ml;{const cd=Ca?Ca.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=da());return Ne(cd,Ca,Vo,67110400,110735)}})),yo&&z&&z.valueDeclaration&&Se(z,z.valueDeclaration,32)),z}function Eu(z,Ve,kt){if(!Ve||!Cg(Ve))return;const On=kt?Ve.members||(Ve.members=da()):Ve.exports||(Ve.exports=da());let yo=0,ta=0;Ms(fI(z))?(yo=8192,ta=103359):Zo(z)&&r1(z)&&(yt(z.arguments[2].properties,Eo=>{const Vo=Oo(Eo);return!!Vo&&He(Vo)&&Kr(Vo)==="set"})&&(yo|=65540,ta|=78783),yt(z.arguments[2].properties,Eo=>{const Vo=Oo(Eo);return!!Vo&&He(Vo)&&Kr(Vo)==="get"})&&(yo|=32772,ta|=46015)),yo===0&&(yo=4,ta=0),Ne(On,Ve,z,yo|67108864,ta&-67108865)}function Xf(z){return Nr(z.parent)?Ng(z.parent).parent.kind===308:z.parent.parent.kind===308}function G_(z,Ve,kt,On){let yo=ap(z,l)||ap(z,o);const ta=Xf(Ve);yo=jp(yo,Ve.expression,ta,kt,On),Eu(Ve,yo,kt)}function Cg(z){if(z.flags&1072)return!0;const Ve=z.valueDeclaration;if(Ve&&Zo(Ve))return!!fI(Ve);let kt=Ve?yi(Ve)?Ve.initializer:Nr(Ve)?Ve.right:qr(Ve)&&Nr(Ve.parent)?Ve.parent.right:void 0:void 0;if(kt=kt&&ak(kt),kt){const On=Sb(yi(Ve)?Ve.name:Nr(Ve)?Ve.left:Ve);return!!FT(Nr(kt)&&(kt.operatorToken.kind===57||kt.operatorToken.kind===61)?kt.right:kt,On)}return!1}function Ng(z){for(;Nr(z.parent);)z=z.parent;return z.parent}function ap(z,Ve=o){if(He(z))return Y4(Ve,z.escapedText);{const kt=ap(z.expression);return kt&&kt.exports&&kt.exports.get(iy(z))}}function Xc(z,Ve,kt){if(qS(e,z))return e.symbol;if(He(z))return kt(z,ap(z),Ve);{const On=Xc(z.expression,Ve,kt),yo=sk(z);return eo(yo)&&C.fail("unexpected PrivateIdentifier"),kt(yo,On&&On.exports&&On.exports.get(iy(z)),On)}}function bh(z){!e.commonJsModuleIndicator&&Zu(z,!1)&&op(z)}function Tf(z){if(z.kind===264)Sc(z,32,899503);else{const yo=z.name?z.name.escapedText:"__class";Go(z,32,yo),z.name&&pe.add(z.name.escapedText)}const{symbol:Ve}=z,kt=Je(4194308,"prototype"),On=Ve.exports.get(kt.escapedName);On&&(z.name&&ps(z.name,z),e.bindDiagnostics.push(xe(On.declarations[0],f.Duplicate_identifier_0,Ol(kt)))),Ve.exports.set(kt.escapedName,kt),kt.parent=Ve}function p_(z){return wT(z)?Sc(z,128,899967):Sc(z,256,899327)}function oe(z){if(q&&As(z,z.name),!Qo(z.name)){const Ve=z.kind===261?z:z.parent.parent;Ir(z)&&SS(Ve)&&!PT(z)&&!(MT(z)&32)?xn(z,2097152,2097152):tG(z)?Sc(z,2,111551):VT(z)?xn(z,1,111551):xn(z,1,111550)}}function ut(z){if(!(z.kind===342&&o.kind!==324)&&(q&&!(z.flags&33554432)&&As(z,z.name),Qo(z.name)?Go(z,1,"__"+z.parent.parameters.indexOf(z)):xn(z,1,111551),Np(z,z.parent))){const Ve=z.parent.parent;Ne(Ve.symbol.members,Ve.symbol,z,4|(z.questionToken?16777216:0),0)}}function tn(z){!e.isDeclarationFile&&!(z.flags&33554432)&&nM(z)&&(Z|=4096),lc(z),q?(Fs(z),Sc(z,16,110991)):xn(z,16,110991)}function an(z){!e.isDeclarationFile&&!(z.flags&33554432)&&nM(z)&&(Z|=4096),y&&(z.flowNode=y),lc(z);const Ve=z.name?z.name.escapedText:"__function";return Go(z,16,Ve)}function wn(z,Ve,kt){return!e.isDeclarationFile&&!(z.flags&33554432)&&nM(z)&&(Z|=4096),y&&LF(z)&&(z.flowNode=y),oy(z)?Go(z,Ve,"__computed"):xn(z,Ve,kt)}function or(z){const Ve=Dn(z,kt=>kt.parent&&FS(kt.parent)&&kt.parent.extendsType===kt);return Ve&&Ve.parent}function ti(z){if(bm(z.parent)){const Ve=KF(z.parent);Ve?(C.assertNode(Ve,D_),Ve.locals??(Ve.locals=da()),Ne(Ve.locals,void 0,z,262144,526824)):xn(z,262144,526824)}else if(z.parent.kind===196){const Ve=or(z.parent);Ve?(C.assertNode(Ve,D_),Ve.locals??(Ve.locals=da()),Ne(Ve.locals,void 0,z,262144,526824)):Go(z,262144,re(z))}else xn(z,262144,526824)}function Ti(z){const Ve=my(z);return Ve===1||Ve===2&&Eb(t)}function $i(z){if(!(y.flags&1))return!1;if(y===de&&(O2(z)&&z.kind!==243||z.kind===264||QEe(z,t)||z.kind===268&&Ti(z))&&(y=fe,!t.allowUnreachableCode)){const kt=Une(t)&&!(z.flags&33554432)&&(!sc(z)||!!(ty(z.declarationList)&7)||z.declarationList.declarations.some(On=>!!On.initializer));CUe(z,t,(On,yo)=>si(kt,On,yo,f.Unreachable_code_detected))}return!0}}function QEe(e,t){return e.kind===267&&(!wT(e)||Eb(t))}function CUe(e,t,r){if(Vi(e)&&i(e)&&ea(e.parent)){const{statements:s}=e.parent,l=RV(s,e);TB(l,i,(u,d)=>r(l[u],l[d-1]))}else r(e,e);function i(s){return!ec(s)&&!o(s)&&!(sc(s)&&!(ty(s)&7)&&s.declarationList.declarations.some(l=>!l.initializer))}function o(s){switch(s.kind){case 265:case 266:return!0;case 268:return my(s)!==1;case 267:return!QEe(s,t);default:return!1}}}function qS(e,t){let r=0;const i=s2();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),n1(t)||gg(t))return!0;if(He(t)){const o=Y4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),id(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function mU(e){switch(e.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(LF(e))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return e.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return Yo(e.parent)||Zl(e.parent)?0:34}return 0}function Y4(e,t){var r,i,o,s;const l=(i=(r=ni(e,D_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Yi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(ah(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}function Woe(e,t,r,i,o,s,l,u,d,g){return h;function h(y=()=>!0){const E=[],A=[];return{walkType:ye=>{try{return R(ye),{visitedTypes:KA(E),visitedSymbols:KA(A)}}finally{hi(E),hi(A)}},walkSymbol:ye=>{try{return q(ye),{visitedTypes:KA(E),visitedSymbols:KA(A)}}finally{hi(E),hi(A)}}};function R(ye){if(!(!ye||E[ye.id]||(E[ye.id]=ye,q(ye.symbol)))){if(ye.flags&524288){const K=ye,pe=K.objectFlags;pe&4&&N(ye),pe&32&&G(ye),pe&3&&J(ye),pe&24&&Z(K)}ye.flags&262144&&P(ye),ye.flags&3145728&&k(ye),ye.flags&4194304&&W(ye),ye.flags&8388608&&O(ye)}}function N(ye){R(ye.target),Ye(g(ye),R)}function P(ye){R(u(ye))}function k(ye){Ye(ye.types,R)}function W(ye){R(ye.type)}function O(ye){R(ye.objectType),R(ye.indexType),R(ye.constraint)}function G(ye){R(ye.typeParameter),R(ye.constraintType),R(ye.templateType),R(ye.modifiersType)}function j(ye){const ie=t(ye);ie&&R(ie.type),Ye(ye.typeParameters,R);for(const K of ye.parameters)q(K);R(e(ye)),R(r(ye))}function J(ye){Z(ye),Ye(ye.typeParameters,R),Ye(i(ye),R),R(ye.thisType)}function Z(ye){const ie=o(ye);for(const K of ie.indexInfos)R(K.keyType),R(K.type);for(const K of ie.callSignatures)j(K);for(const K of ie.constructSignatures)j(K);for(const K of ie.properties)q(K)}function q(ye){if(!ye)return!1;const ie=Ta(ye);if(A[ie])return!1;if(A[ie]=ye,!y(ye))return!0;const K=s(ye);return R(K),ye.exports&&ye.exports.forEach(q),Ye(ye.declarations,pe=>{if(pe.type&&pe.type.kind===187){const de=pe.type,fe=l(d(de.exprName));q(fe)}}),!1}}}var hy={};x(hy,{RelativePreference:()=>ZEe,countPathComponents:()=>Z4,forEachFileNameOfModule:()=>o1e,getLocalModuleSpecifierBetweenFileNames:()=>wUe,getModuleSpecifier:()=>PUe,getModuleSpecifierPreferences:()=>Lw,getModuleSpecifiers:()=>n1e,getModuleSpecifiersWithCacheInfo:()=>r1e,getNodeModulesPackageName:()=>LUe,tryGetJSExtensionForFile:()=>_U,tryGetModuleSpecifiersFromCache:()=>kUe,tryGetRealFileNameForNonJsDeclarationFileName:()=>d1e,updateModuleSpecifier:()=>MUe});var NUe=Fh(e=>{try{let t=e.indexOf("/");if(t!==0)return new RegExp(e);const r=e.lastIndexOf("/");if(t===r)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==r;)if(e[t-1]!=="\\")return new RegExp(e);const i=e.substring(r+1).replace(/[^iu]/g,"");return e=e.substring(1,r),new RegExp(e,i)}catch{return}}),ZEe=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(ZEe||{});function Lw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:r},i,o,s,l){const u=d();return{excludeRegexes:r,relativePreference:l!==void 0?td(l)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:g=>{const h=gU(s,i,o),y=g!==h?d(g):u,E=ru(o);if((g??h)===99&&3<=E&&E<=99)return GD(o,s.fileName)?[3,2]:[2];if(ru(o)===1)return y===2?[2,1]:[1,2];const A=GD(o,s.fileName);switch(y){case 2:return A?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return A?[1,0,3,2]:[1,0,2];case 0:return A?[0,1,3,2]:[0,1,2];default:C.assertNever(y)}}};function d(g){if(l!==void 0){if(Tg(l))return 2;if(el(l,"/index"))return 1}return rre(t,g??gU(s,i,o),o,_g(s)?s:void 0)}}function MUe(e,t,r,i,o,s,l={}){const u=e1e(e,t,r,i,o,Lw({},o,e,t,s),{},l);if(u!==s)return u}function PUe(e,t,r,i,o,s={}){return e1e(e,t,r,i,o,Lw({},o,e,t),{},s)}function LUe(e,t,r,i,o,s={}){const l=Q4(t.fileName,i),u=a1e(l,r,i,o,e,s);return Hn(u,d=>Boe(d,l,t,i,e,o,!0,s.overrideImportMode))}function e1e(e,t,r,i,o,s,l,u={}){const d=Q4(r,o),g=a1e(d,i,o,l,e,u);return Hn(g,h=>Boe(h,d,t,o,e,l,void 0,u.overrideImportMode))||Foe(i,d,e,o,u.overrideImportMode||gU(t,o,e),s)}function kUe(e,t,r,i,o={}){const s=t1e(e,t,r,i,o);return s[1]&&{kind:s[0],moduleSpecifiers:s[1],computedWithoutCache:!1}}function t1e(e,t,r,i,o={}){var s;const l=z2(e);if(!l)return ae;const u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),d=u?.get(t.path,l.path,i,o);return[d?.kind,d?.moduleSpecifiers,l,d?.modulePaths,u]}function n1e(e,t,r,i,o,s,l={}){return r1e(e,t,r,i,o,s,l,!1).moduleSpecifiers}function r1e(e,t,r,i,o,s,l={},u){let d=!1;const g=BUe(e,t);if(g)return{kind:"ambient",moduleSpecifiers:u&&$4(g,s.autoImportSpecifierExcludeRegexes)?ae:[g],computedWithoutCache:d};let[h,y,E,A,R]=t1e(e,i,o,s,l);if(y)return{kind:h,moduleSpecifiers:y,computedWithoutCache:d};if(!E)return{kind:void 0,moduleSpecifiers:ae,computedWithoutCache:d};d=!0,A||(A=s1e(Q4(i.fileName,o),E.originalFileName,o,r,l));const N=OUe(A,r,i,o,s,l,u);return R?.set(i.path,E.path,s,l,N.kind,A,N.moduleSpecifiers),N}function wUe(e,t,r,i,o,s={}){const l=Q4(e.fileName,i),u=s.overrideImportMode??e.impliedNodeFormat;return Foe(t,l,r,i,u,Lw(o,i,r,e))}function OUe(e,t,r,i,o,s={},l){const u=Q4(r.fileName,i),d=Lw(o,i,t,r),g=_g(r)&&Ye(e,N=>Ye(i.getFileIncludeReasons().get(ks(N.path,i.getCurrentDirectory(),u.getCanonicalFileName)),P=>{if(P.kind!==3||P.file!==r.path)return;const k=i.getModeForResolutionAtIndex(r,P.index),W=s.overrideImportMode??i.getDefaultResolutionModeForFile(r);if(k!==W&&k!==void 0&&W!==void 0)return;const O=Yw(r,P.index).text;return d.relativePreference!==1||!Zp(O)?O:void 0}));if(g)return{kind:void 0,moduleSpecifiers:[g],computedWithoutCache:!0};const h=yt(e,N=>N.isInNodeModules);let y,E,A,R;for(const N of e){const P=N.isInNodeModules?Boe(N,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(P&&!(l&&$4(P,d.excludeRegexes))&&(y=Bn(y,P),N.isRedirect))return{kind:"node_modules",moduleSpecifiers:y,computedWithoutCache:!0};const k=Foe(N.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,d,N.isRedirect||!!P);!k||l&&$4(k,d.excludeRegexes)||(N.isRedirect?A=Bn(A,k):p9(k)?wb(k)?R=Bn(R,k):E=Bn(E,k):(l||!h||N.isInNodeModules)&&(R=Bn(R,k)))}return E?.length?{kind:"paths",moduleSpecifiers:E,computedWithoutCache:!0}:A?.length?{kind:"redirect",moduleSpecifiers:A,computedWithoutCache:!0}:y?.length?{kind:"node_modules",moduleSpecifiers:y,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:R??ae,computedWithoutCache:!0}}function $4(e,t){return yt(t,r=>{var i;return!!((i=NUe(r))!=null&&i.test(e))})}function Q4(e,t){e=To(e,t.getCurrentDirectory());const r=Fd(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ci(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function Foe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l,excludeRegexes:u},d){const{baseUrl:g,paths:h,rootDirs:y}=r;if(d&&!h)return;const{sourceDirectory:E,canonicalSourceDirectory:A,getCanonicalFileName:R}=t,N=s(o),P=y&&jUe(y,e,E,R,N,r)||kw(VE(cf(E,e,R)),N,r);if(!g&&!h&&!Ok(r)||l===0)return d?void 0:P;const k=To(o6(r,i)||g,i.getCurrentDirectory()),W=Goe(e,k,R);if(!W)return d?void 0:P;const O=d?void 0:VUe(e,E,r,i,o,HUe(N)),G=d||O===void 0?h&&l1e(W,h,N,k,R,i,r):void 0;if(d)return G;const j=O??(G===void 0&&g!==void 0?kw(W,N,r):G);if(!j)return P;const J=$4(P,u),Z=$4(j,u);if(!J&&Z)return P;if(J&&!Z||l===1&&!Zp(j))return j;if(l===3&&!Zp(j)){const q=r.configFilePath?ks(ci(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ye=ks(e,q,R),ie=po(A,q),K=po(ye,q);if(ie&&!K||!ie&&K)return j;const pe=zoe(i,ci(ye)),de=zoe(i,E),fe=!l1(i);return WUe(pe,de,fe)?P:j}return u1e(j)||Z4(P)e.fileExists(Qr(r,"package.json"))?r:void 0)}function o1e(e,t,r,i,o){var s,l;const u=ay(r),d=r.getCurrentDirectory(),g=r.isSourceOfProjectReferenceRedirect(t)?(s=r.getRedirectFromSourceFile(t))==null?void 0:s.outputDts:void 0,h=ks(t,d,u),y=r.redirectTargetsMap.get(h)||ae,A=[...g?[g]:ae,t,...y].map(W=>To(W,d));let R=!Vn(A,xM);if(!i){const W=Ye(A,O=>!(R&&xM(O))&&o(O,g===O));if(W)return W}const N=(l=r.getSymlinkCache)==null?void 0:l.call(r).getSymlinkedDirectoriesByRealpath(),P=To(t,d);return N&&W_(r,ci(P),W=>{const O=N.get(Uc(ks(W,d,u)));if(O)return h9(e,W,u)?!1:Ye(A,G=>{if(!h9(G,W,u))return;const j=cf(W,G,u);for(const J of O){const Z=ib(J,j),q=o(Z,G===g);if(R=!0,q)return q}})})||(i?Ye(A,W=>R&&xM(W)?void 0:o(W,W===g)):void 0)}function a1e(e,t,r,i,o,s={}){var l;const u=ks(e.importingSourceFileName,r.getCurrentDirectory(),ay(r)),d=ks(t,r.getCurrentDirectory(),ay(r)),g=(l=r.getModuleSpecifierCache)==null?void 0:l.call(r);if(g){const y=g.get(u,d,i,s);if(y?.modulePaths)return y.modulePaths}const h=s1e(e,t,r,o,s);return g&&g.setModulePaths(u,d,i,s,h),h}var FUe=["dependencies","peerDependencies","optionalDependencies"];function zUe(e){let t;for(const r of FUe){const i=e[r];i&&typeof i=="object"&&(t=so(t,Wh(i)))}return t}function s1e(e,t,r,i,o){var s,l;const u=(s=r.getModuleResolutionCache)==null?void 0:s.call(r),d=(l=r.getSymlinkCache)==null?void 0:l.call(r);if(u&&d&&r.readFile&&!wb(e.importingSourceFileName)){C.type(r);const y=tP(u.getPackageJsonInfoCache(),r,{}),E=nP(ci(e.importingSourceFileName),y);if(E){const A=zUe(E.contents.packageJsonContent);for(const R of A||ae){const N=C1(R,Qr(E.packageDirectory,"package.json"),i,r,u,void 0,o.overrideImportMode);d.setSymlinksFromResolution(N.resolvedModule)}}}const g=new Map;o1e(e.importingSourceFileName,t,r,!0,(y,E)=>{const A=wb(y);g.set(y,{path:e.getCanonicalFileName(y),isRedirect:E,isInNodeModules:A})});const h=[];for(let y=e.canonicalSourceDirectory;g.size!==0;){const E=Uc(y);let A;g.forEach(({path:N,isRedirect:P,isInNodeModules:k},W)=>{po(N,E)&&((A||(A=[])).push({path:W,isRedirect:P,isInNodeModules:k}),g.delete(W))}),A&&(A.length>1&&A.sort(i1e),h.push(...A));const R=ci(y);if(R===y)break;y=R}if(g.size){const y=Co(g.entries(),([E,{isRedirect:A,isInNodeModules:R}])=>({path:E,isRedirect:A,isInNodeModules:R}));y.length>1&&y.sort(i1e),h.push(...y)}return h}function BUe(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>rG(l)&&(!bS(l)||!td(zf(l.name))));if(i)return i.name.text;const s=Ui(e.declarations,l=>{var u,d,g,h;if(!pc(l))return;const y=N(l);if(!((u=y?.parent)!=null&&u.parent&&t_(y.parent)&&gu(y.parent.parent)&&Yi(y.parent.parent.parent)))return;const E=(h=(g=(d=y.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:h.expression;if(!E)return;const A=t.getSymbolAtLocation(E);if(!A)return;if((A?.flags&2097152?t.getAliasedSymbol(A):A)===l.symbol)return y.parent.parent;function N(P){for(;P.flags&8;)P=P.parent;return P}})[0];if(s)return s.name.text}function l1e(e,t,r,i,o,s,l){for(const d in t)for(const g of t[d]){const h=ya(g),y=Goe(h,i,o)??h,E=y.indexOf("*"),A=r.map(R=>({ending:R,value:kw(e,[R],l)}));if(Sg(y)&&A.push({ending:void 0,value:e}),E!==-1){const R=y.substring(0,E),N=y.substring(E+1);for(const{ending:P,value:k}of A)if(k.length>=R.length+N.length&&po(k,R)&&el(k,N)&&u({ending:P,value:k})){const W=k.substring(R.length,k.length-N.length);if(!Zp(W))return p1(d,W)}}else if(yt(A,R=>R.ending!==0&&y===R.value)||yt(A,R=>R.ending===0&&y===R.value&&u(R)))return d}function u({ending:d,value:g}){return d!==0||g===kw(e,[d],l,s)}}function e3(e,t,r,i,o,s,l,u,d,g){if(typeof s=="string"){const h=!l1(t),y=()=>t.getCommonSourceDirectory(),E=d&&HU(r,e,h,y),A=d&&UU(r,e,h,y),R=To(Qr(i,s),void 0),N=u1(r)?bu(r)+_U(r,e):void 0,P=g&&tre(r);switch(u){case 0:if(N&&Zg(N,R,h)===0||Zg(r,R,h)===0||E&&Zg(E,R,h)===0||A&&Zg(A,R,h)===0)return{moduleFileToTry:o};break;case 1:if(P&&um(r,R,h)){const G=cf(R,r,!1);return{moduleFileToTry:To(Qr(Qr(o,s),G),void 0)}}if(N&&um(R,N,h)){const G=cf(R,N,!1);return{moduleFileToTry:To(Qr(Qr(o,s),G),void 0)}}if(!P&&um(R,r,h)){const G=cf(R,r,!1);return{moduleFileToTry:To(Qr(Qr(o,s),G),void 0)}}if(E&&um(R,E,h)){const G=cf(R,E,!1);return{moduleFileToTry:Qr(o,G)}}if(A&&um(R,A,h)){const G=U8(cf(R,A,!1),hU(A,e));return{moduleFileToTry:Qr(o,G)}}break;case 2:const k=R.indexOf("*"),W=R.slice(0,k),O=R.slice(k+1);if(P&&po(r,W,h)&&el(r,O,h)){const G=r.slice(W.length,r.length-O.length);return{moduleFileToTry:p1(o,G)}}if(N&&po(N,W,h)&&el(N,O,h)){const G=N.slice(W.length,N.length-O.length);return{moduleFileToTry:p1(o,G)}}if(!P&&po(r,W,h)&&el(r,O,h)){const G=r.slice(W.length,r.length-O.length);return{moduleFileToTry:p1(o,G)}}if(E&&po(E,W,h)&&el(E,O,h)){const G=E.slice(W.length,E.length-O.length);return{moduleFileToTry:p1(o,G)}}if(A&&po(A,W,h)&&el(A,O,h)){const G=A.slice(W.length,A.length-O.length),j=p1(o,G),J=_U(A,e);return J?{moduleFileToTry:U8(j,J)}:void 0}break}}else{if(Array.isArray(s))return Ye(s,h=>e3(e,t,r,i,o,h,l,u,d,g));if(typeof s=="object"&&s!==null){for(const h of Wh(s))if(h==="default"||l.indexOf(h)>=0||Mw(l,h)){const y=s[h],E=e3(e,t,r,i,o,y,l,u,d,g);if(E)return E}}}}function GUe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&K4(s)?Ye(Wh(s),u=>{const d=To(Qr(o,u),void 0),g=el(u,"/")?1:u.includes("*")?2:0;return e3(e,t,r,i,d,s[u],l,g,!1,!1)}):e3(e,t,r,i,o,s,l,0,!1,!1)}function VUe(e,t,r,i,o,s){var l,u,d;if(!i.readFile||!Ok(r))return;const g=zoe(i,t);if(!g)return;const h=Qr(g,"package.json"),y=(u=(l=i.getPackageJsonInfoCache)==null?void 0:l.call(i))==null?void 0:u.getPackageJsonInfo(h);if(Toe(y)||!i.fileExists(h))return;const E=y?.contents.packageJsonContent||Nk(i.readFile(h)),A=E?.imports;if(!A)return;const R=kb(r,o);return(d=Ye(Wh(A),N=>{if(!po(N,"#")||N==="#"||po(N,"#/"))return;const P=el(N,"/")?1:N.includes("*")?2:0;return e3(r,i,e,g,N,A[N],R,P,!0,s)}))==null?void 0:d.moduleFileToTry}function jUe(e,t,r,i,o,s){const l=c1e(t,e,i);if(l===void 0)return;const u=c1e(r,e,i),d=Ki(u,h=>Vt(l,y=>VE(cf(h,y,i)))),g=LB(d,Vk);if(g)return kw(g,o,s)}function Boe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,d,g){if(!s.fileExists||!s.readFile)return;const h=G6(e);if(!h)return;const E=Lw(u,s,l,o).getAllowedEndingsInPreferredOrder();let A=e,R=!1;if(!d){let G=h.packageRootIndex,j;for(;;){const{moduleFileToTry:J,packageRootPath:Z,blockedByExports:q,verbatimFromExports:ye}=O(G);if(ru(l)!==1){if(q)return;if(ye)return J}if(Z){A=Z,R=!0;break}if(j||(j=J),G=e.indexOf(Js,G+1),G===-1){A=kw(j,E,l,s);break}}}if(t&&!R)return;const N=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),P=r(A.substring(0,h.topLevelNodeModulesIndex));if(!(po(i,P)||N&&po(r(N),P)))return;const k=A.substring(h.topLevelPackageNameIndex+1),W=rP(k);return ru(l)===1&&W===k?void 0:W;function O(G){var j,J;const Z=e.substring(0,G),q=Qr(Z,"package.json");let ye=e,ie=!1;const K=(J=(j=s.getPackageJsonInfoCache)==null?void 0:j.call(s))==null?void 0:J.getPackageJsonInfo(q);if(U4(K)||K===void 0&&s.fileExists(q)){const pe=K?.contents.packageJsonContent||Nk(s.readFile(q)),de=g||gU(o,s,l);if(wk(l)){const xe=Z.substring(h.topLevelPackageNameIndex+1),X=rP(xe),Ce=kb(l,de),Je=pe?.exports?GUe(l,s,e,Z,X,pe.exports,Ce):void 0;if(Je)return{...Je,verbatimFromExports:!0};if(pe?.exports)return{moduleFileToTry:e,blockedByExports:!0}}const fe=pe?.typesVersions?V4(pe.typesVersions):void 0;if(fe){const xe=e.slice(Z.length+1),X=l1e(xe,fe.paths,E,Z,r,s,l);X===void 0?ie=!0:ye=Qr(Z,X)}const ve=pe?.typings||pe?.types||pe?.main||"index.js";if(Bo(ve)&&!(ie&&xV(Uk(fe.paths),ve))){const xe=ks(ve,Z,r),X=r(ye);if(bu(xe)===bu(X))return{packageRootPath:Z,moduleFileToTry:ye};if(pe?.type!=="module"&&!Ql(X,O6)&&po(X,xe)&&ci(X)===Xy(xe)&&bu(xc(X))==="index")return{packageRootPath:Z,moduleFileToTry:ye}}}else{const pe=r(ye.substring(h.packageRootIndex+1));if(pe==="index.d.ts"||pe==="index.js"||pe==="index.ts"||pe==="index.tsx")return{moduleFileToTry:ye,packageRootPath:Z}}return{moduleFileToTry:ye}}}function UUe(e,t){if(!e.fileExists)return;const r=la(vM({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 c1e(e,t,r){return Ui(t,i=>{const o=Goe(e,i,r);return o!==void 0&&u1e(o)?void 0:o})}function kw(e,t,r,i){if(Ql(e,[".json",".mjs",".cjs"]))return e;const o=bu(e);if(e===o)return e;const s=t.indexOf(2),l=t.indexOf(3);if(Ql(e,[".mts",".cts"])&&l!==-1&&lg===0||g===1);return d!==-1&&d-1&&t(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))(vU||{}),joe=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),bU=(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))(bU||{}),TU=(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))(TU||{}),qUe=M8(g1e,KUe),SU=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),_1e=class{};function JUe(){this.flags=0}function ls(e){return e.id||(e.id=f1e,f1e++),e.id}function Ta(e){return e.id||(e.id=p1e,p1e++),e.id}function EU(e,t){const r=my(e);return r===1||t&&r===2}function Uoe(e){var t=[],r=n=>{t.push(n)},i,o,s=Rd.getSymbolConstructor(),l=Rd.getTypeConstructor(),u=Rd.getSignatureConstructor(),d=0,g=0,h=0,y=0,E=0,A=0,R,N,P=!1,k=da(),W=[1],O=e.getCompilerOptions(),G=Ga(O),j=vu(O),J=!!O.experimentalDecorators,Z=Wk(O),q=gV(O),ye=CI(O),ie=Vd(O,"strictNullChecks"),K=Vd(O,"strictFunctionTypes"),pe=Vd(O,"strictBindCallApply"),de=Vd(O,"strictPropertyInitialization"),fe=Vd(O,"strictBuiltinIteratorReturn"),ve=Vd(O,"noImplicitAny"),xe=Vd(O,"noImplicitThis"),X=Vd(O,"useUnknownInCatchVariables"),Ce=O.exactOptionalPropertyTypes,Je=!!O.noUncheckedSideEffectImports,Se=Mht(),re=hvt(),be=Rz(),Ne=Kse(O,be.syntacticBuilderResolver),Be=Tre({evaluateElementAccessExpression:oyt,evaluateEntityNameExpression:_3e}),lt=da(),ce=ja(4,"undefined");ce.declarations=[];var Re=ja(1536,"globalThis",8);Re.exports=lt,Re.declarations=[],lt.set(Re.escapedName,Re);var _e=ja(4,"arguments"),je=ja(4,"require"),Ge=O.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",We=!O.verbatimModuleSyntax,at,Wt,cn=0,gn,Kn=0,_t=FV({compilerOptions:O,requireSymbol:je,argumentsSymbol:_e,globals:lt,getSymbolOfDeclaration:Wr,error:Qe,getRequiresScopeChangeCache:pE,setRequiresScopeChangeCache:IC,lookup:Sd,onPropertyWithInvalidInitializer:tL,onFailedToResolveSymbol:zr,onSuccessfullyResolvedSymbol:xu}),en=FV({compilerOptions:O,requireSymbol:je,argumentsSymbol:_e,globals:lt,getSymbolOfDeclaration:Wr,error:Qe,getRequiresScopeChangeCache:pE,setRequiresScopeChangeCache:IC,lookup:Qft});const ir={getNodeCount:()=>_u(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>_u(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>_u(e.getSourceFiles(),(n,a)=>n+a.symbolCount,g),getTypeCount:()=>d,getInstantiationCount:()=>h,getRelationCacheSizes:()=>({assignable:qd.size,identity:Jd.size,subtype:H_.size,strictSubtype:cl.size}),isUndefinedSymbol:n=>n===ce,isArgumentsSymbol:n=>n===_e,isUnknownSymbol:n=>n===ne,getMergedSymbol:os,symbolIsValue:An,getDiagnostics:A3e,getGlobalDiagnostics:Nyt,getRecursionIdentity:gY,getUnmatchedProperties:y_e,getTypeOfSymbolAtLocation:(n,a)=>{const c=jo(a);return c?cpt(n,c):nt},getTypeOfSymbol:_r,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const c=jo(n,to);return c===void 0?C.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(C.assert(Np(c,c.parent)),Q1(c,Nl(a)))},getDeclaredTypeOfSymbol:qs,getPropertiesOfType:bs,getPropertyOfType:(n,a)=>Ea(n,Nl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{const p=jo(c);if(!p)return;const m=Nl(a),b=T5(m,p);return b?ZY(n,b):void 0},getTypeOfPropertyOfType:(n,a)=>_n(n,Nl(a)),getIndexInfoOfType:(n,a)=>Vg(n,a===0?gt:Bt),getIndexInfosOfType:Xd,getIndexInfosOfIndexSymbol:JX,getSignaturesOfType:na,getIndexTypeOfType:(n,a)=>H0(n,a===0?gt:Bt),getIndexType:n=>b_(n),getBaseTypes:Zm,getBaseTypeOfLiteralType:zy,getWidenedType:$p,getWidenedLiteralType:Q0,fillMissingTypeArguments:zv,getTypeFromTypeNode:n=>{const a=jo(n,Ri);return a?Ji(a):nt},getParameterType:Lh,getParameterIdentifierInfoAtPosition:qmt,getPromisedTypeOfPromise:n8,getAwaitedType:n=>cR(n),getReturnTypeOfSignature:fs,isNullableType:b5,getNullableType:r5,getNonNullableType:By,getNonOptionalType:TY,getTypeArguments:rl,typeToTypeNode:be.typeToTypeNode,typePredicateToTypePredicateNode:be.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:be.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:be.signatureToSignatureDeclaration,symbolToEntityName:be.symbolToEntityName,symbolToExpression:be.symbolToExpression,symbolToNode:be.symbolToNode,symbolToTypeParameterDeclarations:be.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:be.symbolToParameterDeclaration,typeParameterToDeclaration:be.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const c=jo(n);return c?Myt(c,a):[]},getSymbolAtLocation:n=>{const a=jo(n);return a?sm(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=jo(n);return a?zyt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=jo(n);return a?Byt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=jo(n,iu);return a?Gyt(a):void 0},getExportSymbolOfSymbol(n){return os(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=jo(n);return a?uR(a):nt},getTypeOfAssignmentPattern:n=>{const a=jo(n,ON);return a&&C$(a)||nt},getPropertySymbolOfDestructuringAssignment:n=>{const a=jo(n,He);return a?Vyt(a):void 0},signatureToString:(n,a,c,p)=>iT(n,jo(a),c,p),typeToString:(n,a,c)=>ar(n,jo(a),c),symbolToString:(n,a,c,p)=>uo(n,jo(a),c,p),typePredicateToString:(n,a,c)=>K_(n,jo(a),c),writeSignature:(n,a,c,p,m,b,I,w)=>iT(n,jo(a),c,p,m,b,I,w),writeType:(n,a,c,p,m,b,I)=>ar(n,jo(a),c,p,m,b,I),writeSymbol:(n,a,c,p,m)=>uo(n,jo(a),c,p,m),writeTypePredicate:(n,a,c,p)=>K_(n,jo(a),c,p),getAugmentedPropertiesOfType:sye,getRootSymbols:P3e,getSymbolOfExpando:o$,getContextualType:(n,a)=>{const c=jo(n,St);if(c)return a&4?Zr(c,()=>Uu(c,a)):Uu(c,a)},getContextualTypeForObjectLiteralElement:n=>{const a=jo(n,ny);return a?K_e(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const c=jo(n,_S);return c&&H_e(c,a)},getContextualTypeForJsxAttribute:n=>{const a=jo(n,uF);return a&&JFe(a,void 0)},isContextSensitive:Cf,getTypeOfPropertyOfContextualType:eS,getFullyQualifiedName:Cv,getResolvedSignature:(n,a,c)=>Ai(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:lo,getResolvedSignatureForSignatureHelp:(n,a,c)=>zt(n,()=>Ai(n,a,c,16)),getExpandedParameters:NOe,hasEffectiveRestParameter:ng,containsArgumentsReference:dhe,getConstantValue:n=>{const a=jo(n,F3e);return a?P$(a):void 0},isValidPropertyAccess:(n,a)=>{const c=jo(n,Uee);return!!c&&tmt(c,Nl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{const p=jo(n,qr);return!!p&&A6e(p,a,c)},getSignatureFromDeclaration:n=>{const a=jo(n,Yo);return a?Df(a):void 0},isImplementationOfOverload:n=>{const a=jo(n,Yo);return a?O3e(a):void 0},getImmediateAliasedSymbol:qY,getAliasedSymbol:ud,getEmitResolver:eL,requiresAddingImplicitUndefined:J5,getExportsOfModule:Bx,getExportsAndPropertiesOfModule:NC,forEachExportAndPropertyOfModule:Gx,getSymbolWalker:Woe(Rlt,nm,fs,Zm,Dh,_r,pu,ju,Pu,rl),getAmbientModules:rbt,getJsxIntrinsicTagNamesAt:wft,isOptionalParameter:n=>{const a=jo(n,to);return a?bW(a):!1},tryGetMemberInModuleExports:(n,a)=>sA(Nl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>Vx(Nl(n),a),tryFindAmbientModule:n=>YOe(n,!0),getApparentType:Ru,getUnionType:pi,isTypeAssignableTo:aa,createAnonymousType:bl,createSignature:y_,createSymbol:ja,createIndexInfo:jg,getAnyType:()=>Ue,getStringType:()=>gt,getStringLiteralType:Sp,getNumberType:()=>Bt,getNumberLiteralType:Ch,getBigIntType:()=>gr,getBigIntLiteralType:Hz,getUnknownType:()=>Nt,createPromiseType:N5,createArrayType:Yd,getElementTypeOfArrayType:n5,getBooleanType:()=>jt,getFalseType:n=>n?tr:Jn,getTrueType:n=>n?ft:Mt,getVoidType:()=>In,getUndefinedType:()=>he,getNullType:()=>Xt,getESSymbolType:()=>Qt,getNeverType:()=>yn,getNonPrimitiveType:()=>Ln,getOptionalType:()=>xt,getPromiseType:()=>zz(!1),getPromiseLikeType:()=>bWe(!1),getAnyAsyncIterableType:()=>{const n=Bz(!1);if(n!==Zt)return Ly(n,[Ue,Ue,Ue])},isSymbolAccessible:rT,isArrayType:im,isTupleType:Ka,isArrayLikeType:Vv,isEmptyAnonymousObjectType:tg,isTypeInvalidDueToUnionDiscriminant:llt,getExactOptionalProperties:Wdt,getAllPossiblePropertiesOfTypes:clt,getSuggestedSymbolForNonexistentProperty:sge,getSuggestedSymbolForNonexistentJSXAttribute:b6e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>S6e(n,Nl(a),c),getSuggestedSymbolForNonexistentModule:lge,getSuggestedSymbolForNonexistentClassMember:v6e,getBaseConstraintOfType:Ld,getDefaultFromTypeParameter:n=>n&&n.flags&262144?SE(n):void 0,resolveName(n,a,c,p){return _t(a,Nl(n),c,void 0,!1,p)},getJsxNamespace:n=>Gi(qm(n)),getJsxFragmentFactory:n=>{const a=pye(n);return a&&Gi(Pu(a).escapedText)},getAccessibleSymbolChain:Pv,getTypePredicateOfSignature:nm,resolveExternalModuleName:n=>{const a=jo(n,St);return a&&du(a,a,!0)},resolveExternalModuleSymbol:Tp,tryGetThisTypeAt:(n,a,c)=>{const p=jo(n);return p&&G_e(p,a,c)},getTypeArgumentConstraint:n=>{const a=jo(n,Ri);return a&&f_t(a)},getSuggestionDiagnostics:(n,a)=>{const c=jo(n,Yi)||C.fail("Could not determine parsed source file.");if(fD(c,O,e))return ae;let p;try{return i=a,oye(c),C.assert(!!(Vr(c).flags&1)),p=Xr(p,X1.getDiagnostics(c.fileName)),V4e(E3e(c),(m,b,I)=>{!dI(m)&&!S3e(b,!!(m.flags&33554432))&&(p||(p=[])).push({...I,category:2})}),p||ae}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(ir)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Na,isDeclarationVisible:X_,isPropertyAccessible:dge,getTypeOnlyAliasDeclaration:Ah,getMemberOverrideModifierStatus:Kgt,isTypeParameterPossiblyReferenced:Kz,typeHasCallOrConstructSignatures:N$,getSymbolFlags:dp,getTypeArgumentsForResolvedSignature:Di,isLibType:LC};function Di(n){if(n.mapper!==void 0)return Wy((n.target||n).typeParameters,n.mapper)}function lo(n,a){const c=new Set,p=[];Zr(a,()=>Ai(n,p,void 0,0));for(const m of p)c.add(m);p.length=0,zt(a,()=>Ai(n,p,void 0,0));for(const m of p)c.add(m);return Co(c)}function zt(n,a){if(n=Dn(n,B9),n){const c=[],p=[];for(;n;){const b=Vr(n);if(c.push([b,b.resolvedSignature]),b.resolvedSignature=void 0,Ib(n)){const I=Jr(Wr(n)),w=I.type;p.push([I,w]),I.type=void 0}n=Dn(n.parent,B9)}const m=a();for(const[b,I]of c)b.resolvedSignature=I;for(const[b,I]of p)b.type=I;return m}return a()}function Zr(n,a){const c=Dn(n,_S);if(c){let m=n;do Vr(m).skipDirectInference=!0,m=m.parent;while(m&&m!==c)}P=!0;const p=zt(n,a);if(P=!1,c){let m=n;do Vr(m).skipDirectInference=void 0,m=m.parent;while(m&&m!==c)}return p}function Ai(n,a,c,p){const m=jo(n,_S);at=c;const b=m?QC(m,a,p):void 0;return at=void 0,b}var Ni=new Map,Pr=new Map,Ci=new Map,$e=new Map,At=new Map,mn=new Map,dr=new Map,ri=new Map,ai=new Map,qi=new Map,$o=new Map,Ia=new Map,Mn=new Map,Uo=new Map,ot=new Map,Ft=[],le=new Map,ht=new Set,ne=ja(4,"unknown"),Fe=ja(0,"__resolving__"),it=new Map,dt=new Map,Lt=new Set,Ue=Li(1,"any"),Rt=Li(1,"any",262144,"auto"),It=Li(1,"any",void 0,"wildcard"),Ot=Li(1,"any",void 0,"blocked string"),nt=Li(1,"error"),Kt=Li(1,"unresolved"),Tr=Li(1,"any",65536,"non-inferrable"),Oe=Li(1,"intrinsic"),Nt=Li(2,"unknown"),he=Li(32768,"undefined"),B=ie?he:Li(32768,"undefined",65536,"widening"),Ae=Li(32768,"undefined",void 0,"missing"),te=Ce?Ae:he,xt=Li(32768,"undefined",void 0,"optional"),Xt=Li(65536,"null"),Pe=ie?Xt:Li(65536,"null",65536,"widening"),gt=Li(4,"string"),Bt=Li(8,"number"),gr=Li(64,"bigint"),tr=Li(512,"false",void 0,"fresh"),Jn=Li(512,"false"),ft=Li(512,"true",void 0,"fresh"),Mt=Li(512,"true");ft.regularType=Mt,ft.freshType=ft,Mt.regularType=Mt,Mt.freshType=ft,tr.regularType=Jn,tr.freshType=tr,Jn.regularType=Jn,Jn.freshType=tr;var jt=pi([Jn,Mt]),Qt=Li(4096,"symbol"),In=Li(16384,"void"),yn=Li(131072,"never"),wt=Li(131072,"never",262144,"silent"),En=Li(131072,"never",void 0,"implicit"),xn=Li(131072,"never",void 0,"unreachable"),Ln=Li(67108864,"object"),ln=pi([gt,Bt]),Ii=pi([gt,Bt,Qt]),ra=pi([Bt,gr]),sa=pi([gt,Bt,jt,gr,Xt,he]),zo=TA(["",""],[Bt]),Gl=Jz(n=>n.flags&262144?cdt(n):n,()=>"(restrictive mapper)"),xl=Jz(n=>n.flags&262144?It:n,()=>"(permissive mapper)"),Ps=Li(131072,"never",void 0,"unique literal"),co=Jz(n=>n.flags&262144?Ps:n,()=>"(unique literal mapper)"),Go,Sc=Jz(n=>(Go&&(n===Fs||n===Ee||n===Y)&&Go(!0),n),()=>"(unmeasurable reporter)"),$s=Jz(n=>(Go&&(n===Fs||n===Ee||n===Y)&&Go(!1),n),()=>"(unreliable reporter)"),Ra=bl(void 0,k,ae,ae,ae),tc=bl(void 0,k,ae,ae,ae);tc.objectFlags|=2048;var bf=bl(void 0,k,ae,ae,ae);bf.objectFlags|=141440;var Lo=ja(2048,"__type");Lo.members=da();var fa=bl(Lo,k,ae,ae,ae),is=bl(void 0,k,ae,ae,ae),qa=ie?pi([he,Xt,is]):Nt,Zt=bl(void 0,k,ae,ae,ae);Zt.instantiations=new Map;var As=bl(void 0,k,ae,ae,ae);As.objectFlags|=262144;var ql=bl(void 0,k,ae,ae,ae),lc=bl(void 0,k,ae,ae,ae),vd=bl(void 0,k,ae,ae,ae),Fs=Gu(),Ee=Gu();Ee.constraint=Fs;var Y=Gu(),pt=Gu(),qt=Gu();qt.constraint=pt;var fn=TW(1,"<>",0,Ue),ur=y_(void 0,void 0,void 0,ae,Ue,void 0,0,0),si=y_(void 0,void 0,void 0,ae,nt,void 0,0,0),Dr=y_(void 0,void 0,void 0,ae,Ue,void 0,0,0),Fn=y_(void 0,void 0,void 0,ae,wt,void 0,0,0),ro=jg(Bt,gt,!0),So=jg(gt,Ue,!1),Ns=new Map,Da={get yieldType(){return C.fail("Not supported")},get returnType(){return C.fail("Not supported")},get nextType(){return C.fail("Not supported")}},Qs=_T(Ue,Ue,Ue),Ec=_T(wt,wt,wt),mc={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Vlt,getGlobalIterableType:Bz,getGlobalIterableIteratorType:TWe,getGlobalIteratorObjectType:Ult,getGlobalGeneratorType:Hlt,getGlobalBuiltinIteratorTypes:jlt,resolveIterationType:(n,a)=>cR(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},Hs={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:qlt,getGlobalIterableType:tY,getGlobalIterableIteratorType:SWe,getGlobalIteratorObjectType:Klt,getGlobalGeneratorType:Xlt,getGlobalBuiltinIteratorTypes:Jlt,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},Ll,vh=new Map,Pd=new Map,nf,op,ze,Jt,er,go,Za,es,Va,Pc,tl,kl,Jl,rf,bd,ld,jp,Eu,Xf,G_,Cg,Ng,ap,Xc,bh,Tf,p_,oe,ut,tn,an,wn,or,ti,Ti,$i,z,Ve,kt,On,yo,ta,Eo,Vo,ml,Ca,cd,Up,Sf,Yf,Ty,bv,zu,V_,Th,Im,jb,Xe,mt,Yt,Rn,Qn=new Map,Lr=0,Yn=0,lr=0,Oi=!1,Ro=0,_i,Do,Qi,hl=[],sp=[],xm=[],Td=0,Rm=[],Hp=[],v0=[],f_=0,j_=[],b0=[],U_=0,bC=Sp(""),QP=Ch(0),TC=Hz({negative:!1,base10Value:"0"}),Mg=[],T0=[],U1=[],Tv=0,H1=!1,Ix=0,ZP=10,q1=[],xx=[],S0=[],SC=[],J1=[],Rx=[],sE=[],Ub=[],Dx=[],Cx=[],lE=[],Hb=[],Sv=[],Sy=[],Ey=[],Ay=[],qb=[],E0=[],K1=[],A0=0,ns=aM(),X1=aM(),EC=Kd(),Iy,xy,H_=new Map,cl=new Map,qd=new Map,lp=new Map,Jd=new Map,I0=new Map,Au=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",O.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return _vt(),ir;function q_(n){return!qr(n)||!He(n.name)||!qr(n.expression)&&!He(n.expression)?!1:He(n.expression)?Kr(n.expression)==="Symbol"&&pu(n.expression)===(jC("Symbol",1160127,void 0)||ne):He(n.expression.expression)?Kr(n.expression.name)==="Symbol"&&Kr(n.expression.expression)==="globalThis"&&pu(n.expression.expression)===Re:!1}function Bu(n){return n?ot.get(n):void 0}function Dm(n,a){return n&&ot.set(n,a),a}function qm(n){if(n){const a=Wn(n);if(a)if(jm(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const m=Mo(c)?c[0]:c;if(a.localJsxFragmentFactory=ZI(m.arguments.factory,G),st(a.localJsxFragmentFactory,R0,Nu),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Pu(a.localJsxFragmentFactory).escapedText}const p=pye(n);if(p)return a.localJsxFragmentFactory=p,a.localJsxFragmentNamespace=Pu(p).escapedText}else{const c=x0(a);if(c)return a.localJsxNamespace=c}}return Iy||(Iy="React",O.jsxFactory?(xy=ZI(O.jsxFactory,G),st(xy,R0),xy&&(Iy=Pu(xy).escapedText)):O.reactNamespace&&(Iy=Nl(O.reactNamespace))),xy||(xy=L.createQualifiedName(L.createIdentifier(Gi(Iy)),"createElement")),Iy}function x0(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const c=Mo(a)?a[0]:a;if(n.localJsxFactory=ZI(c.arguments.factory,G),st(n.localJsxFactory,R0,Nu),n.localJsxFactory)return n.localJsxNamespace=Pu(n.localJsxFactory).escapedText}}function R0(n){return uh(n,-1,-1),kn(n,R0,void 0)}function eL(n,a,c){return c||A3e(n,a),re}function AC(n,a,...c){const p=n?Ar(n,a,...c):Il(a,...c),m=ns.lookup(p);return m||(ns.add(p),p)}function Ev(n,a,c,...p){const m=Qe(a,c,...p);return m.skippedOn=n,m}function cE(n,a,...c){return n?Ar(n,a,...c):Il(a,...c)}function Qe(n,a,...c){const p=cE(n,a,...c);return ns.add(p),p}function Y1(n){const c=Wn(n).fileName;return Ql(c,[".cts",".cjs"])?f.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:f.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function Pg(n,a){n?ns.add(a):X1.add({...a,category:2})}function Jm(n,a,c,...p){if(a.pos<0||a.end<0){if(!n)return;const m=Wn(a);Pg(n,"message"in c?Wc(m,0,0,c,...p):uG(m,c));return}Pg(n,"message"in c?Ar(a,c,...p):hg(Wn(a),a,c))}function Av(n,a,c,...p){const m=Qe(n,c,...p);if(a){const b=Ar(n,f.Did_you_forget_to_use_await);pa(m,b)}return m}function Jb(n,a){const c=Array.isArray(n)?Ye(n,R9):R9(n);return c&&pa(a,Ar(c,f.The_declaration_was_marked_as_deprecated_here)),X1.add(a),a}function Iu(n){const a=Yc(n);return a&&et(n.declarations)>1?a.flags&64?yt(n.declarations,Sh):Vn(n.declarations,Sh):!!n.valueDeclaration&&Sh(n.valueDeclaration)||et(n.declarations)&&Vn(n.declarations,Sh)}function Sh(n){return!!(kE(n)&536870912)}function Cm(n,a,c){const p=Ar(n,f._0_is_deprecated,c);return Jb(a,p)}function D0(n,a,c,p){const m=c?Ar(n,f.The_signature_0_of_1_is_deprecated,p,c):Ar(n,f._0_is_deprecated,p);return Jb(a,m)}function ja(n,a,c){g++;const p=new s(n|33554432,a);return p.links=new _1e,p.links.checkFlags=c||0,p}function Ef(n,a){const c=ja(1,n);return c.links.type=a,c}function Iv(n,a){const c=ja(4,n);return c.links.type=a,c}function $1(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 Ry(n,a){a.mergeId||(a.mergeId=m1e,m1e++),q1[a.mergeId]=n}function dE(n){const a=ja(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)),Ry(a,n),a}function $f(n,a,c=!1){if(!(n.flags&$1(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const b=hc(n);if(b===ne)return a;if(!(b.flags&$1(a.flags))||(a.flags|b.flags)&67108864)n=dE(b);else return p(n,a),a}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&YN(n,a.valueDeclaration),Xr(n.declarations,a.declarations),a.members&&(n.members||(n.members=da()),m_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=da()),m_(n.exports,a.exports,c,n)),c||Ry(n,a)}else n.flags&1024?n!==Re&&Qe(a.declarations&&Oo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,uo(n)):p(n,a);return n;function p(b,I){const w=!!(b.flags&384||I.flags&384),U=!!(b.flags&2||I.flags&2),H=w?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:U?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Q=I.declarations&&Wn(I.declarations[0]),Ie=b.declarations&&Wn(b.declarations[0]),Te=zN(Q,O.checkJs),Ze=zN(Ie,O.checkJs),Tt=uo(I);if(Q&&Ie&&Ll&&!w&&Q!==Ie){const Dt=Zg(Q.path,Ie.path)===-1?Q:Ie,$t=Dt===Q?Ie:Q,Tn=HA(Ll,`${Dt.path}|${$t.path}`,()=>({firstFile:Dt,secondFile:$t,conflictingSymbols:new Map})),nr=HA(Tn.conflictingSymbols,Tt,()=>({isBlockScoped:U,firstFileLocations:[],secondFileLocations:[]}));Te||m(nr.firstFileLocations,I),Ze||m(nr.secondFileLocations,b)}else Te||Lg(I,H,Tt,b),Ze||Lg(b,H,Tt,I)}function m(b,I){if(I.declarations)for(const w of I.declarations)kf(b,w)}}function Lg(n,a,c,p){Ye(n.declarations,m=>{C0(m,a,c,p.declarations)})}function C0(n,a,c,p){const m=(FT(n,!1)?vG(n):Oo(n))||n,b=AC(m,a,c);for(const I of p||ae){const w=(FT(I,!1)?vG(I):Oo(I))||I;if(w===m)continue;b.relatedInformation=b.relatedInformation||[];const U=Ar(w,f._0_was_also_declared_here,c),H=Ar(w,f.and_here);et(b.relatedInformation)>=5||yt(b.relatedInformation,Q=>_M(Q,H)===0||_M(Q,U)===0)||pa(b,et(b.relatedInformation)?H:U)}}function xv(n,a){if(!n?.size)return a;if(!a?.size)return n;const c=da();return m_(c,n),m_(c,a),c}function m_(n,a,c=!1,p){a.forEach((m,b)=>{const I=n.get(b),w=I?$f(I,m,c):os(m);p&&I&&(w.parent=p),n.set(b,w)})}function uE(n){var a,c,p;const m=n.parent;if(((a=m.symbol.declarations)==null?void 0:a[0])!==m){C.assert(m.symbol.declarations.length>1);return}if(M_(m))m_(lt,m.symbol.exports);else{const b=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let I=bp(n,n,b,!1,!0);if(!I)return;if(I=Tp(I),I.flags&1920)if(yt(op,w=>I===w.symbol)){const w=$f(m.symbol,I,!0);ze||(ze=new Map),ze.set(n.text,w)}else{if((c=I.exports)!=null&&c.get("__export")&&((p=m.symbol.exports)!=null&&p.size)){const w=Xme(I,"resolvedExports");for(const[U,H]of Co(m.symbol.exports.entries()))w.has(U)&&!I.exports.has(U)&&$f(w.get(U),H)}$f(I,m.symbol)}else Qe(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function N0(){const n=ce.escapedName,a=lt.get(n);a?Ye(a.declarations,c=>{MI(c)||ns.add(Ar(c,f.Declaration_name_conflicts_with_built_in_global_identifier_0,Gi(n)))}):lt.set(n,ce)}function Jr(n){if(n.flags&33554432)return n.links;const a=Ta(n);return xx[a]??(xx[a]=new _1e)}function Vr(n){const a=ls(n);return S0[a]||(S0[a]=new JUe)}function Sd(n,a,c){if(c){const p=os(n.get(a));if(p&&(p.flags&c||p.flags&2097152&&dp(p)&c))return p}}function Q1(n,a){const c=n.parent,p=n.parent.parent,m=Sd(c.locals,a,111551),b=Sd($_(p.symbol),a,111551);return m&&b?[m,b]:C.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Dy(n,a){const c=Wn(n),p=Wn(a),m=sh(n);if(c!==p){if(j&&(c.externalModuleIndicator||p.externalModuleIndicator)||!O.outFile||bI(a)||n.flags&33554432||I(a,n))return!0;const H=e.getSourceFiles();return H.indexOf(c)<=H.indexOf(p)}if(a.flags&16777216||bI(a)||I_e(a))return!0;if(n.pos<=a.pos&&!(Po(n)&&Q2(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===209){const H=GT(a,209);return H?Dn(H,Ha)!==Dn(n,Ha)||n.posQ===n?"quit":va(Q)?Q.parent.parent===n:!J&&Fc(Q)&&(Q.parent===n||Ml(Q.parent)&&Q.parent.parent===n||R2(Q.parent)&&Q.parent.parent===n||Po(Q.parent)&&Q.parent.parent===n||to(Q.parent)&&Q.parent.parent.parent===n));return H?!J&&Fc(H)?!!Dn(a,Q=>Q===H?"quit":Yo(Q)&&!OT(Q)):!1:!0}else{if(Po(n))return!U(n,a,!1);if(Np(n,n.parent))return!(q&&hd(n)===hd(a)&&I(a,n))}}return!0}if(a.parent.kind===282||a.parent.kind===278&&a.parent.isExportEquals||a.kind===278&&a.isExportEquals)return!0;if(I(a,n))return q&&hd(n)&&(Po(n)||Np(n,n.parent))?!U(n,a,!0):!0;return!1;function b(H,Q){switch(H.parent.parent.kind){case 244:case 249:case 251:if(Km(Q,H,m))return!0;break}const Ie=H.parent.parent;return YE(Ie)&&Km(Q,Ie.expression,m)}function I(H,Q){return w(H,Q)}function w(H,Q){return!!Dn(H,Ie=>{if(Ie===m)return"quit";if(Yo(Ie))return!OT(Ie);if(Zl(Ie))return Q.posH.end?!1:Dn(Q,Ze=>{if(Ze===H)return"quit";switch(Ze.kind){case 220:return!0;case 173:return Ie&&(Po(H)&&Ze.parent===H.parent||Np(H,H.parent)&&Ze.parent===H.parent.parent)?"quit":!0;case 242:switch(Ze.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})===void 0}}function pE(n){return Vr(n).declarationRequiresScopeChange}function IC(n,a){Vr(n).declarationRequiresScopeChange=a}function tL(n,a,c,p){return q?!1:(n&&!p&&Z1(n,a,a)||Qe(n,n&&c.type&&b2(c.type,n.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,ws(c.name),vp(a)),!0)}function zr(n,a,c,p){const m=Bo(a)?a:a.escapedText;r(()=>{if(!n||n.parent.kind!==325&&!Z1(n,m,a)&&!Kb(n)&&!xC(n,m,c)&&!J_(n,m)&&!Yb(n,m,c)&&!Eh(n,m,c)&&!Nx(n,m,c)){let b,I;if(a&&(I=Yft(a),I&&Qe(n,p,vp(a),I)),!I&&Ix{var I;const w=a.escapedName,U=p&&Yi(p)&&Pp(p);if(n&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const H=Et(a);(H.flags&2||H.flags&32||H.flags&384)&&Af(H,n)}if(U&&(c&111551)===111551&&!(n.flags&16777216)){const H=os(a);et(H.declarations)&&Vn(H.declarations,Q=>lw(Q)||Yi(Q)&&!!Q.symbol.globalExports)&&Jm(!O.allowUmdGlobalAccess,n,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Gi(w))}if(m&&!b&&(c&111551)===111551){const H=os(BX(a)),Q=Jh(m);H===Wr(m)?Qe(n,f.Parameter_0_cannot_reference_itself,ws(m.name)):H.valueDeclaration&&H.valueDeclaration.pos>m.pos&&Q.parent.locals&&Sd(Q.parent.locals,H.escapedName,c)===H&&Qe(n,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,ws(m.name),ws(n))}if(n&&c&111551&&a.flags&2097152&&!(a.flags&111551)&&!UT(n)){const H=Ah(a,111551);if(H){const Q=H.kind===282||H.kind===279||H.kind===281?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,Ie=Gi(w);Wo(Qe(n,Q,Ie),H,Ie)}}if(O.isolatedModules&&a&&U&&(c&111551)===111551){const Q=Sd(lt,w,c)===a&&Yi(p)&&p.locals&&Sd(p.locals,w,-111552);if(Q){const Ie=(I=Q.declarations)==null?void 0:I.find(Te=>Te.kind===277||Te.kind===274||Te.kind===275||Te.kind===272);Ie&&!WR(Ie)&&Qe(Ie,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Gi(w))}}})}function Wo(n,a,c){return a?pa(n,Ar(a,a.kind===282||a.kind===279||a.kind===281?f._0_was_exported_here:f._0_was_imported_here,c)):n}function vp(n){return Bo(n)?Gi(n):ws(n)}function Z1(n,a,c){if(!He(n)||n.escapedText!==a||I3e(n)||bI(n))return!1;const p=yu(n,!1,!1);let m=p;for(;m;){if(ui(m.parent)){const b=Wr(m.parent);if(!b)break;const I=_r(b);if(Ea(I,a))return Qe(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,vp(c),uo(b)),!0;if(m===p&&!ua(m)){const w=qs(b).thisType;if(Ea(w,a))return Qe(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,vp(c)),!0}}m=m.parent}return!1}function Kb(n){const a=Mr(n);return a&&Vl(a,64,!0)?(Qe(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Al(a)),!0):!1}function Mr(n){switch(n.kind){case 80:case 212:return n.parent?Mr(n.parent):void 0;case 234:if(Ds(n.expression))return n.expression;default:return}}function xC(n,a,c){const p=1920|(Ir(n)?111551:0);if(c===p){const m=hc(_t(n,a,788968&~p,void 0,!1)),b=n.parent;if(m){if(Lu(b)){C.assert(b.left===n,"Should only be resolving left side of qualified name as a namespace");const I=b.right.escapedText;if(Ea(qs(m),I))return Qe(b,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,Gi(a),Gi(I)),!0}return Qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Gi(a)),!0}}return!1}function Nx(n,a,c){if(c&788584){const p=hc(_t(n,a,111127,void 0,!1));if(p&&!(p.flags&1920))return Qe(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Gi(a)),!0}return!1}function cu(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function J_(n,a){return cu(a)&&n.parent.kind===282?(Qe(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Eh(n,a,c){if(c&111551){if(cu(a)){const b=n.parent.parent;if(b&&b.parent&&Fp(b)){const I=b.token;b.parent.kind===265&&I===96?Qe(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Gi(a)):ui(b.parent)&&I===96?Qe(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Gi(a)):ui(b.parent)&&I===119&&Qe(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Gi(a))}else Qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Gi(a));return!0}const p=hc(_t(n,a,788544,void 0,!1)),m=p&&dp(p);if(p&&m!==void 0&&!(m&111551)){const b=Gi(a);return eA(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,b):Xb(n,p)?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,b,b==="K"?"P":"K"):Qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,b),!0}}return!1}function Xb(n,a){const c=Dn(n.parent,p=>va(p)||Tu(p)?!1:ku(p)||"quit");if(c&&c.members.length===1){const p=qs(a);return!!(p.flags&1048576)&&QW(p,384,!0)}return!1}function eA(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Yb(n,a,c){if(c&111127){if(hc(_t(n,a,1024,void 0,!1)))return Qe(n,f.Cannot_use_namespace_0_as_a_value,Gi(a)),!0}else if(c&788544&&hc(_t(n,a,1536,void 0,!1)))return Qe(n,f.Cannot_use_namespace_0_as_a_type,Gi(a)),!0;return!1}function Af(n,a){var c;if(C.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const p=(c=n.declarations)==null?void 0:c.find(m=>tG(m)||ui(m)||m.kind===267);if(p===void 0)return C.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(p.flags&33554432)&&!Dy(p,a)){let m;const b=ws(Oo(p));n.flags&2?m=Qe(a,f.Block_scoped_variable_0_used_before_its_declaration,b):n.flags&32?m=Qe(a,f.Class_0_used_before_its_declaration,b):n.flags&256?m=Qe(a,f.Enum_0_used_before_its_declaration,b):(C.assert(!!(n.flags&128)),ym(O)&&(m=Qe(a,f.Enum_0_used_before_its_declaration,b))),m&&pa(m,Ar(p,f._0_is_declared_here,b))}}function Km(n,a,c){return!!a&&!!Dn(n,p=>p===a||(p===c||Yo(p)&&(!OT(p)||dc(p)&3)?"quit":!1))}function Qf(n){switch(n.kind){case 272:return n;case 274:return n.parent;case 275:return n.parent.parent;case 277:return n.parent.parent.parent;default:return}}function cp(n){return n.declarations&&ga(n.declarations,Rv)}function Rv(n){return n.kind===272||n.kind===271||n.kind===274&&!!n.name||n.kind===275||n.kind===281||n.kind===277||n.kind===282||n.kind===278&&gk(n)||Nr(n)&&ac(n)===2&&gk(n)||Ks(n)&&Nr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&M0(n.parent.right)||n.kind===305||n.kind===304&&M0(n.initializer)||n.kind===261&&SS(n)||n.kind===209&&SS(n.parent.parent)}function M0(n){return XF(n)||Us(n)&&E_(n)}function Mx(n,a){const c=kx(n);if(c){const m=cD(c.expression).arguments[0];return He(c.name)?hc(Ea($Oe(m),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===284){const m=du(n,yG(n)||qN(n)),b=Tp(m);if(b&&102<=j&&j<=199){const I=fE(b,"module.exports",n,a);if(I)return I}return Zf(n,m,b,!1),b}const p=tT(n.moduleReference,a);return P0(n,p),p}function P0(n,a){if(Zf(n,void 0,a,!1)&&!n.isTypeOnly){const c=Ah(Wr(n)),p=c.kind===282||c.kind===279,m=p?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,b=p?f._0_was_exported_here:f._0_was_imported_here,I=c.kind===279?"*":_b(c.name);pa(Qe(n.moduleReference,m),Ar(c,b,I))}}function $b(n,a,c,p){const m=n.exports.get("export="),b=m?Ea(_r(m),a,!0):n.exports.get(a),I=hc(b,p);return Zf(c,b,I,!1),I}function Px(n){return ll(n)&&!n.isExportEquals||di(n,2048)||iu(n)||O_(n)}function Cy(n){return ds(n)?e.getEmitSyntaxForUsageLocation(Wn(n),n):void 0}function h_(n,a){return n===99&&a===1}function Qb(n,a){if(100<=j&&j<=199&&Cy(n)===99){a??(a=du(n,n,!0));const p=a&&z2(a);return p&&(Ff(p)||I4(p.fileName)===".d.json.ts")}return!1}function L0(n,a,c,p){const m=n&&Cy(p);if(n&&m!==void 0){const b=e.getImpliedNodeFormatForEmit(n);if(m===99&&b===1&&100<=j&&j<=199)return!0;if(m===99&&b===99)return!1}if(!ye)return!1;if(!n||n.isDeclarationFile){const b=$b(a,"default",void 0,!0);return!(b&&yt(b.declarations,Px)||$b(a,Nl("__esModule"),void 0,c))}return Mu(n)?typeof n.externalModuleIndicator!="object"&&!$b(a,Nl("__esModule"),void 0,c):Ym(a)}function Dv(n,a){const c=du(n,n.parent.moduleSpecifier);if(c)return Zb(c,n,a)}function Zb(n,a,c){var p;const m=(p=n.declarations)==null?void 0:p.find(Yi),b=Xm(a);let I,w;if(V2(n))I=n;else if(m&&b&&102<=j&&j<=199&&Cy(b)===1&&e.getImpliedNodeFormatForEmit(m)===99&&(w=$b(n,"module.exports",a,c))){if(!$h(O)){Qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,uo(n),"esModuleInterop");return}return Zf(a,w,void 0,!1),w}else I=$b(n,"default",a,c);if(!b)return I;const U=Qb(b,n),H=L0(m,n,c,b);if(!I&&!H&&!U)if(Ym(n)&&!ye){const Q=j>=5?"allowSyntheticDefaultImports":"esModuleInterop",Te=n.exports.get("export=").valueDeclaration,Ze=Qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,uo(n),Q);Te&&pa(Ze,Ar(Te,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,Q))}else Vm(a)?Ny(n,a):tA(n,n,a,cb(a)&&a.propertyName||a.name);else if(H||U){const Q=Tp(n,c)||hc(n,c);return Zf(a,n,Q,!1),Q}return Zf(a,I,void 0,!1),I}function Xm(n){switch(n.kind){case 274:return n.parent.moduleSpecifier;case 272:return uy(n.moduleReference)?n.moduleReference.expression:void 0;case 275:return n.parent.parent.moduleSpecifier;case 277:return n.parent.parent.parent.moduleSpecifier;case 282:return n.parent.parent.moduleSpecifier;default:return C.assertNever(n)}}function Ny(n,a){var c,p,m;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,uo(n),uo(a.symbol));else{const b=Qe(a.name,f.Module_0_has_no_default_export,uo(n)),I=(p=n.exports)==null?void 0:p.get("__export");if(I){const w=(m=I.declarations)==null?void 0:m.find(U=>{var H,Q;return!!(fc(U)&&U.moduleSpecifier&&((Q=(H=du(U,U.moduleSpecifier))==null?void 0:H.exports)!=null&&Q.has("default")))});w&&pa(b,Ar(w,f.export_Asterisk_does_not_re_export_a_default))}}}function kg(n,a){const c=n.parent.parent.moduleSpecifier,p=du(n,c),m=Wg(p,c,a,!1);return Zf(n,p,m,!1),m}function eT(n,a){const c=n.parent.moduleSpecifier,p=c&&du(n,c),m=c&&Wg(p,c,a,!1);return Zf(n,p,m,!1),m}function dd(n,a){if(n===ne&&a===ne)return ne;if(n.flags&790504)return n;const c=ja(n.flags|a.flags,n.escapedName);return C.assert(n.declarations||a.declarations),c.declarations=lS(so(n.declarations,a.declarations),eb),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 fE(n,a,c,p){var m;if(n.flags&1536){const b=qp(n).get(a),I=hc(b,p),w=(m=Jr(n).typeOnlyExportStarMap)==null?void 0:m.get(a);return Zf(c,b,I,!1,w,a),I}}function wg(n,a){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return hc(Ea(Ji(c),a))}}function k0(n,a,c=!1){var p;const m=yG(n)||n.moduleSpecifier,b=du(n,m),I=!qr(a)&&a.propertyName||a.name;if(!He(I)&&I.kind!==11)return;const w=vS(I),H=Wg(b,m,!1,w==="default"&&ye);if(H&&(w||I.kind===11)){if(V2(b))return b;let Q;b&&b.exports&&b.exports.get("export=")?Q=Ea(_r(H),w,!0):Q=wg(H,w),Q=hc(Q,c);let Ie=fE(H,w,a,c);if(Ie===void 0&&w==="default"){const Ze=(p=b.declarations)==null?void 0:p.find(Yi);(Qb(m,b)||L0(Ze,b,c,m))&&(Ie=Tp(b,c)||hc(b,c))}const Te=Ie&&Q&&Ie!==Q?dd(Q,Ie):Ie||Q;return cb(a)&&Qb(m,b)&&w!=="default"?Qe(I,f.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,DR[j]):Te||tA(b,H,n,I),Te}}function tA(n,a,c,p){var m;const b=Cv(n,c),I=ws(p),w=He(p)?lge(p,a):void 0;if(w!==void 0){const U=uo(w),H=Qe(p,f._0_has_no_exported_member_named_1_Did_you_mean_2,b,I,U);w.valueDeclaration&&pa(H,Ar(w.valueDeclaration,f._0_is_declared_here,U))}else(m=n.exports)!=null&&m.has("default")?Qe(p,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,b,I):Og(c,p,I,n,b)}function Og(n,a,c,p,m){var b,I;const w=(I=(b=ni(p.valueDeclaration,D_))==null?void 0:b.locals)==null?void 0:I.get(vS(a)),U=p.exports;if(w){const H=U?.get("export=");if(H)me(H,w)?RC(n,a,c,m):Qe(a,f.Module_0_has_no_exported_member_1,m,c);else{const Q=U?hn(che(U),Te=>!!me(Te,w)):void 0,Ie=Q?Qe(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,m,c,uo(Q)):Qe(a,f.Module_0_declares_1_locally_but_it_is_not_exported,m,c);w.declarations&&pa(Ie,...Vt(w.declarations,(Te,Ze)=>Ar(Te,Ze===0?f._0_is_declared_here:f.and_here,c)))}}else Qe(a,f.Module_0_has_no_exported_member_1,m,c)}function RC(n,a,c,p){if(j>=5){const m=$h(O)?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,m,c)}else if(Ir(n)){const m=$h(O)?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,m,c)}else{const m=$h(O)?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,m,c,c,p)}}function Lx(n,a){if(Su(n)&&N_(n.propertyName||n.name)){const I=Xm(n),w=I&&du(n,I);if(w)return Zb(w,n,a)}const c=Ha(n)?Jh(n):n.parent.parent.parent,p=kx(c),m=k0(c,p||n,a),b=n.propertyName||n.name;return p&&m&&He(b)?hc(Ea(_r(m),b.escapedText),a):(Zf(n,void 0,m,!1),m)}function kx(n){if(yi(n)&&n.initializer&&qr(n.initializer))return n.initializer}function nL(n,a){if(ah(n.parent)){const c=Tp(n.parent.symbol,a);return Zf(n,void 0,c,!1),c}}function wx(n,a,c){const p=n.propertyName||n.name;if(N_(p)){const b=Xm(n),I=b&&du(n,b);if(I)return Zb(I,n,!!c)}const m=n.parent.parent.moduleSpecifier?k0(n.parent.parent,n,c):p.kind===11?void 0:Vl(p,a,!1,c);return Zf(n,void 0,m,!1),m}function w0(n,a){const c=ll(n)?n.expression:n.right,p=My(c,a);return Zf(n,void 0,p,!1),p}function My(n,a){if(uc(n))return jl(n).symbol;if(!Nu(n)&&!Ds(n))return;const c=Vl(n,901119,!0,a);return c||(jl(n),Vr(n).resolvedSymbol)}function DC(n,a){if(Nr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return My(n.parent.right,a)}function O0(n,a=!1){switch(n.kind){case 272:case 261:return Mx(n,a);case 274:return Dv(n,a);case 275:return kg(n,a);case 281:return eT(n,a);case 277:case 209:return Lx(n,a);case 282:return wx(n,901119,a);case 278:case 227:return w0(n,a);case 271:return nL(n,a);case 305:return Vl(n.name,901119,!0,a);case 304:return My(n.initializer,a);case 213:case 212:return DC(n,a);default:return C.fail()}}function nA(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function hc(n,a){return!a&&nA(n)?ud(n):n}function ud(n){C.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Jr(n);if(a.aliasTarget)a.aliasTarget===Fe&&(a.aliasTarget=ne);else{a.aliasTarget=Fe;const c=cp(n);if(!c)return C.fail();const p=O0(c);a.aliasTarget===Fe?a.aliasTarget=p||ne:Qe(c,f.Circular_definition_of_import_alias_0,uo(n))}return a.aliasTarget}function Ox(n){if(Jr(n).aliasTarget!==Fe)return ud(n)}function dp(n,a,c){const p=a&&Ah(n),m=p&&fc(p),b=p&&(m?du(p.moduleSpecifier,p.moduleSpecifier,!0):ud(p.symbol)),I=m&&b?__(b):void 0;let w=c?0:n.flags,U;for(;n.flags&2097152;){const H=Et(ud(n));if(!m&&H===b||I?.get(H.escapedName)===H)break;if(H===ne)return-1;if(H===n||U?.has(H))break;H.flags&2097152&&(U?U.add(H):U=new Set([n,H])),w|=H.flags,n=H}return w}function Zf(n,a,c,p,m,b){if(!n||qr(n))return!1;const I=Wr(n);if($y(n)){const U=Jr(I);return U.typeOnlyDeclaration=n,!0}if(m){const U=Jr(I);return U.typeOnlyDeclaration=m,I.escapedName!==b&&(U.typeOnlyExportStarName=b),!0}const w=Jr(I);return mE(w,a,p)||mE(w,c,p)}function mE(n,a,c){var p;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const m=((p=a.exports)==null?void 0:p.get("export="))??a,b=m.declarations&&hn(m.declarations,$y);n.typeOnlyDeclaration=b??Jr(m).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Ah(n,a){var c;if(!(n.flags&2097152))return;const p=Jr(n);if(p.typeOnlyDeclaration===void 0){p.typeOnlyDeclaration=!1;const m=hc(n);Zf((c=n.declarations)==null?void 0:c[0],cp(n)&&qY(n),m,!0)}if(a===void 0)return p.typeOnlyDeclaration||void 0;if(p.typeOnlyDeclaration){const m=p.typeOnlyDeclaration.kind===279?hc(__(p.typeOnlyDeclaration.symbol.parent).get(p.typeOnlyExportStarName||n.escapedName)):ud(p.typeOnlyDeclaration.symbol);return dp(m)&a?p.typeOnlyDeclaration:void 0}}function tT(n,a){return n.kind===80&&dM(n)&&(n=n.parent),n.kind===80||n.parent.kind===167?Vl(n,1920,!1,a):(C.assert(n.parent.kind===272),Vl(n,901119,!1,a))}function Cv(n,a){return n.parent?Cv(n.parent,a)+"."+uo(n):uo(n,a,void 0,36)}function Wx(n){for(;Lu(n.parent);)n=n.parent;return n}function rL(n){let a=Pu(n),c=_t(a,a,111551,void 0,!0);if(c){for(;Lu(a.parent);){const p=_r(c);if(c=Ea(p,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Vl(n,a,c,p,m){if(Wl(n))return;const b=1920|(Ir(n)?a&111551:0);let I;if(n.kind===80){const w=a===b||Os(n)?f.Cannot_find_namespace_0:$8e(Pu(n)),U=Ir(n)&&!Os(n)?CC(n,a):void 0;if(I=os(_t(m||n,n,a,c||U?void 0:w,!0,!1)),!I)return os(U)}else if(n.kind===167||n.kind===212){const w=n.kind===167?n.left:n.expression,U=n.kind===167?n.right:n.name;let H=Vl(w,b,c,!1,m);if(!H||Wl(U))return;if(H===ne)return H;if(H.valueDeclaration&&Ir(H.valueDeclaration)&&ru(O)!==100&&yi(H.valueDeclaration)&&H.valueDeclaration.initializer&&J6e(H.valueDeclaration.initializer)){const Q=H.valueDeclaration.initializer.arguments[0],Ie=du(Q,Q);if(Ie){const Te=Tp(Ie);Te&&(H=Te)}}if(I=os(Sd(qp(H),U.escapedText,a)),!I&&H.flags&2097152&&(I=os(Sd(qp(ud(H)),U.escapedText,a))),!I){if(!c){const Q=Cv(H),Ie=ws(U),Te=lge(U,H);if(Te){Qe(U,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,Ie,uo(Te));return}const Ze=Lu(n)&&Wx(n);if(Jt&&a&788968&&Ze&&!bD(Ze.parent)&&rL(Ze)){Qe(Ze,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Mp(Ze));return}if(a&1920&&Lu(n.parent)){const Dt=os(Sd(qp(H),U.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,uo(Dt),Gi(n.parent.right.escapedText));return}}Qe(U,f.Namespace_0_has_no_exported_member_1,Q,Ie)}return}}else C.assertNever(n,"Unknown entity name kind.");return!Os(n)&&Nu(n)&&(I.flags&2097152||n.parent.kind===278)&&Zf(DG(n),I,void 0,!0),I.flags&a||p?I:ud(I)}function CC(n,a){if(QX(n.parent)){const c=rA(n.parent);if(c)return _t(c,n,a,void 0,!0)}}function rA(n){if(Dn(n,m=>BR(m)||m.flags&16777216?hm(m):"quit"))return;const c=AS(n);if(c&&od(c)&&ck(c.expression)){const m=Wr(c.expression.left);if(m)return hE(m)}if(c&&Us(c)&&ck(c.parent)&&od(c.parent.parent)){const m=Wr(c.parent.left);if(m)return hE(m)}if(c&&(mm(c)||Nc(c))&&Nr(c.parent.parent)&&ac(c.parent.parent)===6){const m=Wr(c.parent.parent.left);if(m)return hE(m)}const p=BT(n);if(p&&Yo(p)){const m=Wr(p);return m&&m.valueDeclaration}}function hE(n){const a=n.parent.valueDeclaration;return a?(KN(a)?fI(a):$E(a)?XN(a):void 0)||a:void 0}function Fx(n){const a=n.valueDeclaration;if(!a||!Ir(a)||n.flags&524288||FT(a,!1))return;const c=yi(a)?XN(a):fI(a);if(c){const p=If(c);if(p)return yge(p,n)}}function du(n,a,c){const m=ru(O)===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 bp(n,a,c?void 0:m,c)}function bp(n,a,c,p=!1,m=!1){return ds(a)?iA(n,a.text,c,p?void 0:a,m):void 0}function iA(n,a,c,p,m=!1){var b,I,w,U,H,Q,Ie,Te,Ze,Tt,Dt,$t;if(p&&po(a,"@types/")){const zi=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ko=pN(a,"@types/");Qe(p,zi,Ko,a)}const Tn=YOe(a,!0);if(Tn)return Tn;const nr=Wn(n),yr=ds(n)?n:((b=pc(n)?n:n.parent&&pc(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:b.name)||((I=ry(n)?n:void 0)==null?void 0:I.argument.literal)||(yi(n)&&n.initializer&&Zu(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((w=Dn(n,Qu))==null?void 0:w.arguments[0])||((U=Dn(n,Rp(vl,o_,fc)))==null?void 0:U.moduleSpecifier)||((H=Dn(n,WT))==null?void 0:H.moduleReference.expression),Sn=yr&&ds(yr)?e.getModeForUsageLocation(nr,yr):e.getDefaultResolutionModeForFile(nr),vn=ru(O),Sr=(Q=e.getResolvedModule(nr,a,Sn))==null?void 0:Q.resolvedModule,fi=p&&Sr&&fH(O,Sr,nr),oo=Sr&&(!fi||fi===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Sr.resolvedFileName);if(oo){if(fi&&Qe(p,fi,a,Sr.resolvedFileName),Sr.resolvedUsingTsExtension&&ad(a)){const zi=((Ie=Dn(n,vl))==null?void 0:Ie.importClause)||Dn(n,Rp(zc,fc));(p&&zi&&!zi.isTypeOnly||Dn(n,Qu))&&Qe(p,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,ii(C.checkDefined(m6(a))))}else if(Sr.resolvedUsingTsExtension&&!GD(O,nr.fileName)){const zi=((Te=Dn(n,vl))==null?void 0:Te.importClause)||Dn(n,Rp(zc,fc));if(p&&!(zi?.isTypeOnly||Dn(n,e_))){const Ko=C.checkDefined(m6(a));Qe(p,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ko)}}else if(O.rewriteRelativeImportExtensions&&!(n.flags&33554432)&&!ad(a)&&!ry(n)&&!zee(n)){const zi=uk(a,O);if(!Sr.resolvedUsingTsExtension&&zi)Qe(p,f.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,NR(To(nr.fileName,e.getCurrentDirectory()),Sr.resolvedFileName,ay(e)));else if(Sr.resolvedUsingTsExtension&&!zi&&RS(oo,e))Qe(p,f.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,ZA(a));else if(Sr.resolvedUsingTsExtension&&zi){const Ko=(Ze=e.getRedirectFromSourceFile(oo.path))==null?void 0:Ze.resolvedRef;if(Ko){const ms=!e.useCaseSensitiveFileNames(),fo=e.getCommonSourceDirectory(),dl=L1(Ko.commandLine,ms),Xl=cf(fo,dl,ms),fu=cf(O.outDir||fo,Ko.commandLine.options.outDir||dl,ms);Xl!==fu&&Qe(p,f.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(oo.symbol){if(p&&Sr.isExternalLibraryImport&&!bM(Sr.extension)&&W0(!1,p,nr,Sn,Sr,a),p&&(j===100||j===101)){const zi=nr.impliedNodeFormat===1&&!Dn(n,Qu)||!!Dn(n,zc),Ko=Dn(n,ms=>e_(ms)||fc(ms)||vl(ms)||o_(ms));if(zi&&oo.impliedNodeFormat===99&&!vre(Ko))if(Dn(n,zc))Qe(p,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 ms;const fo=Sg(nr.fileName);(fo===".ts"||fo===".js"||fo===".tsx"||fo===".jsx")&&(ms=X9(nr));const dl=Ko?.kind===273&&((Tt=Ko.importClause)!=null&&Tt.isTypeOnly)?f.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:Ko?.kind===206?f.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: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;ns.add(hg(Wn(p),p,qo(ms,dl,a)))}}return os(oo.symbol)}p&&c&&!zV(p)&&Qe(p,f.File_0_is_not_a_module,oo.fileName);return}if(op){const zi=WB(op,Ko=>Ko.pattern,a);if(zi){const Ko=ze&&ze.get(a);return os(Ko||zi.symbol)}}if(!p)return;if(Sr&&!bM(Sr.extension)&&fi===void 0||fi===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(m){const zi=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Qe(p,zi,a,Sr.resolvedFileName)}else W0(ve&&!!c,p,nr,Sn,Sr,a);return}if(c){if(Sr){const zi=e.getRedirectFromSourceFile(Sr.resolvedFileName);if(zi?.outputDts){Qe(p,f.Output_file_0_has_not_been_built_from_source_file_1,zi.outputDts,Sr.resolvedFileName);return}}if(fi)Qe(p,fi,a,Sr.resolvedFileName);else{const zi=Zp(a)&&!CR(a),Ko=vn===3||vn===99;if(!PS(O)&&El(a,".json")&&vn!==1&&A6(O))Qe(p,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Sn===99&&Ko&&zi){const ms=To(a,ci(nr.path)),fo=(Dt=Au.find(([dl,Xl])=>e.fileExists(ms+dl)))==null?void 0:Dt[1];fo?Qe(p,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+fo):Qe(p,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(($t=e.getResolvedModule(nr,a,Sn))!=null&&$t.alternateResult){const ms=bF(nr,e,a,Sn,a);Jm(!0,p,qo(ms,c,a))}else Qe(p,c,a)}}return;function ii(zi){const Ko=jk(a,zi);if(Fk(j)||Sn===99){const ms=ad(a)&&GD(O);return Ko+(zi===".mts"||zi===".d.mts"?ms?".mts":".mjs":zi===".cts"||zi===".d.mts"?ms?".cts":".cjs":ms?".ts":".js")}return Ko}}function W0(n,a,c,p,{packageId:m,resolvedFileName:b},I){if(zV(a))return;let w;!td(I)&&m&&(w=bF(c,e,I,p,m.name)),Jm(n,a,qo(w,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,I,b))}function Tp(n,a){if(n?.exports){const c=hc(n.exports.get("export="),a),p=oA(os(c),os(n));return os(p)||n}}function oA(n,a){if(!n||n===ne||n===a||a.exports.size===1||n.flags&2097152)return n;const c=Jr(n);if(c.cjsExportMerged)return c.cjsExportMerged;const p=n.flags&33554432?n:dE(n);return p.flags=p.flags|512,p.exports===void 0&&(p.exports=da()),a.exports.forEach((m,b)=>{b!=="export="&&p.exports.set(b,p.exports.has(b)?$f(p.exports.get(b),m):m)}),p===n&&(Jr(p).resolvedExports=void 0,Jr(p).resolvedMembers=void 0),Jr(p).cjsExportMerged=p,c.cjsExportMerged=p}function Wg(n,a,c,p){var m;const b=Tp(n,c);if(!c&&b){if(!p&&!(b.flags&1539)&&!al(b,308)){const U=j>=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,U),b}const I=a.parent,w=vl(I)&&QR(I);if(w||Qu(I)){const U=Qu(I)?I.arguments[0]:I.moduleSpecifier,H=_r(b),Q=H6e(H,b,n,U);if(Q)return aA(b,Q,I);const Ie=(m=n?.declarations)==null?void 0:m.find(Yi),Te=Cy(U);let Ze;if(w&&Ie&&102<=j&&j<=199&&Te===1&&e.getImpliedNodeFormatForEmit(Ie)===99&&(Ze=$b(b,"module.exports",w,c)))return!p&&!(b.flags&1539)&&Qe(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),$h(O)&&zx(H)?aA(Ze,H,I):Ze;const Tt=Ie&&h_(Te,e.getImpliedNodeFormatForEmit(Ie));if(($h(O)||Tt)&&(zx(H)||Ea(H,"default",!0)||Tt)){const Dt=H.flags&3670016?q6e(H,b,n,U):vge(b,b.parent);return aA(b,Dt,I)}}}return b}function zx(n){return yt(Oz(n,0))||yt(Oz(n,1))}function aA(n,a,c){const p=ja(n.flags,n.escapedName);p.declarations=n.declarations?n.declarations.slice():[],p.parent=n.parent,p.links.target=n,p.links.originatingImport=c,n.valueDeclaration&&(p.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(p.constEnumOnlyModule=!0),n.members&&(p.members=new Map(n.members)),n.exports&&(p.exports=new Map(n.exports));const m=Dh(a);return p.links.type=bl(p,m.members,ae,ae,m.indexInfos),p}function Ym(n){return n.exports.get("export=")!==void 0}function Bx(n){return che(__(n))}function NC(n){const a=Bx(n),c=Tp(n);if(c!==n){const p=_r(c);Nv(p)&&Xr(a,bs(p))}return a}function Gx(n,a){__(n).forEach((m,b)=>{B0(b)||a(m,b)});const p=Tp(n);if(p!==n){const m=_r(p);Nv(m)&&slt(m,(b,I)=>{a(b,I)})}}function sA(n,a){const c=__(a);if(c)return c.get(n)}function Vx(n,a){const c=sA(n,a);if(c)return c;const p=Tp(a);if(p===a)return;const m=_r(p);return Nv(m)?Ea(m,n):void 0}function Nv(n){return!(n.flags&402784252||Hr(n)&1||im(n)||Ka(n))}function qp(n){return n.flags&6256?Xme(n,"resolvedExports"):n.flags&1536?__(n):n.exports||k}function __(n){const a=Jr(n);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:p}=cA(n);a.resolvedExports=c,a.typeOnlyExportStarMap=p}return a.resolvedExports}function lA(n,a,c,p){a&&a.forEach((m,b)=>{if(b==="default")return;const I=n.get(b);if(!I)n.set(b,m),c&&p&&c.set(b,{specifierText:Al(p.moduleSpecifier)});else if(c&&p&&I&&hc(I)!==hc(m)){const w=c.get(b);w.exportsWithDuplicate?w.exportsWithDuplicate.push(p):w.exportsWithDuplicate=[p]}})}function cA(n){const a=[];let c;const p=new Set;n=Tp(n);const m=b(n)||k;return c&&p.forEach(I=>c.delete(I)),{exports:m,typeOnlyExportStarMap:c};function b(I,w,U){if(!U&&I?.exports&&I.exports.forEach((Ie,Te)=>p.add(Te)),!(I&&I.exports&&kf(a,I)))return;const H=new Map(I.exports),Q=I.exports.get("__export");if(Q){const Ie=da(),Te=new Map;if(Q.declarations)for(const Ze of Q.declarations){const Tt=du(Ze,Ze.moduleSpecifier),Dt=b(Tt,Ze,U||Ze.isTypeOnly);lA(Ie,Dt,Te,Ze)}Te.forEach(({exportsWithDuplicate:Ze},Tt)=>{if(!(Tt==="export="||!(Ze&&Ze.length)||H.has(Tt)))for(const Dt of Ze)ns.add(Ar(Dt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Te.get(Tt).specifierText,Gi(Tt)))}),lA(H,Ie)}return w?.isTypeOnly&&(c??(c=new Map),H.forEach((Ie,Te)=>c.set(Te,w))),H}}function os(n){let a;return n&&n.mergeId&&(a=q1[n.mergeId])?a:n}function Wr(n){return os(n.symbol&&BX(n.symbol))}function If(n){return ah(n)?Wr(n):void 0}function Yc(n){return os(n.parent&&BX(n.parent))}function F0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===220||((c=n.valueDeclaration)==null?void 0:c.kind)===219)&&If(n.valueDeclaration.parent)||n}function dA(n,a){const c=Wn(a),p=ls(c),m=Jr(n);let b;if(m.extendedContainersByFile&&(b=m.extendedContainersByFile.get(p)))return b;if(c&&c.imports){for(const w of c.imports){if(Os(w))continue;const U=du(a,w,!0);!U||!D(U,n)||(b=Bn(b,U))}if(et(b))return(m.extendedContainersByFile||(m.extendedContainersByFile=new Map)).set(p,b),b}if(m.extendedContainers)return m.extendedContainers;const I=e.getSourceFiles();for(const w of I){if(!Bc(w))continue;const U=Wr(w);D(U,n)&&(b=Bn(b,U))}return m.extendedContainers=b||ae}function _E(n,a,c){const p=Yc(n);if(p&&!(n.flags&262144))return U(p);const m=Ui(n.declarations,Q=>{if(!gu(Q)&&Q.parent){if(yE(Q.parent))return Wr(Q.parent);if(t_(Q.parent)&&Q.parent.parent&&Tp(Wr(Q.parent.parent))===n)return Wr(Q.parent.parent)}if(uc(Q)&&Nr(Q.parent)&&Q.parent.operatorToken.kind===64&&Ks(Q.parent.left)&&Ds(Q.parent.left.expression))return gg(Q.parent.left)||n1(Q.parent.left.expression)?Wr(Wn(Q)):(jl(Q.parent.left.expression),Vr(Q.parent.left.expression).resolvedSymbol)});if(!et(m))return;const b=Ui(m,Q=>D(Q,n)?Q:void 0);let I=[],w=[];for(const Q of b){const[Ie,...Te]=U(Q);I=Bn(I,Ie),w=Xr(w,Te)}return so(I,w);function U(Q){const Ie=Ui(Q.declarations,H),Te=a&&dA(n,a),Ze=z0(Q,c);if(a&&Q.flags&$m(c)&&Pv(Q,a,1920,!1))return Bn(so(so([Q],Ie),Te),Ze);const Tt=!(Q.flags&$m(c))&&Q.flags&788968&&qs(Q).flags&524288&&c===111551?Mv(a,$t=>Hc($t,Tn=>{if(Tn.flags&$m(c)&&_r(Tn)===qs(Q))return Tn})):void 0;let Dt=Tt?[Tt,...Ie,Q]:[...Ie,Q];return Dt=Bn(Dt,Ze),Dt=Xr(Dt,Te),Dt}function H(Q){return p&&uA(Q,p)}}function z0(n,a){const c=!!et(n.declarations)&&$a(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(Wa(c)&&c===c.parent.initializer||ku(c)&&c===c.parent.type))return Wr(c.parent)}function uA(n,a){const c=fA(n),p=c&&c.exports&&c.exports.get("export=");return p&&me(p,a)?c:void 0}function D(n,a){if(n===Yc(a))return a;const c=n.exports&&n.exports.get("export=");if(c&&me(c,a))return n;const p=qp(n),m=p.get(a.escapedName);return m&&me(m,a)?m:Hc(p,b=>{if(me(b,a))return b})}function me(n,a){if(os(hc(os(n)))===os(hc(os(a))))return n}function Et(n){return os(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function An(n,a){return!!(n.flags&111551||n.flags&2097152&&dp(n,!a)&111551)}function vi(n){var a;const c=new l(ir,n);return d++,c.id=d,(a=xr)==null||a.recordType(c),c}function wi(n,a){const c=vi(n);return c.symbol=a,c}function Ao(n){return new l(ir,n)}function Li(n,a,c=0,p){Ja(a,p);const m=vi(n);return m.intrinsicName=a,m.debugIntrinsicName=p,m.objectFlags=c|524288|2097152|33554432|16777216,m}function Ja(n,a){const c=`${n},${a??""}`;Lt.has(c)&&C.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),Lt.add(c)}function _c(n,a){const c=wi(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 Kd(){return pi(Co(joe.keys(),Sp))}function Gu(n){return wi(262144,n)}function B0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function Vu(n){let a;return n.forEach((c,p)=>{nT(c,p)&&(a||(a=[])).push(c)}),a||ae}function nT(n,a){return!B0(a)&&An(n)}function jx(n){const a=Vu(n),c=qX(n);return c?so(a,[c]):a}function Nm(n,a,c,p,m){const b=n;return b.members=a,b.properties=ae,b.callSignatures=c,b.constructSignatures=p,b.indexInfos=m,a!==k&&(b.properties=Vu(a)),b}function bl(n,a,c,p,m){return Nm(_c(16,n),a,c,p,m)}function pA(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=Un(n.constructSignatures,p=>!(p.flags&4));if(n.constructSignatures===a)return n;const c=bl(n.symbol,n.members,n.callSignatures,yt(a)?a:ae,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function Mv(n,a){let c;for(let p=n;p;p=p.parent){if(D_(p)&&p.locals&&!Zy(p)&&(c=a(p.locals,void 0,!0,p)))return c;switch(p.kind){case 308:if(!Pp(p))break;case 268:const m=Wr(p);if(c=a(m?.exports||k,void 0,!0,p))return c;break;case 264:case 232:case 265:let b;if((Wr(p).members||k).forEach((I,w)=>{I.flags&788968&&(b||(b=da())).set(w,I)}),b&&(c=a(b,void 0,!1,p)))return c;break}}return a(lt,void 0,!0)}function $m(n){return n===111551?111551:1920}function Pv(n,a,c,p,m=new Map){if(!(n&&!Iz(n)))return;const b=Jr(n),I=b.accessibleChainCache||(b.accessibleChainCache=new Map),w=Mv(a,(Tn,nr,yr,Sn)=>Sn),U=`${p?0:1}|${w?ls(w):0}|${c}`;if(I.has(U))return I.get(U);const H=Ta(n);let Q=m.get(H);Q||m.set(H,Q=[]);const Ie=Mv(a,Te);return I.set(U,Ie),Ie;function Te(Tn,nr,yr){if(!kf(Q,Tn))return;const Sn=Dt(Tn,nr,yr);return Q.pop(),Sn}function Ze(Tn,nr){return!gE(Tn,a,nr)||!!Pv(Tn.parent,a,$m(nr),p,m)}function Tt(Tn,nr,yr){return(n===(nr||Tn)||os(n)===os(nr||Tn))&&!yt(Tn.declarations,yE)&&(yr||Ze(os(Tn),c))}function Dt(Tn,nr,yr){return Tt(Tn.get(n.escapedName),void 0,nr)?[n]:Hc(Tn,vn=>{if(vn.flags&2097152&&vn.escapedName!=="export="&&vn.escapedName!=="default"&&!(y6(vn)&&a&&Bc(Wn(a)))&&(!p||yt(vn.declarations,WT))&&(!yr||!yt(vn.declarations,Vte))&&(nr||!al(vn,282))){const Sr=ud(vn),fi=$t(vn,Sr,nr);if(fi)return fi}if(vn.escapedName===n.escapedName&&vn.exportSymbol&&Tt(os(vn.exportSymbol),void 0,nr))return[n]})||(Tn===lt?$t(Re,Re,nr):void 0)}function $t(Tn,nr,yr){if(Tt(Tn,nr,yr))return[Tn];const Sn=qp(nr),vn=Sn&&Te(Sn,!0);if(vn&&Ze(Tn,$m(c)))return[Tn].concat(vn)}}function gE(n,a,c){let p=!1;return Mv(a,m=>{let b=os(m.get(n.escapedName));if(!b)return!1;if(b===n)return!0;const I=b.flags&2097152&&!al(b,282);return b=I?ud(b):b,(I?dp(b):b.flags)&c?(p=!0,!0):!1}),p}function Iz(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}function iL(n,a){return Hx(n,a,788968,!1,!0).accessibility===0}function Ux(n,a){return Hx(n,a,111551,!1,!0).accessibility===0}function oL(n,a,c){return Hx(n,a,c,!1,!1).accessibility===0}function dW(n,a,c,p,m,b){if(!et(n))return;let I,w=!1;for(const U of n){const H=Pv(U,a,p,!1);if(H){I=U;const Te=mA(H[0],m);if(Te)return Te}if(b&&yt(U.declarations,yE)){if(m){w=!0;continue}return{accessibility:0}}const Q=_E(U,a,p),Ie=dW(Q,a,c,c===U?$m(p):p,m,b);if(Ie)return Ie}if(w)return{accessibility:0};if(I)return{accessibility:1,errorSymbolName:uo(c,a,p),errorModuleName:I!==c?uo(I,a,1920):void 0}}function rT(n,a,c,p){return Hx(n,a,c,p,!0)}function Hx(n,a,c,p,m){if(n&&a){const b=dW([n],a,n,c,p,m);if(b)return b;const I=Ye(n.declarations,fA);if(I){const w=fA(a);if(I!==w)return{accessibility:2,errorSymbolName:uo(n,a,c),errorModuleName:uo(I),errorNode:Ir(a)?a:void 0}}return{accessibility:1,errorSymbolName:uo(n,a,c)}}return{accessibility:0}}function fA(n){const a=Dn(n,xz);return a&&Wr(a)}function xz(n){return gu(n)||n.kind===308&&Pp(n)}function yE(n){return IF(n)||n.kind===308&&Pp(n)}function mA(n,a){let c;if(!Vn(Un(n.declarations,b=>b.kind!==80),p))return;return{accessibility:0,aliasesToMakeVisible:c};function p(b){var I,w;if(!X_(b)){const U=Qf(b);if(U&&!di(U,32)&&X_(U.parent))return m(b,U);if(yi(b)&&sc(b.parent.parent)&&!di(b.parent.parent,32)&&X_(b.parent.parent.parent))return m(b,b.parent.parent);if(xF(b)&&!di(b,32)&&X_(b.parent))return m(b,b);if(Ha(b)){if(n.flags&2097152&&Ir(b)&&((I=b.parent)!=null&&I.parent)&&yi(b.parent.parent)&&((w=b.parent.parent.parent)!=null&&w.parent)&&sc(b.parent.parent.parent.parent)&&!di(b.parent.parent.parent.parent,32)&&b.parent.parent.parent.parent.parent&&X_(b.parent.parent.parent.parent.parent))return m(b,b.parent.parent.parent.parent);if(n.flags&2){const H=UE(b);if(H.kind===170)return!1;const Q=H.parent.parent;return Q.kind!==244?!1:di(Q,32)?!0:X_(Q.parent)?m(b,Q):!1}}return!1}return!0}function m(b,I){return a&&(Vr(b).isVisible=!0,c=$g(c,I)),!0}}function aL(n){let a;return n.parent.kind===187||n.parent.kind===234&&!Hh(n.parent)||n.parent.kind===168||n.parent.kind===183&&n.parent.parameterName===n?a=1160127:n.kind===167||n.kind===212||n.parent.kind===272||n.parent.kind===167&&n.parent.left===n||n.parent.kind===212&&n.parent.expression===n||n.parent.kind===213&&n.parent.expression===n?a=1920:a=788968,a}function qx(n,a,c=!0){const p=aL(n),m=Pu(n),b=_t(a,m.escapedText,p,void 0,!1);return b&&b.flags&262144&&p&788968?{accessibility:0}:!b&&Tb(m)&&rT(Wr(yu(m,!1,!1)),m,p,!1).accessibility===0?{accessibility:0}:b?mA(b,c)||{accessibility:1,errorSymbolName:Al(m),errorNode:m}:{accessibility:3,errorSymbolName:Al(m),errorNode:m}}function uo(n,a,c,p=4,m){let b=70221824,I=0;p&2&&(b|=128),p&1&&(b|=512),p&8&&(b|=16384),p&32&&(I|=4),p&16&&(I|=1);const w=p&4?be.symbolToNode:be.symbolToEntityName;return m?U(m).getText():VR(U);function U(H){const Q=w(n,c,a,b,I),Ie=a?.kind===308?zae():XS(),Te=a&&Wn(a);return Ie.writeNode(4,Q,Te,H),H}}function iT(n,a,c=0,p,m,b,I,w){return m?U(m).getText():VR(U);function U(H){let Q;c&262144?Q=p===1?186:185:Q=p===1?181:180;const Ie=be.signatureToSignatureDeclaration(n,Q,a,vE(c)|70221824|512,void 0,void 0,b,I,w),Te=YU(),Ze=a&&Wn(a);return Te.writeNode(4,Ie,Ze,GG(H)),H}}function ar(n,a,c=1064960,p=Ak(""),m,b,I){const w=!m&&O.noErrorTruncation||c&1,U=be.typeToTypeNode(n,a,vE(c)|70221824|(w?1:0),void 0,void 0,m,b,I);if(U===void 0)return C.fail("should always get typenode");const H=n!==Kt?XS():Fae(),Q=a&&Wn(a);H.writeNode(4,U,Q,p);const Ie=p.getText(),Te=m||(w?J9*2:FN*2);return Ie&&Ie.length>=Te?Ie.substr(0,Te-3)+"...":Ie}function sL(n,a){let c=PC(n.symbol)?ar(n,n.symbol.valueDeclaration):ar(n),p=PC(a.symbol)?ar(a,a.symbol.valueDeclaration):ar(a);return c===p&&(c=MC(n),p=MC(a)),[c,p]}function MC(n){return ar(n,void 0,64)}function PC(n){return n&&!!n.valueDeclaration&&St(n.valueDeclaration)&&!Cf(n.valueDeclaration)}function vE(n=0){return n&848330095}function uW(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===tm(n.symbol)||!!(n.flags&524288)&&!!(Hr(n)&16777216))}function hA(n){return Ji(n)}function Rz(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:_3e,isExpandoFunctionDeclaration:W3e,hasLateBindableName:OC,shouldRemoveDeclaration(we,se){return!(we.internalFlags&8&&Ds(se.name.expression)&&th(se.name).flags&1)},createRecoveryBoundary(we){return zi(we)},isDefinitelyReferenceToGlobalSymbolObject:q_,getAllAccessorDeclarations:dye,requiresAddingImplicitUndefined(we,se,on){var pn;switch(we.kind){case 173:case 172:case 349:se??(se=Wr(we));const Me=_r(se);return!!(se.flags&4&&se.flags&16777216&&PI(we)&&((pn=se.links)!=null&&pn.mappedType)&&Ldt(Me));case 170:case 342:return J5(we,on);default:C.assertNever(we)}},isOptionalParameter:bW,isUndefinedIdentifierExpression(we){return sm(we)===ce},isEntityNameVisible(we,se,on){return qx(se,we.enclosingDeclaration,on)},serializeExistingTypeNode(we,se,on){return pp(we,se,!!on)},serializeReturnTypeForSignature(we,se,on){const pn=we,Me=Df(se);on??(on=Wr(se));const qe=pn.enclosingSymbolTypes.get(Ta(on))??io(fs(Me),pn.mapper);return Oa(pn,Me,qe)},serializeTypeOfExpression(we,se){const on=we,pn=io($p(C3e(se)),on.mapper);return $t(pn,on)},serializeTypeOfDeclaration(we,se,on){var pn;const Me=we;on??(on=Wr(se));let qe=(pn=Me.enclosingSymbolTypes)==null?void 0:pn.get(Ta(on));return qe===void 0&&(qe=on.flags&98304&&se.kind===179?io(Ov(on),Me.mapper):on&&!(on.flags&133120)?io(Q0(_r(on)),Me.mapper):nt),se&&(to(se)||mf(se))&&J5(se,Me.enclosingDeclaration)&&(qe=fT(qe)),hr(on,Me,qe)},serializeNameOfParameter(we,se){return Hi(Wr(se),se,we)},serializeEntityName(we,se){const on=we,pn=sm(se,!0);if(pn&&Ux(pn,on.enclosingDeclaration))return lm(pn,on,1160127)},serializeTypeName(we,se,on,pn){return Qc(we,se,on,pn)},getJsDocPropertyOverride(we,se,on){const pn=we,Me=He(on.name)?on.name:on.name.right,qe=_n(a(pn,se),Me.escapedText);return qe&&on.typeExpression&&a(pn,on.typeExpression.type)!==qe?$t(qe,pn):void 0},enterNewScope(we,se){if(Yo(se)||pv(se)){const on=Df(se);return Ko(we,se,on.parameters,on.typeParameters)}else{const on=FS(se)?Whe(se):[j0(Wr(se.typeParameter))];return Ko(we,se,void 0,on)}},markNodeReuse(we,se,on){return c(we,se,on)},trackExistingEntityName(we,se){return Gs(se,we)},trackComputedName(we,se){vr(se,we.enclosingDeclaration,we)},getModuleSpecifierOverride(we,se,on){const pn=we;if(pn.bundled||pn.enclosingFile!==Wn(on)){let Me=on.text;const qe=Me,ct=Vr(se).resolvedSymbol,Gt=se.isTypeOf?111551:788968,sn=ct&&rT(ct,pn.enclosingDeclaration,Gt,!1).accessibility===0&&wo(ct,pn,Gt,!0)[0];if(sn&&sI(sn))Me=cc(sn,pn);else{const Ut=fye(se);Ut&&(Me=cc(Ut.symbol,pn))}if(Me.includes("/node_modules/")&&(pn.encounteredError=!0,pn.tracker.reportLikelyUnsafeImportRequiredError&&pn.tracker.reportLikelyUnsafeImportRequiredError(Me)),Me!==qe)return Me}},canReuseTypeNode(we,se){return mu(we,se)},canReuseTypeNodeAnnotation(we,se,on,pn,Me){var qe;const ct=we;if(ct.enclosingDeclaration===void 0)return!1;pn??(pn=Wr(se));let Gt=(qe=ct.enclosingSymbolTypes)==null?void 0:qe.get(Ta(pn));Gt===void 0&&(pn.flags&98304?Gt=se.kind===179?Ov(pn):pL(pn):a1(se)?Gt=fs(Df(se)):Gt=_r(pn));let sn=hA(on);return pr(sn)?!0:(Me&&sn&&(sn=uu(sn,!to(se))),!!sn&&gi(se,Gt,sn)&&Nn(on,Gt))}},typeToTypeNode:(we,se,on,pn,Me,qe,ct,Gt)=>H(se,on,pn,Me,qe,ct,sn=>$t(we,sn),Gt),typePredicateToTypePredicateNode:(we,se,on,pn,Me)=>H(se,on,pn,Me,void 0,void 0,qe=>fu(we,qe)),serializeTypeForDeclaration:(we,se,on,pn,Me,qe)=>H(on,pn,Me,qe,void 0,void 0,ct=>Ne.serializeTypeOfDeclaration(we,se,ct)),serializeReturnTypeForSignature:(we,se,on,pn,Me)=>H(se,on,pn,Me,void 0,void 0,qe=>Ne.serializeReturnTypeForSignature(we,Wr(we),qe)),serializeTypeForExpression:(we,se,on,pn,Me)=>H(se,on,pn,Me,void 0,void 0,qe=>Ne.serializeTypeOfExpression(we,qe)),indexInfoToIndexSignatureDeclaration:(we,se,on,pn,Me)=>H(se,on,pn,Me,void 0,void 0,qe=>oo(we,qe,void 0)),signatureToSignatureDeclaration:(we,se,on,pn,Me,qe,ct,Gt,sn)=>H(on,pn,Me,qe,ct,Gt,Ut=>ii(we,se,Ut),sn),symbolToEntityName:(we,se,on,pn,Me,qe)=>H(on,pn,Me,qe,void 0,void 0,ct=>rc(we,ct,se,!1)),symbolToExpression:(we,se,on,pn,Me,qe)=>H(on,pn,Me,qe,void 0,void 0,ct=>lm(we,ct,se)),symbolToTypeParameterDeclarations:(we,se,on,pn,Me)=>H(se,on,pn,Me,void 0,void 0,qe=>il(we,qe)),symbolToParameterDeclaration:(we,se,on,pn,Me)=>H(se,on,pn,Me,void 0,void 0,qe=>rr(we,qe)),typeParameterToDeclaration:(we,se,on,pn,Me,qe,ct,Gt)=>H(se,on,pn,Me,qe,ct,sn=>Xl(we,sn),Gt),symbolTableToDeclarationStatements:(we,se,on,pn,Me)=>H(se,on,pn,Me,void 0,void 0,qe=>rS(we,qe)),symbolToNode:(we,se,on,pn,Me,qe)=>H(on,pn,Me,qe,void 0,void 0,ct=>p(we,ct,se)),symbolToDeclarations:m};function a(we,se,on){const pn=hA(se);if(!we.mapper)return pn;const Me=io(pn,we.mapper);return on&&Me!==pn?void 0:Me}function c(we,se,on){if((!Os(se)||!(se.flags&16)||!we.enclosingFile||we.enclosingFile!==Wn(yl(se)))&&(se=L.cloneNode(se)),se===on||!on)return se;let pn=se.original;for(;pn&&pn!==on;)pn=pn.original;return pn||jr(se,on),we.enclosingFile&&we.enclosingFile===Wn(yl(on))?vt(se,on):se}function p(we,se,on){if(se.internalFlags&1){if(we.valueDeclaration){const Me=Oo(we.valueDeclaration);if(Me&&va(Me))return Me}const pn=Jr(we).nameType;if(pn&&pn.flags&9216)return se.enclosingDeclaration=pn.symbol.valueDeclaration,L.createComputedPropertyName(lm(pn.symbol,se,on))}return lm(we,se,on)}function m(we,se,on,pn,Me,qe){const ct=H(void 0,on,void 0,void 0,pn,Me,Gt=>U(we,Gt),qe);return Ui(ct,Gt=>{switch(Gt.kind){case 264:return b(Gt,we);case 267:return I(Gt,QT,we);case 265:return w(Gt,we,se);case 268:return I(Gt,pc,we);default:return}})}function b(we,se){const on=Un(se.declarations,ui),pn=on&&on.length>0?on[0]:we,Me=Gd(pn)&-161;return uc(pn)&&(we=L.updateClassDeclaration(we,we.modifiers,void 0,we.typeParameters,we.heritageClauses,we.members)),L.replaceModifiers(we,Me)}function I(we,se,on){const pn=Un(on.declarations,se),Me=pn&&pn.length>0?pn[0]:we,qe=Gd(Me)&-161;return L.replaceModifiers(we,qe)}function w(we,se,on){if(on&64)return I(we,gd,se)}function U(we,se){const on=qs(we);se.typeStack.push(on.id),se.typeStack.push(-1);const pn=da([we]),Me=rS(pn,se);return se.typeStack.pop(),se.typeStack.pop(),Me}function H(we,se,on,pn,Me,qe,ct,Gt){const sn=pn?.trackSymbol?pn.moduleResolverHost:(on||0)&4?XUe(e):void 0;se=se||0;const Ut=Me||(se&1?J9:FN),un={enclosingDeclaration:we,enclosingFile:we&&Wn(we),flags:se,internalFlags:on||0,tracker:void 0,maxTruncationLength:Ut,maxExpansionDepth:qe??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!O.outFile&&!!we&&Pp(Wn(we)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};un.tracker=new Hoe(un,pn,sn);const Zn=ct(un);return un.truncating&&un.flags&1&&un.tracker.reportTruncationError(),Gt&&(Gt.canIncreaseExpansionDepth=un.out.canIncreaseExpansionDepth,Gt.truncated=un.out.truncated),un.encounteredError?void 0:Zn}function Q(we,se,on){const pn=Ta(se),Me=we.enclosingSymbolTypes.get(pn);return we.enclosingSymbolTypes.set(pn,on),qe;function qe(){Me?we.enclosingSymbolTypes.set(pn,Me):we.enclosingSymbolTypes.delete(pn)}}function Ie(we){const se=we.flags,on=we.internalFlags,pn=we.depth;return Me;function Me(){we.flags=se,we.internalFlags=on,we.depth=pn}}function Te(we){return we.maxExpansionDepth>=0&&Ze(we)}function Ze(we){return we.truncating?we.truncating:we.truncating=we.approximateLength>we.maxTruncationLength}function Tt(we,se){for(let on=0;on0)return we.flags&1048576?L.createUnionTypeNode(Yr):L.createIntersectionTypeNode(Yr);!se.encounteredError&&!(se.flags&262144)&&(se.encounteredError=!0);return}if(ct&48)return C.assert(!!(we.flags&524288)),fr(we);if(we.flags&4194304){const bn=we.type;se.approximateLength+=6;const Yr=$t(bn,se);return L.createTypeOperatorNode(143,Yr)}if(we.flags&134217728){const bn=we.texts,Yr=we.types,Fo=L.createTemplateHead(bn[0]),vo=L.createNodeArray(Vt(Yr,(Ya,hs)=>L.createTemplateLiteralTypeSpan($t(Ya,se),(hsGt(bn));if(we.flags&33554432){const bn=$t(we.baseType,se),Yr=VC(we)&&yhe("NoInfer",!1);return Yr?Ts(Yr,se,788968,[bn]):bn}return C.fail("Should be unreachable.");function Gt(bn){const Yr=$t(bn.checkType,se);if(se.approximateLength+=15,se.flags&4&&bn.root.isDistributive&&!(bn.checkType.flags&262144)){const No=Gu(ja(262144,"T")),Lc=Sl(No,se),kc=L.createTypeReferenceNode(Lc);se.approximateLength+=37;const Od=IA(bn.root.checkType,No,bn.mapper),hu=se.inferTypeParameters;se.inferTypeParameters=bn.root.inferTypeParameters;const Hu=$t(io(bn.root.extendsType,Od),se);se.inferTypeParameters=hu;const Hy=sn(io(a(se,bn.root.node.trueType),Od)),oS=sn(io(a(se,bn.root.node.falseType),Od));return L.createConditionalTypeNode(Yr,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(kc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(Lc)),$t(bn.checkType,se),L.createConditionalTypeNode(kc,Hu,Hy,oS),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}const Fo=se.inferTypeParameters;se.inferTypeParameters=bn.root.inferTypeParameters;const vo=$t(bn.extendsType,se);se.inferTypeParameters=Fo;const Ya=sn(dT(bn)),hs=sn(uT(bn));return L.createConditionalTypeNode(Yr,vo,Ya,hs)}function sn(bn){var Yr,Fo,vo;return bn.flags&1048576?(Yr=se.visitedTypes)!=null&&Yr.has(pd(bn))?(se.flags&131072||(se.encounteredError=!0,(vo=(Fo=se.tracker)==null?void 0:Fo.reportCyclicStructureError)==null||vo.call(Fo)),nr(se)):Br(bn,Ya=>$t(Ya,se)):$t(bn,se)}function Ut(bn){return!!DW(bn)}function un(bn){return!!bn.target&&Ut(bn.target)&&!Ut(bn)}function Zn(bn){var Yr;C.assert(!!(bn.flags&524288));const Fo=bn.declaration.readonlyToken?L.createToken(bn.declaration.readonlyToken.kind):void 0,vo=bn.declaration.questionToken?L.createToken(bn.declaration.questionToken.kind):void 0;let Ya,hs,No=Gg(bn);const Lc=eh(bn),kc=!FC(bn)&&!(U0(bn).flags&2)&&se.flags&4&&!(Rf(bn).flags&262144&&((Yr=ju(Rf(bn)))==null?void 0:Yr.flags)&4194304);if(FC(bn)){if(un(bn)&&se.flags&4){const yT=Gu(ja(262144,"T")),mR=Sl(yT,se),VL=bn.target;hs=L.createTypeReferenceNode(mR),No=io(Gg(VL),a8e([eh(VL),U0(VL)],[Lc,yT]))}Ya=L.createTypeOperatorNode(143,hs||$t(U0(bn),se))}else if(kc){const yT=Gu(ja(262144,"T")),mR=Sl(yT,se);hs=L.createTypeReferenceNode(mR),Ya=hs}else Ya=$t(Rf(bn),se);const Od=fo(Lc,se,Ya),hu=Ko(se,bn.declaration,void 0,[j0(Wr(bn.declaration.typeParameter))]),Hu=bn.declaration.nameType?$t(Wv(bn),se):void 0,Hy=$t(Gy(No,!!(Q_(bn)&4)),se);hu();const oS=L.createMappedTypeNode(Fo,Od,Hu,vo,Hy,void 0);se.approximateLength+=10;const wE=Cr(oS,1);if(un(bn)&&se.flags&4){const yT=io(ju(a(se,bn.declaration.typeParameter.constraint.type))||Nt,bn.mapper);return L.createConditionalTypeNode($t(U0(bn),se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(hs.typeName),yT.flags&2?void 0:$t(yT,se))),wE,L.createKeywordTypeNode(146))}else if(kc)return L.createConditionalTypeNode($t(Rf(bn),se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(hs.typeName),L.createTypeOperatorNode(143,$t(U0(bn),se)))),wE,L.createKeywordTypeNode(146));return wE}function fr(bn,Yr=!1,Fo=!1){var vo,Ya;const hs=bn.id,No=bn.symbol;if(No){if(!!(Hr(bn)&8388608)){const Hu=bn.node;if(WS(Hu)&&a(se,Hu)===bn){const Hy=Ne.tryReuseExistingTypeNode(se,Hu);if(Hy)return Hy}return(vo=se.visitedTypes)!=null&&vo.has(hs)?nr(se):Br(bn,li)}const Od=uW(bn)?788968:111551;if(E_(No.valueDeclaration))return Ts(No,se,Od);if(!Fo&&(No.flags&32&&!Yr&&!hW(No)&&!(No.valueDeclaration&&ui(No.valueDeclaration)&&se.flags&2048&&(!Cc(No.valueDeclaration)||rT(No,se.enclosingDeclaration,Od,!1).accessibility!==0))||No.flags&896||Lc()))if(Dt(bn,se))se.depth+=1;else return Ts(No,se,Od);if((Ya=se.visitedTypes)!=null&&Ya.has(hs)){const hu=Dz(bn);return hu?Ts(hu,se,788968):nr(se)}else return Br(bn,li)}else return li(bn);function Lc(){var kc;const Od=!!(No.flags&8192)&&yt(No.declarations,Hu=>ua(Hu)&&!EOe(Oo(Hu))),hu=!!(No.flags&16)&&(No.parent||Ye(No.declarations,Hu=>Hu.parent.kind===308||Hu.parent.kind===269));if(Od||hu)return(!!(se.flags&4096)||((kc=se.visitedTypes)==null?void 0:kc.has(hs)))&&(!(se.flags&8)||Ux(No,se.enclosingDeclaration))}}function Br(bn,Yr){var Fo,vo,Ya;const hs=bn.id,No=Hr(bn)&16&&bn.symbol&&bn.symbol.flags&32,Lc=Hr(bn)&4&&bn.node?"N"+ls(bn.node):bn.flags&16777216?"N"+ls(bn.root.node):bn.symbol?(No?"+":"")+Ta(bn.symbol):void 0;se.visitedTypes||(se.visitedTypes=new Set),Lc&&!se.symbolDepth&&(se.symbolDepth=new Map);const kc=se.maxExpansionDepth>=0?void 0:se.enclosingDeclaration&&Vr(se.enclosingDeclaration),Od=`${pd(bn)}|${se.flags}|${se.internalFlags}`;kc&&(kc.serializedTypes||(kc.serializedTypes=new Map));const hu=(Fo=kc?.serializedTypes)==null?void 0:Fo.get(Od);if(hu)return(vo=hu.trackedSymbols)==null||vo.forEach(([rg,nN,Y5])=>se.tracker.trackSymbol(rg,nN,Y5)),hu.truncating&&(se.truncating=!0),se.approximateLength+=hu.addedLength,mR(hu.node);let Hu;if(Lc){if(Hu=se.symbolDepth.get(Lc)||0,Hu>10)return nr(se);se.symbolDepth.set(Lc,Hu+1)}se.visitedTypes.add(hs);const Hy=se.trackedSymbols;se.trackedSymbols=void 0;const oS=se.approximateLength,wE=Yr(bn),yT=se.approximateLength-oS;return!se.reportedDiagnostic&&!se.encounteredError&&((Ya=kc?.serializedTypes)==null||Ya.set(Od,{node:wE,truncating:se.truncating,addedLength:yT,trackedSymbols:se.trackedSymbols})),se.visitedTypes.delete(hs),Lc&&se.symbolDepth.set(Lc,Hu),se.trackedSymbols=Hy,wE;function mR(rg){return!Os(rg)&&jo(rg)===rg?rg:c(se,L.cloneNode(kn(rg,mR,void 0,VL,mR)),rg)}function VL(rg,nN,Y5,vye,bye){return rg&&rg.length===0?vt(L.createNodeArray(void 0,rg.hasTrailingComma),rg):Xn(rg,nN,Y5,vye,bye)}}function li(bn){if(up(bn)||bn.containsError)return Zn(bn);const Yr=Dh(bn);if(!Yr.properties.length&&!Yr.indexInfos.length){if(!Yr.callSignatures.length&&!Yr.constructSignatures.length)return se.approximateLength+=2,Cr(L.createTypeLiteralNode(void 0),1);if(Yr.callSignatures.length===1&&!Yr.constructSignatures.length){const No=Yr.callSignatures[0];return ii(No,185,se)}if(Yr.constructSignatures.length===1&&!Yr.callSignatures.length){const No=Yr.constructSignatures[0];return ii(No,186,se)}}const Fo=Un(Yr.constructSignatures,No=>!!(No.flags&4));if(yt(Fo)){const No=Vt(Fo,vA);return Yr.callSignatures.length+(Yr.constructSignatures.length-Fo.length)+Yr.indexInfos.length+(se.flags&2048?Io(Yr.properties,kc=>!(kc.flags&4194304)):et(Yr.properties))&&No.push(pA(Yr)),$t(Ma(No),se)}const vo=Ie(se);se.flags|=4194304;const Ya=ts(Yr);vo();const hs=L.createTypeLiteralNode(Ya);return se.approximateLength+=2,Cr(hs,se.flags&1024?0:1),hs}function mi(bn){let Yr=rl(bn);if(bn.target===es||bn.target===Va){if(se.flags&2){const Ya=$t(Yr[0],se);return L.createTypeReferenceNode(bn.target===es?"Array":"ReadonlyArray",[Ya])}const Fo=$t(Yr[0],se),vo=L.createArrayTypeNode(Fo);return bn.target===es?vo:L.createTypeOperatorNode(148,vo)}else if(bn.target.objectFlags&8){if(Yr=Zi(Yr,(Fo,vo)=>Gy(Fo,!!(bn.target.elementFlags[vo]&2))),Yr.length>0){const Fo=Bv(bn),vo=Sr(Yr.slice(0,Fo),se);if(vo){const{labeledElementDeclarations:Ya}=bn.target;for(let No=0;No0){let kc=0;if(bn.target.typeParameters&&(kc=Math.min(bn.target.typeParameters.length,Yr.length),(Jp(bn,tY(!1))||Jp(bn,SWe(!1))||Jp(bn,Bz(!1))||Jp(bn,TWe(!1)))&&(!bn.node||!Wp(bn.node)||!bn.node.typeArguments||bn.node.typeArguments.length0;){const Od=Yr[kc-1],hu=bn.target.typeParameters[kc-1],Hu=SE(hu);if(!Hu||!Hg(Od,Hu))break;kc--}hs=Sr(Yr.slice(vo,kc),se)}const No=Ie(se);se.flags|=16;const Lc=Ts(bn.symbol,se,788968,hs);return No(),Ya?sr(Ya,Lc):Lc}}}function sr(bn,Yr){if(e_(bn)){let Fo=bn.typeArguments,vo=bn.qualifier;vo&&(He(vo)?Fo!==m1(vo)&&(vo=lv(L.cloneNode(vo),Fo)):Fo!==m1(vo.right)&&(vo=L.updateQualifiedName(vo,vo.left,lv(L.cloneNode(vo.right),Fo)))),Fo=Yr.typeArguments;const Ya=xi(Yr);for(const hs of Ya)vo=vo?L.createQualifiedName(vo,hs):hs;return L.updateImportTypeNode(bn,bn.argument,bn.attributes,vo,Fo,bn.isTypeOf)}else{let Fo=bn.typeArguments,vo=bn.typeName;He(vo)?Fo!==m1(vo)&&(vo=lv(L.cloneNode(vo),Fo)):Fo!==m1(vo.right)&&(vo=L.updateQualifiedName(vo,vo.left,lv(L.cloneNode(vo.right),Fo))),Fo=Yr.typeArguments;const Ya=xi(Yr);for(const hs of Ya)vo=L.createQualifiedName(vo,hs);return L.updateTypeReferenceNode(bn,vo,Fo)}}function xi(bn){let Yr=bn.typeName;const Fo=[];for(;!He(Yr);)Fo.unshift(Yr.right),Yr=Yr.left;return Fo.unshift(Yr),Fo}function mo(bn,Yr,Fo){if(bn.components&&Vn(bn.components,Ya=>{var hs;return!!(Ya.name&&va(Ya.name)&&Ds(Ya.name.expression)&&Yr.enclosingDeclaration&&((hs=qx(Ya.name.expression,Yr.enclosingDeclaration,!1))==null?void 0:hs.accessibility)===0)})){const Ya=Un(bn.components,hs=>!OC(hs));return Vt(Ya,hs=>(vr(hs.name.expression,Yr.enclosingDeclaration,Yr),c(Yr,L.createPropertySignature(bn.isReadonly?[L.createModifier(148)]:void 0,hs.name,(Tu(hs)||Po(hs)||Gm(hs)||Ml(hs)||ug(hs)||Vh(hs))&&hs.questionToken?L.createToken(58):void 0,Fo||$t(_r(hs.symbol),Yr)),hs)))}return[oo(bn,Yr,Fo)]}function ts(bn){if(Ze(se))return se.out.truncated=!0,se.flags&1?[LM(L.createNotEmittedTypeElement(),3,"elided")]:[L.createPropertySignature(void 0,"...",void 0,void 0)];se.typeStack.push(-1);const Yr=[];for(const Ya of bn.callSignatures)Yr.push(ii(Ya,180,se));for(const Ya of bn.constructSignatures)Ya.flags&4||Yr.push(ii(Ya,181,se));for(const Ya of bn.indexInfos)Yr.push(...mo(Ya,se,bn.objectFlags&1024?nr(se):void 0));const Fo=bn.properties;if(!Fo)return se.typeStack.pop(),Yr;let vo=0;for(const Ya of Fo)if(!(iS(se)&&Ya.flags&4194304)){if(vo++,se.flags&2048){if(Ya.flags&4194304)continue;Vf(Ya)&6&&se.tracker.reportPrivateInBaseOfClassExpression&&se.tracker.reportPrivateInBaseOfClassExpression(Gi(Ya.escapedName))}if(Ze(se)&&vo+2!(li.flags&32768)),0);for(const li of Br){const mi=ii(li,174,se,{name:Gt,questionToken:sn});on.push(fr(mi,li.declaration||we.valueDeclaration))}if(Br.length||!sn)return}let Ut;yr(we,se)?Ut=nr(se):(Me&&(se.reverseMappedStack||(se.reverseMappedStack=[]),se.reverseMappedStack.push(we)),Ut=qe?Gr(se,void 0,qe,we):L.createKeywordTypeNode(133),Me&&se.reverseMappedStack.pop());const un=wh(we)?[L.createToken(148)]:void 0;un&&(se.approximateLength+=9);const Zn=L.createPropertySignature(un,Gt,sn,Ut);on.push(fr(Zn,we.valueDeclaration));function fr(Br,li){var mi;const sr=(mi=we.declarations)==null?void 0:mi.find(xi=>xi.kind===349);if(sr){const xi=x2(sr.comment);xi&&qT(Br,[{kind:3,text:`* * `+xi.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else li&&vn(se,Br,li);return Br}}function vn(we,se,on){return we.enclosingFile&&we.enclosingFile===Wn(on)?Dc(se,on):se}function Sr(we,se,on){if(yt(we)){if(Ze(se))if(se.out.truncated=!0,on){if(we.length>2)return[$t(we[0],se),se.flags&1?Rb(L.createKeywordTypeNode(133),3,`... ${we.length-2} more elided ...`):L.createTypeReferenceNode(`... ${we.length-2} more ...`,void 0),$t(we[we.length-1],se)]}else return[se.flags&1?Rb(L.createKeywordTypeNode(133),3,"elided"):L.createTypeReferenceNode("...",void 0)];const Me=!(se.flags&64)?cm():void 0,qe=[];let ct=0;for(const Gt of we){if(ct++,Ze(se)&&ct+2{if(!ure(sn,([Ut],[un])=>fi(Ut,un)))for(const[Ut,un]of sn)qe[un]=$t(Ut,se)}),Gt()}return qe}}function fi(we,se){return we===se||!!we.symbol&&we.symbol===se.symbol||!!we.aliasSymbol&&we.aliasSymbol===se.aliasSymbol}function oo(we,se,on){const pn=Ete(we)||"x",Me=$t(we.keyType,se),qe=L.createParameterDeclaration(void 0,void 0,pn,void 0,Me,void 0);return on||(on=$t(we.type||Ue,se)),!we.type&&!(se.flags&2097152)&&(se.encounteredError=!0),se.approximateLength+=pn.length+4,L.createIndexSignature(we.isReadonly?[L.createToken(148)]:void 0,[qe],on)}function ii(we,se,on,pn){var Me;let qe,ct;const Gt=NOe(we,!0)[0],sn=Ko(on,we.declaration,Gt,we.typeParameters,we.parameters,we.mapper);on.approximateLength+=3,on.flags&32&&we.target&&we.mapper&&we.target.typeParameters?ct=we.target.typeParameters.map(mi=>$t(io(mi,we.mapper),on)):qe=we.typeParameters&&we.typeParameters.map(mi=>Xl(mi,on));const Ut=Ie(on);on.flags&=-257;const un=(yt(Gt,mi=>mi!==Gt[Gt.length-1]&&!!(Fl(mi)&32768))?we.parameters:Gt).map(mi=>rr(mi,on,se===177)),Zn=on.flags&33554432?void 0:ms(we,on);Zn&&un.unshift(Zn),Ut();const fr=Pa(on,we);let Br=pn?.modifiers;if(se===186&&we.flags&4){const mi=Xh(Br);Br=L.createModifiersFromModifierFlags(mi|64)}const li=se===180?L.createCallSignature(qe,un,fr):se===181?L.createConstructSignature(qe,un,fr):se===174?L.createMethodSignature(Br,pn?.name??L.createIdentifier(""),pn?.questionToken,qe,un,fr):se===175?L.createMethodDeclaration(Br,void 0,pn?.name??L.createIdentifier(""),void 0,qe,un,fr,void 0):se===177?L.createConstructorDeclaration(Br,un,void 0):se===178?L.createGetAccessorDeclaration(Br,pn?.name??L.createIdentifier(""),un,fr,void 0):se===179?L.createSetAccessorDeclaration(Br,pn?.name??L.createIdentifier(""),un,void 0):se===182?L.createIndexSignature(Br,un,fr):se===318?L.createJSDocFunctionType(un,fr):se===185?L.createFunctionTypeNode(qe,un,fr??L.createTypeReferenceNode(L.createIdentifier(""))):se===186?L.createConstructorTypeNode(Br,qe,un,fr??L.createTypeReferenceNode(L.createIdentifier(""))):se===263?L.createFunctionDeclaration(Br,void 0,pn?.name?ma(pn.name,He):L.createIdentifier(""),qe,un,fr,void 0):se===219?L.createFunctionExpression(Br,void 0,pn?.name?ma(pn.name,He):L.createIdentifier(""),qe,un,fr,L.createBlock([])):se===220?L.createArrowFunction(Br,qe,un,fr,void 0,L.createBlock([])):C.assertNever(se);if(ct&&(li.typeArguments=L.createNodeArray(ct)),((Me=we.declaration)==null?void 0:Me.kind)===324&&we.declaration.parent.kind===340){const mi=Al(we.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(sr=>sr.replace(/^\s+/," ")).join(` `);Rb(li,3,mi,!0)}return sn?.(),li}function zi(we){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let se,on,pn=!1;const Me=we.tracker,qe=we.trackedSymbols;we.trackedSymbols=void 0;const ct=we.encounteredError;return we.tracker=new Hoe(we,{...Me.inner,reportCyclicStructureError(){Gt(()=>Me.reportCyclicStructureError())},reportInaccessibleThisError(){Gt(()=>Me.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){Gt(()=>Me.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(un){Gt(()=>Me.reportLikelyUnsafeImportRequiredError(un))},reportNonSerializableProperty(un){Gt(()=>Me.reportNonSerializableProperty(un))},reportPrivateInBaseOfClassExpression(un){Gt(()=>Me.reportPrivateInBaseOfClassExpression(un))},trackSymbol(un,Zn,fr){return(se??(se=[])).push([un,Zn,fr]),!1},moduleResolverHost:we.tracker.moduleResolverHost},we.tracker.moduleResolverHost),{startRecoveryScope:sn,finalizeBoundary:Ut,markError:Gt,hadError:()=>pn};function Gt(un){pn=!0,un&&(on??(on=[])).push(un)}function sn(){const un=se?.length??0,Zn=on?.length??0;return()=>{pn=!1,se&&(se.length=un),on&&(on.length=Zn)}}function Ut(){return we.tracker=Me,we.trackedSymbols=qe,we.encounteredError=ct,on?.forEach(un=>un()),pn?!1:(se?.forEach(([un,Zn,fr])=>we.tracker.trackSymbol(un,Zn,fr)),!0)}}function Ko(we,se,on,pn,Me,qe){const ct=p8(we);let Gt,sn;const Ut=we.enclosingDeclaration,un=we.mapper;if(qe&&(we.mapper=qe),we.enclosingDeclaration&&se){let Zn=function(fr,Br){C.assert(we.enclosingDeclaration);let li;Vr(we.enclosingDeclaration).fakeScopeForSignatureDeclaration===fr?li=we.enclosingDeclaration:we.enclosingDeclaration.parent&&Vr(we.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===fr&&(li=we.enclosingDeclaration.parent),C.assertOptionalNode(li,ea);const mi=li?.locals??da();let sr,xi;if(Br((mo,ts)=>{if(li){const bn=mi.get(mo);bn?xi=Bn(xi,{name:mo,oldSymbol:bn}):sr=Bn(sr,mo)}mi.set(mo,ts)}),li)return function(){Ye(sr,ts=>mi.delete(ts)),Ye(xi,ts=>mi.set(ts.name,ts.oldSymbol))};{const mo=L.createBlock(ae);Vr(mo).fakeScopeForSignatureDeclaration=fr,mo.locals=mi,ps(mo,we.enclosingDeclaration),we.enclosingDeclaration=mo}};Gt=yt(on)?Zn("params",fr=>{if(on)for(let Br=0;Br{if(to(sr)&&Qo(sr.name))return xi(sr.name),!0;return;function xi(ts){Ye(ts.elements,bn=>{switch(bn.kind){case 233:return;case 209:return mo(bn);default:return C.assertNever(bn)}})}function mo(ts){if(Qo(ts.name))return xi(ts.name);const bn=Wr(ts);fr(bn.escapedName,bn)}})||fr(li.escapedName,li)}}):void 0,we.flags&4&&yt(pn)&&(sn=Zn("typeParams",fr=>{for(const Br of pn??ae){const li=Sl(Br,we).escapedText;fr(li,Br.symbol)}}))}return()=>{Gt?.(),sn?.(),ct(),we.enclosingDeclaration=Ut,we.mapper=un}}function ms(we,se){if(we.thisParameter)return rr(we.thisParameter,se);if(we.declaration&&Ir(we.declaration)){const on=Z8(we.declaration);if(on&&on.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,$t(a(se,on.typeExpression),se))}}function fo(we,se,on){const pn=Ie(se);se.flags&=-513;const Me=L.createModifiersFromModifierFlags(r_e(we)),qe=Sl(we,se),ct=SE(we),Gt=ct&&$t(ct,se);return pn(),L.createTypeParameterDeclaration(Me,qe,on,Gt)}function dl(we,se,on){return!Tt(we,on)&&se&&a(on,se)===we&&Ne.tryReuseExistingTypeNode(on,se)||$t(we,on)}function Xl(we,se,on=ju(we)){const pn=on&&dl(on,XX(we),se);return fo(we,se,pn)}function fu(we,se){const on=we.kind===2||we.kind===3?L.createToken(131):void 0,pn=we.kind===1||we.kind===3?Cr(L.createIdentifier(we.parameterName),16777216):L.createThisTypeNode(),Me=we.type&&$t(we.type,se);return L.createTypePredicateNode(on,pn,Me)}function qn(we){const se=al(we,170);if(se)return se;if(!pg(we))return al(we,342)}function rr(we,se,on){const pn=qn(we),Me=_r(we),qe=Gr(se,pn,Me,we),ct=!(se.flags&8192)&&on&&pn&&Tm(pn)?Vt(fS(pn),L.cloneNode):void 0,sn=pn&&C_(pn)||Fl(we)&32768?L.createToken(26):void 0,Ut=Hi(we,pn,se),Zn=pn&&bW(pn)||Fl(we)&16384?L.createToken(58):void 0,fr=L.createParameterDeclaration(ct,sn,Ut,Zn,qe,void 0);return se.approximateLength+=Ol(we).length+3,fr}function Hi(we,se,on){return se&&se.name?se.name.kind===80?Cr(L.cloneNode(se.name),16777216):se.name.kind===167?Cr(L.cloneNode(se.name.right),16777216):pn(se.name):Ol(we);function pn(Me){return qe(Me);function qe(ct){on.tracker.canTrackSymbol&&va(ct)&&Kme(ct)&&vr(ct.expression,on.enclosingDeclaration,on);let Gt=kn(ct,qe,void 0,void 0,qe);return Ha(Gt)&&(Gt=L.updateBindingElement(Gt,Gt.dotDotDotToken,Gt.propertyName,Gt.name,void 0)),Os(Gt)||(Gt=L.cloneNode(Gt)),Cr(Gt,16777217)}}}function vr(we,se,on){if(!on.tracker.canTrackSymbol)return;const pn=Pu(we),Me=_t(se,pn.escapedText,1160127,void 0,!0);if(Me)on.tracker.trackSymbol(Me,se,111551);else{const qe=_t(pn,pn.escapedText,1160127,void 0,!0);qe&&on.tracker.trackSymbol(qe,se,111551)}}function wo(we,se,on,pn){return se.tracker.trackSymbol(we,se.enclosingDeclaration,on),ys(we,se,on,pn)}function ys(we,se,on,pn){let Me;return!(we.flags&262144)&&(se.enclosingDeclaration||se.flags&64)&&!(se.internalFlags&4)?(Me=C.checkDefined(ct(we,on,!0)),C.assert(Me&&Me.length>0)):Me=[we],Me;function ct(Gt,sn,Ut){let un=Pv(Gt,se.enclosingDeclaration,sn,!!(se.flags&128)),Zn;if(!un||gE(un[0],se.enclosingDeclaration,un.length===1?sn:$m(sn))){const Br=_E(un?un[0]:Gt,se.enclosingDeclaration,sn);if(et(Br)){Zn=Br.map(sr=>yt(sr.declarations,yE)?cc(sr,se):void 0);const li=Br.map((sr,xi)=>xi);li.sort(fr);const mi=li.map(sr=>Br[sr]);for(const sr of mi){const xi=ct(sr,$m(sn),!1);if(xi){if(sr.exports&&sr.exports.get("export=")&&me(sr.exports.get("export="),Gt)){un=xi;break}un=xi.concat(un||[D(sr,Gt)||Gt]);break}}}}if(un)return un;if(Ut||!(Gt.flags&6144))return!Ut&&!pn&&Ye(Gt.declarations,yE)?void 0:[Gt];function fr(Br,li){const mi=Zn[Br],sr=Zn[li];if(mi&&sr){const xi=Zp(sr);return Zp(mi)===xi?Z4(mi)-Z4(sr):xi?-1:1}return 0}}}function il(we,se){let on;return tN(we).flags&524384&&(on=L.createNodeArray(Vt(Na(we),Me=>Xl(Me,se)))),on}function md(we,se,on){var pn;C.assert(we&&0<=se&&seGv(un,sn.links.mapper)),on)}else ct=il(Me,on)}return ct}function Xa(we){return zS(we.objectType)?Xa(we.objectType):we}function cc(we,se,on){let pn=al(we,308);if(!pn){const Zn=Hn(we.declarations,fr=>uA(fr,we));Zn&&(pn=al(Zn,308))}if(pn&&pn.moduleName!==void 0)return pn.moduleName;if(!pn&&Voe.test(we.escapedName))return we.escapedName.substring(1,we.escapedName.length-1);if(!se.enclosingFile||!se.tracker.moduleResolverHost)return Voe.test(we.escapedName)?we.escapedName.substring(1,we.escapedName.length-1):Wn(oG(we)).fileName;const Me=yl(se.enclosingDeclaration),qe=Kte(Me)?mI(Me):void 0,ct=se.enclosingFile,Gt=on||qe&&e.getModeForUsageLocation(ct,qe)||ct&&e.getDefaultResolutionModeForFile(ct),sn=eP(ct.path,Gt),Ut=Jr(we);let un=Ut.specifierCache&&Ut.specifierCache.get(sn);if(!un){const Zn=!!O.outFile,{moduleResolverHost:fr}=se.tracker,Br=Zn?{...O,baseUrl:fr.getCommonSourceDirectory()}:O;un=$a(n1e(we,ir,Br,ct,fr,{importModuleSpecifierPreference:Zn?"non-relative":"project-relative",importModuleSpecifierEnding:Zn?"minimal":Gt===99?"js":void 0},{overrideImportMode:on})),Ut.specifierCache??(Ut.specifierCache=new Map),Ut.specifierCache.set(sn,un)}return un}function gc(we){const se=L.createIdentifier(Gi(we.escapedName));return we.parent?L.createQualifiedName(gc(we.parent),se):se}function Ts(we,se,on,pn){const Me=wo(we,se,on,!(se.flags&16384)),qe=on===111551;if(yt(Me[0].declarations,yE)){const sn=Me.length>1?Gt(Me,Me.length-1,1):void 0,Ut=pn||md(Me,0,se),un=Wn(yl(se.enclosingDeclaration)),Zn=z2(Me[0]);let fr,Br;if((ru(O)===3||ru(O)===99)&&Zn?.impliedNodeFormat===99&&Zn.impliedNodeFormat!==un?.impliedNodeFormat&&(fr=cc(Me[0],se,99),Br=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),fr||(fr=cc(Me[0],se)),!(se.flags&67108864)&&ru(O)!==1&&fr.includes("/node_modules/")){const mi=fr;if(ru(O)===3||ru(O)===99){const sr=un?.impliedNodeFormat===99?1:99;fr=cc(Me[0],se,sr),fr.includes("/node_modules/")?fr=mi:Br=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(sr===99?"import":"require"))]))}Br||(se.encounteredError=!0,se.tracker.reportLikelyUnsafeImportRequiredError&&se.tracker.reportLikelyUnsafeImportRequiredError(mi))}const li=L.createLiteralTypeNode(L.createStringLiteral(fr));if(se.approximateLength+=fr.length+10,!sn||Nu(sn)){if(sn){const mi=He(sn)?sn:sn.right;lv(mi,void 0)}return L.createImportTypeNode(li,Br,sn,Ut,qe)}else{const mi=Xa(sn),sr=mi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(li,Br,sr,Ut,qe),mi.indexType)}}const ct=Gt(Me,Me.length-1,0);if(zS(ct))return ct;if(qe)return L.createTypeQueryNode(ct);{const sn=He(ct)?ct:ct.right,Ut=m1(sn);return lv(sn,void 0),L.createTypeReferenceNode(ct,Ut)}function Gt(sn,Ut,un){const Zn=Ut===sn.length-1?pn:md(sn,Ut,se),fr=sn[Ut],Br=sn[Ut-1];let li;if(Ut===0)se.flags|=16777216,li=V0(fr,se),se.approximateLength+=(li?li.length:0)+1,se.flags^=16777216;else if(Br&&qp(Br)){const sr=qp(Br);Hc(sr,(xi,mo)=>{if(me(xi,fr)&&!_W(mo)&&mo!=="export=")return li=Gi(mo),!0})}if(li===void 0){const sr=Hn(fr.declarations,Oo);if(sr&&va(sr)&&Nu(sr.expression)){const xi=Gt(sn,Ut-1,un);return Nu(xi)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(xi)),L.createTypeQueryNode(sr.expression)):xi}li=V0(fr,se)}if(se.approximateLength+=li.length+1,!(se.flags&16)&&Br&&$_(Br)&&$_(Br).get(fr.escapedName)&&me($_(Br).get(fr.escapedName),fr)){const sr=Gt(sn,Ut-1,un);return zS(sr)?L.createIndexedAccessTypeNode(sr,L.createLiteralTypeNode(L.createStringLiteral(li))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(sr,Zn),L.createLiteralTypeNode(L.createStringLiteral(li)))}const mi=Cr(L.createIdentifier(li),16777216);if(Zn&&lv(mi,L.createNodeArray(Zn)),mi.symbol=fr,Ut>un){const sr=Gt(sn,Ut-1,un);return Nu(sr)?L.createQualifiedName(sr,mi):C.fail("Impossible construct - an export of an indexed access cannot be reachable")}return mi}}function Nf(we,se,on){const pn=_t(se.enclosingDeclaration,we,788968,void 0,!1);return pn&&pn.flags&262144?pn!==on.symbol:!1}function Sl(we,se){var on,pn,Me,qe;if(se.flags&4&&se.typeParameterNames){const sn=se.typeParameterNames.get(pd(we));if(sn)return sn}let ct=rc(we.symbol,se,788968,!0);if(!(ct.kind&80))return L.createIdentifier("(Missing type parameter)");const Gt=(pn=(on=we.symbol)==null?void 0:on.declarations)==null?void 0:pn[0];if(Gt&&sl(Gt)&&(ct=c(se,ct,Gt.name)),se.flags&4){const sn=ct.escapedText;let Ut=((Me=se.typeParameterNamesByTextNextNameCount)==null?void 0:Me.get(sn))||0,un=sn;for(;(qe=se.typeParameterNamesByText)!=null&&qe.has(un)||Nf(un,se,we);)Ut++,un=`${sn}_${Ut}`;if(un!==sn){const Zn=m1(ct);ct=L.createIdentifier(un),lv(ct,Zn)}se.mustCreateTypeParametersNamesLookups&&(se.mustCreateTypeParametersNamesLookups=!1,se.typeParameterNames=new Map(se.typeParameterNames),se.typeParameterNamesByTextNextNameCount=new Map(se.typeParameterNamesByTextNextNameCount),se.typeParameterNamesByText=new Set(se.typeParameterNamesByText)),se.typeParameterNamesByTextNextNameCount.set(sn,Ut),se.typeParameterNames.set(pd(we),ct),se.typeParameterNamesByText.add(un)}return ct}function rc(we,se,on,pn){const Me=wo(we,se,on);return pn&&Me.length!==1&&!se.encounteredError&&!(se.flags&65536)&&(se.encounteredError=!0),qe(Me,Me.length-1);function qe(ct,Gt){const sn=md(ct,Gt,se),Ut=ct[Gt];Gt===0&&(se.flags|=16777216);const un=V0(Ut,se);Gt===0&&(se.flags^=16777216);const Zn=Cr(L.createIdentifier(un),16777216);return sn&&lv(Zn,L.createNodeArray(sn)),Zn.symbol=Ut,Gt>0?L.createQualifiedName(qe(ct,Gt-1),Zn):Zn}}function lm(we,se,on){const pn=wo(we,se,on);return Me(pn,pn.length-1);function Me(qe,ct){const Gt=md(qe,ct,se),sn=qe[ct];ct===0&&(se.flags|=16777216);let Ut=V0(sn,se);ct===0&&(se.flags^=16777216);let un=Ut.charCodeAt(0);if(ik(un)&&yt(sn.declarations,yE)){const Zn=cc(sn,se);return se.approximateLength+=2+Zn.length,L.createStringLiteral(Zn)}if(ct===0||LV(Ut,G)){const Zn=Cr(L.createIdentifier(Ut),16777216);return Gt&&lv(Zn,L.createNodeArray(Gt)),Zn.symbol=sn,se.approximateLength+=1+Ut.length,ct>0?L.createPropertyAccessExpression(Me(qe,ct-1),Zn):Zn}else{un===91&&(Ut=Ut.substring(1,Ut.length-1),un=Ut.charCodeAt(0));let Zn;if(ik(un)&&!(sn.flags&8)){const fr=_m(Ut).replace(/\\./g,Br=>Br.substring(1));se.approximateLength+=fr.length+2,Zn=L.createStringLiteral(fr,un===39)}else""+ +Ut===Ut&&(se.approximateLength+=Ut.length,Zn=L.createNumericLiteral(+Ut));if(!Zn){const fr=Cr(L.createIdentifier(Ut),16777216);Gt&&lv(fr,L.createNodeArray(Gt)),fr.symbol=sn,se.approximateLength+=Ut.length,Zn=fr}return se.approximateLength+=2,L.createElementAccessExpression(Me(qe,ct-1),Zn)}}}function BL(we){const se=Oo(we);return se?va(se)?!!(_o(se.expression).flags&402653316):Ws(se)?!!(_o(se.argumentExpression).flags&402653316):ka(se):!1}function u8(we){const se=Oo(we);return!!(se&&ka(se)&&(se.singleQuote||!Os(se)&&po(Al(se,!1),"'")))}function GL(we,se){const on=F$(we);if(on)if(!!se.tracker.reportPrivateInBaseOfClassExpression&&se.flags&2048){let Ut=Gi(we.escapedName);return Ut=Ut.replace(/__#\d+@#/g,"__#private@#"),Hk(Ut,Ga(O),!1,!0,!!(we.flags&8192))}else return on;const pn=!!et(we.declarations)&&Vn(we.declarations,BL),Me=!!et(we.declarations)&&Vn(we.declarations,u8),qe=!!(we.flags&8192),ct=af(we,se,Me,pn,qe);if(ct)return ct;const Gt=Gi(we.escapedName);return Hk(Gt,Ga(O),Me,pn,qe)}function af(we,se,on,pn,Me){const qe=Jr(we).nameType;if(qe){if(qe.flags&384){const ct=""+qe.value;return!fp(ct,Ga(O))&&(pn||!Eg(ct))?L.createStringLiteral(ct,!!on):Eg(ct)&&po(ct,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-ct))):Hk(ct,Ga(O),on,pn,Me)}if(qe.flags&8192)return L.createComputedPropertyName(lm(qe.symbol,se,111551))}}function p8(we){const se=we.mustCreateTypeParameterSymbolList,on=we.mustCreateTypeParametersNamesLookups;we.mustCreateTypeParameterSymbolList=!0,we.mustCreateTypeParametersNamesLookups=!0;const pn=we.typeParameterNames,Me=we.typeParameterNamesByText,qe=we.typeParameterNamesByTextNextNameCount,ct=we.typeParameterSymbolList;return()=>{we.typeParameterNames=pn,we.typeParameterNamesByText=Me,we.typeParameterNamesByTextNextNameCount=qe,we.typeParameterSymbolList=ct,we.mustCreateTypeParameterSymbolList=se,we.mustCreateTypeParametersNamesLookups=on}}function Ht(we,se){return we.declarations&&hn(we.declarations,on=>!!z3e(on)&&(!se||!!Dn(on,pn=>pn===se)))}function Nn(we,se){if(!(Hr(se)&4)||!Wp(we))return!0;ZX(we);const on=Vr(we).resolvedSymbol,pn=on&&qs(on);return!pn||pn!==se.target?!0:et(we.typeArguments)>=Z_(se.target.typeParameters)}function $n(we){for(;Vr(we).fakeScopeForSignatureDeclaration;)we=we.parent;return we}function hr(we,se,on){return on.flags&8192&&on.symbol===we&&(!se.enclosingDeclaration||yt(we.declarations,Me=>Wn(Me)===se.enclosingFile))&&(se.flags|=1048576),$t(on,se)}function Gr(we,se,on,pn){var Me;let qe;const ct=se&&(to(se)||mf(se))&&J5(se,we.enclosingDeclaration),Gt=se??pn.valueDeclaration??Ht(pn)??((Me=pn.declarations)==null?void 0:Me[0]);if(!Tt(on,we)&&Gt){const sn=Q(we,pn,on);ub(Gt)?qe=Ne.serializeTypeOfAccessor(Gt,pn,we):q6(Gt)&&!Os(Gt)&&!(Hr(on)&196608)&&(qe=Ne.serializeTypeOfDeclaration(Gt,pn,we)),sn()}return qe||(ct&&(on=fT(on)),qe=hr(pn,we,on)),qe??L.createKeywordTypeNode(133)}function gi(we,se,on){return on===se?!0:we&&((Tu(we)||Po(we))&&we.questionToken||to(we)&&VX(we))?om(se,524288)===on:!1}function Pa(we,se){const on=we.flags&256,pn=Ie(we);on&&(we.flags&=-257);let Me;const qe=fs(se);if(!(on&&wr(qe))){if(se.declaration&&!Os(se.declaration)&&!Tt(qe,we)){const ct=Wr(se.declaration),Gt=Q(we,ct,qe);Me=Ne.serializeReturnTypeForSignature(se.declaration,ct,we),Gt()}Me||(Me=Oa(we,se,qe))}return!Me&&!on&&(Me=L.createKeywordTypeNode(133)),pn(),Me}function Oa(we,se,on){const pn=we.suppressReportInferenceFallback;we.suppressReportInferenceFallback=!0;const Me=nm(se),qe=Me?fu(we.mapper?c8e(Me,we.mapper):Me,we):$t(on,we);return we.suppressReportInferenceFallback=pn,qe}function Gs(we,se,on=se.enclosingDeclaration){let pn=!1;const Me=Pu(we);if(Ir(we)&&(n1(Me)||gg(Me.parent)||Lu(Me.parent)&&bG(Me.parent.left)&&n1(Me.parent.right)))return pn=!0,{introducesError:pn,node:we};const qe=aL(we);let ct;if(Tb(Me))return ct=Wr(yu(Me,!1,!1)),rT(ct,Me,qe,!1).accessibility!==0&&(pn=!0,se.tracker.reportInaccessibleThisError()),{introducesError:pn,node:Gt(we)};if(ct=Vl(Me,qe,!0,!0),se.enclosingDeclaration&&!(ct&&ct.flags&262144)){ct=Et(ct);const sn=Vl(Me,qe,!0,!0,se.enclosingDeclaration);if(sn===ne||sn===void 0&&ct!==void 0||sn&&ct&&!me(Et(sn),ct))return sn!==ne&&se.tracker.reportInferenceFallback(we),pn=!0,{introducesError:pn,node:we,sym:ct};ct=sn}if(ct)return ct.flags&1&&ct.valueDeclaration&&(VT(ct.valueDeclaration)||mf(ct.valueDeclaration))?{introducesError:pn,node:Gt(we)}:(!(ct.flags&262144)&&!L_(we)&&rT(ct,on,qe,!1).accessibility!==0?(se.tracker.reportInferenceFallback(we),pn=!0):se.tracker.trackSymbol(ct,on,qe),{introducesError:pn,node:Gt(we)});return{introducesError:pn,node:we};function Gt(sn){if(sn===Me){const un=qs(ct),Zn=ct.flags&262144?Sl(un,se):L.cloneNode(sn);return Zn.symbol=ct,c(se,Cr(Zn,16777216),sn)}const Ut=kn(sn,un=>Gt(un),void 0);return c(se,Ut,sn)}}function Qc(we,se,on,pn){const Me=on?111551:788968,qe=Vl(se,Me,!0);if(!qe)return;const ct=qe.flags&2097152?ud(qe):qe;if(rT(qe,we.enclosingDeclaration,Me,!1).accessibility===0)return Ts(ct,we,Me,pn)}function mu(we,se){const on=a(we,se,!0);if(!on)return!1;if(Ir(se)&&ry(se)){e8e(se);const pn=Vr(se).resolvedSymbol;return!pn||!(!se.isTypeOf&&!(pn.flags&788968)||!(et(se.typeArguments)>=Z_(Na(pn))))}if(Wp(se)){if(Om(se))return!1;const pn=Vr(se).resolvedSymbol;if(!pn)return!1;if(pn.flags&262144){const Me=qs(pn);return!(we.mapper&&Gv(Me,we.mapper)!==Me)}if(JN(se))return Nn(se,on)&&!uWe(se)&&!!(pn.flags&788968)}if(JT(se)&&se.operator===158&&se.type.kind===155){const pn=we.enclosingDeclaration&&$n(we.enclosingDeclaration);return!!Dn(se,Me=>Me===pn)}return!0}function pp(we,se,on){const pn=a(we,se);if(on&&!am(pn,Me=>!!(Me.flags&32768))&&mu(we,se)){const Me=Ne.tryReuseExistingTypeNode(we,se);if(Me)return L.createUnionTypeNode([Me,L.createKeywordTypeNode(157)])}return $t(pn,we)}function rS(we,se){var on;const pn=t7e(L.createPropertyDeclaration,175,!0),Me=t7e((Ct,mr,bi,Ei)=>L.createPropertySignature(Ct,mr,bi,Ei),174,!1),qe=se.enclosingDeclaration;let ct=[];const Gt=new Set,sn=[],Ut=se;se={...Ut,usedSymbolNames:new Set(Ut.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((on=Ut.remappedSymbolReferences)==null?void 0:on.entries()),tracker:void 0};const un={...Ut.tracker.inner,trackSymbol:(Ct,mr,bi)=>{var Ei,kr;if((Ei=se.remappedSymbolNames)!=null&&Ei.has(Ta(Ct)))return!1;if(rT(Ct,mr,bi,!1).accessibility===0){const Fa=ys(Ct,se,bi);if(!(Ct.flags&4)){const Xo=Fa[0],Pi=Wn(Ut.enclosingDeclaration);yt(Xo.declarations,ba=>Wn(ba)===Pi)&&Ya(Xo)}}else if((kr=Ut.tracker.inner)!=null&&kr.trackSymbol)return Ut.tracker.inner.trackSymbol(Ct,mr,bi);return!1}};se.tracker=new Hoe(se,un,Ut.tracker.moduleResolverHost),Hc(we,(Ct,mr)=>{const bi=Gi(mr);ig(Ct,bi)});let Zn=!se.bundled;const fr=we.get("export=");return fr&&we.size>1&&fr.flags&2098688&&(we=da(),we.set("export=",fr)),Yr(we),mo(ct);function Br(Ct){return!!Ct&&Ct.kind===80}function li(Ct){return sc(Ct)?Un(Vt(Ct.declarationList.declarations,Oo),Br):Un([Oo(Ct)],Br)}function mi(Ct){const mr=hn(Ct,ll),bi=ho(Ct,pc);let Ei=bi!==-1?Ct[bi]:void 0;if(Ei&&mr&&mr.isExportEquals&&He(mr.expression)&&He(Ei.name)&&Kr(Ei.name)===Kr(mr.expression)&&Ei.body&&t_(Ei.body)){const kr=Un(Ct,Xo=>!!(Gd(Xo)&32)),xa=Ei.name;let Fa=Ei.body;if(et(kr)&&(Ei=L.updateModuleDeclaration(Ei,Ei.modifiers,Ei.name,Fa=L.updateModuleBlock(Fa,L.createNodeArray([...Ei.body.statements,L.createExportDeclaration(void 0,!1,L.createNamedExports(Vt(Ki(kr,Xo=>li(Xo)),Xo=>L.createExportSpecifier(!1,void 0,Xo))),void 0)]))),Ct=[...Ct.slice(0,bi),Ei,...Ct.slice(bi+1)]),!hn(Ct,Xo=>Xo!==Ei&&A2(Xo,xa))){ct=[];const Xo=!yt(Fa.statements,Pi=>di(Pi,32)||ll(Pi)||fc(Pi));Ye(Fa.statements,Pi=>{No(Pi,Xo?32:0)}),Ct=[...Un(Ct,Pi=>Pi!==Ei&&Pi!==mr),...ct]}}return Ct}function sr(Ct){const mr=Un(Ct,Ei=>fc(Ei)&&!Ei.moduleSpecifier&&!!Ei.exportClause&&Jf(Ei.exportClause));et(mr)>1&&(Ct=[...Un(Ct,kr=>!fc(kr)||!!kr.moduleSpecifier||!kr.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(Ki(mr,kr=>ma(kr.exportClause,Jf).elements)),void 0)]);const bi=Un(Ct,Ei=>fc(Ei)&&!!Ei.moduleSpecifier&&!!Ei.exportClause&&Jf(Ei.exportClause));if(et(bi)>1){const Ei=AR(bi,kr=>ka(kr.moduleSpecifier)?">"+kr.moduleSpecifier.text:">");if(Ei.length!==bi.length)for(const kr of Ei)kr.length>1&&(Ct=[...Un(Ct,xa=>!kr.includes(xa)),L.createExportDeclaration(void 0,!1,L.createNamedExports(Ki(kr,xa=>ma(xa.exportClause,Jf).elements)),kr[0].moduleSpecifier)])}return Ct}function xi(Ct){const mr=ho(Ct,bi=>fc(bi)&&!bi.moduleSpecifier&&!bi.attributes&&!!bi.exportClause&&Jf(bi.exportClause));if(mr>=0){const bi=Ct[mr],Ei=Ui(bi.exportClause.elements,kr=>{if(!kr.propertyName&&kr.name.kind!==11){const xa=kr.name,Fa=R8(Ct),Xo=Un(Fa,Pi=>A2(Ct[Pi],xa));if(et(Xo)&&Vn(Xo,Pi=>qk(Ct[Pi]))){for(const Pi of Xo)Ct[Pi]=ts(Ct[Pi]);return}}return kr});et(Ei)?Ct[mr]=L.updateExportDeclaration(bi,bi.modifiers,bi.isTypeOnly,L.updateNamedExports(bi.exportClause,Ei),bi.moduleSpecifier,bi.attributes):nb(Ct,mr)}return Ct}function mo(Ct){return Ct=mi(Ct),Ct=sr(Ct),Ct=xi(Ct),qe&&(Yi(qe)&&Pp(qe)||pc(qe))&&(!yt(Ct,k2)||!Jee(Ct)&&yt(Ct,cF))&&Ct.push(dw(L)),Ct}function ts(Ct){const mr=(Gd(Ct)|32)&-129;return L.replaceModifiers(Ct,mr)}function bn(Ct){const mr=Gd(Ct)&-33;return L.replaceModifiers(Ct,mr)}function Yr(Ct,mr,bi){mr||sn.push(new Map);let Ei=0;const kr=Array.from(Ct.values());for(const xa of kr){if(Ei++,Te(se)&&Ei+2{Fo(xa,!0,!!bi)}),sn.pop())}function Fo(Ct,mr,bi){bs(_r(Ct));const Ei=os(Ct);if(Gt.has(Ta(Ei)))return;if(Gt.add(Ta(Ei)),!mr||et(Ct.declarations)&&yt(Ct.declarations,xa=>!!Dn(xa,Fa=>Fa===qe))){const xa=p8(se);se.tracker.pushErrorFallbackNode(hn(Ct.declarations,Fa=>Wn(Fa)===se.enclosingFile)),vo(Ct,mr,bi),se.tracker.popErrorFallbackNode(),xa()}}function vo(Ct,mr,bi,Ei=Ct.escapedName){var kr,xa,Fa,Xo,Pi,ba,wc;const _l=Gi(Ei),Qd=Ei==="default";if(mr&&!(se.flags&131072)&&vI(_l)&&!Qd){se.encounteredError=!0;return}let Yl=Qd&&!!(Ct.flags&-113||Ct.flags&16&&et(bs(_r(Ct))))&&!(Ct.flags&2097152),ol=!Yl&&!mr&&vI(_l)&&!Qd;(Yl||ol)&&(mr=!0);const wl=(mr?0:32)|(Qd&&!Yl?2048:0),Ul=Ct.flags&1536&&Ct.flags&7&&Ei!=="export=",Mf=Ul&&Tye(_r(Ct),Ct);if((Ct.flags&8208||Mf)&&yT(_r(Ct),Ct,ig(Ct,_l),wl),Ct.flags&524288&&Lc(Ct,_l,wl),Ct.flags&98311&&Ei!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!Mf)if(bi)$5(Ct)&&(ol=!1,Yl=!1);else{const yc=_r(Ct),qu=ig(Ct,_l);if(yc.symbol&&yc.symbol!==Ct&&yc.symbol.flags&16&&yt(yc.symbol.declarations,Ib)&&((kr=yc.symbol.members)!=null&&kr.size||(xa=yc.symbol.exports)!=null&&xa.size))se.remappedSymbolReferences||(se.remappedSymbolReferences=new Map),se.remappedSymbolReferences.set(Ta(yc.symbol),Ct),vo(yc.symbol,mr,bi,Ei),se.remappedSymbolReferences.delete(Ta(yc.symbol));else if(!(Ct.flags&16)&&Tye(yc,Ct))yT(yc,Ct,qu,wl);else{const qv=Ct.flags&2?oR(Ct)?2:1:(Fa=Ct.parent)!=null&&Fa.valueDeclaration&&Yi((Xo=Ct.parent)==null?void 0:Xo.valueDeclaration)?2:void 0,Pf=Yl||!(Ct.flags&4)?qu:Z5(qu,Ct);let Xg=Ct.declarations&&hn(Ct.declarations,bT=>yi(bT));Xg&&_d(Xg.parent)&&Xg.parent.declarations.length===1&&(Xg=Xg.parent.parent);const vT=(Pi=Ct.declarations)==null?void 0:Pi.find(qr);if(vT&&Nr(vT.parent)&&He(vT.parent.right)&&((ba=yc.symbol)!=null&&ba.valueDeclaration)&&Yi(yc.symbol.valueDeclaration)){const bT=qu===vT.parent.right.escapedText?void 0:vT.parent.right;se.approximateLength+=12+(((wc=bT?.escapedText)==null?void 0:wc.length)??0),No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,bT,qu)])),0),se.tracker.trackSymbol(yc.symbol,se.enclosingDeclaration,111551)}else{const bT=c(se,L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Pf,void 0,Gr(se,void 0,yc,Ct))],qv)),Xg);se.approximateLength+=7+Pf.length,No(bT,Pf!==qu?wl&-33:wl),Pf!==qu&&!mr&&(se.approximateLength+=16+Pf.length+qu.length,No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Pf,qu)])),0),ol=!1,Yl=!1)}}}if(Ct.flags&384&&wE(Ct,_l,wl),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&Nr(Ct.valueDeclaration.parent)&&uc(Ct.valueDeclaration.parent.right)?e7e(Ct,ig(Ct,_l),wl):vye(Ct,ig(Ct,_l),wl)),(Ct.flags&1536&&(!Ul||Hy(Ct))||Mf)&&oS(Ct,_l,wl),Ct.flags&64&&!(Ct.flags&32)&&kc(Ct,_l,wl),Ct.flags&2097152&&e7e(Ct,ig(Ct,_l),wl),Ct.flags&4&&Ct.escapedName==="export="&&$5(Ct),Ct.flags&8388608&&Ct.declarations)for(const yc of Ct.declarations){const qu=du(yc,yc.moduleSpecifier);if(!qu)continue;const qv=yc.isTypeOnly,Pf=cc(qu,se);se.approximateLength+=17+Pf.length,No(L.createExportDeclaration(void 0,qv,void 0,L.createStringLiteral(Pf)),0)}if(Yl){const yc=ig(Ct,_l);se.approximateLength+=16+yc.length,No(L.createExportAssignment(void 0,!1,L.createIdentifier(yc)),0)}else if(ol){const yc=ig(Ct,_l);se.approximateLength+=22+_l.length+yc.length,No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,yc,_l)])),0)}}function Ya(Ct){if(yt(Ct.declarations,VT))return;C.assertIsDefined(sn[sn.length-1]),Z5(Gi(Ct.escapedName),Ct);const mr=!!(Ct.flags&2097152)&&!yt(Ct.declarations,bi=>!!Dn(bi,fc)||O_(bi)||zc(bi)&&!uy(bi.moduleReference));sn[mr?0:sn.length-1].set(Ta(Ct),Ct)}function hs(Ct){return Yi(Ct)&&(Pp(Ct)||Ff(Ct))||gu(Ct)&&!M_(Ct)}function No(Ct,mr){if(Tm(Ct)){const bi=Gd(Ct);let Ei=0;const kr=se.enclosingDeclaration&&(hm(se.enclosingDeclaration)?Wn(se.enclosingDeclaration):se.enclosingDeclaration);mr&32&&kr&&(hs(kr)||pc(kr))&&qk(Ct)&&(Ei|=32),Zn&&!(Ei&32)&&(!kr||!(kr.flags&33554432))&&(QT(Ct)||sc(Ct)||ec(Ct)||Cc(Ct)||pc(Ct))&&(Ei|=128),mr&2048&&(Cc(Ct)||gd(Ct)||ec(Ct))&&(Ei|=2048),Ei&&(Ct=L.replaceModifiers(Ct,Ei|bi)),se.approximateLength+=Q5(Ei|bi)}ct.push(Ct)}function Lc(Ct,mr,bi){var Ei;const kr=mOe(Ct),xa=Jr(Ct).typeParameters,Fa=Vt(xa,Yl=>Xl(Yl,se)),Xo=(Ei=Ct.declarations)==null?void 0:Ei.find(hm),Pi=x2(Xo?Xo.comment||Xo.parent.comment:void 0),ba=Ie(se);se.flags|=8388608;const wc=se.enclosingDeclaration;se.enclosingDeclaration=Xo;const _l=Xo&&Xo.typeExpression&&e0(Xo.typeExpression)&&Ne.tryReuseExistingTypeNode(se,Xo.typeExpression.type)||$t(kr,se),Qd=ig(Ct,mr);se.approximateLength+=8+(Pi?.length??0)+Qd.length,No(qT(L.createTypeAliasDeclaration(void 0,Qd,Fa,_l),Pi?[{kind:3,text:`* * `+Pi.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),bi),ba(),se.enclosingDeclaration=wc}function kc(Ct,mr,bi){const Ei=ig(Ct,mr);se.approximateLength+=14+Ei.length;const kr=tm(Ct),xa=Na(Ct),Fa=Vt(xa,ol=>Xl(ol,se)),Xo=Zm(kr),Pi=et(Xo)?Ma(Xo):void 0,ba=Od(bs(kr),!1,Pi),wc=Sye(0,kr,Pi,180),_l=Sye(1,kr,Pi,181),Qd=r7e(kr,Pi),Yl=et(Xo)?[L.createHeritageClause(96,Ui(Xo,ol=>Eye(ol,111551)))]:void 0;No(L.createInterfaceDeclaration(void 0,Ei,Fa,Yl,[...Qd,..._l,...wc,...ba]),bi)}function Od(Ct,mr,bi,Ei){const kr=[];let xa=0;for(const Fa of Ct){if(xa++,Te(se)&&xa+2nN(Ei)&&fp(Ei.escapedName,99))}function Hy(Ct){return Vn(Hu(Ct),mr=>!(dp(hc(mr))&111551))}function oS(Ct,mr,bi){const Ei=Hu(Ct),kr=iS(se),xa=a2(Ei,Pi=>Pi.parent&&Pi.parent===Ct||kr?"real":"merged"),Fa=xa.get("real")||ae,Xo=xa.get("merged")||ae;if(et(Fa)||kr){let Pi;if(kr){const ba=se.flags;se.flags|=514,Pi=p(Ct,se,-1),se.flags=ba}else{const ba=ig(Ct,mr);Pi=L.createIdentifier(ba),se.approximateLength+=ba.length}rg(Fa,Pi,bi,!!(Ct.flags&67108880))}if(et(Xo)){const Pi=Wn(se.enclosingDeclaration),ba=ig(Ct,mr),wc=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(Ui(Un(Xo,_l=>_l.escapedName!=="export="),_l=>{var Qd,Yl;const ol=Gi(_l.escapedName),wl=ig(_l,ol),Ul=_l.declarations&&cp(_l);if(Pi&&(Ul?Pi!==Wn(Ul):!yt(_l.declarations,qu=>Wn(qu)===Pi))){(Yl=(Qd=se.tracker)==null?void 0:Qd.reportNonlocalAugmentation)==null||Yl.call(Qd,Pi,Ct,_l);return}const Mf=Ul&&O0(Ul,!0);Ya(Mf||_l);const yc=Mf?ig(Mf,Gi(Mf.escapedName)):wl;return L.createExportSpecifier(!1,ol===yc?void 0:yc,ol)})))]);No(L.createModuleDeclaration(void 0,L.createIdentifier(ba),wc,32),0)}}function wE(Ct,mr,bi){const Ei=ig(Ct,mr);se.approximateLength+=9+Ei.length;const kr=[],xa=Un(bs(_r(Ct)),Xo=>!!(Xo.flags&8));let Fa=0;for(const Xo of xa){if(Fa++,Te(se)&&Fa+2!et(Ul.declarations)||yt(Ul.declarations,Mf=>Wn(Mf)===Wn(se.enclosingDeclaration))||xa?"local":"remote").get("local")||ae;let Pi=r0.createModuleDeclaration(void 0,mr,L.createModuleBlock([]),kr);ps(Pi,qe),Pi.locals=da(Ct),Pi.symbol=Ct[0].parent;const ba=ct;ct=[];const wc=Zn;Zn=!1;const _l={...se,enclosingDeclaration:Pi},Qd=se;se=_l,Yr(da(Xo),Ei,!0),se=Qd,Zn=wc;const Yl=ct;ct=ba;const ol=Vt(Yl,Ul=>ll(Ul)&&!Ul.isExportEquals&&He(Ul.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ul.expression,L.createIdentifier("default"))])):Ul),wl=Vn(ol,Ul=>di(Ul,32))?Vt(ol,bn):ol;Pi=L.updateModuleDeclaration(Pi,Pi.modifiers,Pi.name,L.createModuleBlock(wl)),No(Pi,bi)}else xa&&(se.approximateLength+=14,No(L.createModuleDeclaration(void 0,mr,L.createModuleBlock([]),kr),bi))}function nN(Ct){return!!(Ct.flags&2887656)||!(Ct.flags&4194304||Ct.escapedName==="prototype"||Ct.valueDeclaration&&ua(Ct.valueDeclaration)&&ui(Ct.valueDeclaration.parent))}function Y5(Ct){const mr=Ui(Ct,bi=>{const Ei=se.enclosingDeclaration;se.enclosingDeclaration=bi;let kr=bi.expression;if(Ds(kr)){if(He(kr)&&Kr(kr)==="")return xa(void 0);let Fa;if({introducesError:Fa,node:kr}=Gs(kr,se),Fa)return xa(void 0)}return xa(L.createExpressionWithTypeArguments(kr,Vt(bi.typeArguments,Fa=>Ne.tryReuseExistingTypeNode(se,Fa)||$t(a(se,Fa),se))));function xa(Fa){return se.enclosingDeclaration=Ei,Fa}});if(mr.length===Ct.length)return mr}function vye(Ct,mr,bi){var Ei,kr;se.approximateLength+=9+mr.length;const xa=(Ei=Ct.declarations)==null?void 0:Ei.find(ui),Fa=se.enclosingDeclaration;se.enclosingDeclaration=xa||Fa;const Xo=Na(Ct),Pi=Vt(Xo,Jv=>Xl(Jv,se));Ye(Xo,Jv=>se.approximateLength+=Ol(Jv.symbol).length);const ba=Kp(tm(Ct)),wc=Zm(ba),_l=xa&&tD(xa),Qd=_l&&Y5(_l)||Ui(wC(ba),mbt),Yl=_r(Ct),ol=!!((kr=Yl.symbol)!=null&&kr.valueDeclaration)&&ui(Yl.symbol.valueDeclaration),wl=ol?Py(Yl):Ue;se.approximateLength+=(et(wc)?8:0)+(et(Qd)?11:0);const Ul=[...et(wc)?[L.createHeritageClause(96,Vt(wc,Jv=>fbt(Jv,wl,mr)))]:[],...et(Qd)?[L.createHeritageClause(119,Qd)]:[]],Mf=$gt(ba,wc,bs(ba)),yc=Un(Mf,Jv=>!X5(Jv)),qu=yt(Mf,X5),qv=qu?iS(se)?Od(Un(Mf,X5),!0,wc[0],!1):[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:ae;qu&&!iS(se)&&(se.approximateLength+=9);const Pf=Od(yc,!0,wc[0],!1),Xg=Od(Un(bs(Yl),Jv=>!(Jv.flags&4194304)&&Jv.escapedName!=="prototype"&&!nN(Jv)),!0,wl,!0),vT=!ol&&!!Ct.valueDeclaration&&Ir(Ct.valueDeclaration)&&!yt(na(Yl,1));vT&&(se.approximateLength+=21);const bT=vT?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Sye(1,Yl,wl,177),hbt=r7e(ba,wc[0]);se.enclosingDeclaration=Fa,No(c(se,L.createClassDeclaration(void 0,mr,Pi,Ul,[...hbt,...Xg,...bT,...Pf,...qv]),Ct.declarations&&Un(Ct.declarations,Jv=>Cc(Jv)||uc(Jv))[0]),bi)}function bye(Ct){return Hn(Ct,mr=>{if(Su(mr)||iu(mr))return _b(mr.propertyName||mr.name);if(Nr(mr)||ll(mr)){const bi=ll(mr)?mr.expression:mr.right;if(qr(bi))return Kr(bi.name)}if(Rv(mr)){const bi=Oo(mr);if(bi&&He(bi))return Kr(bi)}})}function e7e(Ct,mr,bi){var Ei,kr,xa,Fa,Xo;const Pi=cp(Ct);if(!Pi)return C.fail();const ba=os(O0(Pi,!0));if(!ba)return;let wc=V2(ba)&&bye(Ct.declarations)||Gi(ba.escapedName);wc==="export="&&ye&&(wc="default");const _l=ig(ba,wc);switch(Ya(ba),Pi.kind){case 209:if(((kr=(Ei=Pi.parent)==null?void 0:Ei.parent)==null?void 0:kr.kind)===261){const ol=cc(ba.parent||ba,se),{propertyName:wl}=Pi,Ul=wl&&He(wl)?Kr(wl):void 0;se.approximateLength+=24+mr.length+ol.length+(Ul?.length??0),No(L.createImportDeclaration(void 0,L.createImportClause(void 0,void 0,L.createNamedImports([L.createImportSpecifier(!1,Ul?L.createIdentifier(Ul):void 0,L.createIdentifier(mr))])),L.createStringLiteral(ol),void 0),0);break}C.failBadSyntaxKind(((xa=Pi.parent)==null?void 0:xa.parent)||Pi,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:((Xo=(Fa=Pi.parent)==null?void 0:Fa.parent)==null?void 0:Xo.kind)===227&&jL(Gi(Ct.escapedName),_l);break;case 261:if(qr(Pi.initializer)){const ol=Pi.initializer,wl=L.createUniqueName(mr),Ul=cc(ba.parent||ba,se);se.approximateLength+=22+Ul.length+Kr(wl).length,No(L.createImportEqualsDeclaration(void 0,!1,wl,L.createExternalModuleReference(L.createStringLiteral(Ul))),0),se.approximateLength+=12+mr.length+Kr(wl).length+Kr(ol.name).length,No(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(mr),L.createQualifiedName(wl,ol.name)),bi);break}case 272:if(ba.escapedName==="export="&&yt(ba.declarations,ol=>Yi(ol)&&Ff(ol))){$5(Ct);break}const Qd=!(ba.flags&512)&&!yi(Pi);se.approximateLength+=11+mr.length+Gi(ba.escapedName).length,No(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(mr),Qd?rc(ba,se,-1,!1):L.createExternalModuleReference(L.createStringLiteral(cc(ba,se)))),Qd?bi:0);break;case 271:No(L.createNamespaceExportDeclaration(Kr(Pi.name)),0);break;case 274:{const ol=cc(ba.parent||ba,se),wl=se.bundled?L.createStringLiteral(ol):Pi.parent.moduleSpecifier,Ul=vl(Pi.parent)?Pi.parent.attributes:void 0,Mf=o_(Pi.parent);se.approximateLength+=14+mr.length+3+(Mf?4:0),No(L.createImportDeclaration(void 0,L.createImportClause(Mf?156:void 0,L.createIdentifier(mr),void 0),wl,Ul),0);break}case 275:{const ol=cc(ba.parent||ba,se),wl=se.bundled?L.createStringLiteral(ol):Pi.parent.parent.moduleSpecifier,Ul=o_(Pi.parent.parent);se.approximateLength+=19+mr.length+3+(Ul?4:0),No(L.createImportDeclaration(void 0,L.createImportClause(Ul?156:void 0,void 0,L.createNamespaceImport(L.createIdentifier(mr))),wl,Pi.parent.attributes),0);break}case 281:se.approximateLength+=19+mr.length+3,No(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(mr)),L.createStringLiteral(cc(ba,se))),0);break;case 277:{const ol=cc(ba.parent||ba,se),wl=se.bundled?L.createStringLiteral(ol):Pi.parent.parent.parent.moduleSpecifier,Ul=o_(Pi.parent.parent.parent);se.approximateLength+=19+mr.length+3+(Ul?4:0),No(L.createImportDeclaration(void 0,L.createImportClause(Ul?156:void 0,void 0,L.createNamedImports([L.createImportSpecifier(!1,mr!==wc?L.createIdentifier(wc):void 0,L.createIdentifier(mr))])),wl,Pi.parent.parent.parent.attributes),0);break}case 282:const Yl=Pi.parent.parent.moduleSpecifier;if(Yl){const ol=Pi.propertyName;ol&&N_(ol)&&(wc="default")}jL(Gi(Ct.escapedName),Yl?wc:_l,Yl&&ds(Yl)?L.createStringLiteral(Yl.text):void 0);break;case 278:$5(Ct);break;case 227:case 212:case 213:Ct.escapedName==="default"||Ct.escapedName==="export="?$5(Ct):jL(mr,_l);break;default:return C.failBadSyntaxKind(Pi,"Unhandled alias declaration kind in symbol serializer!")}}function jL(Ct,mr,bi){se.approximateLength+=16+Ct.length+(Ct!==mr?mr.length:0),No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ct!==mr?mr:void 0,Ct)]),bi),0)}function $5(Ct){var mr;if(Ct.flags&4194304)return!1;const bi=Gi(Ct.escapedName),Ei=bi==="export=",xa=Ei||bi==="default",Fa=Ct.declarations&&cp(Ct),Xo=Fa&&O0(Fa,!0);if(Xo&&et(Xo.declarations)&&yt(Xo.declarations,Pi=>Wn(Pi)===Wn(qe))){const Pi=Fa&&(ll(Fa)||Nr(Fa)?CG(Fa):nne(Fa)),ba=Pi&&Ds(Pi)?pyt(Pi):void 0,wc=ba&&Vl(ba,-1,!0,!0,qe);(wc||Xo)&&Ya(wc||Xo);const _l=se.tracker.disableTrackSymbol;if(se.tracker.disableTrackSymbol=!0,xa)se.approximateLength+=10,ct.push(L.createExportAssignment(void 0,Ei,lm(Xo,se,-1)));else if(ba===Pi&&ba)jL(bi,Kr(ba));else if(Pi&&uc(Pi))jL(bi,ig(Xo,Ol(Xo)));else{const Qd=Z5(bi,Ct);se.approximateLength+=Qd.length+10,No(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Qd),rc(Xo,se,-1,!1)),0),jL(bi,Qd)}return se.tracker.disableTrackSymbol=_l,!0}else{const Pi=Z5(bi,Ct),ba=$p(_r(os(Ct)));if(Tye(ba,Ct))yT(ba,Ct,Pi,xa?0:32);else{const wc=((mr=se.enclosingDeclaration)==null?void 0:mr.kind)===268&&(!(Ct.flags&98304)||Ct.flags&65536)?1:2;se.approximateLength+=Pi.length+5;const _l=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Pi,void 0,Gr(se,void 0,ba,Ct))],wc));No(_l,Xo&&Xo.flags&4&&Xo.escapedName==="export="?128:bi===Pi?32:0)}return xa?(se.approximateLength+=Pi.length+10,ct.push(L.createExportAssignment(void 0,Ei,L.createIdentifier(Pi))),!0):bi!==Pi?(jL(bi,Pi),!0):!1}}function Tye(Ct,mr){var bi;const Ei=Wn(se.enclosingDeclaration);return Hr(Ct)&48&&!yt((bi=Ct.symbol)==null?void 0:bi.declarations,Ri)&&!et(Xd(Ct))&&!uW(Ct)&&!!(et(Un(bs(Ct),nN))||et(na(Ct,0)))&&!et(na(Ct,1))&&!Ht(mr,qe)&&!(Ct.symbol&&yt(Ct.symbol.declarations,kr=>Wn(kr)!==Ei))&&!yt(bs(Ct),kr=>_W(kr.escapedName))&&!yt(bs(Ct),kr=>yt(kr.declarations,xa=>Wn(xa)!==Ei))&&Vn(bs(Ct),kr=>fp(Ol(kr),G)?kr.flags&98304?xh(kr)===Ov(kr):!0:!1)}function t7e(Ct,mr,bi){return function(kr,xa,Fa){var Xo,Pi,ba,wc,_l,Qd;const Yl=Vf(kr),ol=!!(Yl&2)&&!iS(se);if(xa&&kr.flags&2887656)return[];if(kr.flags&4194304||kr.escapedName==="constructor"||Fa&&Ea(Fa,kr.escapedName)&&wh(Ea(Fa,kr.escapedName))===wh(kr)&&(kr.flags&16777216)===(Ea(Fa,kr.escapedName).flags&16777216)&&Hg(_r(kr),_n(Fa,kr.escapedName)))return[];const wl=Yl&-1025|(xa?256:0),Ul=GL(kr,se),Mf=(Xo=kr.declarations)==null?void 0:Xo.find(Rp(Po,ub,yi,Tu,Nr,qr));if(kr.flags&98304&&bi){const yc=[];if(kr.flags&65536){const qu=kr.declarations&&Ye(kr.declarations,Xg=>{if(Xg.kind===179)return Xg;if(Zo(Xg)&&r1(Xg))return Ye(Xg.arguments[2].properties,vT=>{const bT=Oo(vT);if(bT&&He(bT)&&Kr(bT)==="set")return vT})});C.assert(!!qu);const qv=Ms(qu)?Df(qu).parameters[0]:void 0,Pf=(Pi=kr.declarations)==null?void 0:Pi.find(Vh);se.approximateLength+=Q5(wl)+7+(qv?Ol(qv).length:5)+(ol?0:2),yc.push(c(se,L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(wl),Ul,[L.createParameterDeclaration(void 0,void 0,qv?Hi(qv,qn(qv),se):"value",void 0,ol?void 0:Gr(se,Pf,Ov(kr),kr))],void 0),Pf??Mf))}if(kr.flags&32768){const qu=(ba=kr.declarations)==null?void 0:ba.find(ug);se.approximateLength+=Q5(wl)+8+(ol?0:2),yc.push(c(se,L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(wl),Ul,[],ol?void 0:Gr(se,qu,_r(kr),kr),void 0),qu??Mf))}return yc}else if(kr.flags&98311){const yc=(wh(kr)?8:0)|wl;return se.approximateLength+=2+(ol?0:2)+Q5(yc),c(se,Ct(L.createModifiersFromModifierFlags(yc),Ul,kr.flags&16777216?L.createToken(58):void 0,ol?void 0:Gr(se,(wc=kr.declarations)==null?void 0:wc.find(gp),Ov(kr),kr),void 0),((_l=kr.declarations)==null?void 0:_l.find(Rp(Po,yi)))||Mf)}if(kr.flags&8208){const yc=_r(kr),qu=na(yc,0);if(ol){const Pf=(wh(kr)?8:0)|wl;return se.approximateLength+=1+Q5(Pf),c(se,Ct(L.createModifiersFromModifierFlags(Pf),Ul,kr.flags&16777216?L.createToken(58):void 0,void 0,void 0),((Qd=kr.declarations)==null?void 0:Qd.find(Ms))||qu[0]&&qu[0].declaration||kr.declarations&&kr.declarations[0])}const qv=[];for(const Pf of qu){se.approximateLength+=1;const Xg=ii(Pf,mr,se,{name:Ul,questionToken:kr.flags&16777216?L.createToken(58):void 0,modifiers:wl?L.createModifiersFromModifierFlags(wl):void 0}),vT=Pf.declaration&&ck(Pf.declaration.parent)?Pf.declaration.parent:Pf.declaration;qv.push(c(se,Xg,vT))}return qv}return C.fail(`Unhandled class member kind! ${kr.__debugFlags||kr.flags}`)}}function Q5(Ct){let mr=0;return Ct&32&&(mr+=7),Ct&128&&(mr+=8),Ct&2048&&(mr+=8),Ct&4096&&(mr+=6),Ct&1&&(mr+=7),Ct&2&&(mr+=8),Ct&4&&(mr+=10),Ct&64&&(mr+=9),Ct&256&&(mr+=7),Ct&16&&(mr+=9),Ct&8&&(mr+=9),Ct&512&&(mr+=9),Ct&1024&&(mr+=6),Ct&8192&&(mr+=3),Ct&16384&&(mr+=4),mr}function n7e(Ct,mr){return Me(Ct,!1,mr)}function Sye(Ct,mr,bi,Ei){const kr=na(mr,Ct);if(Ct===1){if(!bi&&Vn(kr,Xo=>et(Xo.parameters)===0))return[];if(bi){const Xo=na(bi,1);if(!et(Xo)&&Vn(kr,Pi=>et(Pi.parameters)===0))return[];if(Xo.length===kr.length){let Pi=!1;for(let ba=0;ba$t(kr,se)),Ei=lm(Ct.target.symbol,se,788968)):Ct.symbol&&oL(Ct.symbol,qe,mr)&&(Ei=lm(Ct.symbol,se,788968)),Ei)return L.createExpressionWithTypeArguments(Ei,bi)}function mbt(Ct){const mr=Eye(Ct,788968);if(mr)return mr;if(Ct.symbol)return L.createExpressionWithTypeArguments(lm(Ct.symbol,se,788968),void 0)}function Z5(Ct,mr){var bi,Ei;const kr=mr?Ta(mr):void 0;if(kr&&se.remappedSymbolNames.has(kr))return se.remappedSymbolNames.get(kr);mr&&(Ct=i7e(mr,Ct));let xa=0;const Fa=Ct;for(;(bi=se.usedSymbolNames)!=null&&bi.has(Ct);)xa++,Ct=`${Fa}_${xa}`;return(Ei=se.usedSymbolNames)==null||Ei.add(Ct),kr&&se.remappedSymbolNames.set(kr,Ct),Ct}function i7e(Ct,mr){if(mr==="default"||mr==="__class"||mr==="__function"){const bi=Ie(se);se.flags|=16777216;const Ei=V0(Ct,se);bi(),mr=Ei.length>0&&ik(Ei.charCodeAt(0))?_m(Ei):Ei}return mr==="default"?mr="_default":mr==="export="&&(mr="_exports"),mr=fp(mr,G)&&!vI(mr)?mr:"_"+mr.replace(/[^a-z0-9]/gi,"_"),mr}function ig(Ct,mr){const bi=Ta(Ct);return se.remappedSymbolNames.has(bi)?se.remappedSymbolNames.get(bi):(mr=i7e(Ct,mr),se.remappedSymbolNames.set(bi,mr),mr)}}function iS(we){return we.maxExpansionDepth!==-1}function X5(we){return!!we.valueDeclaration&&nd(we.valueDeclaration)&&eo(we.valueDeclaration.name)}function F$(we){if(we.valueDeclaration&&nd(we.valueDeclaration)&&eo(we.valueDeclaration.name))return L.cloneNode(we.valueDeclaration.name)}}function LC(n){var a;const c=Hr(n)&4?n.target.symbol:n.symbol;return Ka(n)||!!((a=c?.declarations)!=null&&a.some(p=>e.isSourceFileDefaultLibrary(Wn(p))))}function K_(n,a,c=16384,p){return p?m(p).getText():VR(m);function m(b){const I=vE(c)|70221824|512,w=be.typePredicateToTypePredicateNode(n,a,I),U=XS(),H=a&&Wn(a);return U.writeNode(4,w,H,b),b}}function pW(n,a){const c=[];let p=0;for(let m=0;mOo(I)?I:void 0);const b=m&&Oo(m);if(m&&b){if(Zo(m)&&r1(m))return Ol(n);if(va(b)&&!(Fl(n)&4096)){const I=Jr(n).nameType;if(I&&I.flags&384){const w=cL(n,a);if(w!==void 0)return w}}return ws(b)}if(m||(m=n.declarations[0]),m.parent&&m.parent.kind===261)return ws(m.parent.name);switch(m.kind){case 232:case 219:case 220:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),m.kind===232?"(Anonymous class)":"(Anonymous function)"}}const p=cL(n,a);return p!==void 0?p:Ol(n)}function X_(n){if(n){const c=Vr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 339:case 347:case 341:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Yi(n.parent.parent.parent));case 209:return X_(n.parent.parent);case 261:if(Qo(n.name)&&!n.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(bS(n))return!0;const c=Pt(n);return!(W$(n)&32)&&!(n.kind!==272&&c.kind!==308&&c.flags&33554432)?Zy(c):X_(c);case 173:case 172:case 178:case 179:case 175:case 174:if(wp(n,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return X_(n.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;case 278:return!1;default:return!1}}}function kC(n,a){let c;n.kind!==11&&n.parent&&n.parent.kind===278?c=_t(n,n,2998271,void 0,!1):n.parent.kind===282&&(c=wx(n.parent,2998271));let p,m;return c&&(m=new Set,m.add(Ta(c)),b(c.declarations)),p;function b(I){Ye(I,w=>{const U=Qf(w)||w;if(a?Vr(w).isVisible=!0:(p=p||[],kf(p,U)),t1(w)){const H=w.moduleReference,Q=Pu(H),Ie=_t(w,Q.escapedText,901119,void 0,!1);Ie&&m&&rh(m,Ta(Ie))&&b(Ie.declarations)}})}}function g_(n,a){const c=ee(n,a);if(c>=0){const{length:p}=Mg;for(let m=c;m=Tv;c--){if(ke(Mg[c],U1[c]))return-1;if(Mg[c]===n&&U1[c]===a)return c}return-1}function ke(n,a){switch(a){case 0:return!!Jr(n).type;case 2:return!!Jr(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 5:return!!n.resolvedTypeArguments;case 6:return!!n.baseTypesResolved;case 7:return!!Jr(n).writeType;case 8:return Vr(n).parameterInitializerContainsUndefined!==void 0}return C.assertNever(a)}function rt(){return Mg.pop(),U1.pop(),T0.pop()}function Pt(n){return Dn(Jh(n),a=>{switch(a.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function nn(n){const a=qs(Yc(n));return a.typeParameters?Ly(a,Vt(a.typeParameters,c=>Ue)):a}function _n(n,a){const c=Ea(n,a);return c?_r(c):void 0}function ei(n,a){var c;let p;return _n(n,a)||(p=(c=Qx(n,a))==null?void 0:c.type)&&uu(p,!0,!0)}function wr(n){return n&&(n.flags&1)!==0}function pr(n){return n===nt||!!(n.flags&1&&n.aliasSymbol)}function Si(n,a){if(a!==0)return Jx(n,!1,a);const c=Wr(n);return c&&Jr(c).type||Jx(n,!1,a)}function ao(n,a,c){if(n=Ac(n,U=>!(U.flags&98304)),n.flags&131072)return Ra;if(n.flags&1048576)return Tl(n,U=>ao(U,a,c));let p=pi(Vt(a,ky));const m=[],b=[];for(const U of bs(n)){const H=Zx(U,8576);!aa(H,p)&&!(Vf(U)&6)&&oY(U)?m.push(U):b.push(H)}if(EA(n)||AA(p)){if(b.length&&(p=pi([p,...b])),p.flags&131072)return n;const U=ect();return U?GC(U,[n,p]):nt}const I=da();for(const U of m)I.set(U.escapedName,Bhe(U,!1));const w=bl(c,I,ae,ae,Xd(n));return w.objectFlags|=4194304,w}function zs(n){return!!(n.flags&465829888)&&nc(Ld(n)||Nt,32768)}function Is(n){const a=am(n,zs)?Tl(n,c=>c.flags&465829888?v_(c):c):n;return om(a,524288)}function as(n,a){const c=em(n);return c?Vy(c,a):a}function em(n){const a=xf(n);if(a&&ZR(a)&&a.flowNode){const c=Lv(n);if(c){const p=vt(r0.createStringLiteral(c),n),m=$u(a)?a:r0.createParenthesizedExpression(a),b=vt(r0.createElementAccessExpression(m,p),n);return ps(p,b),ps(b,n),m!==a&&ps(m,b),b.flowNode=a.flowNode,b}}}function xf(n){const a=n.parent.parent;switch(a.kind){case 209:case 304:return em(a);case 210:return em(n.parent);case 261:return a.initializer;case 227:return a.right}}function Lv(n){const a=n.parent;return n.kind===209&&a.kind===207?kv(n.propertyName||n.name):n.kind===304||n.kind===305?kv(n.name):""+a.elements.indexOf(n)}function kv(n){const a=ky(n);return a.flags&384?""+a.value:void 0}function Fg(n){const a=n.dotDotDotToken?32:0,c=Si(n.parent.parent,a);return c&&oT(n,c,!1)}function oT(n,a,c){if(wr(a))return a;const p=n.parent;ie&&n.flags&33554432&&VT(n)?a=By(a):ie&&p.parent.initializer&&!Mh(lFe(p.parent.initializer),65536)&&(a=om(a,524288));const m=32|(c||sR(n)?16:0);let b;if(p.kind===207)if(n.dotDotDotToken){if(a=Pm(a),a.flags&2||!g5(a))return Qe(n,f.Rest_types_may_only_be_created_from_object_types),nt;const I=[];for(const w of p.elements)w.dotDotDotToken||I.push(w.propertyName||w.name);b=ao(a,I,n.symbol)}else{const I=n.propertyName||n.name,w=ky(I),U=Xp(a,w,m,I);b=as(n,U)}else{const I=Uv(65|(n.dotDotDotToken?0:128),a,he,p),w=p.elements.indexOf(n);if(n.dotDotDotToken){const U=Tl(a,H=>H.flags&58982400?v_(H):H);b=Ep(U,Ka)?Tl(U,H=>SL(H,w)):Yd(I)}else if(Vv(a)){const U=Ch(w),H=cT(a,U,m,n.name)||nt;b=as(n,H)}else b=I}return n.initializer?Rc(UE(n))?ie&&!Mh(PL(n,0),16777216)?Is(b):b:wge(n,pi([Is(b),PL(n,0)],2)):b}function cs(n){const a=Yy(n);if(a)return Ji(a)}function Vc(n){const a=us(n,!0);return a.kind===106||a.kind===80&&pu(a)===ce}function wv(n){const a=us(n,!0);return a.kind===210&&a.elements.length===0}function uu(n,a=!1,c=!0){return ie&&c?fT(n,a):n}function Jx(n,a,c){if(yi(n)&&n.parent.parent.kind===250){const I=b_(nge(_o(n.parent.parent.expression,c)));return I.flags&4456448?VWe(I):gt}if(yi(n)&&n.parent.parent.kind===251){const I=n.parent.parent;return V5(I)||Ue}if(Qo(n.parent))return Fg(n);const p=Po(n)&&!Kh(n)||Tu(n)||gie(n),m=a&&PI(n),b=sT(n);if(nG(n))return b?wr(b)||b===Nt?b:nt:X?Nt:Ue;if(b)return uu(b,p,m);if((ve||Ir(n))&&yi(n)&&!Qo(n.name)&&!(W$(n)&32)&&!(n.flags&33554432)){if(!(kE(n)&6)&&(!n.initializer||Vc(n.initializer)))return Rt;if(n.initializer&&wv(n.initializer))return ld}if(to(n)){if(!n.symbol)return;const I=n.parent;if(I.kind===179&&WC(I)){const H=al(Wr(n.parent),178);if(H){const Q=Df(H),Ie=_ye(I);return Ie&&n===Ie?(C.assert(!Ie.type),_r(Q.thisParameter)):fs(Q)}}const w=Alt(I,n);if(w)return w;const U=n.symbol.escapedName==="this"?V_e(I):zFe(n);if(U)return uu(U,!1,m)}if($E(n)&&n.initializer){if(Ir(n)&&!to(n)){const w=rn(n,Wr(n),XN(n));if(w)return w}const I=wge(n,PL(n,c));return uu(I,p,m)}if(Po(n)&&(ve||Ir(n)))if(Oc(n)){const I=Un(n.parent.members,Zl),w=I.length?M(n.symbol,I):Gd(n)&128?_Y(n.symbol):void 0;return w&&uu(w,!0,m)}else{const I=Xk(n.parent),w=I?V(n.symbol,I):Gd(n)&128?_Y(n.symbol):void 0;return w&&uu(w,!0,m)}if(i_(n))return ft;if(Qo(n.name))return dL(n.name,!1,!0)}function zg(n){if(n.valueDeclaration&&Nr(n.valueDeclaration)){const a=Jr(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!br(n)&&Vn(n.declarations,c=>Nr(c)&&GY(c)&&(c.left.kind!==213||uf(c.left.argumentExpression))&&!Or(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function Y_(n){const a=n.valueDeclaration;return a&&Po(a)&&!Rc(a)&&!a.initializer&&(ve||Ir(a))}function br(n){if(n.declarations)for(const a of n.declarations){const c=yu(a,!1,!1);if(c&&(c.kind===177||E_(c)))return c}}function T(n){const a=Wn(n.declarations[0]),c=Gi(n.escapedName),p=n.declarations.every(b=>Ir(b)&&Ks(b)&&gg(b.expression)),m=p?L.createPropertyAccessExpression(L.createPropertyAccessExpression(L.createIdentifier("module"),L.createIdentifier("exports")),c):L.createPropertyAccessExpression(L.createIdentifier("exports"),c);return p&&ps(m.expression.expression,m.expression),ps(m.expression,m),ps(m,a),m.flowNode=a.endFlowNode,Vy(m,Rt,he)}function M(n,a){const c=po(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Gi(n.escapedName);for(const p of a){const m=L.createPropertyAccessExpression(L.createThis(),c);ps(m.expression,m),ps(m,p),m.flowNode=p.returnFlowNode;const b=ue(m,n);if(ve&&(b===Rt||b===ld)&&Qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,uo(n),ar(b)),!Ep(b,b5))return a8(b)}}function V(n,a){const c=po(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Gi(n.escapedName),p=L.createPropertyAccessExpression(L.createThis(),c);ps(p.expression,p),ps(p,a),p.flowNode=a.returnFlowNode;const m=ue(p,n);return ve&&(m===Rt||m===ld)&&Qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,uo(n),ar(m)),Ep(m,b5)?void 0:a8(m)}function ue(n,a){const c=a?.valueDeclaration&&(!Y_(a)||Gd(a.valueDeclaration)&128)&&_Y(a)||he;return Vy(n,Rt,c)}function tt(n,a){const c=fI(n.valueDeclaration);if(c){const w=Ir(c)?PT(c):void 0;return w&&w.typeExpression?Ji(w.typeExpression):n.valueDeclaration&&rn(n.valueDeclaration,n,c)||Q0(jl(c))}let p,m=!1,b=!1;if(zg(n)&&(p=V(n,br(n))),!p){let w;if(n.declarations){let U;for(const H of n.declarations){const Q=Nr(H)||Zo(H)?H:Ks(H)?Nr(H.parent)?H.parent:H:void 0;if(!Q)continue;const Ie=Ks(Q)?lk(Q):ac(Q);(Ie===4||Nr(Q)&&GY(Q,Ie))&&(of(Q)?m=!0:b=!0),Zo(Q)||(U=Or(U,Q,n,H)),U||(w||(w=[])).push(Nr(Q)||Zo(Q)?ko(n,a,Q,Ie):yn)}p=U}if(!p){if(!et(w))return nt;let U=m&&n.declarations?aT(w,n.declarations):void 0;if(b){const Q=_Y(n);Q&&((U||(U=[])).push(Q),m=!0)}const H=yt(U,Q=>!!(Q.flags&-98305))?U:w;p=pi(H)}}const I=$p(uu(p,!1,b&&!m));return n.valueDeclaration&&Ir(n.valueDeclaration)&&Ac(I,w=>!!(w.flags&-98305))===yn?(Z0(n.valueDeclaration,Ue),Ue):I}function rn(n,a,c){var p,m;if(!Ir(n)||!c||!Wa(c)||c.properties.length)return;const b=da();for(;Nr(n)||qr(n);){const U=If(n);(p=U?.exports)!=null&&p.size&&m_(b,U.exports),n=Nr(n)?n.parent:n.parent.parent}const I=If(n);(m=I?.exports)!=null&&m.size&&m_(b,I.exports);const w=bl(a,b,ae,ae,ae);return w.objectFlags|=4096,w}function Or(n,a,c,p){var m;const b=Rc(a.parent);if(b){const I=$p(Ji(b));if(n)!pr(n)&&!pr(I)&&!Hg(n,I)&&J4e(void 0,n,p,I);else return I}if((m=c.parent)!=null&&m.valueDeclaration){const I=F0(c.parent);if(I.valueDeclaration){const w=Rc(I.valueDeclaration);if(w){const U=Ea(Ji(w),c.escapedName);if(U)return xh(U)}}}return n}function ko(n,a,c,p){if(Zo(c)){if(a)return _r(a);const I=jl(c.arguments[2]),w=_n(I,"value");if(w)return w;const U=_n(I,"get");if(U){const Q=OA(U);if(Q)return fs(Q)}const H=_n(I,"set");if(H){const Q=OA(H);if(Q)return Ige(Q)}return Ue}if(nl(c.left,c.right))return Ue;const m=p===1&&(qr(c.left)||Ws(c.left))&&(gg(c.left.expression)||He(c.left.expression)&&n1(c.left.expression)),b=a?_r(a):m?Du(jl(c.right)):Q0(jl(c.right));if(b.flags&524288&&p===2&&n.escapedName==="export="){const I=Dh(b),w=da();yF(I.members,w);const U=w.size;a&&!a.exports&&(a.exports=da()),(a||n).exports.forEach((Q,Ie)=>{var Te;const Ze=w.get(Ie);if(Ze&&Ze!==Q&&!(Q.flags&2097152))if(Q.flags&111551&&Ze.flags&111551){if(Q.valueDeclaration&&Ze.valueDeclaration&&Wn(Q.valueDeclaration)!==Wn(Ze.valueDeclaration)){const Dt=Gi(Q.escapedName),$t=((Te=ni(Ze.valueDeclaration,nd))==null?void 0:Te.name)||Ze.valueDeclaration;pa(Qe(Q.valueDeclaration,f.Duplicate_identifier_0,Dt),Ar($t,f._0_was_also_declared_here,Dt)),pa(Qe($t,f.Duplicate_identifier_0,Dt),Ar(Q.valueDeclaration,f._0_was_also_declared_here,Dt))}const Tt=ja(Q.flags|Ze.flags,Ie);Tt.links.type=pi([_r(Q),_r(Ze)]),Tt.valueDeclaration=Ze.valueDeclaration,Tt.declarations=so(Ze.declarations,Q.declarations),w.set(Ie,Tt)}else w.set(Ie,$f(Q,Ze));else w.set(Ie,Q)});const H=bl(U!==w.size?void 0:I.symbol,w,I.callSignatures,I.constructSignatures,I.indexInfos);if(U===w.size&&(b.aliasSymbol&&(H.aliasSymbol=b.aliasSymbol,H.aliasTypeArguments=b.aliasTypeArguments),Hr(b)&4)){H.aliasSymbol=b.symbol;const Q=rl(b);H.aliasTypeArguments=et(Q)?Q:void 0}return H.objectFlags|=Wz([b])|Hr(b)&20608,H.symbol&&H.symbol.flags&32&&b===tm(H.symbol)&&(H.objectFlags|=16777216),H}return yY(b)?(Z0(c,bd),bd):b}function nl(n,a){return qr(n)&&n.expression.kind===110&&$I(a,c=>Ad(n,c))}function of(n){const a=yu(n,!1,!1);return a.kind===177||a.kind===263||a.kind===219&&!ck(a.parent)}function aT(n,a){return C.assert(n.length===a.length),n.filter((c,p)=>{const m=a[p],b=Nr(m)?m:Nr(m.parent)?m.parent:void 0;return b&&of(b)})}function Ih(n,a,c){if(n.initializer){const p=Qo(n.name)?dL(n.name,!0,!1):Nt;return uu(v4e(n,PL(n,0,p)))}return Qo(n.name)?dL(n.name,a,c):(c&&!PX(n)&&Z0(n,Ue),a?Tr:Ue)}function Kx(n,a,c){const p=da();let m,b=131200;Ye(n.elements,w=>{const U=w.propertyName||w.name;if(w.dotDotDotToken){m=jg(gt,Ue,!1);return}const H=ky(U);if(!jf(H)){b|=512;return}const Q=Uf(H),Ie=4|(w.initializer?16777216:0),Te=ja(Ie,Q);Te.links.type=Ih(w,a,c),p.set(Te.escapedName,Te)});const I=bl(void 0,p,ae,ae,m?[m]:ae);return I.objectFlags|=b,a&&(I.pattern=n,I.objectFlags|=131072),I}function Wme(n,a,c){const p=n.elements,m=Zs(p),b=m&&m.kind===209&&m.dotDotDotToken?m:void 0;if(p.length===0||p.length===1&&b)return G>=2?xWe(Ue):bd;const I=Vt(p,Q=>Jc(Q)?Ue:Ih(Q,a,c)),w=gl(p,Q=>!(Q===b||Jc(Q)||sR(Q)),p.length-1)+1,U=Vt(p,(Q,Ie)=>Q===b?4:Ie>=w?2:1);let H=eg(I,U);return a&&(H=iWe(H),H.pattern=n,H.objectFlags|=131072),H}function dL(n,a=!1,c=!1){a&&Rm.push(n);const p=n.kind===207?Kx(n,a,c):Wme(n,a,c);return a&&Rm.pop(),p}function Xx(n,a){return mW(Jx(n,!0,0),n,a)}function Fme(n){const a=Vr(n);if(!a.resolvedType){const c=ja(4096,"__importAttributes"),p=da();Ye(n.elements,b=>{const I=ja(4,U6(b));I.parent=c,I.links.type=fyt(b),I.links.target=I,p.set(I.escapedName,I)});const m=bl(c,p,ae,ae,ae);m.objectFlags|=262272,a.resolvedType=m}return a.resolvedType}function zme(n){const a=If(n),c=Blt(!1);return c&&a&&a===c}function mW(n,a,c){return n?(n.flags&4096&&zme(a.parent)&&(n=Ghe(a)),c&&xY(a,n),n.flags&8192&&(Ha(a)||!sT(a))&&n.symbol!==Wr(a)&&(n=Qt),$p(n)):(n=to(a)&&a.dotDotDotToken?bd:Ue,c&&(PX(a)||Z0(a,n)),n)}function PX(n){const a=Jh(n),c=a.kind===170?a.parent:a;return O5(c)}function sT(n){const a=Rc(n);if(a)return Ji(a)}function Bme(n){let a=n.valueDeclaration;return a?(Ha(a)&&(a=UE(a)),to(a)?cY(a.parent):!1):!1}function Gme(n){const a=Jr(n);if(!a.type){const c=Vme(n);return!a.type&&!Bme(n)&&(a.type=c),c}return a.type}function Vme(n){if(n.flags&4194304)return nn(n);if(n===je)return Ue;if(n.flags&134217728&&n.valueDeclaration){const p=Wr(Wn(n.valueDeclaration)),m=ja(p.flags,"exports");m.declarations=p.declarations?p.declarations.slice():[],m.parent=n,m.links.target=p,p.valueDeclaration&&(m.valueDeclaration=p.valueDeclaration),p.members&&(m.members=new Map(p.members)),p.exports&&(m.exports=new Map(p.exports));const b=da();return b.set("exports",m),bl(n,b,ae,ae,ae)}C.assertIsDefined(n.valueDeclaration);const a=n.valueDeclaration;if(Yi(a)&&Ff(a))return a.statements.length?$p(Q0(_o(a.statements[0].expression))):Ra;if(ub(a))return pL(n);if(!g_(n,0))return n.flags&512&&!(n.flags&67108864)?fL(n):_A(n);let c;if(a.kind===278)c=mW(sT(a)||jl(a.expression),a);else if(Nr(a)||Ir(a)&&(Zo(a)||(qr(a)||qF(a))&&Nr(a.parent)))c=tt(n);else if(qr(a)||Ws(a)||He(a)||ds(a)||np(a)||Cc(a)||ec(a)||Ml(a)&&!mm(a)||Gm(a)||Yi(a)){if(n.flags&9136)return fL(n);c=Nr(a.parent)?tt(n):sT(a)||Ue}else if(Nc(a))c=sT(a)||b4e(a);else if(i_(a))c=sT(a)||e6e(a);else if(Ud(a))c=sT(a)||kL(a.name,0);else if(mm(a))c=sT(a)||T4e(a,0);else if(to(a)||Po(a)||Tu(a)||yi(a)||Ha(a)||PN(a))c=Xx(a,!0);else if(QT(a))c=fL(n);else if(py(a))c=OX(n);else return C.fail("Unhandled declaration kind! "+C.formatSyntaxKind(a.kind)+" for "+C.formatSymbol(n));return rt()?c:n.flags&512&&!(n.flags&67108864)?fL(n):_A(n)}function bE(n){if(n)switch(n.kind){case 178:return kp(n);case 179:return KG(n);case 173:return C.assert(Kh(n)),Rc(n)}}function uL(n){const a=bE(n);return a&&Ji(a)}function Yx(n){const a=_ye(n);return a&&a.symbol}function LX(n){return q0(Df(n))}function pL(n){const a=Jr(n);if(!a.type){if(!g_(n,0))return nt;const c=al(n,178),p=al(n,179),m=ni(al(n,173),Yu);let b=c&&Ir(c)&&cs(c)||uL(c)||uL(p)||uL(m)||c&&c.body&&s$(c)||m&&Xx(m,!0);b||(p&&!O5(p)?Jm(ve,p,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,uo(n)):c&&!O5(c)?Jm(ve,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,uo(n)):m&&!O5(m)&&Jm(ve,m,f.Member_0_implicitly_has_an_1_type,uo(n),"any"),b=Ue),rt()||(bE(c)?Qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,uo(n)):bE(p)||bE(m)?Qe(p,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,uo(n)):c&&ve&&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,uo(n)),b=Ue),a.type??(a.type=b)}return a.type}function kX(n){const a=Jr(n);if(!a.writeType){if(!g_(n,7))return nt;const c=al(n,179)??ni(al(n,173),Yu);let p=uL(c);rt()||(bE(c)&&Qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,uo(n)),p=Ue),a.writeType??(a.writeType=p||pL(n))}return a.writeType}function hW(n){const a=Py(tm(n));return a.flags&8650752?a:a.flags&2097152?hn(a.types,c=>!!(c.flags&8650752)):void 0}function fL(n){let a=Jr(n);const c=a;if(!a.type){const p=n.valueDeclaration&&o$(n.valueDeclaration,!1);if(p){const m=yge(n,p);m&&(n=m,a=m.links)}c.type=a.type=wX(n)}return a.type}function wX(n){const a=n.valueDeclaration;if(n.flags&1536&&V2(n))return Ue;if(a&&(a.kind===227||Ks(a)&&a.parent.kind===227))return tt(n);if(n.flags&512&&a&&Yi(a)&&a.commonJsModuleIndicator){const p=Tp(n);if(p!==n){if(!g_(n,0))return nt;const m=os(n.exports.get("export=")),b=tt(m,m===p?void 0:p);return rt()?b:_A(n)}}const c=_c(16,n);if(n.flags&32){const p=hW(n);return p?Ma([c,p]):c}else return ie&&n.flags&16777216?fT(c,!0):c}function OX(n){const a=Jr(n);return a.type||(a.type=gOe(n))}function jme(n){const a=Jr(n);if(!a.type){if(!g_(n,0))return nt;const c=ud(n),p=n.declarations&&O0(cp(n),!0),m=Hn(p?.declarations,b=>ll(b)?sT(b):void 0);if(a.type??(a.type=p?.declarations&&R$(p.declarations)&&n.declarations.length?T(p):R$(n.declarations)?Rt:m||(dp(c)&111551?_r(c):nt)),!rt())return _A(p??n),a.type??(a.type=nt)}return a.type}function Ume(n){const a=Jr(n);return a.type||(a.type=io(_r(a.target),a.mapper))}function Hme(n){const a=Jr(n);return a.writeType||(a.writeType=io(Ov(a.target),a.mapper))}function _A(n){const a=n.valueDeclaration;if(a){if(Rc(a))return Qe(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,uo(n)),nt;ve&&(a.kind!==170||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,uo(n))}else if(n.flags&2097152){const c=cp(n);c&&Qe(c,f.Circular_definition_of_import_alias_0,uo(n))}return Ue}function WX(n){const a=Jr(n);return a.type||(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?pi(a.deferralConstituents):Ma(a.deferralConstituents)),a.type}function qme(n){const a=Jr(n);return!a.writeType&&a.deferralWriteConstituents&&(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?pi(a.deferralWriteConstituents):Ma(a.deferralWriteConstituents)),a.writeType}function Ov(n){const a=Fl(n);return a&2?a&65536?qme(n)||WX(n):n.links.writeType||n.links.type:n.flags&4?Gy(_r(n),!!(n.flags&16777216)):n.flags&98304?a&1?Hme(n):kX(n):_r(n)}function _r(n){const a=Fl(n);return a&65536?WX(n):a&1?Ume(n):a&262144?olt(n):a&8192?Sut(n):n.flags&7?Gme(n):n.flags&9136?fL(n):n.flags&8?OX(n):n.flags&98304?pL(n):n.flags&2097152?jme(n):nt}function xh(n){return Gy(_r(n),!!(n.flags&16777216))}function FX(n,a){if(n===void 0||!(Hr(n)&4))return!1;for(const c of a)if(n.target===c)return!0;return!1}function Jp(n,a){return n!==void 0&&a!==void 0&&(Hr(n)&4)!==0&&n.target===a}function zn(n){return Hr(n)&4?n.target:n}function Ur(n,a){return c(n);function c(p){if(Hr(p)&7){const m=zn(p);return m===a||yt(Zm(m),c)}else if(p.flags&2097152)return yt(p.types,c);return!1}}function $r(n,a){for(const c of a)n=$g(n,j0(Wr(c)));return n}function Mi(n,a){for(;;){if(n=n.parent,n&&Nr(n)){const p=ac(n);if(p===6||p===3){const m=Wr(n.left);m&&m.parent&&!Dn(m.parent.valueDeclaration,b=>n===b)&&(n=m.parent.valueDeclaration)}}if(!n)return;const c=n.kind;switch(c){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{const m=Mi(n,a);if((c===219||c===220||mm(n))&&Cf(n)){const w=Ic(na(_r(Wr(n)),0));if(w&&w.typeParameters)return[...m||ae,...w.typeParameters]}if(c===201)return Bn(m,j0(Wr(n.typeParameter)));if(c===195)return so(m,Whe(n));const b=$r(m,sb(n)),I=a&&(c===264||c===232||c===265||E_(n))&&tm(Wr(n)).thisType;return I?Bn(b,I):b}case 342:const p=mk(n);p&&(n=p.valueDeclaration);break;case 321:{const m=Mi(n,a);return n.tags?$r(m,Ki(n.tags,b=>bm(b)?b.typeParameters:void 0)):m}}}}function Wi(n){var a;const c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(p=>{if(p.kind===265)return!0;if(p.kind!==261)return!1;const m=p.initializer;return!!m&&(m.kind===219||m.kind===220)});return C.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Mi(c)}function Na(n){if(!n.declarations)return;let a;for(const c of n.declarations)(c.kind===265||c.kind===264||c.kind===232||E_(c)||pk(c))&&(a=$r(a,sb(c)));return a}function Bs(n){return so(Wi(n),Na(n))}function Ed(n){const a=na(n,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&au(c)){const p=R5(c.parameters[0]);return wr(p)||n5(p)===Ue}}return!1}function Rh(n){if(na(n,1).length>0)return!0;if(n.flags&8650752){const a=Ld(n);return!!a&&Ed(a)}return!1}function Mm(n){const a=cy(n.symbol);return a&&lh(a)}function Qm(n,a,c){const p=et(a),m=Ir(c);return Un(na(n,1),b=>(m||p>=Z_(b.typeParameters))&&p<=et(b.typeParameters))}function Bg(n,a,c){const p=Qm(n,a,c),m=Vt(a,Ji);return Zi(p,b=>yt(b.typeParameters)?SW(b,m,Ir(c)):b)}function Py(n){if(!n.resolvedBaseConstructorType){const a=cy(n.symbol),c=a&&lh(a),p=Mm(n);if(!p)return n.resolvedBaseConstructorType=he;if(!g_(n,1))return nt;const m=_o(p.expression);if(c&&p!==c&&(C.assert(!c.typeArguments),_o(c.expression)),m.flags&2621440&&Dh(m),!rt())return Qe(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,uo(n.symbol)),n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=nt);if(!(m.flags&1)&&m!==Pe&&!Rh(m)){const b=Qe(p.expression,f.Type_0_is_not_a_constructor_function_type,ar(m));if(m.flags&262144){const I=vL(m);let w=Nt;if(I){const U=na(I,1);U[0]&&(w=fs(U[0]))}m.symbol.declarations&&pa(b,Ar(m.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,uo(m.symbol),ar(w)))}return n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=nt)}n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=m)}return n.resolvedBaseConstructorType}function wC(n){let a=ae;if(n.symbol.declarations)for(const c of n.symbol.declarations){const p=tD(c);if(p)for(const m of p){const b=Ji(m);pr(b)||(a===ae?a=[b]:a.push(b))}}return a}function mL(n,a){Qe(n,f.Type_0_recursively_references_itself_as_a_base_type,ar(a,void 0,2))}function Zm(n){if(!n.baseTypesResolved){if(g_(n,6)&&(n.objectFlags&8?n.resolvedBaseTypes=[Nst(n)]:n.symbol.flags&96?(n.symbol.flags&32&&Mst(n),n.symbol.flags&64&&Lst(n)):C.fail("type must be class or interface"),!rt()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===264||a.kind===265)&&mL(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function Nst(n){const a=Zi(n.typeParameters,(c,p)=>n.elementFlags[p]&8?Xp(c,Bt):c);return Yd(pi(a||ae),n.readonly)}function Mst(n){n.resolvedBaseTypes=q9;const a=Ru(Py(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=ae;const c=Mm(n);let p;const m=a.symbol?qs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Pst(m))p=oWe(c,a.symbol);else if(a.flags&1)p=a;else{const I=Bg(a,c.typeArguments,c);if(!I.length)return Qe(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=ae;p=fs(I[0])}if(pr(p))return n.resolvedBaseTypes=ae;const b=Pm(p);if(!Cz(b)){const I=ohe(void 0,p),w=qo(I,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ar(b));return ns.add(hg(Wn(c.expression),c.expression,w)),n.resolvedBaseTypes=ae}return n===b||Ur(b,n)?(Qe(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,ar(n,void 0,2)),n.resolvedBaseTypes=ae):(n.resolvedBaseTypes===q9&&(n.members=void 0),n.resolvedBaseTypes=[b])}function Pst(n){const a=n.outerTypeParameters;if(a){const c=a.length-1,p=rl(n);return a[c].symbol!==p[c].symbol}return!0}function Cz(n){if(n.flags&262144){const a=Ld(n);if(a)return Cz(a)}return!!(n.flags&67633153&&!up(n)||n.flags&2097152&&Vn(n.types,Cz))}function Lst(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||ae,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===265&&tM(a))for(const c of tM(a)){const p=Pm(Ji(c));pr(p)||(Cz(p)?n!==p&&!Ur(p,n)?n.resolvedBaseTypes===ae?n.resolvedBaseTypes=[p]:n.resolvedBaseTypes.push(p):mL(a,n):Qe(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function kst(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===265){if(a.flags&256)return!1;const c=tM(a);if(c){for(const p of c)if(Ds(p.expression)){const m=Vl(p.expression,788968,!0);if(!m||!(m.flags&64)||tm(m).thisType)return!1}}}return!0}function tm(n){let a=Jr(n);const c=a;if(!a.declaredType){const p=n.flags&32?1:2,m=yge(n,n.valueDeclaration&&kmt(n.valueDeclaration));m&&(n=m,a=m.links);const b=c.declaredType=a.declaredType=_c(p,n),I=Wi(n),w=Na(n);(I||w||p===1||!kst(n))&&(b.objectFlags|=4,b.typeParameters=so(I,w),b.outerTypeParameters=I,b.localTypeParameters=w,b.instantiations=new Map,b.instantiations.set(Lm(b.typeParameters),b),b.target=b,b.resolvedTypeArguments=b.typeParameters,b.thisType=Gu(n),b.thisType.isThisType=!0,b.thisType.constraint=b)}return a.declaredType}function mOe(n){var a;const c=Jr(n);if(!c.declaredType){if(!g_(n,2))return nt;const p=C.checkDefined((a=n.declarations)==null?void 0:a.find(pk),"Type alias symbol with no valid declaration found"),m=hm(p)?p.typeExpression:p.type;let b=m?Ji(m):nt;if(rt()){const I=Na(n);I&&(c.typeParameters=I,c.instantiations=new Map,c.instantiations.set(Lm(I),b)),b===Oe&&n.escapedName==="BuiltinIteratorReturn"&&(b=The())}else b=nt,p.kind===341?Qe(p.typeExpression.type,f.Type_alias_0_circularly_references_itself,uo(n)):Qe(nd(p)&&p.name||p,f.Type_alias_0_circularly_references_itself,uo(n));c.declaredType??(c.declaredType=b)}return c.declaredType}function zX(n){return n.flags&1056&&n.symbol.flags&8?qs(Yc(n.symbol)):n}function hOe(n){const a=Jr(n);if(!a.declaredType){const c=[];if(n.declarations){for(const m of n.declarations)if(m.kind===267){for(const b of m.members)if(WC(b)){const I=Wr(b),w=FA(b).value,U=nR(w!==void 0?ndt(w,Ta(n),I):_Oe(I));Jr(I).declaredType=U,c.push(Du(U))}}}const p=c.length?pi(c,1,n,void 0):_Oe(n);p.flags&1048576&&(p.flags|=1024,p.symbol=n),a.declaredType=p}return a.declaredType}function _Oe(n){const a=wi(32,n),c=wi(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function gOe(n){const a=Jr(n);if(!a.declaredType){const c=hOe(Yc(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function j0(n){const a=Jr(n);return a.declaredType||(a.declaredType=Gu(n))}function wst(n){const a=Jr(n);return a.declaredType||(a.declaredType=qs(ud(n)))}function qs(n){return yOe(n)||nt}function yOe(n){if(n.flags&96)return tm(n);if(n.flags&524288)return mOe(n);if(n.flags&262144)return j0(n);if(n.flags&384)return hOe(n);if(n.flags&8)return gOe(n);if(n.flags&2097152)return wst(n)}function Nz(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 202:return!0;case 189:return Nz(n.elementType);case 184:return!n.typeArguments||n.typeArguments.every(Nz)}return!1}function Ost(n){const a=OR(n);return!a||Nz(a)}function vOe(n){const a=Rc(n);return a?Nz(a):!Qy(n)}function Wst(n){const a=kp(n),c=sb(n);return(n.kind===177||!!a&&Nz(a))&&n.parameters.every(vOe)&&c.every(Ost)}function Fst(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 173:case 172:return vOe(a);case 175:case 174:case 177:case 178:case 179:return Wst(a)}}return!1}function bOe(n,a,c){const p=da();for(const m of n)p.set(m.escapedName,c&&Fst(m)?m:Hhe(m,a));return p}function TOe(n,a){for(const c of a){if(SOe(c))continue;const p=n.get(c.escapedName);(!p||p.valueDeclaration&&Nr(p.valueDeclaration)&&!zg(p)&&!Fte(p.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function SOe(n){return!!n.valueDeclaration&&tu(n.valueDeclaration)&&ua(n.valueDeclaration)}function Jme(n){if(!n.declaredProperties){const a=n.symbol,c=$_(a);n.declaredProperties=Vu(c),n.declaredCallSignatures=ae,n.declaredConstructSignatures=ae,n.declaredIndexInfos=ae,n.declaredCallSignatures=EE(c.get("__call")),n.declaredConstructSignatures=EE(c.get("__new")),n.declaredIndexInfos=tWe(a)}return n}function Kme(n){return AOe(n)&&jf(va(n)?th(n):jl(n.argumentExpression))}function EOe(n){return AOe(n)&&zst(va(n)?th(n):jl(n.argumentExpression))}function AOe(n){if(!va(n)&&!Ws(n))return!1;const a=va(n)?n.expression:n.argumentExpression;return Ds(a)}function zst(n){return aa(n,Ii)}function _W(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function OC(n){const a=Oo(n);return!!a&&Kme(a)}function IOe(n){const a=Oo(n);return!!a&&EOe(a)}function WC(n){return!oy(n)||OC(n)}function xOe(n){return ZF(n)&&!Kme(n)}function Bst(n,a,c){C.assert(!!(Fl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Jr(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&YN(n,a)}function ROe(n,a,c,p){C.assert(!!p.symbol,"The member is expected to have a symbol.");const m=Vr(p);if(!m.resolvedSymbol){m.resolvedSymbol=p.symbol;const b=Nr(p)?p.left:p.name,I=Ws(b)?jl(b.argumentExpression):th(b);if(jf(I)){const w=Uf(I),U=p.symbol.flags;let H=c.get(w);H||c.set(w,H=ja(0,w,4096));const Q=a&&a.get(w);if(!(n.flags&32)&&H.flags&$1(U)){const Ie=Q?so(Q.declarations,H.declarations):H.declarations,Te=!(I.flags&8192)&&Gi(w)||ws(b);Ye(Ie,Ze=>Qe(Oo(Ze)||Ze,f.Property_0_was_also_declared_here,Te)),Qe(b||p,f.Duplicate_property_0,Te),H=ja(0,w,4096)}return H.links.nameType=I,Bst(H,p,U),H.parent?C.assert(H.parent===n,"Existing symbol parent should match new one"):H.parent=n,m.resolvedSymbol=H}}return m.resolvedSymbol}function Gst(n,a,c,p){let m=c.get("__index");if(!m){const b=a?.get("__index");b?(m=dE(b),m.links.checkFlags|=4096):m=ja(0,"__index",4096),c.set("__index",m)}m.declarations?p.symbol.isReplaceableByMethod||m.declarations.push(p):m.declarations=[p]}function Xme(n,a){const c=Jr(n);if(!c[a]){const p=a==="resolvedExports",m=p?n.flags&1536?cA(n).exports:n.exports:n.members;c[a]=m||k;const b=da();for(const U of n.declarations||ae){const H=Mte(U);if(H)for(const Q of H)p===Oc(Q)&&(OC(Q)?ROe(n,m,b,Q):IOe(Q)&&Gst(n,m,b,Q))}const I=F0(n).assignmentDeclarationMembers;if(I){const U=Co(I.values());for(const H of U){const Q=ac(H),Ie=Q===3||Nr(H)&&GY(H,Q)||Q===9||Q===6;p===!Ie&&OC(H)&&ROe(n,m,b,H)}}let w=xv(m,b);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(const U of n.declarations){const H=Jr(U.symbol)[a];if(!w){w=H;continue}H&&H.forEach((Q,Ie)=>{const Te=w.get(Ie);if(!Te)w.set(Ie,Q);else{if(Te===Q)return;w.set(Ie,$f(Te,Q))}})}c[a]=w||k}return c[a]}function $_(n){return n.flags&6256?Xme(n,"resolvedMembers"):n.members||k}function BX(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=Jr(n);if(!a.lateSymbol&&yt(n.declarations,OC)){const c=os(n.parent);yt(n.declarations,Oc)?qp(c):$_(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Kp(n,a,c){if(Hr(n)&4){const p=n.target,m=rl(n);return et(p.typeParameters)===et(m)?Ly(p,so(m,[a||p.thisType])):n}else if(n.flags&2097152){const p=Zi(n.types,m=>Kp(m,a,c));return p!==n.types?Ma(p):n}return c?Ru(n):n}function DOe(n,a,c,p){let m,b,I,w,U;AB(c,p,0,c.length)?(b=a.symbol?$_(a.symbol):da(a.declaredProperties),I=a.declaredCallSignatures,w=a.declaredConstructSignatures,U=a.declaredIndexInfos):(m=Yp(c,p),b=bOe(a.declaredProperties,m,c.length===1),I=sY(a.declaredCallSignatures,m),w=sY(a.declaredConstructSignatures,m),U=o8e(a.declaredIndexInfos,m));const H=Zm(a);if(H.length){if(a.symbol&&b===$_(a.symbol)){const Ie=da(a.declaredProperties),Te=HX(a.symbol);Te&&Ie.set("__index",Te),b=Ie}Nm(n,b,I,w,U);const Q=Zs(p);for(const Ie of H){const Te=Q?Kp(io(Ie,m),Q):Ie;TOe(b,bs(Te)),I=so(I,na(Te,0)),w=so(w,na(Te,1));const Ze=Te!==Ue?Xd(Te):[So];U=so(U,Un(Ze,Tt=>!gL(U,Tt.keyType)))}}Nm(n,b,I,w,U)}function Vst(n){DOe(n,Jme(n),ae,ae)}function jst(n){const a=Jme(n.target),c=so(a.typeParameters,[a.thisType]),p=rl(n),m=p.length===c.length?p:so(p,[n]);DOe(n,a,c,m)}function y_(n,a,c,p,m,b,I,w){const U=new u(ir,w);return U.declaration=n,U.typeParameters=a,U.parameters=p,U.thisParameter=c,U.resolvedReturnType=m,U.resolvedTypePredicate=b,U.minArgumentCount=I,U.resolvedMinArgumentCount=void 0,U.target=void 0,U.mapper=void 0,U.compositeSignatures=void 0,U.compositeKind=void 0,U}function gW(n){const a=y_(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 COe(n,a){const c=gW(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Ust(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]=Hst(n,a))}function Hst(n,a){C.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=gW(n);return c.flags|=a,c}function NOe(n,a){if(au(n)){const m=n.parameters.length-1,b=n.parameters[m],I=_r(b);if(Ka(I))return[c(I,m,b)];if(!a&&I.flags&1048576&&Vn(I.types,Ka))return Vt(I.types,w=>c(w,m,b))}return[n.parameters];function c(m,b,I){const w=rl(m),U=p(m,I),H=Vt(w,(Q,Ie)=>{const Te=U&&U[Ie]?U[Ie]:ML(n,b+Ie,m),Ze=m.target.elementFlags[Ie],Tt=Ze&12?32768:Ze&2?16384:0,Dt=ja(1,Te,Tt);return Dt.links.type=Ze&4?Yd(Q):Q,Dt});return so(n.parameters.slice(0,b),H)}function p(m,b){const I=Vt(m.target.labeledElementDeclarations,(w,U)=>Age(w,U,m.target.elementFlags[U],b));if(I){const w=[],U=new Set;for(let Q=0;Q=Ie&&U<=Te){const Ze=Te?UX(Q,zv(w,Q.typeParameters,Ie,I)):gW(Q);Ze.typeParameters=n.localTypeParameters,Ze.resolvedReturnType=n,Ze.flags=m?Ze.flags|4:Ze.flags&-5,H.push(Ze)}}return H}function GX(n,a,c,p,m){for(const b of n)if(e5(b,a,c,p,m,c?vdt:NW))return b}function Jst(n,a,c){if(a.typeParameters){if(c>0)return;for(let m=1;m1&&(c=c===void 0?p:-1);for(const m of n[p])if(!a||!GX(a,m,!1,!1,!0)){const b=Jst(n,m,p);if(b){let I=m;if(b.length>1){let w=m.thisParameter;const U=Ye(b,H=>H.thisParameter);if(U){const H=Ma(Ui(b,Q=>Q.thisParameter&&_r(Q.thisParameter)));w=DA(U,H)}I=COe(m,b),I.thisParameter=w}(a||(a=[])).push(I)}}}if(!et(a)&&c!==-1){const p=n[c!==void 0?c:0];let m=p.slice();for(const b of n)if(b!==p){const I=b[0];if(C.assert(!!I,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),m=I.typeParameters&&yt(m,w=>!!w.typeParameters&&!MOe(I.typeParameters,w.typeParameters))?void 0:Vt(m,w=>Yst(w,I)),!m)break}a=m}return a||ae}function MOe(n,a){if(et(n)!==et(a))return!1;if(!n||!a)return!0;const c=Yp(a,n);for(let p=0;p=m?n:a,I=b===n?a:n,w=b===n?p:m,U=ng(n)||ng(a),H=U&&!ng(b),Q=new Array(w+(H?1:0));for(let Ie=0;Ie=kh(b)&&Ie>=kh(I),Tn=Ie>=p?void 0:ML(n,Ie),nr=Ie>=m?void 0:ML(a,Ie),yr=Tn===nr?Tn:Tn?nr?void 0:Tn:nr,Sn=ja(1|($t&&!Dt?16777216:0),yr||`arg${Ie}`,Dt?32768:$t?16384:0);Sn.links.type=Dt?Yd(Tt):Tt,Q[Ie]=Sn}if(H){const Ie=ja(1,"args",32768);Ie.links.type=Yd(Lh(I,w)),I===a&&(Ie.links.type=io(Ie.links.type,c)),Q[w]=Ie}return Q}function Yst(n,a){const c=n.typeParameters||a.typeParameters;let p;n.typeParameters&&a.typeParameters&&(p=Yp(a.typeParameters,n.typeParameters));let m=(n.flags|a.flags)&166;const b=n.declaration,I=Xst(n,a,p),w=Zs(I);w&&Fl(w)&32768&&(m|=1);const U=Kst(n.thisParameter,a.thisParameter,p),H=Math.max(n.minArgumentCount,a.minArgumentCount),Q=y_(b,c,U,I,void 0,void 0,H,m);return Q.compositeKind=1048576,Q.compositeSignatures=so(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),p?Q.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?X0(n.mapper,p):p:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(Q.mapper=n.mapper),Q}function POe(n){const a=Xd(n[0]);if(a){const c=[];for(const p of a){const m=p.keyType;Vn(n,b=>!!Vg(b,m))&&c.push(jg(m,pi(Vt(n,b=>H0(b,m))),yt(n,b=>Vg(b,m).isReadonly)))}return c}return ae}function $st(n){const a=Yme(Vt(n.types,m=>m===er?[si]:na(m,0))),c=Yme(Vt(n.types,m=>na(m,1))),p=POe(n.types);Nm(n,k,a,c,p)}function Mz(n,a){return n?a?Ma([n,a]):n:a}function LOe(n){const a=Io(n,p=>na(p,1).length>0),c=Vt(n,Ed);if(a>0&&a===Io(c,p=>p)){const p=c.indexOf(!0);c[p]=!1}return c}function Qst(n,a,c,p){const m=[];for(let b=0;bw);for(let w=0;w0&&(H=Vt(H,Q=>{const Ie=gW(Q);return Ie.resolvedReturnType=Qst(fs(Q),m,b,w),Ie})),c=kOe(c,H)}a=kOe(a,na(U,0)),p=_u(Xd(U),(H,Q)=>wOe(H,Q,!1),p)}Nm(n,k,a||ae,c||ae,p||ae)}function kOe(n,a){for(const c of a)(!n||Vn(n,p=>!e5(p,c,!1,!1,!1,NW)))&&(n=Bn(n,c));return n}function wOe(n,a,c){if(n)for(let p=0;p{var U;!(w.flags&418)&&!(w.flags&512&&((U=w.declarations)!=null&&U.length)&&Vn(w.declarations,gu))&&I.set(w.escapedName,w)}),c=I}let m;if(Nm(n,c,ae,ae,ae),a.flags&32){const I=tm(a),w=Py(I);w.flags&11272192?(c=da(jx(c)),TOe(c,bs(w))):w===Ue&&(m=So)}const b=qX(c);if(b?p=JX(b,Co(c.values())):(m&&(p=Bn(p,m)),a.flags&384&&(qs(a).flags&32||yt(n.properties,I=>!!(_r(I).flags&296)))&&(p=Bn(p,ro))),Nm(n,c,ae,ae,p||ae),a.flags&8208&&(n.callSignatures=EE(a)),a.flags&32){const I=tm(a);let w=a.members?EE(a.members.get("__constructor")):ae;a.flags&16&&(w=Xr(w.slice(),Ui(n.callSignatures,U=>E_(U.declaration)?y_(U.declaration,U.typeParameters,U.thisParameter,U.parameters,I,void 0,U.minArgumentCount,U.flags&167):void 0))),w.length||(w=qst(I)),n.constructSignatures=w}}function tlt(n,a,c){return io(n,Yp([a.indexType,a.objectType],[Ch(0),eg([c])]))}function nlt(n){const a=Rf(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 p=Ma(c.types.filter(m=>m!==n.constraintType));return p!==yn?p:void 0}function rlt(n){const a=Vg(n.source,gt),c=Q_(n.mappedType),p=!(c&1),m=c&4?0:16777216,b=a?[jg(gt,DY(a.type,n.mappedType,n.constraintType)||Nt,p&&a.isReadonly)]:ae,I=da(),w=nlt(n);for(const U of bs(n.source)){if(w){const Ie=Zx(U,8576);if(!aa(Ie,w))continue}const H=8192|(p&&wh(U)?8:0),Q=ja(4|U.flags&m,U.escapedName,H);if(Q.declarations=U.declarations,Q.links.nameType=Jr(U).nameType,Q.links.propertyType=_r(U),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const Ie=n.constraintType.type.objectType,Te=tlt(n.mappedType,n.constraintType.type,Ie);Q.links.mappedType=Te,Q.links.constraintType=b_(Ie)}else Q.links.mappedType=n.mappedType,Q.links.constraintType=n.constraintType;I.set(U.escapedName,Q)}Nm(n,I,ae,ae,b)}function Pz(n){if(n.flags&4194304){const a=Ru(n.type);return pT(a)?NWe(a):b_(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,c=Pz(a);if(c!==a)return Jhe(n,IA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return Tl(n,Pz,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===fa?n:Ma(Zi(n.types,Pz))}return n}function $me(n){return Fl(n)&4096}function Qme(n,a,c,p){for(const m of bs(n))p(Zx(m,a));if(n.flags&1)p(gt);else for(const m of Xd(n))(!c||m.keyType.flags&134217732)&&p(m.keyType)}function ilt(n){const a=da();let c;Nm(n,k,ae,ae,ae);const p=eh(n),m=Rf(n),b=n.target||n,I=Wv(b),w=yW(b)!==2,U=Gg(b),H=Ru(U0(n)),Q=Q_(n);FC(n)?Qme(H,8576,!1,Te):PA(Pz(m),Te),Nm(n,a,ae,ae,c||ae);function Te(Tt){const Dt=I?io(I,RW(n.mapper,p,Tt)):Tt;PA(Dt,$t=>Ze(Tt,$t))}function Ze(Tt,Dt){if(jf(Dt)){const $t=Uf(Dt),Tn=a.get($t);if(Tn)Tn.links.nameType=pi([Tn.links.nameType,Dt]),Tn.links.keyType=pi([Tn.links.keyType,Tt]);else{const nr=jf(Tt)?Ea(H,Uf(Tt)):void 0,yr=!!(Q&4||!(Q&8)&&nr&&nr.flags&16777216),Sn=!!(Q&1||!(Q&2)&&nr&&wh(nr)),vn=ie&&!yr&&nr&&nr.flags&16777216,Sr=nr?$me(nr):0,fi=ja(4|(yr?16777216:0),$t,Sr|262144|(Sn?8:0)|(vn?524288:0));fi.links.mappedType=n,fi.links.nameType=Dt,fi.links.keyType=Tt,nr&&(fi.links.syntheticOrigin=nr,fi.declarations=w?nr.declarations:void 0),a.set($t,fi)}}else if(KX(Dt)||Dt.flags&33){const $t=Dt.flags&5?gt:Dt.flags&40?Bt:Dt,Tn=io(U,RW(n.mapper,p,Tt)),nr=vW(H,Dt),yr=!!(Q&1||!(Q&2)&&nr?.isReadonly),Sn=jg($t,Tn,yr);c=wOe(c,Sn,!0)}}}function olt(n){var a;if(!n.links.type){const c=n.links.mappedType;if(!g_(n,0))return c.containsError=!0,nt;const p=Gg(c.target||c),m=RW(c.mapper,eh(c),n.links.keyType),b=io(p,m);let I=ie&&n.flags&16777216&&!nc(b,49152)?fT(b,!0):n.links.checkFlags&524288?EY(b):b;rt()||(Qe(R,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,uo(n),ar(c)),I=nt),(a=n.links).type??(a.type=I)}return n.links.type}function eh(n){return n.typeParameter||(n.typeParameter=j0(Wr(n.declaration.typeParameter)))}function Rf(n){return n.constraintType||(n.constraintType=ju(eh(n))||nt)}function Wv(n){return n.declaration.nameType?n.nameType||(n.nameType=io(Ji(n.declaration.nameType),n.mapper)):void 0}function Gg(n){return n.templateType||(n.templateType=n.declaration.type?io(uu(Ji(n.declaration.type),!0,!!(Q_(n)&4)),n.mapper):nt)}function OOe(n){return OR(n.declaration.typeParameter)}function FC(n){const a=OOe(n);return a.kind===199&&a.operator===143}function U0(n){if(!n.modifiersType)if(FC(n))n.modifiersType=io(Ji(OOe(n).type),n.mapper);else{const a=whe(n.declaration),c=Rf(a),p=c&&c.flags&262144?ju(c):c;n.modifiersType=p&&p.flags&4194304?io(p.type,n.mapper):Nt}return n.modifiersType}function Q_(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 WOe(n){const a=Q_(n);return a&8?-1:a&4?1:0}function hL(n){if(Hr(n)&32)return WOe(n)||hL(U0(n));if(n.flags&2097152){const a=hL(n.types[0]);return Vn(n.types,(c,p)=>p===0||hL(c)===a)?a:0}return 0}function alt(n){return!!(Hr(n)&32&&Q_(n)&4)}function up(n){if(Hr(n)&32){const a=Rf(n);if(AA(a))return!0;const c=Wv(n);if(c&&AA(io(c,RE(eh(n),a))))return!0}return!1}function yW(n){const a=Wv(n);return a?aa(a,eh(n))?1:2:0}function Dh(n){return n.members||(n.flags&524288?n.objectFlags&4?jst(n):n.objectFlags&3?Vst(n):n.objectFlags&1024?rlt(n):n.objectFlags&16?elt(n):n.objectFlags&32?ilt(n):C.fail("Unhandled object type "+C.formatObjectFlags(n.objectFlags)):n.flags&1048576?$st(n):n.flags&2097152?Zst(n):C.fail("Unhandled type "+C.formatTypeFlags(n.flags))),n}function Fv(n){return n.flags&524288?Dh(n).properties:ae}function TE(n,a){if(n.flags&524288){const p=Dh(n).members.get(a);if(p&&An(p))return p}}function Lz(n){if(!n.resolvedProperties){const a=da();for(const c of n.types){for(const p of bs(c))if(!a.has(p.escapedName)){const m=wz(n,p.escapedName,!!(n.flags&2097152));m&&a.set(p.escapedName,m)}if(n.flags&1048576&&Xd(c).length===0)break}n.resolvedProperties=Vu(a)}return n.resolvedProperties}function bs(n){return n=_L(n),n.flags&3145728?Lz(n):Fv(n)}function slt(n,a){n=_L(n),n.flags&3670016&&Dh(n).members.forEach((c,p)=>{nT(c,p)&&a(c,p)})}function llt(n,a){return a.properties.some(p=>{const m=p.name&&(fh(p.name)?Sp(Kk(p.name)):ky(p.name)),b=m&&jf(m)?Uf(m):void 0,I=b===void 0?void 0:_n(n,b);return!!I&&LW(I)&&!aa(uR(p),I)})}function clt(n){const a=pi(n);if(!(a.flags&1048576))return sye(a);const c=da();for(const p of n)for(const{escapedName:m}of sye(p))if(!c.has(m)){const b=UOe(a,m);b&&c.set(m,b)}return Co(c.values())}function gA(n){return n.flags&262144?ju(n):n.flags&8388608?ult(n):n.flags&16777216?BOe(n):Ld(n)}function ju(n){return kz(n)?vL(n):void 0}function dlt(n,a){const c=DW(n);return!!c&&yA(c,a)}function yA(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&yt((c=n.symbol)==null?void 0:c.declarations,p=>di(p,4096))||n.flags&3145728&&yt(n.types,p=>yA(p,a))||n.flags&8388608&&yA(n.objectType,a+1)||n.flags&16777216&&yA(BOe(n),a+1)||n.flags&33554432&&yA(n.baseType,a)||Hr(n)&32&&dlt(n,a)||pT(n)&&ho(AE(n),(p,m)=>!!(n.target.elementFlags[m]&8)&&yA(p,a))>=0))}function ult(n){return kz(n)?plt(n):void 0}function Zme(n){const a=wy(n,!1);return a!==n?a:gA(n)}function plt(n){if(rhe(n))return rY(n.objectType,n.indexType);const a=Zme(n.indexType);if(a&&a!==n.indexType){const p=cT(n.objectType,a,n.accessFlags);if(p)return p}const c=Zme(n.objectType);if(c&&c!==n.objectType)return cT(c,n.indexType,n.accessFlags)}function ehe(n){if(!n.resolvedDefaultConstraint){const a=$ct(n),c=uT(n);n.resolvedDefaultConstraint=wr(a)?c:wr(c)?a:pi([a,c])}return n.resolvedDefaultConstraint}function FOe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=wy(n.checkType,!1),c=a===n.checkType?gA(a):a;if(c&&c!==n.checkType){const p=Jhe(n,IA(n.root.checkType,c,n.mapper),!0);if(!(p.flags&131072))return n.resolvedConstraintOfDistributive=p,p}}n.resolvedConstraintOfDistributive=!1}function zOe(n){return FOe(n)||ehe(n)}function BOe(n){return kz(n)?zOe(n):void 0}function flt(n,a){let c,p=!1;for(const m of n)if(m.flags&465829888){let b=gA(m);for(;b&&b.flags&21233664;)b=gA(b);b&&(c=Bn(c,b),a&&(c=Bn(c,m)))}else(m.flags&469892092||tg(m))&&(p=!0);if(c&&(a||p)){if(p)for(const m of n)(m.flags&469892092||tg(m))&&(c=Bn(c,m));return $z(Ma(c,2),!1)}}function Ld(n){if(n.flags&464781312||pT(n)){const a=the(n);return a!==ql&&a!==lc?a:void 0}return n.flags&4194304?Ii:void 0}function v_(n){return Ld(n)||n}function kz(n){return the(n)!==lc}function the(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=c(n);function c(b){if(!b.immediateBaseConstraint){if(!g_(b,4))return lc;let I;const w=gY(b);if((a.length<10||a.length<50&&!jn(a,w))&&(a.push(w),I=m(wy(b,!1)),a.pop()),!rt()){if(b.flags&262144){const U=XX(b);if(U){const H=Qe(U,f.Type_parameter_0_has_a_circular_constraint,ar(b));R&&!IS(U,R)&&!IS(R,U)&&pa(H,Ar(R,f.Circularity_originates_in_type_at_this_location))}}I=lc}b.immediateBaseConstraint??(b.immediateBaseConstraint=I||ql)}return b.immediateBaseConstraint}function p(b){const I=c(b);return I!==ql&&I!==lc?I:void 0}function m(b){if(b.flags&262144){const I=vL(b);return b.isThisType||!I?I:p(I)}if(b.flags&3145728){const I=b.types,w=[];let U=!1;for(const H of I){const Q=p(H);Q?(Q!==H&&(U=!0),w.push(Q)):U=!0}return U?b.flags&1048576&&w.length===I.length?pi(w):b.flags&2097152&&w.length?Ma(w):void 0:b}if(b.flags&4194304)return Ii;if(b.flags&134217728){const I=b.types,w=Ui(I,p);return w.length===I.length?TA(b.texts,w):gt}if(b.flags&268435456){const I=p(b.type);return I&&I!==b.type?eR(b.symbol,I):gt}if(b.flags&8388608){if(rhe(b))return p(rY(b.objectType,b.indexType));const I=p(b.objectType),w=p(b.indexType),U=I&&w&&cT(I,w,b.accessFlags);return U&&p(U)}if(b.flags&16777216){const I=zOe(b);return I&&p(I)}if(b.flags&33554432)return p(_he(b));if(pT(b)){const I=Vt(AE(b),(w,U)=>{const H=w.flags&262144&&b.target.elementFlags[U]&8&&p(w)||w;return H!==w&&Ep(H,Q=>$0(Q)&&!pT(Q))?H:w});return eg(I,b.target.elementFlags,b.target.readonly,b.target.labeledElementDeclarations)}return b}}function mlt(n,a){if(n===a)return n.resolvedApparentType||(n.resolvedApparentType=Kp(n,a,!0));const c=`I${pd(n)},${pd(a)}`;return Bu(c)??Dm(c,Kp(n,a,!0))}function nhe(n){if(n.default)n.default===vd&&(n.default=lc);else if(n.target){const a=nhe(n.target);n.default=a?io(a,n.mapper):ql}else{n.default=vd;const a=n.symbol&&Ye(n.symbol.declarations,p=>sl(p)&&p.default),c=a?Ji(a):ql;n.default===vd&&(n.default=c)}return n.default}function SE(n){const a=nhe(n);return a!==ql&&a!==lc?a:void 0}function hlt(n){return nhe(n)!==lc}function GOe(n){return!!(n.symbol&&Ye(n.symbol.declarations,a=>sl(a)&&a.default))}function VOe(n){return n.resolvedApparentType||(n.resolvedApparentType=_lt(n))}function _lt(n){const a=n.target??n,c=DW(a);if(c&&!a.declaration.nameType){const p=U0(n),m=up(p)?VOe(p):Ld(p);if(m&&Ep(m,b=>$0(b)||jOe(b)))return io(a,IA(c,m,n.mapper))}return n}function jOe(n){return!!(n.flags&2097152)&&Vn(n.types,$0)}function rhe(n){let a;return!!(n.flags&8388608&&Hr(a=n.objectType)&32&&!up(a)&&AA(n.indexType)&&!(Q_(a)&8)&&!a.declaration.nameType)}function Ru(n){const a=n.flags&465829888?Ld(n)||Nt:n,c=Hr(a);return c&32?VOe(a):c&4&&a!==n?Kp(a,n):a.flags&2097152?mlt(a,n):a.flags&402653316?Pc:a.flags&296?tl:a.flags&2112?tct():a.flags&528?kl:a.flags&12288?vWe():a.flags&67108864?Ra:a.flags&4194304?Ii:a.flags&2&&!ie?Ra:a}function _L(n){return Pm(Ru(Pm(n)))}function UOe(n,a,c){var p,m,b;let I=0,w,U,H;const Q=n.flags&1048576;let Ie,Te=4,Ze=Q?0:8,Tt=!1;for(const oo of n.types){const ii=Ru(oo);if(!(pr(ii)||ii.flags&131072)){const zi=Ea(ii,a,c),Ko=zi?Vf(zi):0;if(zi){if(zi.flags&106500&&(Ie??(Ie=Q?0:16777216),Q?Ie|=zi.flags&16777216:Ie&=zi.flags),!w)w=zi,I=zi.flags&98304||4;else if(zi!==w){if((tN(zi)||zi)===(tN(w)||w)&&i_e(w,zi,(fo,dl)=>fo===dl?-1:0)===-1)Tt=!!w.parent&&!!et(Na(w.parent));else{U||(U=new Map,U.set(Ta(w),w));const fo=Ta(zi);U.has(fo)||U.set(fo,zi)}I&98304&&(zi.flags&98304)!==(I&98304)&&(I=I&-98305|4)}Q&&wh(zi)?Ze|=8:!Q&&!wh(zi)&&(Ze&=-9),Ze|=(Ko&6?0:256)|(Ko&4?512:0)|(Ko&2?1024:0)|(Ko&256?2048:0),ege(zi)||(Te=2)}else if(Q){const ms=!_W(a)&&Qx(ii,a);ms?(I=I&-98305|4,Ze|=32|(ms.isReadonly?8:0),H=Bn(H,Ka(ii)?bY(ii)||he:ms.type)):jv(ii)&&!(Hr(ii)&2097152)?(Ze|=32,H=Bn(H,he)):Ze|=16}}}if(!w||Q&&(U||Ze&48)&&Ze&1536&&!(U&&glt(U.values())))return;if(!U&&!(Ze&16)&&!H)if(Tt){const oo=(p=ni(w,pg))==null?void 0:p.links,ii=DA(w,oo?.type);return ii.parent=(b=(m=w.valueDeclaration)==null?void 0:m.symbol)==null?void 0:b.parent,ii.links.containingType=n,ii.links.mapper=oo?.mapper,ii.links.writeType=Ov(w),ii}else return w;const Dt=U?Co(U.values()):[w];let $t,Tn,nr;const yr=[];let Sn,vn,Sr=!1;for(const oo of Dt){vn?oo.valueDeclaration&&oo.valueDeclaration!==vn&&(Sr=!0):vn=oo.valueDeclaration,$t=Xr($t,oo.declarations);const ii=_r(oo);Tn||(Tn=ii,nr=Jr(oo).nameType);const zi=Ov(oo);(Sn||zi!==ii)&&(Sn=Bn(Sn||yr.slice(),zi)),ii!==Tn&&(Ze|=64),(LW(ii)||SA(ii))&&(Ze|=128),ii.flags&131072&&ii!==Ps&&(Ze|=131072),yr.push(ii)}Xr(yr,H);const fi=ja(I|(Ie??0),a,Te|Ze);return fi.links.containingType=n,!Sr&&vn&&(fi.valueDeclaration=vn,vn.symbol.parent&&(fi.parent=vn.symbol.parent)),fi.declarations=$t,fi.links.nameType=nr,yr.length>2?(fi.links.checkFlags|=65536,fi.links.deferralParent=n,fi.links.deferralConstituents=yr,fi.links.deferralWriteConstituents=Sn):(fi.links.type=Q?pi(yr):Ma(yr),Sn&&(fi.links.writeType=Q?pi(Sn):Ma(Sn))),fi}function HOe(n,a,c){var p,m,b;let I=c?(p=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:p.get(a):(m=n.propertyCache)==null?void 0:m.get(a);return I||(I=UOe(n,a,c),I&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=da()):n.propertyCache||(n.propertyCache=da())).set(a,I),c&&!(Fl(I)&48)&&!((b=n.propertyCache)!=null&&b.get(a))&&(n.propertyCache||(n.propertyCache=da())).set(a,I))),I}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(p=>{jn(c.declarations,p)||a.delete(p)}),a.size===0)return}return a}function wz(n,a,c){const p=HOe(n,a,c);return p&&!(Fl(p)&16)?p:void 0}function Pm(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=ylt(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(yt(Lz(n),vlt)?33554432:0)),n.objectFlags&33554432?yn:n):n}function ylt(n){const a=Zi(n.types,Pm);if(a===n.types)return n;const c=pi(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function vlt(n){return qOe(n)||JOe(n)}function qOe(n){return!(n.flags&16777216)&&(Fl(n)&131264)===192&&!!(_r(n).flags&131072)}function JOe(n){return!n.valueDeclaration&&!!(Fl(n)&1024)}function ihe(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&yt(n.types,ihe)||n.flags&2097152&&blt(n))}function blt(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=io(n,co));return Pm(a)!==a}function ohe(n,a){if(a.flags&2097152&&Hr(a)&33554432){const c=hn(Lz(a),qOe);if(c)return qo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ar(a,void 0,536870912),uo(c));const p=hn(Lz(a),JOe);if(p)return qo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ar(a,void 0,536870912),uo(p))}return n}function Ea(n,a,c,p){var m,b;if(n=_L(n),n.flags&524288){const I=Dh(n),w=I.members.get(a);if(w&&!p&&((m=n.symbol)==null?void 0:m.flags)&512&&((b=Jr(n.symbol).typeOnlyExportStarMap)!=null&&b.has(a)))return;if(w&&An(w,p))return w;if(c)return;const U=I===As?er:I.callSignatures.length?go:I.constructSignatures.length?Za:void 0;if(U){const H=TE(U,a);if(H)return H}return TE(Jt,a)}if(n.flags&2097152){const I=wz(n,a,!0);return I||(c?void 0:wz(n,a,c))}if(n.flags&1048576)return wz(n,a,c)}function Oz(n,a){if(n.flags&3670016){const c=Dh(n);return a===0?c.callSignatures:c.constructSignatures}return ae}function na(n,a){const c=Oz(_L(n),a);if(a===0&&!et(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let p;if(Ep(n,m=>{var b;return!!((b=m.symbol)!=null&&b.parent)&&Tlt(m.symbol.parent)&&(p?p===m.symbol.escapedName:(p=m.symbol.escapedName,!0))})){const m=Tl(n,I=>Gv((KOe(I.symbol.parent)?Va:es).typeParameters[0],I.mapper)),b=Yd(m,am(n,I=>KOe(I.symbol.parent)));return n.arrayFallbackSignatures=na(_n(b,p),a)}n.arrayFallbackSignatures=c}return c}function Tlt(n){return!n||!es.symbol||!Va.symbol?!1:!!me(n,es.symbol)||!!me(n,Va.symbol)}function KOe(n){return!n||!Va.symbol?!1:!!me(n,Va.symbol)}function gL(n,a){return hn(n,c=>c.keyType===a)}function ahe(n,a){let c,p,m;for(const b of n)b.keyType===gt?c=b:$x(a,b.keyType)&&(p?(m||(m=[p])).push(b):p=b);return m?jg(Nt,Ma(Vt(m,b=>b.type)),_u(m,(b,I)=>b&&I.isReadonly,!0)):p||(c&&$x(a,gt)?c:void 0)}function $x(n,a){return aa(n,a)||a===gt&&aa(n,Bt)||a===Bt&&(n===zo||!!(n.flags&128)&&Eg(n.value))}function she(n){return n.flags&3670016?Dh(n).indexInfos:ae}function Xd(n){return she(_L(n))}function Vg(n,a){return gL(Xd(n),a)}function H0(n,a){var c;return(c=Vg(n,a))==null?void 0:c.type}function lhe(n,a){return Xd(n).filter(c=>$x(a,c.keyType))}function vW(n,a){return ahe(Xd(n),a)}function Qx(n,a){return vW(n,_W(a)?Qt:Sp(Gi(a)))}function XOe(n){var a;let c;for(const p of sb(n))c=$g(c,j0(p.symbol));return c?.length?c:ec(n)?(a=yL(n))==null?void 0:a.typeParameters:void 0}function che(n){const a=[];return n.forEach((c,p)=>{B0(p)||a.push(c)}),a}function YOe(n,a){if(td(n))return;const c=Sd(lt,'"'+n+'"',512);return c&&a?os(c):c}function VX(n){return _I(n)||Jk(n)||to(n)&&V6(n)}function bW(n){if(VX(n))return!0;if(!to(n))return!1;if(n.initializer){const c=Df(n.parent),p=n.parent.parameters.indexOf(n);return C.assert(p>=0),p>=kh(c,3)}const a=OT(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=r$(a).length:!1}function Slt(n){return Po(n)&&!Kh(n)&&n.questionToken}function TW(n,a,c,p){return{kind:n,parameterName:a,parameterIndex:c,type:p}}function Z_(n){let a=0;if(n)for(let c=0;c=c&&b<=m){const I=n?n.slice():[];for(let U=b;U!!Yy(Tt))&&!Yy(n)&&!HY(n)&&(p|=32);for(let Tt=H?1:0;TtU.arguments.length&&!Tn||(m=c.length)}if((n.kind===178||n.kind===179)&&WC(n)&&(!w||!b)){const Tt=n.kind===178?179:178,Dt=al(Wr(n),Tt);Dt&&(b=Yx(Dt))}I&&I.typeExpression&&(b=DA(ja(1,"this"),Ji(I.typeExpression)));const Ie=pv(n)?BT(n):n,Te=Ie&&Pl(Ie)?tm(os(Ie.parent.symbol)):void 0,Ze=Te?Te.localTypeParameters:XOe(n);(H9(n)||Ir(n)&&Elt(n,c))&&(p|=1),(yD(n)&&di(n,64)||Pl(n)&&di(n.parent,64))&&(p|=4),a.resolvedSignature=y_(n,Ze,b,c,void 0,void 0,m,p)}return a.resolvedSignature}function Elt(n,a){if(pv(n)||!dhe(n))return!1;const c=Zs(n.parameters),p=c?wR(c):LT(n).filter(mf),m=Hn(p,I=>I.typeExpression&&p4(I.typeExpression.type)?I.typeExpression.type:void 0),b=ja(3,"args",32768);return m?b.links.type=Yd(Ji(m.type)):(b.links.checkFlags|=65536,b.links.deferralParent=yn,b.links.deferralConstituents=[bd],b.links.deferralWriteConstituents=[bd]),m&&a.pop(),a.push(b),!0}function yL(n){if(!(Ir(n)&&Ms(n)))return;const a=PT(n);return a?.typeExpression&&OA(Ji(a.typeExpression))}function Alt(n,a){const c=yL(n);if(!c)return;const p=n.parameters.indexOf(a);return a.dotDotDotToken?D5(c,p):Lh(c,p)}function Ilt(n){const a=yL(n);return a&&fs(a)}function dhe(n){const a=Vr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(p){if(!p)return!1;switch(p.kind){case 80:return p.escapedText===_e.escapedName&&c8(p)===_e;case 173:case 175:case 178:case 179:return p.name.kind===168&&c(p.name);case 212:case 213:return c(p.expression);case 304:return c(p.initializer);default:return!wG(p)&&!Hh(p)&&!!Jo(p,c)}}}function EE(n){if(!n||!n.declarations)return ae;const a=[];for(let c=0;c0&&p.body){const m=n.declarations[c-1];if(p.parent===m.parent&&p.kind===m.kind&&p.pos===m.end)continue}if(Ir(p)&&p.jsDoc){const m=IG(p);if(et(m)){for(const b of m){const I=b.typeExpression;I.type===void 0&&!Pl(p)&&Z0(I,Ue),a.push(Df(I))}continue}}a.push(!Ib(p)&&!mm(p)&&yL(p)||Df(p))}}return a}function $Oe(n){const a=du(n,n);if(a){const c=Tp(a);if(c)return _r(c)}return Ue}function q0(n){if(n.thisParameter)return _r(n.thisParameter)}function nm(n){if(!n.resolvedTypePredicate){if(n.target){const a=nm(n.target);n.resolvedTypePredicate=a?c8e(a,n.mapper):fn}else if(n.compositeSignatures)n.resolvedTypePredicate=xct(n.compositeSignatures,n.compositeKind)||fn;else{const a=n.declaration&&kp(n.declaration);let c;if(!a){const p=yL(n.declaration);p&&n!==p&&(c=nm(p))}if(a||c)n.resolvedTypePredicate=a&&VI(a)?xlt(a,n):c||fn;else if(n.declaration&&Ms(n.declaration)&&(!n.resolvedReturnType||n.resolvedReturnType.flags&16)&&Ap(n)>0){const{declaration:p}=n;n.resolvedTypePredicate=fn,n.resolvedTypePredicate=pht(p)||fn}else n.resolvedTypePredicate=fn}C.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===fn?void 0:n.resolvedTypePredicate}function xlt(n,a){const c=n.parameterName,p=n.type&&Ji(n.type);return c.kind===198?TW(n.assertsModifier?2:0,void 0,void 0,p):TW(n.assertsModifier?3:1,c.escapedText,ho(a.parameters,m=>m.escapedName===c.escapedText),p)}function QOe(n,a,c){return a!==2097152?pi(n,c):Ma(n)}function fs(n){if(!n.resolvedReturnType){if(!g_(n,3))return nt;let a=n.target?io(fs(n.target),n.mapper):n.compositeSignatures?io(QOe(Vt(n.compositeSignatures,fs),n.compositeKind,2),n.mapper):zC(n.declaration)||(Wl(n.declaration.body)?Ue:s$(n.declaration));if(n.flags&8?a=F8e(a):n.flags&16&&(a=fT(a)),!rt()){if(n.declaration){const c=kp(n.declaration);if(c)Qe(c,f.Return_type_annotation_circularly_references_itself);else if(ve){const p=n.declaration,m=Oo(p);m?Qe(m,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,ws(m)):Qe(p,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=Ue}n.resolvedReturnType??(n.resolvedReturnType=a)}return n.resolvedReturnType}function zC(n){if(n.kind===177)return tm(os(n.parent.symbol));const a=kp(n);if(pv(n)){const c=eD(n);if(c&&Pl(c.parent)&&!a)return tm(os(c.parent.parent.symbol))}if(gI(n))return Ji(n.parameters[0].type);if(a)return Ji(a);if(n.kind===178&&WC(n)){const c=Ir(n)&&cs(n);if(c)return c;const p=al(Wr(n),179),m=uL(p);if(m)return m}return Ilt(n)}function jX(n){return n.compositeSignatures&&yt(n.compositeSignatures,jX)||!n.resolvedReturnType&&ee(n,3)>=0}function Rlt(n){return ZOe(n)||Ue}function ZOe(n){if(au(n)){const a=_r(n.parameters[n.parameters.length-1]),c=Ka(a)?bY(a):a;return c&&H0(c,Bt)}}function SW(n,a,c,p){const m=uhe(n,zv(a,n.typeParameters,Z_(n.typeParameters),c));if(p){const b=C6e(fs(m));if(b){const I=gW(b);I.typeParameters=p;const w=vA(I);w.mapper=m.mapper;const U=gW(m);return U.resolvedReturnType=w,U}}return m}function uhe(n,a){const c=n.instantiations||(n.instantiations=new Map),p=Lm(a);let m=c.get(p);return m||c.set(p,m=UX(n,a)),m}function UX(n,a){return xA(n,Dlt(n,a),!0)}function eWe(n){return Zi(n.typeParameters,a=>a.mapper?io(a,a.mapper):a)}function Dlt(n,a){return Yp(eWe(n),a)}function EW(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Clt(n)):n}function Clt(n){return xA(n,s8e(n.typeParameters),!0)}function Nlt(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Mlt(n)):n}function Mlt(n){return SW(n,Vt(n.typeParameters,a=>a.target&&!ju(a.target)?a.target:a),Ir(n.declaration))}function Plt(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const c=s8e(a),p=Yp(a,Vt(a,b=>ju(b)||Nt));let m=Vt(a,b=>io(b,p)||Nt);for(let b=0;b{KX(Ze)&&!gL(c,Ze)&&c.push(jg(Ze,Ie.type?Ji(Ie.type):Ue,wp(Ie,8),Ie))})}}else if(IOe(Ie)){const Te=Nr(Ie)?Ie.left:Ie.name,Ze=Ws(Te)?jl(Te.argumentExpression):th(Te);if(gL(c,Ze))continue;aa(Ze,Ii)&&(aa(Ze,Bt)?(p=!0,c1(Ie)||(m=!1)):aa(Ze,Qt)?(b=!0,c1(Ie)||(I=!1)):(w=!0,c1(Ie)||(U=!1)),H.push(Ie.symbol))}const Q=so(H,Un(a,Ie=>Ie!==n));return w&&!gL(c,gt)&&c.push(UW(U,0,Q,gt)),p&&!gL(c,Bt)&&c.push(UW(m,0,Q,Bt)),b&&!gL(c,Qt)&&c.push(UW(I,0,Q,Qt)),c}return ae}function KX(n){return!!(n.flags&4108)||SA(n)||!!(n.flags&2097152)&&!K0(n)&&yt(n.types,KX)}function XX(n){return Ui(Un(n.symbol&&n.symbol.declarations,sl),OR)[0]}function nWe(n,a){var c;let p;if((c=n.symbol)!=null&&c.declarations){for(const m of n.symbol.declarations)if(m.parent.kind===196){const[b=m.parent,I]=ene(m.parent.parent);if(I.kind===184&&!a){const w=I,U=Bge(w);if(U){const H=w.typeArguments.indexOf(b);if(H()=>u_t(w,U,Tt))),Te=io(Q,Ie);Te!==n&&(p=Bn(p,Te))}}}}else if(I.kind===170&&I.dotDotDotToken||I.kind===192||I.kind===203&&I.dotDotDotToken)p=Bn(p,Yd(Nt));else if(I.kind===205)p=Bn(p,gt);else if(I.kind===169&&I.parent.kind===201)p=Bn(p,Ii);else if(I.kind===201&&I.type&&us(I.type)===m.parent&&I.parent.kind===195&&I.parent.extendsType===I&&I.parent.checkType.kind===201&&I.parent.checkType.type){const w=I.parent.checkType,U=Ji(w.type);p=Bn(p,io(U,RE(j0(Wr(w.typeParameter)),w.typeParameter.constraint?Ji(w.typeParameter.constraint):Ii)))}}}return p&&Ma(p)}function vL(n){if(!n.constraint)if(n.target){const a=ju(n.target);n.constraint=a?io(a,n.mapper):ql}else{const a=XX(n);if(!a)n.constraint=nWe(n)||ql;else{let c=Ji(a);c.flags&1&&!pr(c)&&(c=a.parent.parent.kind===201?Ii:Nt),n.constraint=c}}return n.constraint===ql?void 0:n.constraint}function rWe(n){const a=al(n.symbol,169),c=bm(a.parent)?KF(a.parent):a.parent;return c&&If(c)}function Lm(n){let a="";if(n){const c=n.length;let p=0;for(;p1&&(a+=":"+b),p+=b}}return a}function bA(n,a){return n?`@${Ta(n)}`+(a?`:${Lm(a)}`:""):""}function Wz(n,a){let c=0;for(const p of n)(a===void 0||!(p.flags&a))&&(c|=Hr(p));return c&458752}function BC(n,a){return yt(a)&&n===Zt?Nt:Ly(n,a)}function Ly(n,a){const c=Lm(a);let p=n.instantiations.get(c);return p||(p=_c(4,n.symbol),n.instantiations.set(c,p),p.objectFlags|=a?Wz(a):0,p.target=n,p.resolvedTypeArguments=a),p}function iWe(n){const a=wi(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function phe(n,a,c,p,m){if(!p){p=tR(a);const I=UC(p);m=c?Wy(I,c):I}const b=_c(4,n.symbol);return b.target=n,b.node=a,b.mapper=c,b.aliasSymbol=p,b.aliasTypeArguments=m,b}function rl(n){var a,c;if(!n.resolvedTypeArguments){if(!g_(n,5))return so(n.target.outerTypeParameters,(a=n.target.localTypeParameters)==null?void 0:a.map(()=>nt))||ae;const p=n.node,m=p?p.kind===184?so(n.target.outerTypeParameters,f$(p,n.target.localTypeParameters)):p.kind===189?[Ji(p.elementType)]:Vt(p.elements,Ji):ae;rt()?n.resolvedTypeArguments??(n.resolvedTypeArguments=n.mapper?Wy(m,n.mapper):m):(n.resolvedTypeArguments??(n.resolvedTypeArguments=so(n.target.outerTypeParameters,((c=n.target.localTypeParameters)==null?void 0:c.map(()=>nt))||ae)),Qe(n.node||R,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&uo(n.target.symbol)))}return n.resolvedTypeArguments}function Bv(n){return et(n.target.typeParameters)}function oWe(n,a){const c=qs(os(a)),p=c.localTypeParameters;if(p){const m=et(n.typeArguments),b=Z_(p),I=Ir(n);if(!(!ve&&I)&&(mp.length)){const H=I&&dy(n)&&!XI(n.parent),Q=b===p.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,Ie=ar(c,void 0,2);if(Qe(n,Q,Ie,b,p.length),!I)return nt}if(n.kind===184&&DWe(n,et(n.typeArguments)!==p.length))return phe(c,n,void 0);const U=so(c.outerTypeParameters,zv(Fz(n),p,b,I));return Ly(c,U)}return J0(n,a)?c:nt}function GC(n,a,c,p){const m=qs(n);if(m===Oe){const H=SU.get(n.escapedName);if(H!==void 0&&a&&a.length===1)return H===4?fhe(a[0]):eR(n,a[0])}const b=Jr(n),I=b.typeParameters,w=Lm(a)+bA(c,p);let U=b.instantiations.get(w);return U||b.instantiations.set(w,U=p8e(m,Yp(I,zv(a,I,Z_(I),Ir(n.valueDeclaration))),c,p)),U}function Llt(n,a){if(Fl(a)&1048576){const m=Fz(n),b=bA(a,m);let I=dt.get(b);return I||(I=Li(1,"error",void 0,`alias ${b}`),I.aliasSymbol=a,I.aliasTypeArguments=m,dt.set(b,I)),I}const c=qs(a),p=Jr(a).typeParameters;if(p){const m=et(n.typeArguments),b=Z_(p);if(mp.length)return Qe(n,b===p.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,uo(a),b,p.length),nt;const I=tR(n);let w=I&&(aWe(a)||!aWe(I))?I:void 0,U;if(w)U=UC(w);else if(hF(n)){const H=bL(n,2097152,!0);if(H&&H!==ne){const Q=ud(H);Q&&Q.flags&524288&&(w=Q,U=Fz(n)||(p?[]:void 0))}}return GC(a,Fz(n),w,U)}return J0(n,a)?c:nt}function aWe(n){var a;const c=(a=n.declarations)==null?void 0:a.find(pk);return!!(c&&df(c))}function klt(n){switch(n.kind){case 184:return n.typeName;case 234:const a=n.expression;if(Ds(a))return a}}function sWe(n){return n.parent?`${sWe(n.parent)}.${n.escapedName}`:n.escapedName}function YX(n){const c=(n.kind===167?n.right:n.kind===212?n.name:n).escapedText;if(c){const p=n.kind===167?YX(n.left):n.kind===212?YX(n.expression):void 0,m=p?`${sWe(p)}.${c}`:c;let b=it.get(m);return b||(it.set(m,b=ja(524288,c,1048576)),b.parent=p,b.links.declaredType=Kt),b}return ne}function bL(n,a,c){const p=klt(n);if(!p)return ne;const m=Vl(p,a,c);return m&&m!==ne?m:c?ne:YX(p)}function $X(n,a){if(a===ne)return nt;if(a=Fx(a)||a,a.flags&96)return oWe(n,a);if(a.flags&524288)return Llt(n,a);const c=yOe(a);if(c)return J0(n,a)?Du(c):nt;if(a.flags&111551&&QX(n)){const p=wlt(n,a);return p||(bL(n,788968),_r(a))}return nt}function wlt(n,a){const c=Vr(n);if(!c.resolvedJSDocType){const p=_r(a);let m=p;if(a.valueDeclaration){const b=n.kind===206&&n.qualifier;p.symbol&&p.symbol!==a&&b&&(m=$X(n,p.symbol))}c.resolvedJSDocType=m}return c.resolvedJSDocType}function fhe(n){return mhe(n)?lWe(n,Nt):n}function mhe(n){return!!(n.flags&3145728&&yt(n.types,mhe)||n.flags&33554432&&!VC(n)&&mhe(n.baseType)||n.flags&524288&&!tg(n)||n.flags&432275456&&!SA(n))}function VC(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function hhe(n,a){return a.flags&3||a===n||n.flags&1?n:lWe(n,a)}function lWe(n,a){const c=`${pd(n)}>${pd(a)}`,p=Ia.get(c);if(p)return p;const m=vi(33554432);return m.baseType=n,m.constraint=a,Ia.set(c,m),m}function _he(n){return VC(n)?n.baseType:Ma([n.constraint,n.baseType])}function cWe(n){return n.kind===190&&n.elements.length===1}function dWe(n,a,c){return cWe(a)&&cWe(c)?dWe(n,a.elements[0],c.elements[0]):Oy(Ji(a))===Oy(n)?Ji(c):void 0}function Olt(n,a){let c,p=!0;for(;a&&!Vi(a)&&a.kind!==321;){const m=a.parent;if(m.kind===170&&(p=!p),(p||n.flags&8650752)&&m.kind===195&&a===m.trueType){const b=dWe(n,m.checkType,m.extendsType);b&&(c=Bn(c,b))}else if(n.flags&262144&&m.kind===201&&!m.nameType&&a===m.type){const b=Ji(m);if(eh(b)===Oy(n)){const I=DW(b);if(I){const w=ju(I);w&&Ep(w,$0)&&(c=Bn(c,pi([Bt,zo])))}}}a=m}return c?hhe(n,Ma(c)):n}function QX(n){return!!(n.flags&16777216)&&(n.kind===184||n.kind===206)}function J0(n,a){return n.typeArguments?(Qe(n,f.Type_0_is_not_generic,a?uo(a):n.typeName?ws(n.typeName):yU),!1):!0}function uWe(n){if(He(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return J0(n),gt;case"Number":return J0(n),Bt;case"BigInt":return J0(n),gr;case"Boolean":return J0(n),jt;case"Void":return J0(n),In;case"Undefined":return J0(n),he;case"Null":return J0(n),Xt;case"Function":case"function":return J0(n),er;case"array":return(!a||!a.length)&&!ve?bd:void 0;case"promise":return(!a||!a.length)&&!ve?N5(Ue):void 0;case"Object":if(a&&a.length===2){if(UF(n)){const c=Ji(a[0]),p=Ji(a[1]),m=c===gt||c===Bt?[jg(c,p,!1)]:ae;return bl(void 0,k,ae,ae,m)}return Ue}return J0(n),ve?void 0:Ue}}}function Wlt(n){const a=Ji(n.type);return ie?r5(a,65536):a}function ZX(n){const a=Vr(n);if(!a.resolvedType){if(Om(n)&&gS(n.parent))return a.resolvedSymbol=ne,a.resolvedType=jl(n.parent.expression);let c,p;const m=788968;QX(n)&&(p=uWe(n),p||(c=bL(n,m,!0),c===ne?c=bL(n,m|111551):bL(n,m),p=$X(n,c))),p||(c=bL(n,m),p=$X(n,c)),a.resolvedSymbol=c,a.resolvedType=p}return a.resolvedType}function Fz(n){return Vt(n.typeArguments,Ji)}function pWe(n){const a=Vr(n);if(!a.resolvedType){const c=Y6e(n);a.resolvedType=Du($p(c))}return a.resolvedType}function fWe(n,a){function c(m){const b=m.declarations;if(b)for(const I of b)switch(I.kind){case 264:case 265:case 267:return I}}if(!n)return a?Zt:Ra;const p=qs(n);return p.flags&524288?et(p.typeParameters)!==a?(Qe(c(n),f.Global_type_0_must_have_1_type_parameter_s,Ol(n),a),a?Zt:Ra):p:(Qe(c(n),f.Global_type_0_must_be_a_class_or_interface_type,Ol(n)),a?Zt:Ra)}function ghe(n,a){return jC(n,111551,a?f.Cannot_find_global_value_0:void 0)}function yhe(n,a){return jC(n,788968,a?f.Cannot_find_global_type_0:void 0)}function eY(n,a,c){const p=jC(n,788968,c?f.Cannot_find_global_type_0:void 0);if(p&&(qs(p),et(Jr(p).typeParameters)!==a)){const m=p.declarations&&hn(p.declarations,vm);Qe(m,f.Global_type_0_must_have_1_type_parameter_s,Ol(p),a);return}return p}function jC(n,a,c){return _t(void 0,n,a,c,!1,!1)}function Kl(n,a,c){const p=yhe(n,c);return p||c?fWe(p,a):void 0}function mWe(n,a){let c;for(const p of n)c=Bn(c,Kl(p,a,!1));return c??ae}function Flt(){return Ng||(Ng=Kl("TypedPropertyDescriptor",1,!0)||Zt)}function zlt(){return yo||(yo=Kl("TemplateStringsArray",0,!0)||Ra)}function hWe(){return ta||(ta=Kl("ImportMeta",0,!0)||Ra)}function _We(){if(!Eo){const n=ja(0,"ImportMetaExpression"),a=hWe(),c=ja(4,"meta",8);c.parent=n,c.links.type=a;const p=da([c]);n.members=p,Eo=bl(n,p,ae,ae,ae)}return Eo}function gWe(n){return Vo||(Vo=Kl("ImportCallOptions",0,n))||Ra}function vhe(n){return ml||(ml=Kl("ImportAttributes",0,n))||Ra}function yWe(n){return Xf||(Xf=ghe("Symbol",n))}function Blt(n){return G_||(G_=yhe("SymbolConstructor",n))}function vWe(){return Cg||(Cg=Kl("Symbol",0,!1))||Ra}function zz(n){return ap||(ap=Kl("Promise",1,n))||Zt}function bWe(n){return Xc||(Xc=Kl("PromiseLike",1,n))||Zt}function bhe(n){return bh||(bh=ghe("Promise",n))}function Glt(n){return Tf||(Tf=Kl("PromiseConstructorLike",0,n))||Ra}function Bz(n){return ti||(ti=Kl("AsyncIterable",3,n))||Zt}function Vlt(n){return Ti||(Ti=Kl("AsyncIterator",3,n))||Zt}function TWe(n){return $i||($i=Kl("AsyncIterableIterator",3,n))||Zt}function jlt(){return Ve??(Ve=mWe(["ReadableStreamAsyncIterator"],1))}function Ult(n){return kt||(kt=Kl("AsyncIteratorObject",3,n))||Zt}function Hlt(n){return On||(On=Kl("AsyncGenerator",3,n))||Zt}function tY(n){return p_||(p_=Kl("Iterable",3,n))||Zt}function qlt(n){return oe||(oe=Kl("Iterator",3,n))||Zt}function SWe(n){return ut||(ut=Kl("IterableIterator",3,n))||Zt}function The(){return fe?he:Ue}function Jlt(){return z??(z=mWe(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function Klt(n){return tn||(tn=Kl("IteratorObject",3,n))||Zt}function Xlt(n){return an||(an=Kl("Generator",3,n))||Zt}function Ylt(n){return wn||(wn=Kl("IteratorYieldResult",1,n))||Zt}function $lt(n){return or||(or=Kl("IteratorReturnResult",1,n))||Zt}function EWe(n){return Ca||(Ca=Kl("Disposable",0,n))||Ra}function Qlt(n){return cd||(cd=Kl("AsyncDisposable",0,n))||Ra}function AWe(n,a=0){const c=jC(n,788968,void 0);return c&&fWe(c,a)}function Zlt(){return Up||(Up=eY("Extract",2,!0)||ne),Up===ne?void 0:Up}function ect(){return Sf||(Sf=eY("Omit",2,!0)||ne),Sf===ne?void 0:Sf}function She(n){return Yf||(Yf=eY("Awaited",1,n)||(n?ne:void 0)),Yf===ne?void 0:Yf}function tct(){return Ty||(Ty=Kl("BigInt",0,!1))||Ra}function nct(n){return V_??(V_=Kl("ClassDecoratorContext",1,n))??Zt}function rct(n){return Th??(Th=Kl("ClassMethodDecoratorContext",2,n))??Zt}function ict(n){return Im??(Im=Kl("ClassGetterDecoratorContext",2,n))??Zt}function oct(n){return jb??(jb=Kl("ClassSetterDecoratorContext",2,n))??Zt}function act(n){return Xe??(Xe=Kl("ClassAccessorDecoratorContext",2,n))??Zt}function sct(n){return mt??(mt=Kl("ClassAccessorDecoratorTarget",2,n))??Zt}function lct(n){return Yt??(Yt=Kl("ClassAccessorDecoratorResult",2,n))??Zt}function cct(n){return Rn??(Rn=Kl("ClassFieldDecoratorContext",2,n))??Zt}function dct(){return bv||(bv=ghe("NaN",!1))}function uct(){return zu||(zu=eY("Record",2,!0)||ne),zu===ne?void 0:zu}function TL(n,a){return n!==Zt?Ly(n,a):Ra}function IWe(n){return TL(Flt(),[n])}function xWe(n){return TL(tY(!0),[n,In,he])}function Yd(n,a){return TL(a?Va:es,[n])}function Ehe(n){switch(n.kind){case 191:return 2;case 192:return RWe(n);case 203:return n.questionToken?2:n.dotDotDotToken?RWe(n):1;default:return 1}}function RWe(n){return qz(n.type)?4:8}function pct(n){const a=hct(n.parent);if(qz(n))return a?Va:es;const p=Vt(n.elements,Ehe);return Ahe(p,a,Vt(n.elements,fct))}function fct(n){return vD(n)||to(n)?n:void 0}function DWe(n,a){return!!tR(n)||CWe(n)&&(n.kind===189?lT(n.elementType):n.kind===190?yt(n.elements,lT):a||yt(n.typeArguments,lT))}function CWe(n){const a=n.parent;switch(a.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return CWe(a);case 266:return!0}return!1}function lT(n){switch(n.kind){case 184:return QX(n)||!!(bL(n,788968).flags&524288);case 187:return!0;case 199:return n.operator!==158&&lT(n.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return lT(n.type);case 192:return n.type.kind!==189||lT(n.type.elementType);case 193:case 194:return yt(n.types,lT);case 200:return lT(n.objectType)||lT(n.indexType);case 195:return lT(n.checkType)||lT(n.extendsType)||lT(n.trueType)||lT(n.falseType)}return!1}function mct(n){const a=Vr(n);if(!a.resolvedType){const c=pct(n);if(c===Zt)a.resolvedType=Ra;else if(!(n.kind===190&&yt(n.elements,p=>!!(Ehe(p)&8)))&&DWe(n))a.resolvedType=n.kind===190&&n.elements.length===0?c:phe(c,n,void 0);else{const p=n.kind===189?[Ji(n.elementType)]:Vt(n.elements,Ji);a.resolvedType=Ihe(c,p)}}return a.resolvedType}function hct(n){return JT(n)&&n.operator===148}function eg(n,a,c=!1,p=[]){const m=Ahe(a||Vt(n,b=>1),c,p);return m===Zt?Ra:n.length?Ihe(m,n):m}function Ahe(n,a,c){if(n.length===1&&n[0]&4)return a?Va:es;const p=Vt(n,b=>b&1?"#":b&2?"?":b&4?".":"*").join()+(a?"R":"")+(yt(c,b=>!!b)?","+Vt(c,b=>b?ls(b):"_").join(","):"");let m=Ni.get(p);return m||Ni.set(p,m=_ct(n,a,c)),m}function _ct(n,a,c){const p=n.length,m=Io(n,Ie=>!!(Ie&9));let b;const I=[];let w=0;if(p){b=new Array(p);for(let Ie=0;Ie!!(n.elementFlags[$t]&8&&Dt.flags&1179648));if(Tt>=0)return Vz(Vt(a,(Dt,$t)=>n.elementFlags[$t]&8?Dt:Nt))?Tl(a[Tt],Dt=>xhe(n,RB(a,Tt,Dt))):nt}const I=[],w=[],U=[];let H=-1,Q=-1,Ie=-1;for(let Tt=0;Tt=1e4)return Qe(R,Hh(R)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),nt;Ye(Tn,(nr,yr)=>{var Sn;return Ze(nr,Dt.target.elementFlags[yr],(Sn=Dt.target.labeledElementDeclarations)==null?void 0:Sn[yr])})}else Ze(Vv(Dt)&&H0(Dt,Bt)||nt,4,(m=n.labeledElementDeclarations)==null?void 0:m[Tt]);else Ze(Dt,$t,(b=n.labeledElementDeclarations)==null?void 0:b[Tt])}for(let Tt=0;Tt=0&&Qw[Q+Dt]&8?Xp(Tt,Bt):Tt)),I.splice(Q+1,Ie-Q),w.splice(Q+1,Ie-Q),U.splice(Q+1,Ie-Q));const Te=Ahe(w,n.readonly,U);return Te===Zt?Ra:w.length?Ly(Te,I):Te;function Ze(Tt,Dt,$t){Dt&1&&(H=w.length),Dt&4&&Q<0&&(Q=w.length),Dt&6&&(Ie=w.length),I.push(Dt&2?uu(Tt,!0):Tt),w.push(Dt),U.push($t)}}function SL(n,a,c=0){const p=n.target,m=Bv(n)-c;return a>p.fixedLength?rut(n)||eg(ae):eg(rl(n).slice(a,m),p.elementFlags.slice(a,m),!1,p.labeledElementDeclarations&&p.labeledElementDeclarations.slice(a,m))}function NWe(n){return pi(Bn(AQ(n.target.fixedLength,a=>Sp(""+a)),b_(n.target.readonly?Va:es)))}function gct(n,a){const c=ho(n.elementFlags,p=>!(p&a));return c>=0?c:n.elementFlags.length}function AW(n,a){return n.elementFlags.length-gl(n.elementFlags,c=>!(c&a))-1}function Rhe(n){return n.fixedLength+AW(n,3)}function AE(n){const a=rl(n),c=Bv(n);return a.length===c?a:a.slice(0,c)}function yct(n){return uu(Ji(n.type),!0)}function pd(n){return n.id}function Ug(n,a){return $v(n,a,pd,js)>=0}function Gz(n,a){const c=$v(n,a,pd,js);return c<0?(n.splice(~c,0,a),!0):!1}function vct(n,a,c){const p=c.flags;if(!(p&131072))if(a|=p&473694207,p&465829888&&(a|=33554432),p&2097152&&Hr(c)&67108864&&(a|=536870912),c===It&&(a|=8388608),pr(c)&&(a|=1073741824),!ie&&p&98304)Hr(c)&65536||(a|=4194304);else{const m=n.length,b=m&&c.id>n[m-1].id?~m:$v(n,c,pd,js);b<0&&n.splice(~b,0,c)}return a}function MWe(n,a,c){let p;for(const m of c)m!==p&&(a=m.flags&1048576?MWe(n,a|(Ict(m)?1048576:0),m.types):vct(n,a,m),p=m);return a}function bct(n,a){var c;if(n.length<2)return n;const p=Lm(n),m=Mn.get(p);if(m)return m;const b=a&&yt(n,H=>!!(H.flags&524288)&&!up(H)&&$he(Dh(H))),I=n.length;let w=I,U=0;for(;w>0;){w--;const H=n[w];if(b||H.flags&469499904){if(H.flags&262144&&v_(H).flags&1048576){T_(H,pi(Vt(n,Te=>Te===H?yn:Te)),cl)&&nb(n,w);continue}const Q=H.flags&61603840?hn(bs(H),Te=>Nh(_r(Te))):void 0,Ie=Q&&Du(_r(Q));for(const Te of n)if(H!==Te){if(U===1e5&&U/(I-w)*I>1e6){(c=xr)==null||c.instant(xr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(Tt=>Tt.id)}),Qe(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(U++,Q&&Te.flags&61603840){const Ze=_n(Te,Q.escapedName);if(Ze&&Nh(Ze)&&Du(Ze)!==Ie)continue}if(T_(H,Te,cl)&&(!(Hr(zn(H))&1)||!(Hr(zn(Te))&1)||Y0(H,Te))){nb(n,w);break}}}}return Mn.set(p,n),n}function Tct(n,a,c){let p=n.length;for(;p>0;){p--;const m=n[p],b=m.flags;(b&402653312&&a&4||b&256&&a&8||b&2048&&a&64||b&8192&&a&4096||c&&b&32768&&a&16384||xE(m)&&Ug(n,m.regularType))&&nb(n,p)}}function Sct(n){const a=Un(n,SA);if(a.length){let c=n.length;for(;c>0;){c--;const p=n[c];p.flags&128&&yt(a,m=>Ect(p,m))&&nb(n,c)}}}function Ect(n,a){return a.flags&134217728?NY(n,a):CY(n,a)}function Act(n){const a=[];for(const c of n)if(c.flags&2097152&&Hr(c)&67108864){const p=c.types[0].flags&8650752?0:1;kf(a,c.types[p])}for(const c of a){const p=[];for(const b of n)if(b.flags&2097152&&Hr(b)&67108864){const I=b.types[0].flags&8650752?0:1;b.types[I]===c&&Gz(p,b.types[1-I])}const m=Ld(c);if(Ep(m,b=>Ug(p,b))){let b=n.length;for(;b>0;){b--;const I=n[b];if(I.flags&2097152&&Hr(I)&67108864){const w=I.types[0].flags&8650752?0:1;I.types[w]===c&&Ug(p,I.types[1-w])&&nb(n,b)}}Gz(n,c)}}}function Ict(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function PWe(n,a){for(const c of a)if(c.flags&1048576){const p=c.origin;c.aliasSymbol||p&&!(p.flags&1048576)?kf(n,c):p&&p.flags&1048576&&PWe(n,p.types)}}function Dhe(n,a){const c=Ao(n);return c.types=a,c}function pi(n,a=1,c,p,m){if(n.length===0)return yn;if(n.length===1)return n[0];if(n.length===2&&!m&&(n[0].flags&1048576||n[1].flags&1048576)){const b=a===0?"N":a===2?"S":"L",I=n[0].id=2&&b[0]===he&&b[1]===Ae&&nb(b,1),(I&402664352||I&16384&&I&32768)&&Tct(b,I,!!(a&2)),I&128&&I&402653184&&Sct(b),I&536870912&&Act(b),a===2&&(b=bct(b,!!(I&524288)),!b))return nt;if(b.length===0)return I&65536?I&4194304?Xt:Pe:I&32768?I&4194304?he:B:yn}if(!m&&I&1048576){const U=[];PWe(U,n);const H=[];for(const Ie of b)yt(U,Te=>Ug(Te.types,Ie))||H.push(Ie);if(!c&&U.length===1&&H.length===0)return U[0];if(_u(U,(Ie,Te)=>Ie+Te.types.length,0)+H.length===b.length){for(const Ie of U)Gz(H,Ie);m=Dhe(1048576,H)}}const w=(I&36323331?0:32768)|(I&2097152?16777216:0);return Nhe(b,w,c,p,m)}function xct(n,a){let c;const p=[];for(const b of n){const I=nm(b);if(I){if(I.kind!==0&&I.kind!==1||c&&!Che(c,I))return;c=I,p.push(I.type)}else{const w=a!==2097152?fs(b):void 0;if(w!==tr&&w!==Jn)return}}if(!c)return;const m=QOe(p,a);return TW(c.kind,c.parameterName,c.parameterIndex,m)}function Che(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Nhe(n,a,c,p,m){if(n.length===0)return yn;if(n.length===1)return n[0];const I=(m?m.flags&1048576?`|${Lm(m.types)}`:m.flags&2097152?`&${Lm(m.types)}`:`#${m.type.id}|${Lm(n)}`:Lm(n))+bA(c,p);let w=Pr.get(I);return w||(w=vi(1048576),w.objectFlags=a|Wz(n,98304),w.types=n,w.origin=m,w.aliasSymbol=c,w.aliasTypeArguments=p,n.length===2&&n[0].flags&512&&n[1].flags&512&&(w.flags|=16,w.intrinsicName="boolean"),Pr.set(I,w)),w}function Rct(n){const a=Vr(n);if(!a.resolvedType){const c=tR(n);a.resolvedType=pi(Vt(n.types,Ji),1,c,UC(c))}return a.resolvedType}function Dct(n,a,c){const p=c.flags;return p&2097152?kWe(n,a,c.types):(tg(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(p&3?(c===It&&(a|=8388608),pr(c)&&(a|=1073741824)):(ie||!(p&98304))&&(c===Ae&&(a|=262144,c=he),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=p&473694207),a)}function kWe(n,a,c){for(const p of c)a=Dct(n,a,Du(p));return a}function Cct(n,a){let c=n.length;for(;c>0;){c--;const p=n[c];(p.flags&4&&a&402653312||p.flags&8&&a&256||p.flags&64&&a&2048||p.flags&4096&&a&8192||p.flags&16384&&a&32768||tg(p)&&a&470302716)&&nb(n,c)}}function Nct(n,a){for(const c of n)if(!Ug(c.types,a)){if(a===Ae)return Ug(c.types,he);if(a===he)return Ug(c.types,Ae);const p=a.flags&128?gt:a.flags&288?Bt:a.flags&2048?gr:a.flags&8192?Qt:void 0;if(!p||!Ug(c.types,p))return!1}return!0}function Mct(n){let a=n.length;const c=Un(n,p=>!!(p.flags&128));for(;a>0;){a--;const p=n[a];if(p.flags&402653184){for(const m of c)if(DE(m,p)){nb(n,a);break}else if(SA(p))return!0}}return!1}function wWe(n,a){for(let c=0;c!(p.flags&a))}function Pct(n){let a;const c=ho(n,I=>!!(Hr(I)&32768));if(c<0)return!1;let p=c+1;for(;p!!(Tt.flags&469893116)||tg(Tt))){if(EL(Ze,Te))return Ie;if(!(Ze.flags&1048576&&am(Ze,Tt=>EL(Tt,Te)))&&!EL(Te,Ze))return yn;w=67108864}}}const U=Lm(I)+(a&2?"*":bA(c,p));let H=$e.get(U);if(!H){if(b&1048576)if(Pct(I))H=Ma(I,a,c,p);else if(Vn(I,Q=>!!(Q.flags&1048576&&Q.types[0].flags&32768))){const Q=yt(I,wW)?Ae:he;wWe(I,32768),H=pi([Ma(I,a),Q],1,c,p)}else if(Vn(I,Q=>!!(Q.flags&1048576&&(Q.types[0].flags&65536||Q.types[1].flags&65536))))wWe(I,65536),H=pi([Ma(I,a),Xt],1,c,p);else if(I.length>=3&&n.length>2){const Q=Math.floor(I.length/2);H=Ma([Ma(I.slice(0,Q),a),Ma(I.slice(Q),a)],a,c,p)}else{if(!Vz(I))return nt;const Q=kct(I,a),Ie=yt(Q,Te=>!!(Te.flags&2097152))&&Mhe(Q)>Mhe(I)?Dhe(2097152,I):void 0;H=pi(Q,1,c,p,Ie)}else H=Lct(I,w,c,p);$e.set(U,H)}return H}function OWe(n){return _u(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function Vz(n){var a;const c=OWe(n);return c>=1e5?((a=xr)==null||a.instant(xr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(p=>p.id),size:c}),Qe(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function kct(n,a){const c=OWe(n),p=[];for(let m=0;m=0;U--)if(n[U].flags&1048576){const H=n[U].types,Q=H.length;b[U]=H[I%Q],I=Math.floor(I/Q)}const w=Ma(b,a);w.flags&131072||p.push(w)}return p}function WWe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?WWe(n.origin):Mhe(n.types)}function Mhe(n){return _u(n,(a,c)=>a+WWe(c),0)}function wct(n){const a=Vr(n);if(!a.resolvedType){const c=tR(n),p=Vt(n.types,Ji),m=p.length===2?p.indexOf(fa):-1,b=m>=0?p[1-m]:Nt,I=!!(b.flags&76||b.flags&134217728&&SA(b));a.resolvedType=Ma(p,I?1:0,c,UC(c))}return a.resolvedType}function FWe(n,a){const c=vi(4194304);return c.type=n,c.indexFlags=a,c}function Oct(n){const a=Ao(4194304);return a.type=n,a}function zWe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=FWe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=FWe(n,0))}function BWe(n,a){const c=eh(n),p=Rf(n),m=Wv(n.target||n);if(!m&&!(a&2))return p;const b=[];if(AA(p)){if(FC(n))return zWe(n,a);PA(p,w)}else if(FC(n)){const U=Ru(U0(n));Qme(U,8576,!!(a&1),w)}else PA(Pz(p),w);const I=a&2?Ac(pi(b),U=>!(U.flags&5)):pi(b);if(I.flags&1048576&&p.flags&1048576&&Lm(I.types)===Lm(p.types))return p;return I;function w(U){const H=m?io(m,RW(n.mapper,c,U)):U;b.push(H===gt?ln:H)}}function Wct(n){const a=eh(n);return c(Wv(n)||a);function c(p){return p.flags&470810623?!0:p.flags&16777216?p.root.isDistributive&&p.checkType===a:p.flags&137363456?Vn(p.types,c):p.flags&8388608?c(p.objectType)&&c(p.indexType):p.flags&33554432?c(p.baseType)&&c(p.constraint):p.flags&268435456?c(p.type):!1}}function ky(n){if(eo(n))return yn;if(np(n))return Du(_o(n));if(va(n))return Du(th(n));const a=s1(n);return a!==void 0?Sp(Gi(a)):St(n)?Du(_o(n)):yn}function Zx(n,a,c){if(c||!(Vf(n)&6)){let p=Jr(BX(n)).nameType;if(!p){const m=Oo(n.valueDeclaration);p=n.escapedName==="default"?Sp("default"):m&&ky(m)||(iM(n)?void 0:Sp(Ol(n)))}if(p&&p.flags&a)return p}return yn}function GWe(n,a){return!!(n.flags&a||n.flags&2097152&&yt(n.types,c=>GWe(c,a)))}function Fct(n,a,c){const p=c&&(Hr(n)&7||n.aliasSymbol)?Oct(n):void 0,m=Vt(bs(n),I=>Zx(I,a)),b=Vt(Xd(n),I=>I!==ro&&GWe(I.keyType,a)?I.keyType===gt&&a&8?ln:I.keyType:yn);return pi(so(m,b),1,void 0,void 0,p)}function Phe(n,a=0){return!!(n.flags&58982400||pT(n)||up(n)&&(!Wct(n)||yW(n)===2)||n.flags&1048576&&!(a&4)&&ihe(n)||n.flags&2097152&&nc(n,465829888)&&yt(n.types,tg))}function b_(n,a=0){return n=Pm(n),VC(n)?fhe(b_(n.baseType,a)):Phe(n,a)?zWe(n,a):n.flags&1048576?Ma(Vt(n.types,c=>b_(c,a))):n.flags&2097152?pi(Vt(n.types,c=>b_(c,a))):Hr(n)&32?BWe(n,a):n===It?It:n.flags&2?yn:n.flags&131073?Ii:Fct(n,(a&2?128:402653316)|(a&1?0:12584),a===0)}function VWe(n){const a=Zlt();return a?GC(a,[n,gt]):gt}function zct(n){const a=VWe(b_(n));return a.flags&131072?gt:a}function Bct(n){const a=Vr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=b_(Ji(n.type));break;case 158:a.resolvedType=n.type.kind===155?Ghe(hk(n.parent)):nt;break;case 148:a.resolvedType=Ji(n.type);break;default:C.assertNever(n.operator)}return a.resolvedType}function Gct(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=TA([n.head.text,...Vt(n.templateSpans,c=>c.literal.text)],Vt(n.templateSpans,c=>Ji(c.type)))),a.resolvedType}function TA(n,a){const c=ho(a,H=>!!(H.flags&1179648));if(c>=0)return Vz(a)?Tl(a[c],H=>TA(n,RB(a,c,H))):nt;if(jn(a,It))return It;const p=[],m=[];let b=n[0];if(!U(n,a))return gt;if(p.length===0)return Sp(b);if(m.push(b),Vn(m,H=>H==="")){if(Vn(p,H=>!!(H.flags&4)))return gt;if(p.length===1&&SA(p[0]))return p[0]}const I=`${Lm(p)}|${Vt(m,H=>H.length).join(",")}|${m.join("")}`;let w=qi.get(I);return w||qi.set(I,w=jct(m,p)),w;function U(H,Q){for(let Ie=0;IeeR(n,c)):a.flags&128?Sp(jWe(n,a.value)):a.flags&134217728?TA(...Uct(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||AA(a)?UWe(n,a):jz(a)?UWe(n,TA(["",""],[a])):a}function jWe(n,a){switch(SU.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 Uct(n,a,c){switch(SU.get(n.escapedName)){case 0:return[a.map(p=>p.toUpperCase()),c.map(p=>eR(n,p))];case 1:return[a.map(p=>p.toLowerCase()),c.map(p=>eR(n,p))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[eR(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]===""?[eR(n,c[0]),...c.slice(1)]:c]}return[a,c]}function UWe(n,a){const c=`${Ta(n)},${pd(a)}`;let p=$o.get(c);return p||$o.set(c,p=Hct(n,a)),p}function Hct(n,a){const c=wi(268435456,n);return c.type=a,c}function qct(n,a,c,p,m){const b=vi(8388608);return b.objectType=n,b.indexType=a,b.accessFlags=c,b.aliasSymbol=p,b.aliasTypeArguments=m,b}function IW(n){if(ve)return!1;if(Hr(n)&4096)return!0;if(n.flags&1048576)return Vn(n.types,IW);if(n.flags&2097152)return yt(n.types,IW);if(n.flags&465829888){const a=the(n);return a!==n&&IW(a)}return!1}function nY(n,a){return jf(n)?Uf(n):a&&bc(a)?s1(a):void 0}function Lhe(n,a){if(a.flags&8208){const c=Dn(n.parent,p=>!Ks(p))||n.parent;return _S(c)?Gh(c)&&He(n)&&nFe(c,n):Vn(a.declarations,p=>!Yo(p)||Sh(p))}return!0}function HWe(n,a,c,p,m,b){const I=m&&m.kind===213?m:void 0,w=m&&eo(m)?void 0:nY(c,m);if(w!==void 0){if(b&256)return eS(a,w)||Ue;const H=Ea(a,w);if(H){if(b&64&&m&&H.declarations&&Iu(H)&&Lhe(m,H)){const Ie=I?.argumentExpression??(zS(m)?m.indexType:m);Cm(Ie,H.declarations,w)}if(I){if(E5(H,I,E6e(I.expression,a.symbol)),u4e(I,H,yb(I))){Qe(I.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,uo(H));return}if(b&8&&(Vr(m).resolvedSymbol=H),h6e(I,H))return Rt}const Q=b&4?Ov(H):_r(H);return I&&yb(I)!==1?Vy(I,Q):m&&zS(m)&&wW(Q)?pi([Q,he]):Q}if(Ep(a,Ka)&&Eg(w)){const Q=+w;if(m&&Ep(a,Ie=>!(Ie.target.combinedFlags&12))&&!(b&16)){const Ie=khe(m);if(Ka(a)){if(Q<0)return Qe(Ie,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),he;Qe(Ie,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,ar(a),Bv(a),Gi(w))}else Qe(Ie,f.Property_0_does_not_exist_on_type_1,Gi(w),ar(a))}if(Q>=0)return U(Vg(a,Bt)),w8e(a,Q,b&1?Ae:void 0)}}if(!(c.flags&98304)&&kd(c,402665900)){if(a.flags&131073)return a;const H=vW(a,c)||Vg(a,gt);if(H){if(b&2&&H.keyType!==Bt){I&&(b&4?Qe(I,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,ar(n)):Qe(I,f.Type_0_cannot_be_used_to_index_type_1,ar(c),ar(n)));return}if(m&&H.keyType===gt&&!kd(c,12)){const Q=khe(m);return Qe(Q,f.Type_0_cannot_be_used_as_an_index_type,ar(c)),b&1?pi([H.type,Ae]):H.type}return U(H),b&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Yc(c.symbol)===a.symbol)?pi([H.type,Ae]):H.type}if(c.flags&131072)return yn;if(IW(a))return Ue;if(I&&!d$(a)){if(jv(a)){if(ve&&c.flags&384)return ns.add(Ar(I,f.Property_0_does_not_exist_on_type_1,c.value,ar(a))),he;if(c.flags&12){const Q=Vt(a.properties,Ie=>_r(Ie));return pi(Bn(Q,he))}}if(a.symbol===Re&&w!==void 0&&Re.exports.has(w)&&Re.exports.get(w).flags&418)Qe(I,f.Property_0_does_not_exist_on_type_1,Gi(w),ar(a));else if(ve&&!(b&128))if(w!==void 0&&y6e(w,a)){const Q=ar(a);Qe(I,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,w,Q,Q+"["+Al(I.argumentExpression)+"]")}else if(H0(a,Bt))Qe(I.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Q;if(w!==void 0&&(Q=T6e(w,a)))Q!==void 0&&Qe(I.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,w,ar(a),Q);else{const Ie=Zft(a,I,c);if(Ie!==void 0)Qe(I,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ar(a),Ie);else{let Te;if(c.flags&1024)Te=qo(void 0,f.Property_0_does_not_exist_on_type_1,"["+ar(c)+"]",ar(a));else if(c.flags&8192){const Ze=Cv(c.symbol,I);Te=qo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Ze+"]",ar(a))}else c.flags&128||c.flags&256?Te=qo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,ar(a)):c.flags&12&&(Te=qo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ar(c),ar(a)));Te=qo(Te,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ar(p),ar(a)),ns.add(hg(Wn(I),I,Te))}}}return}}if(b&16&&jv(a))return he;if(IW(a))return Ue;if(m){const H=khe(m);if(H.kind!==10&&c.flags&384)Qe(H,f.Property_0_does_not_exist_on_type_1,""+c.value,ar(a));else if(c.flags&12)Qe(H,f.Type_0_has_no_matching_index_signature_for_type_1,ar(a),ar(c));else{const Q=H.kind===10?"bigint":ar(c);Qe(H,f.Type_0_cannot_be_used_as_an_index_type,Q)}}if(wr(c))return c;return;function U(H){H&&H.isReadonly&&I&&(vb(I)||RG(I))&&Qe(I,f.Index_signature_in_type_0_only_permits_reading,ar(a))}}function khe(n){return n.kind===213?n.argumentExpression:n.kind===200?n.indexType:n.kind===168?n.expression:n}function jz(n){if(n.flags&2097152){let a=!1;for(const c of n.types)if(c.flags&101248||jz(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||SA(n)}function SA(n){return!!(n.flags&134217728)&&Vn(n.types,jz)||!!(n.flags&268435456)&&jz(n.type)}function qWe(n){return!!(n.flags&402653184)&&!SA(n)}function K0(n){return!!xW(n)}function EA(n){return!!(xW(n)&4194304)}function AA(n){return!!(xW(n)&8388608)}function xW(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|_u(n.types,(a,c)=>a|xW(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|xW(n.baseType)|xW(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||up(n)||pT(n)?4194304:0)|(n.flags&63176704||qWe(n)?8388608:0)}function wy(n,a){return n.flags&8388608?Kct(n,a):n.flags&16777216?Xct(n,a):n}function JWe(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Phe(n)){const p=Vt(n.types,m=>wy(Xp(m,a),c));return n.flags&2097152||c?Ma(p):pi(p)}}function Jct(n,a,c){if(a.flags&1048576){const p=Vt(a.types,m=>wy(Xp(n,m),c));return c?Ma(p):pi(p)}}function Kct(n,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===lc?n:n[c];n[c]=lc;const p=wy(n.objectType,a),m=wy(n.indexType,a),b=Jct(p,m,a);if(b)return n[c]=b;if(!(m.flags&465829888)){const I=JWe(p,m,a);if(I)return n[c]=I}if(pT(p)&&m.flags&296){const I=xL(p,m.flags&8?0:p.target.fixedLength,0,a);if(I)return n[c]=I}return up(p)&&yW(p)!==2?n[c]=Tl(rY(p,n.indexType),I=>wy(I,a)):n[c]=n}function Xct(n,a){const c=n.checkType,p=n.extendsType,m=dT(n),b=uT(n);if(b.flags&131072&&Oy(m)===Oy(c)){if(c.flags&1||aa(RA(c),RA(p)))return wy(m,a);if(KWe(c,p))return yn}else if(m.flags&131072&&Oy(b)===Oy(c)){if(!(c.flags&1)&&aa(RA(c),RA(p)))return yn;if(c.flags&1||KWe(c,p))return wy(b,a)}return n}function KWe(n,a){return!!(pi([Mz(n,a),yn]).flags&131072)}function rY(n,a){const c=Yp([eh(n)],[a]),p=X0(n.mapper,c),m=io(Gg(n.target||n),p),b=WOe(n)>0||(K0(n)?hL(U0(n))>0:Yct(n,a));return uu(m,!0,b)}function Yct(n,a){const c=Ld(a);return!!c&&yt(bs(n),p=>!!(p.flags&16777216)&&aa(Zx(p,8576),c))}function Xp(n,a,c=0,p,m,b){return cT(n,a,c,p,m,b)||(p?nt:Nt)}function XWe(n,a){return Ep(n,c=>{if(c.flags&384){const p=Uf(c);if(Eg(p)){const m=+p;return m>=0&&m0&&!yt(n.elements,a=>o4(a)||a4(a)||vD(a)&&!!(a.questionToken||a.dotDotDotToken))}function QWe(n,a){return K0(n)||a&&Ka(n)&&yt(AE(n),K0)}function Ohe(n,a,c,p,m){let b,I,w=0;for(;;){if(w===1e3)return Qe(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;const H=io(Oy(n.checkType),a),Q=io(n.extendsType,a);if(H===nt||Q===nt)return nt;if(H===It||Q===It)return It;const Ie=QN(n.node.checkType),Te=QN(n.node.extendsType),Ze=$We(Ie)&&$We(Te)&&et(Ie.elements)===et(Te.elements),Tt=QWe(H,Ze);let Dt;if(n.inferTypeParameters){const Tn=WW(n.inferTypeParameters,void 0,0);a&&(Tn.nonFixingMapper=X0(Tn.nonFixingMapper,a)),Tt||qg(Tn.inferences,H,Q,1536),Dt=a?X0(Tn.mapper,a):Tn.mapper}const $t=Dt?io(n.extendsType,Dt):Q;if(!Tt&&!QWe($t,Ze)){if(!($t.flags&3)&&(H.flags&1||!aa(CW(H),CW($t)))){(H.flags&1||c&&!($t.flags&131072)&&am(CW($t),nr=>aa(nr,CW(H))))&&(I||(I=[])).push(io(Ji(n.node.trueType),Dt||a));const Tn=Ji(n.node.falseType);if(Tn.flags&16777216){const nr=Tn.root;if(nr.node.parent===n.node&&(!nr.isDistributive||nr.checkType===n.checkType)){n=nr;continue}if(U(Tn,a))continue}b=io(Tn,a);break}if($t.flags&3||aa(RA(H),RA($t))){const Tn=Ji(n.node.trueType),nr=Dt||a;if(U(Tn,nr))continue;b=io(Tn,nr);break}}b=vi(16777216),b.root=n,b.checkType=io(n.checkType,a),b.extendsType=io(n.extendsType,a),b.mapper=a,b.combinedMapper=Dt,b.aliasSymbol=p||n.aliasSymbol,b.aliasTypeArguments=p?m:Wy(n.aliasTypeArguments,a);break}return I?pi(Bn(I,b)):b;function U(H,Q){if(H.flags&16777216&&Q){const Ie=H.root;if(Ie.outerTypeParameters){const Te=X0(H.mapper,Q),Ze=Vt(Ie.outerTypeParameters,$t=>Gv($t,Te)),Tt=Yp(Ie.outerTypeParameters,Ze),Dt=Ie.isDistributive?Gv(Ie.checkType,Tt):void 0;if(!Dt||Dt===Ie.checkType||!(Dt.flags&1179648))return n=Ie,a=Tt,p=void 0,m=void 0,Ie.aliasSymbol&&w++,!0}}return!1}}function dT(n){return n.resolvedTrueType||(n.resolvedTrueType=io(Ji(n.root.node.trueType),n.mapper))}function uT(n){return n.resolvedFalseType||(n.resolvedFalseType=io(Ji(n.root.node.falseType),n.mapper))}function $ct(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?io(Ji(n.root.node.trueType),n.combinedMapper):dT(n))}function Whe(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Bn(a,qs(c)))}),a}function Qct(n){return n.isDistributive&&(Kz(n.checkType,n.node.trueType)||Kz(n.checkType,n.node.falseType))}function Zct(n){const a=Vr(n);if(!a.resolvedType){const c=Ji(n.checkType),p=tR(n),m=UC(p),b=Mi(n,!0),I=m?b:Un(b,U=>Kz(U,n)),w={node:n,checkType:c,extendsType:Ji(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:Whe(n),outerTypeParameters:I,instantiations:void 0,aliasSymbol:p,aliasTypeArguments:m};a.resolvedType=Ohe(w,void 0,!1),I&&(w.instantiations=new Map,w.instantiations.set(Lm(I),a.resolvedType))}return a.resolvedType}function edt(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=j0(Wr(n.typeParameter))),a.resolvedType}function ZWe(n){return He(n)?[n]:Bn(ZWe(n.left),n.right)}function e8e(n){var a;const c=Vr(n);if(!c.resolvedType){if(!ry(n))return Qe(n.argument,f.String_literal_expected),c.resolvedSymbol=ne,c.resolvedType=nt;const p=n.isTypeOf?111551:n.flags&16777216?900095:788968,m=du(n,n.argument.literal);if(!m)return c.resolvedSymbol=ne,c.resolvedType=nt;const b=!!((a=m.exports)!=null&&a.get("export=")),I=Tp(m,!1);if(Wl(n.qualifier))if(I.flags&p)c.resolvedType=t8e(n,c,I,p);else{const w=p===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,w,n.argument.literal.text),c.resolvedSymbol=ne,c.resolvedType=nt}else{const w=ZWe(n.qualifier);let U=I,H;for(;H=w.shift();){const Q=w.length?1920:p,Ie=os(hc(U)),Te=n.isTypeOf||Ir(n)&&b?Ea(_r(Ie),H.escapedText,!1,!0):void 0,Tt=(n.isTypeOf?void 0:Sd(qp(Ie),H.escapedText,Q))??Te;if(!Tt)return Qe(H,f.Namespace_0_has_no_exported_member_1,Cv(U),ws(H)),c.resolvedType=nt;Vr(H).resolvedSymbol=Tt,Vr(H.parent).resolvedSymbol=Tt,U=Tt}c.resolvedType=t8e(n,c,U,p)}}return c.resolvedType}function t8e(n,a,c,p){const m=hc(c);return a.resolvedSymbol=m,p===111551?$6e(_r(c),n):$X(n,m)}function n8e(n){const a=Vr(n);if(!a.resolvedType){const c=tR(n);if(!n.symbol||$_(n.symbol).size===0&&!c)a.resolvedType=fa;else{let p=_c(16,n.symbol);p.aliasSymbol=c,p.aliasTypeArguments=UC(c),A1(n)&&n.isArrayType&&(p=Yd(p)),a.resolvedType=p}}return a.resolvedType}function tR(n){let a=n.parent;for(;g1(a)||e0(a)||JT(a)&&a.operator===148;)a=a.parent;return pk(a)?Wr(a):void 0}function UC(n){return n?Na(n):void 0}function iY(n){return!!(n.flags&524288)&&!up(n)}function Fhe(n){return Fy(n)||!!(n.flags&474058748)}function zhe(n,a){if(!(n.flags&1048576))return n;if(Vn(n.types,Fhe))return hn(n.types,Fy)||Ra;const c=hn(n.types,b=>!Fhe(b));if(!c||hn(n.types,b=>b!==c&&!Fhe(b)))return n;return m(c);function m(b){const I=da();for(const U of bs(b))if(!(Vf(U)&6)){if(oY(U)){const H=U.flags&65536&&!(U.flags&32768),Ie=ja(16777220,U.escapedName,$me(U)|(a?8:0));Ie.links.type=H?he:uu(_r(U),!0),Ie.declarations=U.declarations,Ie.links.nameType=Jr(U).nameType,Ie.links.syntheticOrigin=U,I.set(U.escapedName,Ie)}}const w=bl(b.symbol,I,ae,ae,Xd(b));return w.objectFlags|=131200,w}}function IE(n,a,c,p,m){if(n.flags&1||a.flags&1)return Ue;if(n.flags&2||a.flags&2)return Nt;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=zhe(n,m),n.flags&1048576)return Vz([n,a])?Tl(n,H=>IE(H,a,c,p,m)):nt;if(a=zhe(a,m),a.flags&1048576)return Vz([n,a])?Tl(a,H=>IE(n,H,c,p,m)):nt;if(a.flags&473960444)return n;if(EA(n)||EA(a)){if(Fy(n))return a;if(n.flags&2097152){const H=n.types,Q=H[H.length-1];if(iY(Q)&&iY(a))return Ma(so(H.slice(0,H.length-1),[IE(Q,a,c,p,m)]))}return Ma([n,a])}const b=da(),I=new Set,w=n===Ra?Xd(a):POe([n,a]);for(const H of bs(a))Vf(H)&6?I.add(H.escapedName):oY(H)&&b.set(H.escapedName,Bhe(H,m));for(const H of bs(n))if(!(I.has(H.escapedName)||!oY(H)))if(b.has(H.escapedName)){const Q=b.get(H.escapedName),Ie=_r(Q);if(Q.flags&16777216){const Te=so(H.declarations,Q.declarations),Ze=4|H.flags&16777216,Tt=ja(Ze,H.escapedName),Dt=_r(H),$t=EY(Dt),Tn=EY(Ie);Tt.links.type=$t===Tn?Dt:pi([Dt,Tn],2),Tt.links.leftSpread=H,Tt.links.rightSpread=Q,Tt.declarations=Te,Tt.links.nameType=Jr(H).nameType,b.set(H.escapedName,Tt)}}else b.set(H.escapedName,Bhe(H,m));const U=bl(c,b,ae,ae,Zi(w,H=>tdt(H,m)));return U.objectFlags|=2228352|p,U}function oY(n){var a;return!yt(n.declarations,tu)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>ui(c.parent))))}function Bhe(n,a){const c=n.flags&65536&&!(n.flags&32768);if(!c&&a===wh(n))return n;const p=4|n.flags&16777216,m=ja(p,n.escapedName,$me(n)|(a?8:0));return m.links.type=c?he:_r(n),m.declarations=n.declarations,m.links.nameType=Jr(n).nameType,m.links.syntheticOrigin=n,m}function tdt(n,a){return n.isReadonly!==a?jg(n.keyType,n.type,a,n.declaration,n.components):n}function Uz(n,a,c,p){const m=wi(n,c);return m.value=a,m.regularType=p||m,m}function nR(n){if(n.flags&2976){if(!n.freshType){const a=Uz(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function Du(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Tl(n,Du)):n}function xE(n){return!!(n.flags&2976)&&n.freshType===n}function Sp(n){let a;return At.get(n)||(At.set(n,a=Uz(128,n)),a)}function Ch(n){let a;return mn.get(n)||(mn.set(n,a=Uz(256,n)),a)}function Hz(n){let a;const c=kS(n);return dr.get(c)||(dr.set(c,a=Uz(2048,n)),a)}function ndt(n,a,c){let p;const m=`${a}${typeof n=="string"?"@":"#"}${n}`,b=1024|(typeof n=="string"?128:256);return ri.get(m)||(ri.set(m,p=Uz(b,n,c)),p)}function rdt(n){if(n.literal.kind===106)return Xt;const a=Vr(n);return a.resolvedType||(a.resolvedType=Du(_o(n.literal))),a.resolvedType}function idt(n){const a=wi(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ta(a.symbol)}`,a}function Ghe(n){if(Ir(n)&&e0(n)){const a=AS(n);a&&(n=yI(a)||a)}if(Lte(n)){const a=PF(n)?If(n.left):If(n);if(a){const c=Jr(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=idt(a))}}return Qt}function odt(n){const a=yu(n,!1,!1),c=a&&a.parent;if(c&&(ui(c)||c.kind===265)&&!ua(a)&&(!Pl(a)||IS(n,a.body)))return tm(Wr(c)).thisType;if(c&&Wa(c)&&Nr(c.parent)&&ac(c.parent)===6)return tm(If(c.parent.left).parent).thisType;const p=n.flags&16777216?zT(n):void 0;return p&&Us(p)&&Nr(p.parent)&&ac(p.parent)===3?tm(If(p.parent.left).parent).thisType:E_(a)&&IS(n,a.body)?tm(Wr(a)).thisType:(Qe(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),nt)}function Vhe(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=odt(n)),a.resolvedType}function r8e(n){return Ji(qz(n.type)||n.type)}function qz(n){switch(n.kind){case 197:return qz(n.type);case 190:if(n.elements.length===1&&(n=n.elements[0],n.kind===192||n.kind===203&&n.dotDotDotToken))return qz(n.type);break;case 189:return n.elementType}}function adt(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?r8e(n):uu(Ji(n.type),!0,!!n.questionToken))}function Ji(n){return Olt(i8e(n),n)}function i8e(n){switch(n.kind){case 133:case 313:case 314:return Ue;case 159:return Nt;case 154:return gt;case 150:return Bt;case 163:return gr;case 136:return jt;case 155:return Qt;case 116:return In;case 157:return he;case 106:return Xt;case 146:return yn;case 151:return n.flags&524288&&!ve?Ue:Ln;case 141:return Oe;case 198:case 110:return Vhe(n);case 202:return rdt(n);case 184:return ZX(n);case 183:return n.assertsModifier?In:jt;case 234:return ZX(n);case 187:return pWe(n);case 189:case 190:return mct(n);case 191:return yct(n);case 193:return Rct(n);case 194:return wct(n);case 315:return Wlt(n);case 317:return uu(Ji(n.type));case 203:return adt(n);case 197:case 316:case 310:return Ji(n.type);case 192:return r8e(n);case 319:return Ayt(n);case 185:case 186:case 188:case 323:case 318:case 324:return n8e(n);case 199:return Bct(n);case 200:return YWe(n);case 201:return whe(n);case 195:return Zct(n);case 196:return edt(n);case 204:return Gct(n);case 206:return e8e(n);case 80:case 167:case 212:const a=sm(n);return a?qs(a):nt;default:return nt}}function aY(n,a,c){if(n&&n.length)for(let p=0;pp.typeParameter),Vt(c,()=>Nt))}function ldt(n){return n.outerReturnMapper??(n.outerReturnMapper=l8e(n.returnMapper,G8e(n).mapper))}function X0(n,a){return n?lY(4,n,a):a}function l8e(n,a){return n?lY(5,n,a):a}function IA(n,a,c){return c?lY(5,RE(n,a),c):RE(n,a)}function RW(n,a,c){return n?lY(5,n,RE(a,c)):RE(a,c)}function cdt(n){return!n.constraint&&!XX(n)||n.constraint===ql?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Gu(n.symbol),n.restrictiveInstantiation.constraint=ql,n.restrictiveInstantiation)}function Uhe(n){const a=Gu(n.symbol);return a.target=n,a}function c8e(n,a){return TW(n.kind,n.parameterName,n.parameterIndex,io(n.type,a))}function xA(n,a,c){let p;if(n.typeParameters&&!c){p=Vt(n.typeParameters,Uhe),a=X0(Yp(n.typeParameters,p),a);for(const b of p)b.mapper=a}const m=y_(n.declaration,p,n.thisParameter&&Hhe(n.thisParameter,a),aY(n.parameters,a,Hhe),void 0,void 0,n.minArgumentCount,n.flags&167);return m.target=n,m.mapper=a,m}function Hhe(n,a){const c=Jr(n);if(c.type&&!mT(c.type)&&(!(n.flags&65536)||c.writeType&&!mT(c.writeType)))return n;Fl(n)&1&&(n=c.target,a=X0(c.mapper,a));const p=ja(n.flags,n.escapedName,1|Fl(n)&53256);return p.declarations=n.declarations,p.parent=n.parent,p.links.target=n,p.links.mapper=a,n.valueDeclaration&&(p.valueDeclaration=n.valueDeclaration),c.nameType&&(p.links.nameType=c.nameType),p}function ddt(n,a,c,p){const m=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],b=Vr(m),I=n.objectFlags&4?b.resolvedType:n.objectFlags&64?n.target:n;let w=b.outerTypeParameters;if(!w){let U=Mi(m,!0);if(E_(m)){const Q=XOe(m);U=Xr(U,Q)}w=U||ae;const H=n.objectFlags&8388612?[m]:n.symbol.declarations;w=(I.objectFlags&8388612||I.symbol.flags&8192||I.symbol.flags&2048)&&!I.aliasTypeArguments?Un(w,Q=>yt(H,Ie=>Kz(Q,Ie))):w,b.outerTypeParameters=w}if(w.length){const U=X0(n.mapper,a),H=Vt(w,Tt=>Gv(Tt,U)),Q=c||n.aliasSymbol,Ie=c?p:Wy(n.aliasTypeArguments,a),Te=Lm(H)+bA(Q,Ie);I.instantiations||(I.instantiations=new Map,I.instantiations.set(Lm(w)+bA(I.aliasSymbol,I.aliasTypeArguments),I));let Ze=I.instantiations.get(Te);if(!Ze){let Tt=Yp(w,H);I.objectFlags&134217728&&a&&(Tt=X0(Tt,a)),Ze=I.objectFlags&4?phe(n.target,n.node,Tt,Q,Ie):I.objectFlags&32?pdt(I,Tt,Q,Ie):qhe(I,Tt,Q,Ie),I.instantiations.set(Te,Ze);const Dt=Hr(Ze);if(Ze.flags&3899393&&!(Dt&524288)){const $t=yt(H,mT);Hr(Ze)&524288||(Dt&52?Ze.objectFlags|=524288|($t?1048576:0):Ze.objectFlags|=$t?0:524288)}}return Ze}return n}function udt(n){return!(n.parent.kind===184&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===206&&n.parent.typeArguments&&n===n.parent.qualifier)}function Kz(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const p=n.symbol.declarations[0].parent;for(let m=a;m!==p;m=m.parent)if(!m||m.kind===242||m.kind===195&&Jo(m.extendsType,c))return!0;return c(a)}return!0;function c(p){switch(p.kind){case 198:return!!n.isThisType;case 80:return!n.isThisType&&Hh(p)&&udt(p)&&i8e(p)===n;case 187:const m=p.exprName,b=Pu(m);if(!Tb(b)){const I=pu(b),w=n.symbol.declarations[0],U=w.kind===169?w.parent:n.isThisType?w:void 0;if(I.declarations&&U)return yt(I.declarations,H=>IS(H,U))||yt(p.typeArguments,c)}return!0;case 175:case 174:return!p.type&&!!p.body||yt(p.typeParameters,c)||yt(p.parameters,c)||!!p.type&&c(p.type)}return!!Jo(p,c)}}function DW(n){const a=Rf(n);if(a.flags&4194304){const c=Oy(a.type);if(c.flags&262144)return c}}function pdt(n,a,c,p){const m=DW(n);if(m){const I=io(m,a);if(m!==I)return pFe(Pm(I),b,c,p)}return io(Rf(n),a)===It?It:qhe(n,a,c,p);function b(I){if(I.flags&61603843&&I!==It&&!pr(I)){if(!n.declaration.nameType){let w;if(im(I)||I.flags&1&&ee(m,4)<0&&(w=ju(m))&&Ep(w,$0))return mdt(I,n,IA(m,I,a));if(Ka(I))return fdt(I,n,m,a);if(jOe(I))return Ma(Vt(I.types,b))}return qhe(n,IA(m,I,a))}return I}}function d8e(n,a){return a&1?!0:a&2?!1:n}function fdt(n,a,c,p){const m=n.target.elementFlags,b=n.target.fixedLength,I=b?IA(c,n,p):p,w=Vt(AE(n),(Ie,Te)=>{const Ze=m[Te];return TeIe&1?2:Ie):U&8?Vt(m,Ie=>Ie&2?1:Ie):m,Q=d8e(n.target.readonly,Q_(a));return jn(w,nt)?nt:eg(w,H,Q,n.target.labeledElementDeclarations)}function mdt(n,a,c){const p=u8e(a,Bt,!0,c);return pr(p)?nt:Yd(p,d8e(AL(n),Q_(a)))}function u8e(n,a,c,p){const m=RW(p,eh(n),a),b=io(Gg(n.target||n),m),I=Q_(n);return ie&&I&4&&!nc(b,49152)?fT(b,!0):ie&&I&8&&c?om(b,524288):b}function qhe(n,a,c,p){C.assert(n.symbol,"anonymous type must have symbol to be instantiated");const m=_c(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){m.declaration=n.declaration;const b=eh(n),I=Uhe(b);m.typeParameter=I,a=X0(RE(b,I),a),I.mapper=a}return n.objectFlags&8388608&&(m.node=n.node),m.target=n,m.mapper=a,m.aliasSymbol=c||n.aliasSymbol,m.aliasTypeArguments=c?p:Wy(n.aliasTypeArguments,a),m.objectFlags|=m.aliasTypeArguments?Wz(m.aliasTypeArguments):0,m}function Jhe(n,a,c,p,m){const b=n.root;if(b.outerTypeParameters){const I=Vt(b.outerTypeParameters,H=>Gv(H,a)),w=(c?"C":"")+Lm(I)+bA(p,m);let U=b.instantiations.get(w);if(!U){const H=Yp(b.outerTypeParameters,I),Q=b.checkType,Ie=b.isDistributive?Pm(Gv(Q,H)):void 0;U=Ie&&Q!==Ie&&Ie.flags&1179648?pFe(Ie,Te=>Ohe(b,IA(Q,Te,H),c),p,m):Ohe(b,H,c,p,m),b.instantiations.set(w,U)}return U}return n}function io(n,a){return n&&a?p8e(n,a,void 0,void 0):n}function p8e(n,a,c,p){var m;if(!mT(n))return n;if(E===100||y>=5e6)return(m=xr)==null||m.instant(xr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:E,instantiationCount:y}),Qe(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;const b=eft(a);b===-1&&Qpt(a);const I=n.id+bA(c,p),w=b0[b!==-1?b:U_-1],U=w.get(I);if(U)return U;h++,y++,E++;const H=hdt(n,a,c,p);return b===-1?Zpt():w.set(I,H),E--,H}function hdt(n,a,c,p){const m=n.flags;if(m&262144)return Gv(n,a);if(m&524288){const b=n.objectFlags;if(b&52){if(b&4&&!n.node){const I=n.resolvedTypeArguments,w=Wy(I,a);return w!==I?Ihe(n.target,w):n}return b&1024?_dt(n,a):ddt(n,a,c,p)}return n}if(m&3145728){const b=n.flags&1048576?n.origin:void 0,I=b&&b.flags&3145728?b.types:n.types,w=Wy(I,a);if(w===I&&c===n.aliasSymbol)return n;const U=c||n.aliasSymbol,H=c?p:Wy(n.aliasTypeArguments,a);return m&2097152||b&&b.flags&2097152?Ma(w,0,U,H):pi(w,1,U,H)}if(m&4194304)return b_(io(n.type,a));if(m&134217728)return TA(n.texts,Wy(n.types,a));if(m&268435456)return eR(n.symbol,io(n.type,a));if(m&8388608){const b=c||n.aliasSymbol,I=c?p:Wy(n.aliasTypeArguments,a);return Xp(io(n.objectType,a),io(n.indexType,a),n.accessFlags,void 0,b,I)}if(m&16777216)return Jhe(n,X0(n.mapper,a),!1,c,p);if(m&33554432){const b=io(n.baseType,a);if(VC(n))return fhe(b);const I=io(n.constraint,a);return b.flags&8650752&&K0(I)?hhe(b,I):I.flags&3||aa(RA(b),RA(I))?b:b.flags&8650752?hhe(b,I):Ma([I,b])}return n}function _dt(n,a){const c=io(n.mappedType,a);if(!(Hr(c)&32))return n;const p=io(n.constraintType,a);if(!(p.flags&4194304))return n;const m=U8e(io(n.source,a),c,p);return m||n}function CW(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=io(n,xl))}function RA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=io(n,Gl),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function gdt(n,a){return jg(n.keyType,io(n.type,a),n.isReadonly,n.declaration,n.components)}function Cf(n){switch(C.assert(n.kind!==175||mm(n)),n.kind){case 219:case 220:case 175:case 263:return f8e(n);case 211:return yt(n.properties,Cf);case 210:return yt(n.elements,Cf);case 228:return Cf(n.whenTrue)||Cf(n.whenFalse);case 227:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Cf(n.left)||Cf(n.right));case 304:return Cf(n.initializer);case 218:return Cf(n.expression);case 293:return yt(n.properties,Cf)||ph(n.parent)&&yt(n.parent.parent.children,Cf);case 292:{const{initializer:a}=n;return!!a&&Cf(a)}case 295:{const{expression:a}=n;return!!a&&Cf(a)}}return!1}function f8e(n){return B6(n)||ydt(n)}function ydt(n){return n.typeParameters||kp(n)||!n.body?!1:n.body.kind!==242?Cf(n.body):!!gb(n.body,a=>!!a.expression&&Cf(a.expression))}function cY(n){return(Ib(n)||mm(n))&&f8e(n)}function m8e(n){if(n.flags&524288){const a=Dh(n);if(a.constructSignatures.length||a.callSignatures.length){const c=_c(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=ae,c.constructSignatures=ae,c.indexInfos=ae,c}}else if(n.flags&2097152)return Ma(Vt(n.types,m8e));return n}function Hg(n,a){return T_(n,a,Jd)}function NW(n,a){return T_(n,a,Jd)?-1:0}function Khe(n,a){return T_(n,a,qd)?-1:0}function vdt(n,a){return T_(n,a,H_)?-1:0}function DE(n,a){return T_(n,a,H_)}function EL(n,a){return T_(n,a,cl)}function aa(n,a){return T_(n,a,qd)}function Y0(n,a){return n.flags&1048576?Vn(n.types,c=>Y0(c,a)):a.flags&1048576?yt(a.types,c=>Y0(n,c)):n.flags&2097152?yt(n.types,c=>Y0(c,a)):n.flags&58982400?Y0(Ld(n)||Nt,a):tg(a)?!!(n.flags&67633152):a===Jt?!!(n.flags&67633152)&&!tg(n):a===er?!!(n.flags&524288)&&D_e(n):Ur(n,zn(a))||im(a)&&!AL(a)&&Y0(n,Va)}function dY(n,a){return T_(n,a,lp)}function Xz(n,a){return dY(n,a)||dY(a,n)}function $d(n,a,c,p,m,b){return rm(n,a,qd,c,p,m,b)}function CE(n,a,c,p,m,b){return Xhe(n,a,qd,c,p,m,b,void 0)}function Xhe(n,a,c,p,m,b,I,w){return T_(n,a,c)?!0:!p||!MW(m,n,a,c,b,I,w)?rm(n,a,c,p,b,I,w):!1}function h8e(n){return!!(n.flags&16777216||n.flags&2097152&&yt(n.types,h8e))}function MW(n,a,c,p,m,b,I){if(!n||h8e(c))return!1;if(!rm(a,c,p,void 0)&&bdt(n,a,c,p,m,b,I))return!0;switch(n.kind){case 235:if(!WV(n))break;case 295:case 218:return MW(n.expression,a,c,p,m,b,I);case 227:switch(n.operatorToken.kind){case 64:case 28:return MW(n.right,a,c,p,m,b,I)}break;case 211:return Ddt(n,a,c,p,b,I);case 210:return xdt(n,a,c,p,b,I);case 293:return Idt(n,a,c,p,b,I);case 220:return Tdt(n,a,c,p,b,I)}return!1}function bdt(n,a,c,p,m,b,I){const w=na(a,0),U=na(a,1);for(const H of[U,w])if(yt(H,Q=>{const Ie=fs(Q);return!(Ie.flags&131073)&&rm(Ie,c,p,void 0)})){const Q=I||{};$d(a,c,n,m,b,Q);const Ie=Q.errors[Q.errors.length-1];return pa(Ie,Ar(n,H===U?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function Tdt(n,a,c,p,m,b){if(ea(n.body)||yt(n.parameters,mF))return!1;const I=OA(a);if(!I)return!1;const w=na(c,0);if(!et(w))return!1;const U=n.body,H=fs(I),Q=pi(Vt(w,fs));if(!rm(H,Q,p,void 0)){const Ie=U&&MW(U,H,Q,p,void 0,m,b);if(Ie)return Ie;const Te=b||{};if(rm(H,Q,p,U,void 0,m,Te),Te.errors)return c.symbol&&et(c.symbol.declarations)&&pa(Te.errors[Te.errors.length-1],Ar(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(dc(n)&2)&&!_n(H,"then")&&rm(N5(H),Q,p,void 0)&&pa(Te.errors[Te.errors.length-1],Ar(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function _8e(n,a,c){const p=cT(a,c);if(p)return p;if(a.flags&1048576){const m=A8e(n,a);if(m)return cT(m,c)}}function g8e(n,a){_5(n,a,!1);const c=kL(n,1);return VW(),c}function Yz(n,a,c,p,m,b){let I=!1;for(const w of n){const{errorNode:U,innerExpression:H,nameType:Q,errorMessage:Ie}=w;let Te=_8e(a,c,Q);if(!Te||Te.flags&8388608)continue;let Ze=cT(a,Q);if(!Ze)continue;const Tt=nY(Q,void 0);if(!rm(Ze,Te,p,void 0)){const Dt=H&&MW(H,Ze,Te,p,void 0,m,b);if(I=!0,!Dt){const $t=b||{},Tn=H?g8e(H,Ze):Ze;if(Ce&&pY(Tn,Te)){const nr=Ar(U,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ar(Tn),ar(Te));ns.add(nr),$t.errors=[nr]}else{const nr=!!(Tt&&(Ea(c,Tt)||ne).flags&16777216),yr=!!(Tt&&(Ea(a,Tt)||ne).flags&16777216);Te=Gy(Te,nr),Ze=Gy(Ze,nr&&yr),rm(Tn,Te,p,U,Ie,m,$t)&&Tn!==Ze&&rm(Ze,Te,p,U,Ie,m,$t)}if($t.errors){const nr=$t.errors[$t.errors.length-1],yr=jf(Q)?Uf(Q):void 0,Sn=yr!==void 0?Ea(c,yr):void 0;let vn=!1;if(!Sn){const Sr=vW(c,Q);Sr&&Sr.declaration&&!Wn(Sr.declaration).hasNoDefaultLib&&(vn=!0,pa(nr,Ar(Sr.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!vn&&(Sn&&et(Sn.declarations)||c.symbol&&et(c.symbol.declarations))){const Sr=Sn&&et(Sn.declarations)?Sn.declarations[0]:c.symbol.declarations[0];Wn(Sr).hasNoDefaultLib||pa(nr,Ar(Sr,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,yr&&!(Q.flags&8192)?Gi(yr):ar(Q),ar(c)))}}}}}return I}function Sdt(n,a,c,p,m,b){const I=Ac(c,vY),w=Ac(c,Q=>!vY(Q)),U=w!==yn?Yge(13,0,w,void 0):void 0;let H=!1;for(let Q=n.next();!Q.done;Q=n.next()){const{errorNode:Ie,innerExpression:Te,nameType:Ze,errorMessage:Tt}=Q.value;let Dt=U;const $t=I!==yn?_8e(a,I,Ze):void 0;if($t&&!($t.flags&8388608)&&(Dt=U?pi([U,$t]):$t),!Dt)continue;let Tn=cT(a,Ze);if(!Tn)continue;const nr=nY(Ze,void 0);if(!rm(Tn,Dt,p,void 0)){const yr=Te&&MW(Te,Tn,Dt,p,void 0,m,b);if(H=!0,!yr){const Sn=b||{},vn=Te?g8e(Te,Tn):Tn;if(Ce&&pY(vn,Dt)){const Sr=Ar(Ie,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,ar(vn),ar(Dt));ns.add(Sr),Sn.errors=[Sr]}else{const Sr=!!(nr&&(Ea(I,nr)||ne).flags&16777216),fi=!!(nr&&(Ea(a,nr)||ne).flags&16777216);Dt=Gy(Dt,Sr),Tn=Gy(Tn,Sr&&fi),rm(vn,Dt,p,Ie,Tt,m,Sn)&&vn!==Tn&&rm(Tn,Dt,p,Ie,Tt,m,Sn)}}}}return H}function*Edt(n){if(et(n.properties))for(const a of n.properties)KI(a)||$_e(Kk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Sp(Kk(a.name))})}function*Adt(n,a){if(!et(n.children))return;let c=0;for(let p=0;p1;let $t,Tn;if(tY(!1)!==Zt){const yr=xWe(Ue);$t=Ac(Ze,Sn=>aa(Sn,yr)),Tn=Ac(Ze,Sn=>!aa(Sn,yr))}else $t=Ac(Ze,vY),Tn=Ac(Ze,yr=>!vY(yr));if(Dt){if($t!==yn){const yr=eg(JY(H,0)),Sn=Adt(H,U);I=Sdt(Sn,yr,$t,p,m,b)||I}else if(!T_(Xp(a,Te),Ze,p)){I=!0;const yr=Qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Ie,ar(Ze));b&&b.skipLogging&&(b.errors||(b.errors=[])).push(yr)}}else if(Tn!==yn){const yr=Tt[0],Sn=y8e(yr,Te,U);Sn&&(I=Yz(function*(){yield Sn}(),a,c,p,m,b)||I)}else if(!T_(Xp(a,Te),Ze,p)){I=!0;const yr=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,Ie,ar(Ze));b&&b.skipLogging&&(b.errors||(b.errors=[])).push(yr)}}return I;function U(){if(!w){const H=Al(n.parent.tagName),Q=y5(kA(n)),Ie=Q===void 0?"children":Gi(Q),Te=Xp(c,Sp(Ie)),Ze=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;w={...Ze,key:"!!ALREADY FORMATTED!!",message:DI(Ze,H,Ie,ar(Te))}}return w}}function*v8e(n,a){const c=et(n.elements);if(c)for(let p=0;pU:kh(n)>U))return p&&!(c&8)&&m(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,kh(n),U),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Nlt(a),n=N6e(n,a,void 0,I));const Q=Ap(n),Ie=YW(n),Te=YW(a);(Ie||Te)&&io(Ie||Te,w);const Ze=a.declaration?a.declaration.kind:0,Tt=!(c&3)&&K&&Ze!==175&&Ze!==174&&Ze!==177;let Dt=-1;const $t=q0(n);if($t&&$t!==In){const yr=q0(a);if(yr){const Sn=!Tt&&I($t,yr,!1)||I(yr,$t,p);if(!Sn)return p&&m(f.The_this_types_of_each_signature_are_incompatible),0;Dt&=Sn}}const Tn=Ie||Te?Math.min(Q,U):Math.max(Q,U),nr=Ie||Te?Tn-1:-1;for(let yr=0;yr=kh(n)&&yr=3&&a[0].flags&32768&&a[1].flags&65536&&yt(a,tg)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function HC(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function Ldt(n){const a=n.flags&1048576?n.types[0]:n;return!!(a.flags&32768)&&a!==Ae}function T8e(n){return n.flags&524288&&!up(n)&&bs(n).length===0&&Xd(n).length===1&&!!Vg(n,gt)||n.flags&3145728&&Vn(n.types,T8e)||!1}function Qhe(n,a,c){const p=n.flags&8?Yc(n):n,m=a.flags&8?Yc(a):a;if(p===m)return!0;if(p.escapedName!==m.escapedName||!(p.flags&256)||!(m.flags&256))return!1;const b=Ta(p)+","+Ta(m),I=I0.get(b);if(I!==void 0&&!(I&2&&c))return!!(I&1);const w=_r(m);for(const U of bs(_r(p)))if(U.flags&8){const H=Ea(w,U.escapedName);if(!H||!(H.flags&8))return c&&c(f.Property_0_is_missing_in_type_1,Ol(U),ar(qs(m),void 0,64)),I0.set(b,2),!1;const Q=FA(al(U,307)).value,Ie=FA(al(H,307)).value;if(Q!==Ie){const Te=typeof Q=="string",Ze=typeof Ie=="string";if(Q!==void 0&&Ie!==void 0){if(c){const Tt=Te?`"${k_(Q)}"`:Q,Dt=Ze?`"${k_(Ie)}"`:Ie;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Ol(m),Ol(H),Dt,Tt)}return I0.set(b,2),!1}if(Te||Ze){if(c){const Tt=Q??Ie;C.assert(typeof Tt=="string");const Dt=`"${k_(Tt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Ol(m),Ol(H),Dt)}return I0.set(b,2),!1}}}return I0.set(b,1),!0}function PW(n,a,c,p){const m=n.flags,b=a.flags;return b&1||m&131072||n===It||b&2&&!(c===cl&&m&1)?!0:b&131072?!1:!!(m&402653316&&b&4||m&128&&m&1024&&b&128&&!(b&1024)&&n.value===a.value||m&296&&b&8||m&256&&m&1024&&b&256&&!(b&1024)&&n.value===a.value||m&2112&&b&64||m&528&&b&16||m&12288&&b&4096||m&32&&b&32&&n.symbol.escapedName===a.symbol.escapedName&&Qhe(n.symbol,a.symbol,p)||m&1024&&b&1024&&(m&1048576&&b&1048576&&Qhe(n.symbol,a.symbol,p)||m&2944&&b&2944&&n.value===a.value&&Qhe(n.symbol,a.symbol,p))||m&32768&&(!ie&&!(b&3145728)||b&49152)||m&65536&&(!ie&&!(b&3145728)||b&65536)||m&524288&&b&67108864&&!(c===cl&&tg(n)&&!(Hr(n)&8192))||(c===qd||c===lp)&&(m&1||m&8&&(b&32||b&256&&b&1024)||m&256&&!(m&1024)&&(b&32||b&256&&b&1024&&n.value===a.value)||Pdt(a)))}function T_(n,a,c){if(xE(n)&&(n=n.regularType),xE(a)&&(a=a.regularType),n===a)return!0;if(c!==Jd){if(c===lp&&!(a.flags&131072)&&PW(a,n,c)||PW(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 p=c.get(hY(n,a,0,c,!1));if(p!==void 0)return!!(p&1)}return n.flags&469499904||a.flags&469499904?rm(n,a,c,void 0):!1}function S8e(n,a){return Hr(n)&2048&&$_e(a.escapedName)}function $z(n,a){for(;;){const c=xE(n)?n.regularType:pT(n)?Odt(n,a):Hr(n)&4?n.node?Ly(n.target,rl(n)):a_e(n)||n:n.flags&3145728?kdt(n,a):n.flags&33554432?a?n.baseType:_he(n):n.flags&25165824?wy(n,a):n;if(c===n)return c;n=c}}function kdt(n,a){const c=Pm(n);if(c!==n)return c;if(n.flags&2097152&&wdt(n)){const p=Zi(n.types,m=>$z(m,a));if(p!==n.types)return Ma(p)}return n}function wdt(n){let a=!1,c=!1;for(const p of n.types)if(a||(a=!!(p.flags&465829888)),c||(c=!!(p.flags&98304)||tg(p)),a&&c)return!0;return!1}function Odt(n,a){const c=AE(n),p=Zi(c,m=>m.flags&25165824?wy(m,a):m);return c!==p?xhe(n.target,p):n}function rm(n,a,c,p,m,b,I){var w;let U,H,Q,Ie,Te,Ze,Tt=0,Dt=0,$t=0,Tn=0,nr=!1,yr=0,Sn=0,vn,Sr,fi=16e6-c.size>>3;C.assert(c!==Jd||!p,"no error reporting in identity checking");const oo=vr(n,a,3,!!p,m);if(Sr&&ms(),nr){const Me=hY(n,a,0,c,!1);c.set(Me,2|(fi<=0?32:64)),(w=xr)==null||w.instant(xr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Dt,targetDepth:$t});const qe=fi<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,ct=Qe(p||R,qe,ar(n),ar(a));I&&(I.errors||(I.errors=[])).push(ct)}else if(U){if(b){const ct=b();ct&&(Bne(ct,U),U=ct)}let Me;if(m&&p&&!oo&&n.symbol){const ct=Jr(n.symbol);if(ct.originatingImport&&!Qu(ct.originatingImport)&&rm(_r(ct.target),a,c,void 0)){const sn=Ar(ct.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);Me=Bn(Me,sn)}}const qe=hg(Wn(p),p,U,Me);H&&pa(qe,...H),I&&(I.errors||(I.errors=[])).push(qe),(!I||!I.skipLogging)&&ns.add(qe)}return p&&I&&I.skipLogging&&oo===0&&C.assert(!!I.errors,"missed opportunity to interact with error."),oo!==0;function ii(Me){U=Me.errorInfo,vn=Me.lastSkippedInfo,Sr=Me.incompatibleStack,yr=Me.overrideNextErrorInfo,Sn=Me.skipParentCounter,H=Me.relatedInfo}function zi(){return{errorInfo:U,lastSkippedInfo:vn,incompatibleStack:Sr?.slice(),overrideNextErrorInfo:yr,skipParentCounter:Sn,relatedInfo:H?.slice()}}function Ko(Me,...qe){yr++,vn=void 0,(Sr||(Sr=[])).push([Me,...qe])}function ms(){const Me=Sr||[];Sr=void 0;const qe=vn;if(vn=void 0,Me.length===1){fo(...Me[0]),qe&&fu(void 0,...qe);return}let ct="";const Gt=[];for(;Me.length;){const[sn,...Ut]=Me.pop();switch(sn.code){case f.Types_of_property_0_are_incompatible.code:{ct.indexOf("new ")===0&&(ct=`(${ct})`);const un=""+Ut[0];ct.length===0?ct=`${un}`:fp(un,Ga(O))?ct=`${ct}.${un}`:un[0]==="["&&un[un.length-1]==="]"?ct=`${ct}${un}`:ct=`${ct}[${un}]`;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(ct.length===0){let un=sn;sn.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?un=f.Call_signature_return_types_0_and_1_are_incompatible:sn.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(un=f.Construct_signature_return_types_0_and_1_are_incompatible),Gt.unshift([un,Ut[0],Ut[1]])}else{const un=sn.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||sn.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Zn=sn.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||sn.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";ct=`${un}${ct}(${Zn})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Gt.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Ut[0],Ut[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Gt.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Ut[0],Ut[1],Ut[2]]);break}default:return C.fail(`Unhandled Diagnostic: ${sn.code}`)}}ct?fo(ct[ct.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,ct):Gt.shift();for(const[sn,...Ut]of Gt){const un=sn.elidedInCompatabilityPyramid;sn.elidedInCompatabilityPyramid=!1,fo(sn,...Ut),sn.elidedInCompatabilityPyramid=un}qe&&fu(void 0,...qe)}function fo(Me,...qe){C.assert(!!p),Sr&&ms(),!Me.elidedInCompatabilityPyramid&&(Sn===0?U=qo(U,Me,...qe):Sn--)}function dl(Me,...qe){fo(Me,...qe),Sn++}function Xl(Me){C.assert(!!U),H?H.push(Me):H=[Me]}function fu(Me,qe,ct){Sr&&ms();const[Gt,sn]=sL(qe,ct);let Ut=qe,un=Gt;if(!(ct.flags&131072)&&LW(qe)&&!Zhe(ct)&&(Ut=zy(qe),C.assert(!aa(Ut,ct),"generalized source shouldn't be assignable"),un=MC(Ut)),(ct.flags&8388608&&!(qe.flags&8388608)?ct.objectType.flags:ct.flags)&262144&&ct!==pt&&ct!==qt){const fr=Ld(ct);let Br;fr&&(aa(Ut,fr)||(Br=aa(qe,fr)))?fo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Br?Gt:un,sn,ar(fr)):(U=void 0,fo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,sn,un))}if(Me)Me===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ce&&E8e(qe,ct).length&&(Me=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===lp)Me=f.Type_0_is_not_comparable_to_type_1;else if(Gt===sn)Me=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ce&&E8e(qe,ct).length)Me=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(qe.flags&128&&ct.flags&1048576){const fr=emt(qe,ct);if(fr){fo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,un,sn,ar(fr));return}}Me=f.Type_0_is_not_assignable_to_type_1}fo(Me,un,sn)}function qn(Me,qe){const ct=PC(Me.symbol)?ar(Me,Me.symbol.valueDeclaration):ar(Me),Gt=PC(qe.symbol)?ar(qe,qe.symbol.valueDeclaration):ar(qe);(Pc===Me&>===qe||tl===Me&&Bt===qe||kl===Me&&jt===qe||vWe()===Me&&Qt===qe)&&fo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Gt,ct)}function rr(Me,qe,ct){return Ka(Me)?Me.target.readonly&&t5(qe)?(ct&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ar(Me),ar(qe)),!1):$0(qe):AL(Me)&&t5(qe)?(ct&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,ar(Me),ar(qe)),!1):Ka(qe)?im(Me):!0}function Hi(Me,qe,ct){return vr(Me,qe,3,ct)}function vr(Me,qe,ct=3,Gt=!1,sn,Ut=0){if(Me===qe)return-1;if(Me.flags&524288&&qe.flags&402784252)return c===lp&&!(qe.flags&131072)&&PW(qe,Me,c)||PW(Me,qe,c,Gt?fo:void 0)?-1:(Gt&&wo(Me,qe,Me,qe,sn),0);const un=$z(Me,!1);let Zn=$z(qe,!0);if(un===Zn)return-1;if(c===Jd)return un.flags!==Zn.flags?0:un.flags&67358815?-1:(ys(un,Zn),u8(un,Zn,!1,0,ct));if(un.flags&262144&&gA(un)===Zn)return-1;if(un.flags&470302716&&Zn.flags&1048576){const fr=Zn.types,Br=fr.length===2&&fr[0].flags&98304?fr[1]:fr.length===3&&fr[0].flags&98304&&fr[1].flags&98304?fr[2]:void 0;if(Br&&!(Br.flags&98304)&&(Zn=$z(Br,!0),un===Zn))return-1}if(c===lp&&!(Zn.flags&131072)&&PW(Zn,un,c)||PW(un,Zn,c,Gt?fo:void 0))return-1;if(un.flags&469499904||Zn.flags&469499904){if(!(Ut&2)&&jv(un)&&Hr(un)&8192&&md(un,Zn,Gt))return Gt&&fu(sn,un,qe.aliasSymbol?qe:Zn),0;const Br=(c!==lp||Nh(un))&&!(Ut&2)&&un.flags&405405692&&un!==Jt&&Zn.flags&2621440&&t_e(Zn)&&(bs(un).length>0||N$(un)),li=!!(Hr(un)&2048);if(Br&&!Fdt(un,Zn,li)){if(Gt){const xi=ar(Me.aliasSymbol?Me:un),mo=ar(qe.aliasSymbol?qe:Zn),ts=na(un,0),bn=na(un,1);ts.length>0&&vr(fs(ts[0]),Zn,1,!1)||bn.length>0&&vr(fs(bn[0]),Zn,1,!1)?fo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,xi,mo):fo(f.Type_0_has_no_properties_in_common_with_type_1,xi,mo)}return 0}ys(un,Zn);const sr=un.flags&1048576&&un.types.length<4&&!(Zn.flags&1048576)||Zn.flags&1048576&&Zn.types.length<4&&!(un.flags&469499904)?cc(un,Zn,Gt,Ut):u8(un,Zn,Gt,Ut,ct);if(sr)return sr}return Gt&&wo(Me,qe,un,Zn,sn),0}function wo(Me,qe,ct,Gt,sn){var Ut,un;const Zn=!!a_e(Me),fr=!!a_e(qe);ct=Me.aliasSymbol||Zn?Me:ct,Gt=qe.aliasSymbol||fr?qe:Gt;let Br=yr>0;if(Br&&yr--,ct.flags&524288&&Gt.flags&524288){const li=U;rr(ct,Gt,!0),U!==li&&(Br=!!U)}if(ct.flags&524288&&Gt.flags&402784252)qn(ct,Gt);else if(ct.symbol&&ct.flags&524288&&Jt===ct)fo(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Hr(ct)&2048&&Gt.flags&2097152){const li=Gt.types,mi=PE(_f.IntrinsicAttributes,p),sr=PE(_f.IntrinsicClassAttributes,p);if(!pr(mi)&&!pr(sr)&&(jn(li,mi)||jn(li,sr)))return}else U=ohe(U,qe);if(!sn&&Br){const li=zi();fu(sn,ct,Gt);let mi;U&&U!==li.errorInfo&&(mi={code:U.code,messageText:U.messageText}),ii(li),mi&&U&&(U.canonicalHead=mi),vn=[ct,Gt];return}if(fu(sn,ct,Gt),ct.flags&262144&&((un=(Ut=ct.symbol)==null?void 0:Ut.declarations)!=null&&un[0])&&!gA(ct)){const li=Uhe(ct);if(li.constraint=io(Gt,RE(ct,li)),kz(li)){const mi=ar(Gt,ct.symbol.declarations[0]);Xl(Ar(ct.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,mi))}}}function ys(Me,qe){if(xr&&Me.flags&3145728&&qe.flags&3145728){const ct=Me,Gt=qe;if(ct.objectFlags&Gt.objectFlags&32768)return;const sn=ct.types.length,Ut=Gt.types.length;sn*Ut>1e6&&xr.instant(xr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Me.id,sourceSize:sn,targetId:qe.id,targetSize:Ut,pos:p?.pos,end:p?.end})}}function il(Me,qe){return pi(_u(Me,(Gt,sn)=>{var Ut;sn=Ru(sn);const un=sn.flags&3145728?wz(sn,qe):TE(sn,qe),Zn=un&&_r(un)||((Ut=Qx(sn,qe))==null?void 0:Ut.type)||he;return Bn(Gt,Zn)},void 0)||ae)}function md(Me,qe,ct){var Gt;if(!HW(qe)||!ve&&Hr(qe)&4096)return!1;const sn=!!(Hr(Me)&2048);if((c===qd||c===lp)&&(DL(Jt,qe)||!sn&&Fy(qe)))return!1;let Ut=qe,un;qe.flags&1048576&&(Ut=Z3e(Me,qe,vr)||dbt(qe),un=Ut.flags&1048576?Ut.types:[Ut]);for(const Zn of bs(Me))if(Xa(Zn,Me.symbol)&&!S8e(Me,Zn)){if(!YY(Ut,Zn.escapedName,sn)){if(ct){const fr=Ac(Ut,HW);if(!p)return C.fail();if(VS(p)||nu(p)||nu(p.parent)){Zn.valueDeclaration&&i_(Zn.valueDeclaration)&&Wn(p)===Wn(Zn.valueDeclaration.name)&&(p=Zn.valueDeclaration.name);const Br=uo(Zn),li=b6e(Br,fr),mi=li?uo(li):void 0;mi?fo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Br,ar(fr),mi):fo(f.Property_0_does_not_exist_on_type_1,Br,ar(fr))}else{const Br=((Gt=Me.symbol)==null?void 0:Gt.declarations)&&Ic(Me.symbol.declarations);let li;if(Zn.valueDeclaration&&Dn(Zn.valueDeclaration,mi=>mi===Br)&&Wn(Br)===Wn(p)){const mi=Zn.valueDeclaration;C.assertNode(mi,ny);const sr=mi.name;p=sr,He(sr)&&(li=T6e(sr,fr))}li!==void 0?dl(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,uo(Zn),ar(fr),li):dl(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,uo(Zn),ar(fr))}}return!0}if(un&&!vr(_r(Zn),il(un,Zn.escapedName),3,ct))return ct&&Ko(f.Types_of_property_0_are_incompatible,uo(Zn)),!0}return!1}function Xa(Me,qe){return Me.valueDeclaration&&qe.valueDeclaration&&Me.valueDeclaration.parent===qe.valueDeclaration}function cc(Me,qe,ct,Gt){if(Me.flags&1048576){if(qe.flags&1048576){const sn=Me.origin;if(sn&&sn.flags&2097152&&qe.aliasSymbol&&jn(sn.types,qe))return-1;const Ut=qe.origin;if(Ut&&Ut.flags&1048576&&Me.aliasSymbol&&jn(Ut.types,Me))return-1}return c===lp?Sl(Me,qe,ct&&!(Me.flags&402784252),Gt):lm(Me,qe,ct&&!(Me.flags&402784252),Gt)}if(qe.flags&1048576)return Ts(OW(Me),qe,ct&&!(Me.flags&402784252)&&!(qe.flags&402784252),Gt);if(qe.flags&2097152)return Nf(Me,qe,ct,2);if(c===lp&&qe.flags&402784252){const sn=Zi(Me.types,Ut=>Ut.flags&465829888?Ld(Ut)||Nt:Ut);if(sn!==Me.types){if(Me=Ma(sn),Me.flags&131072)return 0;if(!(Me.flags&2097152))return vr(Me,qe,1,!1)||vr(qe,Me,1,!1)}}return Sl(Me,qe,!1,1)}function gc(Me,qe){let ct=-1;const Gt=Me.types;for(const sn of Gt){const Ut=Ts(sn,qe,!1,0);if(!Ut)return 0;ct&=Ut}return ct}function Ts(Me,qe,ct,Gt){const sn=qe.types;if(qe.flags&1048576){if(Ug(sn,Me))return-1;if(c!==lp&&Hr(qe)&32768&&!(Me.flags&1024)&&(Me.flags&2688||(c===H_||c===cl)&&Me.flags&256)){const un=Me===Me.regularType?Me.freshType:Me.regularType,Zn=Me.flags&128?gt:Me.flags&256?Bt:Me.flags&2048?gr:void 0;return Zn&&Ug(sn,Zn)||un&&Ug(sn,un)?-1:0}const Ut=eFe(qe,Me);if(Ut){const un=vr(Me,Ut,2,!1,void 0,Gt);if(un)return un}}for(const Ut of sn){const un=vr(Me,Ut,2,!1,void 0,Gt);if(un)return un}if(ct){const Ut=A8e(Me,qe,vr);Ut&&vr(Me,Ut,2,!0,void 0,Gt)}return 0}function Nf(Me,qe,ct,Gt){let sn=-1;const Ut=qe.types;for(const un of Ut){const Zn=vr(Me,un,2,ct,void 0,Gt);if(!Zn)return 0;sn&=Zn}return sn}function Sl(Me,qe,ct,Gt){const sn=Me.types;if(Me.flags&1048576&&Ug(sn,qe))return-1;const Ut=sn.length;for(let un=0;un=un.types.length&&Ut.length%un.types.length===0){const li=vr(fr,un.types[Zn%un.types.length],3,!1,void 0,Gt);if(li){sn&=li;continue}}const Br=vr(fr,qe,1,ct,void 0,Gt);if(!Br)return 0;sn&=Br}return sn}function BL(Me=ae,qe=ae,ct=ae,Gt,sn){if(Me.length!==qe.length&&c===Jd)return 0;const Ut=Me.length<=qe.length?Me.length:qe.length;let un=-1;for(let Zn=0;Zn(xi|=bn?16:8,sr(bn)));let mo;return Tn===3?((Ut=xr)==null||Ut.instant(xr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Me.id,sourceIdStack:Te.map(bn=>bn.id),targetId:qe.id,targetIdStack:Ze.map(bn=>bn.id),depth:Dt,targetDepth:$t}),mo=3):((un=xr)==null||un.push(xr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Me.id,targetId:qe.id}),mo=GL(Me,qe,ct,Gt),(Zn=xr)==null||Zn.pop()),Go&&(Go=sr),sn&1&&Dt--,sn&2&&$t--,Tn=mi,mo?(mo===-1||Dt===0&&$t===0)&&ts(mo===-1||mo===3):(c.set(fr,2|xi),fi--,ts(!1)),mo;function ts(bn){for(let Yr=li;YrZn!==Me)&&(Ut=vr(un,qe,1,!1,void 0,Gt))}Ut&&!(Gt&2)&&qe.flags&2097152&&!EA(qe)&&Me.flags&2621440?(Ut&=Pa(Me,qe,ct,void 0,!1,0),Ut&&jv(Me)&&Hr(Me)&8192&&(Ut&=we(Me,qe,!1,ct,0))):Ut&&iY(qe)&&!$0(qe)&&Me.flags&2097152&&Ru(Me).flags&3670016&&!yt(Me.types,un=>un===qe||!!(Hr(un)&262144))&&(Ut&=Pa(Me,qe,ct,void 0,!0,Gt))}return Ut&&ii(sn),Ut}function af(Me,qe){const ct=Ru(U0(qe)),Gt=[];return Qme(ct,8576,!1,sn=>void Gt.push(io(Me,RW(qe.mapper,eh(qe),sn)))),pi(Gt)}function p8(Me,qe,ct,Gt,sn){let Ut,un,Zn=!1,fr=Me.flags;const Br=qe.flags;if(c===Jd){if(fr&3145728){let sr=gc(Me,qe);return sr&&(sr&=gc(qe,Me)),sr}if(fr&4194304)return vr(Me.type,qe.type,3,!1);if(fr&8388608&&(Ut=vr(Me.objectType,qe.objectType,3,!1))&&(Ut&=vr(Me.indexType,qe.indexType,3,!1))||fr&16777216&&Me.root.isDistributive===qe.root.isDistributive&&(Ut=vr(Me.checkType,qe.checkType,3,!1))&&(Ut&=vr(Me.extendsType,qe.extendsType,3,!1))&&(Ut&=vr(dT(Me),dT(qe),3,!1))&&(Ut&=vr(uT(Me),uT(qe),3,!1))||fr&33554432&&(Ut=vr(Me.baseType,qe.baseType,3,!1))&&(Ut&=vr(Me.constraint,qe.constraint,3,!1)))return Ut;if(fr&134217728&&Qp(Me.texts,qe.texts)){const sr=Me.types,xi=qe.types;Ut=-1;for(let mo=0;mo!!(xi.flags&262144));){if(Ut=vr(sr,qe,1,!1))return Ut;sr=ju(sr)}return 0}}else if(Br&4194304){const sr=qe.type;if(fr&4194304&&(Ut=vr(sr,Me.type,3,!1)))return Ut;if(Ka(sr)){if(Ut=vr(Me,NWe(sr),2,ct))return Ut}else{const xi=Zme(sr);if(xi){if(vr(Me,b_(xi,qe.indexFlags|4),2,ct)===-1)return-1}else if(up(sr)){const mo=Wv(sr),ts=Rf(sr);let bn;if(mo&&FC(sr)){const Yr=af(mo,sr);bn=pi([Yr,mo])}else bn=mo||ts;if(vr(Me,bn,2,ct)===-1)return-1}}}else if(Br&8388608){if(fr&8388608){if((Ut=vr(Me.objectType,qe.objectType,3,ct))&&(Ut&=vr(Me.indexType,qe.indexType,3,ct)),Ut)return Ut;ct&&(un=U)}if(c===qd||c===lp){const sr=qe.objectType,xi=qe.indexType,mo=Ld(sr)||sr,ts=Ld(xi)||xi;if(!EA(mo)&&!AA(ts)){const bn=4|(mo!==sr?2:0),Yr=cT(mo,ts,bn);if(Yr){if(ct&&un&&ii(sn),Ut=vr(Me,Yr,2,ct,void 0,Gt))return Ut;ct&&un&&U&&(U=li([un])<=li([U])?un:U)}}}ct&&(un=void 0)}else if(up(qe)&&c!==Jd){const sr=!!qe.declaration.nameType,xi=Gg(qe),mo=Q_(qe);if(!(mo&8)){if(!sr&&xi.flags&8388608&&xi.objectType===Me&&xi.indexType===eh(qe))return-1;if(!up(Me)){const ts=sr?Wv(qe):Rf(qe),bn=b_(Me,2),Yr=mo&4,Fo=Yr?Mz(ts,bn):void 0;if(Yr?!(Fo.flags&131072):vr(ts,bn,3)){const vo=Gg(qe),Ya=eh(qe),hs=CL(vo,-98305);if(!sr&&hs.flags&8388608&&hs.indexType===Ya){if(Ut=vr(Me,hs.objectType,2,ct))return Ut}else{const No=sr?Fo||ts:Fo?Ma([Fo,Ya]):Ya,Lc=Xp(Me,No);if(Ut=vr(Lc,vo,3,ct))return Ut}}un=U,ii(sn)}}}else if(Br&16777216){if(iR(qe,Ze,$t,10))return 3;const sr=qe;if(!sr.root.inferTypeParameters&&!Qct(sr.root)&&!(Me.flags&16777216&&Me.root===sr.root)){const xi=!aa(CW(sr.checkType),CW(sr.extendsType)),mo=!xi&&aa(RA(sr.checkType),RA(sr.extendsType));if((Ut=xi?-1:vr(Me,dT(sr),2,!1,void 0,Gt))&&(Ut&=mo?-1:vr(Me,uT(sr),2,!1,void 0,Gt),Ut))return Ut}}else if(Br&134217728){if(fr&134217728){if(c===lp)return xut(Me,qe)?0:-1;io(Me,Sc)}if(NY(Me,qe))return-1}else if(qe.flags&268435456&&!(Me.flags&268435456)&&CY(Me,qe))return-1;if(fr&8650752){if(!(fr&8388608&&Br&8388608)){const sr=gA(Me)||Nt;if(Ut=vr(sr,qe,1,!1,void 0,Gt))return Ut;if(Ut=vr(Kp(sr,Me),qe,1,ct&&sr!==Nt&&!(Br&fr&262144),void 0,Gt))return Ut;if(rhe(Me)){const xi=gA(Me.indexType);if(xi&&(Ut=vr(Xp(Me.objectType,xi),qe,1,ct)))return Ut}}}else if(fr&4194304){const sr=Phe(Me.type,Me.indexFlags)&&Hr(Me.type)&32;if(Ut=vr(Ii,qe,1,ct&&!sr))return Ut;if(sr){const xi=Me.type,mo=Wv(xi),ts=mo&&FC(xi)?af(mo,xi):mo||Rf(xi);if(Ut=vr(ts,qe,1,ct))return Ut}}else if(fr&134217728&&!(Br&524288)){if(!(Br&134217728)){const sr=Ld(Me);if(sr&&sr!==Me&&(Ut=vr(sr,qe,1,ct)))return Ut}}else if(fr&268435456)if(Br&268435456){if(Me.symbol!==qe.symbol)return 0;if(Ut=vr(Me.type,qe.type,3,ct))return Ut}else{const sr=Ld(Me);if(sr&&(Ut=vr(sr,qe,1,ct)))return Ut}else if(fr&16777216){if(iR(Me,Te,Dt,10))return 3;if(Br&16777216){const mo=Me.root.inferTypeParameters;let ts=Me.extendsType,bn;if(mo){const Yr=WW(mo,void 0,0,Hi);qg(Yr.inferences,qe.extendsType,ts,1536),ts=io(ts,Yr.mapper),bn=Yr.mapper}if(Hg(ts,qe.extendsType)&&(vr(Me.checkType,qe.checkType,3)||vr(qe.checkType,Me.checkType,3))&&((Ut=vr(io(dT(Me),bn),dT(qe),3,ct))&&(Ut&=vr(uT(Me),uT(qe),3,ct)),Ut))return Ut}const sr=ehe(Me);if(sr&&(Ut=vr(sr,qe,1,ct)))return Ut;const xi=!(Br&16777216)&&kz(Me)?FOe(Me):void 0;if(xi&&(ii(sn),Ut=vr(xi,qe,1,ct)))return Ut}else{if(c!==H_&&c!==cl&&alt(qe)&&Fy(Me))return-1;if(up(qe))return up(Me)&&(Ut=Ht(Me,qe,ct))?Ut:0;const sr=!!(fr&402784252);if(c!==Jd)Me=Ru(Me),fr=Me.flags;else if(up(Me))return 0;if(Hr(Me)&4&&Hr(qe)&4&&Me.target===qe.target&&!Ka(Me)&&!(fY(Me)||fY(qe))){if(yY(Me))return-1;const xi=n_e(Me.target);if(xi===ae)return 1;const mo=mi(rl(Me),rl(qe),xi,Gt);if(mo!==void 0)return mo}else{if(AL(qe)?Ep(Me,$0):im(qe)&&Ep(Me,xi=>Ka(xi)&&!xi.target.readonly))return c!==Jd?vr(H0(Me,Bt)||Ue,H0(qe,Bt)||Ue,3,ct):0;if(pT(Me)&&Ka(qe)&&!pT(qe)){const xi=v_(Me);if(xi!==Me)return vr(xi,qe,1,ct)}else if((c===H_||c===cl)&&Fy(qe)&&Hr(qe)&8192&&!Fy(Me))return 0}if(fr&2621440&&Br&524288){const xi=ct&&U===sn.errorInfo&&!sr;if(Ut=Pa(Me,qe,xi,void 0,!1,Gt),Ut&&(Ut&=Gs(Me,qe,0,xi,Gt),Ut&&(Ut&=Gs(Me,qe,1,xi,Gt),Ut&&(Ut&=we(Me,qe,sr,xi,Gt)))),Zn&&Ut)U=un||U||sn.errorInfo;else if(Ut)return Ut}if(fr&2621440&&Br&1048576){const xi=CL(qe,36175872);if(xi.flags&1048576){const mo=Nn(Me,xi);if(mo)return mo}}}return 0;function li(sr){return sr?_u(sr,(xi,mo)=>xi+1+li(mo.next),0):0}function mi(sr,xi,mo,ts){if(Ut=BL(sr,xi,mo,ct,ts))return Ut;if(yt(mo,Yr=>!!(Yr&24))){un=void 0,ii(sn);return}const bn=xi&&zdt(xi,mo);if(Zn=!bn,mo!==ae&&!bn){if(Zn&&!(ct&&yt(mo,Yr=>(Yr&7)===0)))return 0;un=U,ii(sn)}}}function Ht(Me,qe,ct){if(c===lp||(c===Jd?Q_(Me)===Q_(qe):hL(Me)<=hL(qe))){let sn;const Ut=Rf(qe),un=io(Rf(Me),hL(Me)<0?$s:Sc);if(sn=vr(Ut,un,3,ct)){const Zn=Yp([eh(Me)],[eh(qe)]);if(io(Wv(Me),Zn)===io(Wv(qe),Zn))return sn&vr(io(Gg(Me),Zn),Gg(qe),3,ct)}}return 0}function Nn(Me,qe){var ct;const Gt=bs(Me),sn=Z8e(Gt,qe);if(!sn)return 0;let Ut=1;for(const mi of sn)if(Ut*=ept(xh(mi)),Ut>25)return(ct=xr)==null||ct.instant(xr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Me.id,targetId:qe.id,numCombinations:Ut}),0;const un=new Array(sn.length),Zn=new Set;for(let mi=0;mimi[mo],!1,0,ie||c===lp))continue e}kf(Br,xi,eb),sr=!0}if(!sr)return 0}let li=-1;for(const mi of Br)if(li&=Pa(Me,mi,!1,Zn,!1,0),li&&(li&=Gs(Me,mi,0,!1,0),li&&(li&=Gs(Me,mi,1,!1,0),li&&!(Ka(Me)&&Ka(mi))&&(li&=we(Me,mi,!1,!1,0)))),!li)return li;return li}function $n(Me,qe){if(!qe||Me.length===0)return Me;let ct;for(let Gt=0;Gt5?fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ar(Me),ar(qe),Vt(Ut.slice(0,4),un=>uo(un)).join(", "),Ut.length-4):fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ar(Me),ar(qe),Vt(Ut,un=>uo(un)).join(", ")),sn&&U&&yr++)}function Pa(Me,qe,ct,Gt,sn,Ut){if(c===Jd)return Oa(Me,qe,Gt);let un=-1;if(Ka(qe)){if($0(Me)){if(!qe.target.readonly&&(AL(Me)||Ka(Me)&&Me.target.readonly))return 0;const mi=Bv(Me),sr=Bv(qe),xi=Ka(Me)?Me.target.combinedFlags&4:4,mo=!!(qe.target.combinedFlags&12),ts=Ka(Me)?Me.target.minLength:0,bn=qe.target.minLength;if(!xi&&mi=vo?sr-1-Math.min(kc,Ya):No,hu=qe.target.elementFlags[Od];if(hu&8&&!(Lc&8))return ct&&fo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Od),0;if(Lc&8&&!(hu&12))return ct&&fo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,No,Od),0;if(hu&1&&!(Lc&1))return ct&&fo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Od),0;if(hs&&((Lc&12||hu&12)&&(hs=!1),hs&&Gt?.has(""+No)))continue;const Hu=Gy(Yr[No],!!(Lc&hu&2)),Hy=Fo[Od],oS=Lc&8&&hu&4?Yd(Hy):Gy(Hy,!!(hu&2)),wE=vr(Hu,oS,3,ct,void 0,Ut);if(!wE)return ct&&(sr>1||mi>1)&&(mo&&No>=vo&&kc>=Ya&&vo!==mi-Ya-1?Ko(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,vo,mi-Ya-1,Od):Ko(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,No,Od)),0;un&=wE}return un}if(qe.target.combinedFlags&12)return 0}const Zn=(c===H_||c===cl)&&!jv(Me)&&!yY(Me)&&!Ka(Me),fr=v_e(Me,qe,Zn,!1);if(fr)return ct&&Qc(Me,qe)&&gi(Me,qe,fr,Zn),0;if(jv(qe)){for(const mi of $n(bs(Me),Gt))if(!TE(qe,mi.escapedName)&&!(_r(mi).flags&32768))return ct&&fo(f.Property_0_does_not_exist_on_type_1,uo(mi),ar(qe)),0}const Br=bs(qe),li=Ka(Me)&&Ka(qe);for(const mi of $n(Br,Gt)){const sr=mi.escapedName;if(!(mi.flags&4194304)&&(!li||Eg(sr)||sr==="length")&&(!sn||mi.flags&16777216)){const xi=Ea(Me,sr);if(xi&&xi!==mi){const mo=Gr(Me,qe,xi,mi,xh,ct,Ut,c===lp);if(!mo)return 0;un&=mo}}}return un}function Oa(Me,qe,ct){if(!(Me.flags&524288&&qe.flags&524288))return 0;const Gt=$n(Fv(Me),ct),sn=$n(Fv(qe),ct);if(Gt.length!==sn.length)return 0;let Ut=-1;for(const un of Gt){const Zn=TE(qe,un.escapedName);if(!Zn)return 0;const fr=i_e(un,Zn,vr);if(!fr)return 0;Ut&=fr}return Ut}function Gs(Me,qe,ct,Gt,sn){var Ut,un;if(c===Jd)return iS(Me,qe,ct);if(qe===As||Me===As)return-1;const Zn=Me.symbol&&E_(Me.symbol.valueDeclaration),fr=qe.symbol&&E_(qe.symbol.valueDeclaration),Br=na(Me,Zn&&ct===1?0:ct),li=na(qe,fr&&ct===1?0:ct);if(ct===1&&Br.length&&li.length){const ts=!!(Br[0].flags&4),bn=!!(li[0].flags&4);if(ts&&!bn)return Gt&&fo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!pn(Br[0],li[0],Gt))return 0}let mi=-1;const sr=ct===1?pp:mu,xi=Hr(Me),mo=Hr(qe);if(xi&64&&mo&64&&Me.symbol===qe.symbol||xi&4&&mo&4&&Me.target===qe.target){C.assertEqual(Br.length,li.length);for(let ts=0;tsiT(vo,void 0,262144,ct);return fo(f.Type_0_is_not_assignable_to_type_1,Fo(bn),Fo(Yr)),fo(f.Types_of_construct_signatures_are_incompatible),mi}}else e:for(const ts of li){const bn=zi();let Yr=Gt;for(const Fo of Br){const vo=rS(Fo,ts,!0,Yr,sn,sr(Fo,ts));if(vo){mi&=vo,ii(bn);continue e}Yr=!1}return Yr&&fo(f.Type_0_provides_no_match_for_the_signature_1,ar(Me),iT(ts,void 0,void 0,ct)),0}return mi}function Qc(Me,qe){const ct=Oz(Me,0),Gt=Oz(Me,1),sn=Fv(Me);return(ct.length||Gt.length)&&!sn.length?!!(na(qe,0).length&&ct.length||na(qe,1).length&&Gt.length):!0}function mu(Me,qe){return Me.parameters.length===0&&qe.parameters.length===0?(ct,Gt)=>Ko(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ar(ct),ar(Gt)):(ct,Gt)=>Ko(f.Call_signature_return_types_0_and_1_are_incompatible,ar(ct),ar(Gt))}function pp(Me,qe){return Me.parameters.length===0&&qe.parameters.length===0?(ct,Gt)=>Ko(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,ar(ct),ar(Gt)):(ct,Gt)=>Ko(f.Construct_signature_return_types_0_and_1_are_incompatible,ar(ct),ar(Gt))}function rS(Me,qe,ct,Gt,sn,Ut){const un=c===H_?16:c===cl?24:0;return Yhe(ct?EW(Me):Me,ct?EW(qe):qe,un,Gt,fo,Ut,Zn,Sc);function Zn(fr,Br,li){return vr(fr,Br,3,li,void 0,sn)}}function iS(Me,qe,ct){const Gt=na(Me,ct),sn=na(qe,ct);if(Gt.length!==sn.length)return 0;let Ut=-1;for(let un=0;unfr.keyType===gt);let Zn=-1;for(const fr of Ut){const Br=c!==cl&&!ct&&un&&fr.type.flags&1?-1:up(Me)&&un?vr(Gg(Me),fr.type,3,Gt):se(Me,fr,Gt,sn);if(!Br)return 0;Zn&=Br}return Zn}function se(Me,qe,ct,Gt){const sn=vW(Me,qe.keyType);return sn?F$(sn,qe,ct,Gt):!(Gt&1)&&(c!==cl||Hr(Me)&8192)&&AY(Me)?X5(Me,qe,ct,Gt):(ct&&fo(f.Index_signature_for_type_0_is_missing_in_type_1,ar(qe.keyType),ar(Me)),0)}function on(Me,qe){const ct=Xd(Me),Gt=Xd(qe);if(ct.length!==Gt.length)return 0;for(const sn of Gt){const Ut=Vg(Me,sn.keyType);if(!(Ut&&vr(Ut.type,sn.type,3)&&Ut.isReadonly===sn.isReadonly))return 0}return-1}function pn(Me,qe,ct){if(!Me.declaration||!qe.declaration)return!0;const Gt=TI(Me.declaration,6),sn=TI(qe.declaration,6);return sn===2||sn===4&&Gt!==2||sn!==4&&!Gt?!0:(ct&&fo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,G0(Gt),G0(sn)),!1)}}function Zhe(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Ye(n.types,Zhe);if(n.flags&465829888){const a=gA(n);if(a&&a!==n)return Zhe(a)}return Nh(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function E8e(n,a){return Ka(n)&&Ka(a)?ae:bs(a).filter(c=>pY(_n(n,c.escapedName),_r(c)))}function pY(n,a){return!!n&&!!a&&nc(n,32768)&&!!wW(a)}function Wdt(n){return bs(n).filter(a=>wW(_r(a)))}function A8e(n,a,c=Khe){return Z3e(n,a,c)||abt(n,a)||sbt(n,a)||lbt(n,a)||cbt(n,a)}function e_e(n,a,c){const p=n.types,m=p.map(I=>I.flags&402784252?0:-1);for(const[I,w]of a){let U=!1;for(let H=0;H!!c(Ie,Q))?U=!0:m[H]=3)}for(let H=0;Hm[w]),0):n;return b.flags&131072?n:b}function t_e(n){if(n.flags&524288){const a=Dh(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Vn(a.properties,c=>!!(c.flags&16777216))}return n.flags&33554432?t_e(n.baseType):n.flags&2097152?Vn(n.types,t_e):!1}function Fdt(n,a,c){for(const p of bs(n))if(YY(a,p.escapedName,c))return!0;return!1}function n_e(n){return n===es||n===Va||n.objectFlags&8?W:x8e(n.symbol,n.typeParameters)}function I8e(n){return x8e(n,Jr(n).typeParameters)}function x8e(n,a=ae){var c,p;const m=Jr(n);if(!m.variances){(c=xr)==null||c.push(xr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:pd(qs(n))});const b=H1,I=Tv;H1||(H1=!0,Tv=Mg.length),m.variances=ae;const w=[];for(const U of a){const H=r_e(U);let Q=H&16384?H&8192?0:1:H&8192?2:void 0;if(Q===void 0){let Ie=!1,Te=!1;const Ze=Go;Go=$t=>$t?Te=!0:Ie=!0;const Tt=Qz(n,U,Fs),Dt=Qz(n,U,Ee);Q=(aa(Dt,Tt)?1:0)|(aa(Tt,Dt)?2:0),Q===3&&aa(Qz(n,U,Y),Tt)&&(Q=4),Go=Ze,(Ie||Te)&&(Ie&&(Q|=8),Te&&(Q|=16))}w.push(Q)}b||(H1=!1,Tv=I),m.variances=w,(p=xr)==null||p.pop({variances:w.map(C.formatVariance)})}return m.variances}function Qz(n,a,c){const p=RE(a,c),m=qs(n);if(pr(m))return m;const b=n.flags&524288?GC(n,Wy(Jr(n).typeParameters,p)):Ly(m,Wy(m.typeParameters,p));return ht.add(pd(b)),b}function fY(n){return ht.has(pd(n))}function r_e(n){var a;return _u((a=n.symbol)==null?void 0:a.declarations,(c,p)=>c|Gd(p),0)&28672}function zdt(n,a){for(let c=0;c!!(a.flags&262144)||mY(a))}function Vdt(n,a,c,p){const m=[];let b="";const I=U(n,0),w=U(a,0);return`${b}${I},${w}${c}`;function U(H,Q=0){let Ie=""+H.target.id;for(const Te of rl(H)){if(Te.flags&262144){if(p||Bdt(Te)){let Ze=m.indexOf(Te);Ze<0&&(Ze=m.length,m.push(Te)),Ie+="="+Ze;continue}b="*"}else if(Q<4&&mY(Te)){Ie+="<"+U(Te,Q+1)+">";continue}Ie+="-"+Te.id}return Ie}}function hY(n,a,c,p,m){if(p===Jd&&n.id>a.id){const I=n;n=a,a=I}const b=c?":"+c:"";return mY(n)&&mY(a)?Vdt(n,a,b,m):`${n.id},${a.id}${b}`}function Zz(n,a){if(Fl(n)&6){for(const c of n.links.containingType.types){const p=Ea(c,n.escapedName),m=p&&Zz(p,a);if(m)return m}return}return a(n)}function rR(n){return n.parent&&n.parent.flags&32?qs(Yc(n)):void 0}function _Y(n){const a=rR(n),c=a&&Zm(a)[0];return c&&_n(c,n.escapedName)}function jdt(n,a){return Zz(n,c=>{const p=rR(c);return p?Ur(p,a):!1})}function Udt(n,a){return!Zz(a,c=>Vf(c)&4?!jdt(n,rR(c)):!1)}function R8e(n,a,c){return Zz(a,p=>Vf(p,c)&4?!Ur(n,rR(p)):!1)?void 0:n}function iR(n,a,c,p=3){if(c>=p){if((Hr(n)&96)===96&&(n=D8e(n)),n.flags&2097152)return yt(n.types,w=>iR(w,a,c,p));const m=gY(n);let b=0,I=0;for(let w=0;w=I&&(b++,b>=p))return!0;I=U.id}}}return!1}function D8e(n){let a;for(;(Hr(n)&96)===96&&(a=U0(n))&&(a.symbol||a.flags&2097152&&yt(a.types,c=>!!c.symbol));)n=a;return n}function C8e(n,a){return(Hr(n)&96)===96&&(n=D8e(n)),n.flags&2097152?yt(n.types,c=>C8e(c,a)):gY(n)===a}function gY(n){if(n.flags&524288&&!T_e(n)){if(Hr(n)&4&&n.node)return n.node;if(n.symbol&&!(Hr(n)&16&&n.symbol.flags&32))return n.symbol;if(Ka(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 Hdt(n,a){return i_e(n,a,NW)!==0}function i_e(n,a,c){if(n===a)return-1;const p=Vf(n)&6,m=Vf(a)&6;if(p!==m)return 0;if(p){if(tN(n)!==tN(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return wh(n)!==wh(a)?0:c(_r(n),_r(a))}function qdt(n,a,c){const p=Ap(n),m=Ap(a),b=kh(n),I=kh(a),w=ng(n),U=ng(a);return!!(p===m&&b===I&&w===U||c&&b<=I)}function e5(n,a,c,p,m,b){if(n===a)return-1;if(!qdt(n,a,c)||et(n.typeParameters)!==et(a.typeParameters))return 0;if(a.typeParameters){const U=Yp(n.typeParameters,a.typeParameters);for(let H=0;Ha|(c.flags&1048576?N8e(c.types):c.flags),0)}function Xdt(n){if(n.length===1)return n[0];const a=ie?Zi(n,p=>Ac(p,m=>!(m.flags&98304))):n,c=Kdt(a)?pi(a):Ydt(a);return a===n?c:r5(c,N8e(n)&98304)}function Ydt(n){const a=_u(n,(c,p)=>EL(c,p)?p:c);return Vn(n,c=>c===a||EL(c,a))?a:_u(n,(c,p)=>DE(c,p)?p:c)}function $dt(n){return _u(n,(a,c)=>DE(c,a)?c:a)}function im(n){return!!(Hr(n)&4)&&(n.target===es||n.target===Va)}function AL(n){return!!(Hr(n)&4)&&n.target===Va}function $0(n){return im(n)||Ka(n)}function t5(n){return im(n)&&!AL(n)||Ka(n)&&!n.target.readonly}function n5(n){return im(n)?rl(n)[0]:void 0}function Vv(n){return im(n)||!(n.flags&98304)&&aa(n,jp)}function o_e(n){return t5(n)||!(n.flags&98305)&&aa(n,bd)}function a_e(n){if(!(Hr(n)&4)||!(Hr(n.target)&3))return;if(Hr(n)&33554432)return Hr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(Hr(a)&1){const m=Mm(a);if(m&&m.expression.kind!==80&&m.expression.kind!==212)return}const c=Zm(a);if(c.length!==1||$_(n.symbol).size)return;let p=et(a.typeParameters)?io(c[0],Yp(a.typeParameters,rl(n).slice(0,a.typeParameters.length))):c[0];return et(rl(n))>et(a.typeParameters)&&(p=Kp(p,Ba(rl(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=p}function M8e(n){return ie?n===En:n===B}function yY(n){const a=n5(n);return!!a&&M8e(a)}function IL(n){let a;return Ka(n)||!!Ea(n,"0")||Vv(n)&&!!(a=_n(n,"length"))&&Ep(a,c=>!!(c.flags&256))}function vY(n){return Vv(n)||IL(n)}function Qdt(n,a){const c=_n(n,""+a);if(c)return c;if(Ep(n,Ka))return w8e(n,a,O.noUncheckedIndexedAccess?he:void 0)}function Zdt(n){return!(n.flags&240544)}function Nh(n){return!!(n.flags&109472)}function P8e(n){const a=v_(n);return a.flags&2097152?yt(a.types,Nh):Nh(a)}function eut(n){return n.flags&2097152&&hn(n.types,Nh)||n}function LW(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Vn(n.types,Nh):Nh(n)}function zy(n){return n.flags&1056?zX(n):n.flags&402653312?gt:n.flags&256?Bt:n.flags&2048?gr:n.flags&512?jt:n.flags&1048576?tut(n):n}function tut(n){const a=`B${pd(n)}`;return Bu(a)??Dm(a,Tl(n,zy))}function s_e(n){return n.flags&402653312?gt:n.flags&288?Bt:n.flags&2048?gr:n.flags&512?jt:n.flags&1048576?Tl(n,s_e):n}function Q0(n){return n.flags&1056&&xE(n)?zX(n):n.flags&128&&xE(n)?gt:n.flags&256&&xE(n)?Bt:n.flags&2048&&xE(n)?gr:n.flags&512&&xE(n)?jt:n.flags&1048576?Tl(n,Q0):n}function L8e(n){return n.flags&8192?Qt:n.flags&1048576?Tl(n,L8e):n}function l_e(n,a){return u$(n,a)||(n=L8e(Q0(n))),Du(n)}function nut(n,a,c){if(n&&Nh(n)){const p=a?c?n8(a):a:void 0;n=l_e(n,p)}return n}function c_e(n,a,c,p){if(n&&Nh(n)){const m=a?Hv(c,a,p):void 0;n=l_e(n,m)}return n}function Ka(n){return!!(Hr(n)&4&&n.target.objectFlags&8)}function pT(n){return Ka(n)&&!!(n.target.combinedFlags&8)}function k8e(n){return pT(n)&&n.target.elementFlags.length===1}function bY(n){return xL(n,n.target.fixedLength)}function w8e(n,a,c){return Tl(n,p=>{const m=p,b=bY(m);return b?c&&a>=Rhe(m.target)?pi([b,c]):b:he})}function rut(n){const a=bY(n);return a&&Yd(a)}function xL(n,a,c=0,p=!1,m=!1){const b=Bv(n)-c;if(a(c&12)===(a.target.elementFlags[p]&12))}function O8e({value:n}){return n.base10Value==="0"}function W8e(n){return Ac(n,a=>Mh(a,4194304))}function out(n){return Tl(n,aut)}function aut(n){return n.flags&4?bC:n.flags&8?QP:n.flags&64?TC:n===Jn||n===tr||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&O8e(n)?n:yn}function r5(n,a){const c=a&~n.flags&98304;return c===0?n:pi(c===32768?[n,he]:c===65536?[n,Xt]:[n,he,Xt])}function fT(n,a=!1){C.assert(ie);const c=a?te:he;return n===c||n.flags&1048576&&n.types[0]===c?n:pi([n,c])}function sut(n){return Eu||(Eu=jC("NonNullable",524288,void 0)||ne),Eu!==ne?GC(Eu,[n]):Ma([n,Ra])}function By(n){return ie?MA(n,2097152):n}function F8e(n){return ie?pi([n,xt]):n}function TY(n){return ie?PY(n,xt):n}function SY(n,a,c){return c?NN(a)?fT(n):F8e(n):n}function kW(n,a){return rF(a)?By(n):eu(a)?TY(n):n}function Gy(n,a){return Ce&&a?PY(n,Ae):n}function wW(n){return n===Ae||!!(n.flags&1048576)&&n.types[0]===Ae}function EY(n){return Ce?PY(n,Ae):om(n,524288)}function lut(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function AY(n){const a=Hr(n);return n.flags&2097152?Vn(n.types,AY):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!N$(n))||!!(a&4194304)||!!(a&1024&&AY(n.source))}function DA(n,a){const c=ja(n.flags,n.escapedName,Fl(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 p=Jr(n).nameType;return p&&(c.links.nameType=p),c}function cut(n,a){const c=da();for(const p of Fv(n)){const m=_r(p),b=a(m);c.set(p.escapedName,b===m?p:DA(p,b))}return c}function OW(n){if(!(jv(n)&&Hr(n)&8192))return n;const a=n.regularType;if(a)return a;const c=n,p=cut(n,OW),m=bl(c.symbol,p,c.callSignatures,c.constructSignatures,c.indexInfos);return m.flags=c.flags,m.objectFlags|=c.objectFlags&-8193,n.regularType=m,m}function z8e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function B8e(n){if(!n.siblings){const a=[];for(const c of B8e(n.parent))if(jv(c)){const p=TE(c,n.propertyName);p&&PA(_r(p),m=>{a.push(m)})}n.siblings=a}return n.siblings}function dut(n){if(!n.resolvedProperties){const a=new Map;for(const c of B8e(n))if(jv(c)&&!(Hr(c)&2097152))for(const p of bs(c))a.set(p.escapedName,p);n.resolvedProperties=Co(a.values())}return n.resolvedProperties}function uut(n,a){if(!(n.flags&4))return n;const c=_r(n),p=a&&z8e(a,n.escapedName,void 0),m=d_e(c,p);return m===c?n:DA(n,m)}function put(n){const a=le.get(n.escapedName);if(a)return a;const c=DA(n,te);return c.flags|=16777216,le.set(n.escapedName,c),c}function fut(n,a){const c=da();for(const m of Fv(n))c.set(m.escapedName,uut(m,a));if(a)for(const m of dut(a))c.has(m.escapedName)||c.set(m.escapedName,put(m));const p=bl(n.symbol,c,ae,ae,Zi(Xd(n),m=>jg(m.keyType,$p(m.type),m.isReadonly,m.declaration,m.components)));return p.objectFlags|=Hr(n)&266240,p}function $p(n){return d_e(n,void 0)}function d_e(n,a){if(Hr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=Ue;else if(jv(n))c=fut(n,a);else if(n.flags&1048576){const p=a||z8e(void 0,void 0,n.types),m=Zi(n.types,b=>b.flags&98304?b:d_e(b,p));c=pi(m,yt(m,Fy)?2:1)}else n.flags&2097152?c=Ma(Zi(n.types,$p)):$0(n)&&(c=Ly(n.target,Zi(rl(n),$p)));return c&&a===void 0&&(n.widened=c),c||n}return n}function IY(n){var a;let c=!1;if(Hr(n)&65536){if(n.flags&1048576)if(yt(n.types,Fy))c=!0;else for(const p of n.types)c||(c=IY(p));else if($0(n))for(const p of rl(n))c||(c=IY(p));else if(jv(n))for(const p of Fv(n)){const m=_r(p);if(Hr(m)&65536&&(c=IY(m),!c)){const b=(a=p.declarations)==null?void 0:a.find(I=>{var w;return((w=I.symbol.valueDeclaration)==null?void 0:w.parent)===n.symbol.valueDeclaration});b&&(Qe(b,f.Object_literal_s_property_0_implicitly_has_an_1_type,uo(p),ar($p(m))),c=!0)}}}return c}function Z0(n,a,c){const p=ar($p(a));if(Ir(n)&&!SM(Wn(n),O))return;let m;switch(n.kind){case 227:case 173:case 172:m=ve?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 170:const b=n;if(He(b.name)){const I=HE(b.name);if((GI(b.parent)||Gm(b.parent)||w_(b.parent))&&b.parent.parameters.includes(b)&&(_t(b,b.name.escapedText,788968,void 0,!0)||I&&uV(I))){const w="arg"+b.parent.parameters.indexOf(b),U=ws(b.name)+(b.dotDotDotToken?"[]":"");Jm(ve,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,w,U);return}}m=n.dotDotDotToken?ve?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:ve?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 209:if(m=f.Binding_element_0_implicitly_has_an_1_type,!ve)return;break;case 318:Qe(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,p);return;case 324:ve&&DD(n.parent)&&Qe(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,p);return;case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(ve&&!n.name){c===3?Qe(n,f.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,p):Qe(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,p);return}m=ve?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 201:ve&&Qe(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:m=ve?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}Jm(ve,n,m,ws(Oo(n)),p)}function mut(n,a){const c=HY(n);if(!c)return!0;let p=fs(c);const m=dc(n);switch(a){case 1:return m&1?p=Hv(1,p,!!(m&2))??p:m&2&&(p=jy(p)??p),K0(p);case 3:const b=Hv(0,p,!!(m&2));return!!b&&K0(b);case 2:const I=Hv(2,p,!!(m&2));return!!I&&K0(I)}return!1}function xY(n,a,c){r(()=>{ve&&Hr(a)&65536&&(!c||Ms(n)&&mut(n,c))&&(IY(a)||Z0(n,a,c))})}function u_e(n,a,c){const p=Ap(n),m=Ap(a),b=XW(n),I=XW(a),w=I?m-1:m,U=b?w:Math.min(p,w),H=q0(n);if(H){const Q=q0(a);Q&&c(H,Q)}for(let Q=0;Qa.typeParameter),Vt(n.inferences,(a,c)=>()=>(a.isFixed||(gut(n),RY(n.inferences),a.isFixed=!0),S_e(n,c))))}function _ut(n){return jhe(Vt(n.inferences,a=>a.typeParameter),Vt(n.inferences,(a,c)=>()=>S_e(n,c)))}function RY(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function m_e(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function gut(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:c}of n.intraExpressionInferenceSites){const p=a.kind===175?qFe(a,2):Uu(a,2);p&&qg(n.inferences,c,p)}n.intraExpressionInferenceSites=void 0}}function h_e(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function V8e(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function yut(n){const a=Un(n.inferences,eN);return a.length?f_e(Vt(a,V8e),n.signature,n.flags,n.compareTypes):void 0}function __e(n){return n&&n.mapper}function mT(n){const a=Hr(n);if(a&524288)return!!(a&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!j8e(n)&&(a&4&&(n.node||yt(rl(n),mT))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!j8e(n)&&yt(n.types,mT));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function j8e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=al(n.aliasSymbol,266);return!!(a&&Dn(a.parent,c=>c.kind===308?!0:c.kind===268?!1:"quit"))}return!1}function FW(n,a,c=0){return!!(n===a||n.flags&3145728&&yt(n.types,p=>FW(p,a,c))||c<3&&n.flags&16777216&&(FW(dT(n),a,c+1)||FW(uT(n),a,c+1)))}function vut(n,a){const c=nm(n);return c?!!c.type&&FW(c.type,a):FW(fs(n),a)}function but(n){const a=da();PA(n,p=>{if(!(p.flags&128))return;const m=Nl(p.value),b=ja(4,m);b.links.type=Ue,p.symbol&&(b.declarations=p.symbol.declarations,b.valueDeclaration=p.symbol.valueDeclaration),a.set(m,b)});const c=n.flags&4?[jg(gt,Ra,!1)]:ae;return bl(void 0,a,ae,ae,c)}function U8e(n,a,c){const p=n.id+","+a.id+","+c.id;if(Pd.has(p))return Pd.get(p);const m=Tut(n,a,c);return Pd.set(p,m),m}function g_e(n){return!(Hr(n)&262144)||jv(n)&&yt(bs(n),a=>g_e(_r(a)))||Ka(n)&&yt(AE(n),g_e)}function Tut(n,a,c){if(!(Vg(n,gt)||bs(n).length!==0&&g_e(n)))return;if(im(n)){const m=DY(rl(n)[0],a,c);return m?Yd(m,AL(n)):void 0}if(Ka(n)){const m=Vt(AE(n),I=>DY(I,a,c));if(!Vn(m,I=>!!I))return;const b=Q_(a)&4?Zi(n.target.elementFlags,I=>I&2?1:I):n.target.elementFlags;return eg(m,b,n.target.readonly,n.target.labeledElementDeclarations)}const p=_c(1040,void 0);return p.source=n,p.mappedType=a,p.constraintType=c,p}function Sut(n){const a=Jr(n);return a.type||(a.type=DY(n.links.propertyType,n.links.mappedType,n.links.constraintType)||Nt),a.type}function Eut(n,a,c){const p=Xp(c.type,eh(a)),m=Gg(a),b=h_e(p);return qg([b],n,m),H8e(b)||Nt}function DY(n,a,c){const p=n.id+","+a.id+","+c.id;if(vh.has(p))return vh.get(p)||Nt;E0.push(n),K1.push(a);const m=A0;iR(n,E0,E0.length,2)&&(A0|=1),iR(a,K1,K1.length,2)&&(A0|=2);let b;return A0!==3&&(b=Eut(n,a,c)),E0.pop(),K1.pop(),A0=m,vh.set(p,b),b}function*y_e(n,a,c,p){const m=bs(a);for(const b of m)if(!SOe(b)&&(c||!(b.flags&16777216||Fl(b)&48))){const I=Ea(n,b.escapedName);if(!I)yield b;else if(p){const w=_r(b);if(w.flags&109472){const U=_r(I);U.flags&1||Du(U)===Du(w)||(yield b)}}}}function v_e(n,a,c,p){return D8(y_e(n,a,c,p))}function Aut(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!(a.target.combinedFlags&12)&&(!!(n.target.combinedFlags&12)||a.target.fixedLengtheR(b,m),n)===n&&CY(n,a)}return!1}function K8e(n,a){if(a.flags&2097152)return Vn(a.types,c=>c===fa||K8e(n,c));if(a.flags&4||aa(n,a))return!0;if(n.flags&128){const c=n.value;return!!(a.flags&8&&J8e(c,!1)||a.flags&64&&z6(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&CY(n,a)||a.flags&134217728&&NY(n,a))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&aa(n.types[0],a)}return!1}function X8e(n,a){return n.flags&128?Y8e([n.value],ae,a):n.flags&134217728?Qp(n.texts,a.texts)?Vt(n.types,(c,p)=>aa(v_(c),v_(a.types[p]))?c:Dut(c)):Y8e(n.texts,n.types,a):void 0}function NY(n,a){const c=X8e(n,a);return!!c&&Vn(c,(p,m)=>K8e(p,a.types[m]))}function Dut(n){return n.flags&402653317?n:TA(["",""],[n])}function Y8e(n,a,c){const p=n.length-1,m=n[0],b=n[p],I=c.texts,w=I.length-1,U=I[0],H=I[w];if(p===0&&m.length0){let nr=Te,yr=Ze;for(;yr=Tt(nr).indexOf(Tn,yr),!(yr>=0);){if(nr++,nr===n.length)return;yr=0}Dt(nr,yr),Ze+=Tn.length}else if(Ze!jn(vr,ys)):qn,wo?Un(rr,ys=>!jn(wo,ys)):rr]}function nr(qn,rr,Hi){const vr=qn.length!!vn(wo));if(!vr||rr&&vr!==rr)return;rr=vr}return rr}function fi(qn,rr,Hi){let vr=0;if(Hi&1048576){let wo;const ys=qn.flags&1048576?qn.types:[qn],il=new Array(ys.length);let md=!1;for(const Xa of rr)if(vn(Xa))wo=Xa,vr++;else for(let cc=0;ccil[gc]?void 0:cc);if(Xa.length){Te(pi(Xa),wo);return}}}else for(const wo of rr)vn(wo)?vr++:Te(qn,wo);if(Hi&2097152?vr===1:vr>0)for(const wo of rr)vn(wo)&&Ze(qn,wo,1)}function oo(qn,rr,Hi){if(Hi.flags&1048576||Hi.flags&2097152){let vr=!1;for(const wo of Hi.types)vr=oo(qn,rr,wo)||vr;return vr}if(Hi.flags&4194304){const vr=vn(Hi.type);if(vr&&!vr.isFixed&&!q8e(qn)){const wo=U8e(qn,rr,Hi);wo&&Ze(wo,vr.typeParameter,Hr(qn)&262144?16:8)}return!0}if(Hi.flags&262144){Ze(b_(qn,qn.pattern?2:0),Hi,32);const vr=gA(Hi);if(vr&&oo(qn,rr,vr))return!0;const wo=Vt(bs(qn),_r),ys=Vt(Xd(qn),il=>il!==ro?il.type:yn);return Te(pi(so(wo,ys)),Gg(rr)),!0}return!1}function ii(qn,rr){if(qn.flags&16777216)Te(qn.checkType,rr.checkType),Te(qn.extendsType,rr.extendsType),Te(dT(qn),dT(rr)),Te(uT(qn),uT(rr));else{const Hi=[dT(rr),uT(rr)];Dt(qn,Hi,rr.flags,m?64:0)}}function zi(qn,rr){const Hi=X8e(qn,rr),vr=rr.types;if(Hi||Vn(rr.texts,wo=>wo.length===0))for(let wo=0;woTs|Nf.flags,0);if(!(gc&4)){const Ts=ys.value;gc&296&&!J8e(Ts,!0)&&(gc&=-297),gc&2112&&!z6(Ts,!0)&&(gc&=-2113);const Nf=_u(cc,(Sl,rc)=>rc.flags&gc?Sl.flags&4?Sl:rc.flags&4?ys:Sl.flags&134217728?Sl:rc.flags&134217728&&NY(ys,rc)?ys:Sl.flags&268435456?Sl:rc.flags&268435456&&Ts===jWe(rc.symbol,Ts)?ys:Sl.flags&128?Sl:rc.flags&128&&rc.value===Ts?rc:Sl.flags&8?Sl:rc.flags&8?Ch(+Ts):Sl.flags&32?Sl:rc.flags&32?Ch(+Ts):Sl.flags&256?Sl:rc.flags&256&&rc.value===+Ts?rc:Sl.flags&64?Sl:rc.flags&64?Rut(Ts):Sl.flags&2048?Sl:rc.flags&2048&&kS(rc.value)===Ts?rc:Sl.flags&16?Sl:rc.flags&16?Ts==="true"?ft:Ts==="false"?tr:jt:Sl.flags&512?Sl:rc.flags&512&&rc.intrinsicName===Ts?rc:Sl.flags&32768?Sl:rc.flags&32768&&rc.intrinsicName===Ts?rc:Sl.flags&65536?Sl:rc.flags&65536&&rc.intrinsicName===Ts?rc:Sl:Sl,yn);if(!(Nf.flags&131072)){Te(Nf,il);continue}}}}Te(ys,il)}}function Ko(qn,rr){Te(Rf(qn),Rf(rr)),Te(Gg(qn),Gg(rr));const Hi=Wv(qn),vr=Wv(rr);Hi&&vr&&Te(Hi,vr)}function ms(qn,rr){var Hi,vr;if(Hr(qn)&4&&Hr(rr)&4&&(qn.target===rr.target||im(qn)&&im(rr))){nr(rl(qn),rl(rr),n_e(qn.target));return}if(up(qn)&&up(rr)&&Ko(qn,rr),Hr(rr)&32&&!rr.declaration.nameType){const wo=Rf(rr);if(oo(qn,rr,wo))return}if(!Iut(qn,rr)){if($0(qn)){if(Ka(rr)){const wo=Bv(qn),ys=Bv(rr),il=rl(rr),md=rr.target.elementFlags;if(Ka(qn)&&iut(qn,rr)){for(let gc=0;gc0){const ys=na(rr,Hi),il=ys.length;for(let md=0;md1){const a=Un(n,T_e);if(a.length){const c=pi(a,2);return so(Un(n,p=>!T_e(p)),[c])}}return n}function Lut(n){return n.priority&416?Ma(n.contraCandidates):$dt(n.contraCandidates)}function kut(n,a){const c=Put(n.candidates),p=Mut(n.typeParameter)||yA(n.typeParameter),m=!p&&n.topLevel&&(n.isFixed||!vut(a,n.typeParameter)),b=p?Zi(c,Du):m?Zi(c,Q0):c,I=n.priority&416?pi(b,2):Xdt(b);return $p(I)}function S_e(n,a){const c=n.inferences[a];if(!c.inferredType){let p,m;if(n.signature){const I=c.candidates?kut(c,n.signature):void 0,w=c.contraCandidates?Lut(c):void 0;if(I||w){const U=I&&(!w||!(I.flags&131073)&&yt(c.contraCandidates,H=>aa(I,H))&&Vn(n.inferences,H=>H!==c&&ju(H.typeParameter)!==c.typeParameter||Vn(H.candidates,Q=>aa(Q,I))));p=U?I:w,m=U?w:I}else if(n.flags&1)p=wt;else{const U=SE(c.typeParameter);U&&(p=io(U,l8e(sdt(n,a),n.nonFixingMapper)))}}else p=H8e(c);c.inferredType=p||E_e(!!(n.flags&2));const b=ju(c.typeParameter);if(b){const I=io(b,n.nonFixingMapper);(!p||!n.compareTypes(p,Kp(I,p)))&&(c.inferredType=m&&n.compareTypes(m,Kp(I,m))?m:I)}tft()}return c.inferredType}function E_e(n){return n?Ue:Nt}function A_e(n){const a=[];for(let c=0;cgd(a)||vm(a)||ku(a)))}function i5(n,a,c,p){switch(n.kind){case 80:if(!CS(n)){const I=pu(n);return I!==ne?`${p?ls(p):"-1"}|${pd(a)}|${pd(c)}|${Ta(I)}`:void 0}case 110:return`0|${p?ls(p):"-1"}|${pd(a)}|${pd(c)}`;case 236:case 218:return i5(n.expression,a,c,p);case 167:const m=i5(n.left,a,c,p);return m&&`${m}.${n.right.escapedText}`;case 212:case 213:const b=CA(n);if(b!==void 0){const I=i5(n.expression,a,c,p);return I&&`${I}.${b}`}if(Ws(n)&&He(n.argumentExpression)){const I=pu(n.argumentExpression);if(oR(I)||GW(I)&&!BW(I)){const w=i5(n.expression,a,c,p);return w&&`${w}.@${Ta(I)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${ls(n)}#${pd(a)}`}}function Ad(n,a){switch(a.kind){case 218:case 236:return Ad(n,a.expression);case 227:return id(a)&&Ad(n,a.left)||Nr(a)&&a.operatorToken.kind===28&&Ad(n,a.right)}switch(n.kind){case 237:return a.kind===237&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return CS(n)?a.kind===110:a.kind===80&&pu(n)===pu(a)||(yi(a)||Ha(a))&&Et(pu(n))===Wr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 236:case 218:case 239:return Ad(n.expression,a);case 212:case 213:const c=CA(n);if(c!==void 0){const p=Ks(a)?CA(a):void 0;if(p!==void 0)return p===c&&Ad(n.expression,a.expression)}if(Ws(n)&&Ws(a)&&He(n.argumentExpression)&&He(a.argumentExpression)){const p=pu(n.argumentExpression);if(p===pu(a.argumentExpression)&&(oR(p)||GW(p)&&!BW(p)))return Ad(n.expression,a.expression)}break;case 167:return Ks(a)&&n.right.escapedText===CA(a)&&Ad(n.left,a.expression);case 227:return Nr(n)&&n.operatorToken.kind===28&&Ad(n.right,a)}return!1}function CA(n){if(qr(n))return n.name.escapedText;if(Ws(n))return wut(n);if(Ha(n)){const a=Lv(n);return a?Nl(a):void 0}if(to(n))return""+n.parent.parameters.indexOf(n)}function x_e(n){return n.flags&8192?n.escapedName:n.flags&384?Nl(""+n.value):void 0}function wut(n){return uf(n.argumentExpression)?Nl(n.argumentExpression.text):Ds(n.argumentExpression)?Out(n.argumentExpression):void 0}function Out(n){const a=Vl(n,111551,!0);if(!a||!(oR(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const p=sT(c);if(p){const m=x_e(p);if(m!==void 0)return m}if($E(c)&&Dy(c,n)){const m=ok(c);if(m){const b=Qo(c.parent)?Fg(c):wd(m);return b&&x_e(b)}if(py(c))return pI(c.name)}}function Q8e(n,a){for(;Ks(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function NA(n,a){for(;eu(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function RL(n,a){if(n&&n.flags&1048576){const c=HOe(n,a);if(c&&Fl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!K0(_r(c))),!!c.links.isDiscriminantProperty}return!1}function Z8e(n,a){let c;for(const p of n)if(RL(a,p.escapedName)){if(c){c.push(p);continue}c=[p]}return c}function Wut(n,a){const c=new Map;let p=0;for(const m of n)if(m.flags&61603840){const b=_n(m,a);if(b){if(!LW(b))return;let I=!1;PA(b,w=>{const U=pd(Du(w)),H=c.get(U);H?H!==Nt&&(c.set(U,Nt),I=!0):c.set(U,m)}),I||p++}}return p>=10&&p*2>=n.length?c:void 0}function o5(n){const a=n.types;if(!(a.length<10||Hr(n)&32768||Io(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=Ye(a,m=>m.flags&59506688?Ye(bs(m),b=>Nh(_r(b))?b.escapedName:void 0):void 0),p=c&&Wut(a,c);n.keyPropertyName=p?c:"",n.constituentMap=p}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function a5(n,a){var c;const p=(c=n.constituentMap)==null?void 0:c.get(pd(Du(a)));return p!==Nt?p:void 0}function eFe(n,a){const c=o5(n),p=c&&_n(a,c);return p&&a5(n,p)}function Fut(n,a){const c=o5(n),p=c&&hn(a.properties,b=>b.symbol&&b.kind===304&&b.symbol.escapedName===c&&h5(b.initializer)),m=p&&w5(p.initializer);return m&&a5(n,m)}function tFe(n,a){return Ad(n,a)||Q8e(n,a)}function nFe(n,a){if(n.arguments){for(const c of n.arguments)if(tFe(a,c)||NA(c,a))return!0}return!!(n.expression.kind===212&&tFe(a,n.expression.expression))}function R_e(n){return n.id<=0&&(n.id=h1e,h1e++),n.id}function zut(n,a){if(!(n.flags&1048576))return aa(n,a);for(const c of n.types)if(aa(c,a))return!0;return!1}function But(n,a){if(n===a)return n;if(a.flags&131072)return a;const c=`A${pd(n)},${pd(a)}`;return Bu(c)??Dm(c,Gut(n,a))}function Gut(n,a){const c=Ac(n,m=>zut(a,m)),p=a.flags&512&&xE(a)?Tl(c,nR):c;return aa(a,p)?p:n}function D_e(n){if(Hr(n)&256)return!1;const a=Dh(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&DE(n,er))}function qC(n,a){return C_e(n,a)&a}function Mh(n,a){return qC(n,a)!==0}function C_e(n,a){n.flags&467927040&&(n=Ld(n)||Nt);const c=n.flags;if(c&268435460)return ie?16317953:16776705;if(c&134217856){const p=c&128&&n.value==="";return ie?p?12123649:7929345:p?12582401:16776705}if(c&40)return ie?16317698:16776450;if(c&256){const p=n.value===0;return ie?p?12123394:7929090:p?12582146:16776450}if(c&64)return ie?16317188:16775940;if(c&2048){const p=O8e(n);return ie?p?12122884:7928580:p?12581636:16775940}return c&16?ie?16316168:16774920:c&528?ie?n===tr||n===Jn?12121864:7927560:n===tr||n===Jn?12580616:16774920:c&524288?a&(ie?83427327:83886079)?Hr(n)&16&&Fy(n)?ie?83427327:83886079:D_e(n)?ie?7880640:16728e3:ie?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?ie?7925520:16772880:c&67108864?ie?7888800:16736160:c&131072?0:c&1048576?_u(n.types,(p,m)=>p|C_e(m,a),0):c&2097152?Vut(n,a):83886079}function Vut(n,a){const c=nc(n,402784252);let p=0,m=134217727;for(const b of n.types)if(!(c&&b.flags&524288)){const I=C_e(b,a);p|=I,m&=I}return p&8256|m&134209471}function om(n,a){return Ac(n,c=>Mh(c,a))}function MA(n,a){const c=N_e(om(ie&&n.flags&2?qa:n,a));if(ie)switch(a){case 524288:return rFe(c,65536,131072,33554432,Xt);case 1048576:return rFe(c,131072,65536,16777216,he);case 2097152:case 4194304:return Tl(c,p=>Mh(p,262144)?sut(p):p)}return c}function rFe(n,a,c,p,m){const b=qC(n,50528256);if(!(b&a))return n;const I=pi([Ra,m]);return Tl(n,w=>Mh(w,a)?Ma([w,!(b&p)&&Mh(w,c)?I:Ra]):w)}function N_e(n){return n===qa?Nt:n}function M_e(n,a){return a?pi([Is(n),wd(a)]):n}function iFe(n,a){var c;const p=ky(a);if(!jf(p))return nt;const m=Uf(p);return _n(n,m)||zW((c=Qx(n,m))==null?void 0:c.type)||nt}function oFe(n,a){return Ep(n,IL)&&Qdt(n,a)||zW(Uv(65,n,he,void 0))||nt}function zW(n){return n&&(O.noUncheckedIndexedAccess?pi([n,Ae]):n)}function aFe(n){return Yd(Uv(65,n,he,void 0)||nt)}function jut(n){return n.parent.kind===210&&P_e(n.parent)||n.parent.kind===304&&P_e(n.parent.parent)?M_e(s5(n),n.right):wd(n.right)}function P_e(n){return n.parent.kind===227&&n.parent.left===n||n.parent.kind===251&&n.parent.initializer===n}function Uut(n,a){return oFe(s5(n),n.elements.indexOf(a))}function Hut(n){return aFe(s5(n.parent))}function sFe(n){return iFe(s5(n.parent),n.name)}function qut(n){return M_e(sFe(n),n.objectAssignmentInitializer)}function s5(n){const{parent:a}=n;switch(a.kind){case 250:return gt;case 251:return V5(a)||nt;case 227:return jut(a);case 221:return he;case 210:return Uut(a,n);case 231:return Hut(a);case 304:return sFe(a);case 305:return qut(a)}return nt}function Jut(n){const a=n.parent,c=cFe(a.parent),p=a.kind===207?iFe(c,n.propertyName||n.name):n.dotDotDotToken?aFe(c):oFe(c,a.elements.indexOf(n));return M_e(p,n.initializer)}function lFe(n){return Vr(n).resolvedType||wd(n)}function Kut(n){return n.initializer?lFe(n.initializer):n.parent.parent.kind===250?gt:n.parent.parent.kind===251&&V5(n.parent.parent)||nt}function cFe(n){return n.kind===261?Kut(n):Jut(n)}function Xut(n){return n.kind===261&&n.initializer&&wv(n.initializer)||n.kind!==209&&n.parent.kind===227&&wv(n.parent.right)}function NE(n){switch(n.kind){case 218:return NE(n.expression);case 227:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return NE(n.left);case 28:return NE(n.right)}}return n}function dFe(n){const{parent:a}=n;return a.kind===218||a.kind===227&&a.operatorToken.kind===64&&a.left===n||a.kind===227&&a.operatorToken.kind===28&&a.right===n?dFe(a):n}function Yut(n){return n.kind===297?Du(wd(n.expression)):yn}function MY(n){const a=Vr(n);if(!a.switchTypes){a.switchTypes=[];for(const c of n.caseBlock.clauses)a.switchTypes.push(Yut(c))}return a.switchTypes}function uFe(n){if(yt(n.caseBlock.clauses,c=>c.kind===297&&!ds(c.expression)))return;const a=[];for(const c of n.caseBlock.clauses){const p=c.kind===297?c.expression.text:void 0;a.push(p&&!jn(a,p)?p:void 0)}return a}function $ut(n,a){return n.flags&1048576?!Ye(n.types,c=>!jn(a,c)):jn(a,n)}function DL(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&Qut(n,a))}function Qut(n,a){if(n.flags&1048576){for(const c of n.types)if(!Ug(a.types,c))return!1;return!0}return n.flags&1056&&zX(n)===a?!0:Ug(a.types,n)}function PA(n,a){return n.flags&1048576?Ye(n.types,a):a(n)}function am(n,a){return n.flags&1048576?yt(n.types,a):a(n)}function Ep(n,a){return n.flags&1048576?Vn(n.types,a):a(n)}function Zut(n,a){return n.flags&3145728?Vn(n.types,a):a(n)}function Ac(n,a){if(n.flags&1048576){const c=n.types,p=Un(c,a);if(p===c)return n;const m=n.origin;let b;if(m&&m.flags&1048576){const I=m.types,w=Un(I,U=>!!(U.flags&1048576)||a(U));if(I.length-w.length===c.length-p.length){if(w.length===1)return w[0];b=Dhe(1048576,w)}}return Nhe(p,n.objectFlags&16809984,void 0,void 0,b)}return n.flags&131072||a(n)?n:yn}function PY(n,a){return Ac(n,c=>c!==a)}function ept(n){return n.flags&1048576?n.types.length:1}function Tl(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const p=n.origin,m=p&&p.flags&1048576?p.types:n.types;let b,I=!1;for(const w of m){const U=w.flags&1048576?Tl(w,a,c):a(w);I||(I=w!==U),U&&(b?b.push(U):b=[U])}return I?b&&pi(b,c?0:1):n}function pFe(n,a,c,p){return n.flags&1048576&&c?pi(Vt(n.types,a),1,c,p):Tl(n,a)}function CL(n,a){return Ac(n,c=>(c.flags&a)!==0)}function fFe(n,a){return nc(n,134217804)&&nc(a,402655616)?Tl(n,c=>c.flags&4?CL(a,402653316):SA(c)&&!nc(a,402653188)?CL(a,128):c.flags&8?CL(a,264):c.flags&64?CL(a,2112):c):n}function JC(n){return n.flags===0}function LA(n){return n.flags===0?n.type:n}function KC(n,a){return a?{flags:0,type:n.flags&131072?wt:n}:n}function tpt(n){const a=_c(256);return a.elementType=n,a}function L_e(n){return Ft[n.id]||(Ft[n.id]=tpt(n))}function mFe(n,a){const c=OW(zy(w5(a)));return DL(c,n.elementType)?n:L_e(pi([n.elementType,c]))}function npt(n){return n.flags&131072?ld:Yd(n.flags&1048576?pi(n.types,2):n)}function rpt(n){return n.finalArrayType||(n.finalArrayType=npt(n.elementType))}function l5(n){return Hr(n)&256?rpt(n):n}function ipt(n){return Hr(n)&256?n.elementType:yn}function opt(n){let a=!1;for(const c of n)if(!(c.flags&131072)){if(!(Hr(c)&256))return!1;a=!0}return a}function hFe(n){const a=dFe(n),c=a.parent,p=qr(c)&&(c.name.escapedText==="length"||c.parent.kind===214&&He(c.name)&&kG(c.name)),m=c.kind===213&&c.expression===a&&c.parent.kind===227&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!vb(c.parent)&&kd(wd(c.argumentExpression),296);return p||m}function apt(n){return(yi(n)||Po(n)||Tu(n)||to(n))&&!!(Rc(n)||Ir(n)&&Qy(n)&&n.initializer&&Ib(n.initializer)&&kp(n.initializer))}function LY(n,a){if(n=hc(n),n.flags&8752)return _r(n);if(n.flags&7){if(Fl(n)&262144){const p=n.links.syntheticOrigin;if(p&&LY(p))return _r(n)}const c=n.valueDeclaration;if(c){if(apt(c))return _r(n);if(yi(c)&&c.parent.parent.kind===251){const p=c.parent.parent,m=c5(p.expression,void 0);if(m){const b=p.awaitModifier?15:13;return Uv(b,m,he,void 0)}}a&&pa(a,Ar(c,f._0_needs_an_explicit_type_annotation,uo(n)))}}}function c5(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const c=Et(pu(n));return LY(c,a);case 110:return Rpt(n);case 108:return zY(n);case 212:{const p=c5(n.expression,a);if(p){const m=n.name;let b;if(eo(m)){if(!p.symbol)return;b=Ea(p,vk(p.symbol,m.escapedText))}else b=Ea(p,m.escapedText);return b&&LY(b,a)}return}case 218:return c5(n.expression,a)}}function d5(n){const a=Vr(n);let c=a.effectsSignature;if(c===void 0){let p;if(Nr(n)){const I=YC(n.right);p=Lge(I)}else n.parent.kind===245?p=c5(n.expression,void 0):n.expression.kind!==108&&(eu(n)?p=S_(kW(_o(n.expression),n.expression),n.expression):p=YC(n.expression));const m=na(p&&Ru(p)||Nt,0),b=m.length===1&&!m[0].typeParameters?m[0]:yt(m,_Fe)?QC(n):void 0;c=a.effectsSignature=b&&_Fe(b)?b:si}return c===si?void 0:c}function _Fe(n){return!!(nm(n)||n.declaration&&(zC(n.declaration)||Nt).flags&131072)}function spt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const c=us(a.expression);return Ks(c)?us(c.expression):void 0}function lpt(n){const a=Dn(n,W9),c=Wn(n),p=jh(c,a.statements.pos);ns.add(Wc(c,p.start,p.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function u5(n){const a=kY(n,!1);return _i=n,Do=a,a}function p5(n){const a=us(n,!0);return a.kind===97||a.kind===227&&(a.operatorToken.kind===56&&(p5(a.left)||p5(a.right))||a.operatorToken.kind===57&&p5(a.left)&&p5(a.right))}function kY(n,a){for(;;){if(n===_i)return Do;const c=n.flags;if(c&4096){if(!a){const p=R_e(n),m=Cx[p];return m!==void 0?m:Cx[p]=kY(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){const p=d5(n.node);if(p){const m=nm(p);if(m&&m.kind===3&&!m.type){const b=n.node.arguments[m.parameterIndex];if(b&&p5(b))return!1}if(fs(p).flags&131072)return!1}n=n.antecedent}else{if(c&4)return yt(n.antecedent,p=>kY(p,!1));if(c&8){const p=n.antecedent;if(p===void 0||p.length===0)return!1;n=p[0]}else if(c&128){const p=n.node;if(p.clauseStart===p.clauseEnd&&l4e(p.switchStatement))return!1;n=n.antecedent}else if(c&1024){_i=void 0;const p=n.node.target,m=p.antecedent;p.antecedent=n.node.antecedents;const b=kY(n.antecedent,!1);return p.antecedent=m,b}else return!(c&1)}}}function wY(n,a){for(;;){const c=n.flags;if(c&4096){if(!a){const p=R_e(n),m=lE[p];return m!==void 0?m:lE[p]=wY(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 Vn(n.antecedent,p=>wY(p,!1));if(c&8)n=n.antecedent[0];else if(c&1024){const p=n.node.target,m=p.antecedent;p.antecedent=n.node.antecedents;const b=wY(n.antecedent,!1);return p.antecedent=m,b}else return!!(c&1)}}}function k_e(n){switch(n.kind){case 110:return!0;case 80:if(!CS(n)){const c=pu(n);return oR(c)||GW(c)&&!BW(c)||!!c.valueDeclaration&&Us(c.valueDeclaration)}break;case 212:case 213:return k_e(n.expression)&&wh(Vr(n).resolvedSymbol||ne);case 207:case 208:const a=Jh(n.parent);return to(a)||hre(a)?!w_e(a):yi(a)&&d8(a)}return!1}function Vy(n,a,c=a,p,m=(b=>(b=ni(n,ZR))==null?void 0:b.flowNode)()){let b,I=!1,w=0;if(Oi)return nt;if(!m)return a;Ro++;const U=lr,H=LA(Te(m));lr=U;const Q=Hr(H)&256&&hFe(n)?ld:l5(H);if(Q===xn||n.parent&&n.parent.kind===236&&!(Q.flags&131072)&&om(Q,2097152).flags&131072)return a;return Q;function Ie(){return I?b:(I=!0,b=i5(n,a,c,p))}function Te(Ht){var Nn;if(w===2e3)return(Nn=xr)==null||Nn.instant(xr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Ht.id}),Oi=!0,lpt(n),nt;w++;let $n;for(;;){const hr=Ht.flags;if(hr&4096){for(let gi=U;gi=0&&$n.parameterIndex!(gi.flags&163840)):Nn.kind===222&&NA(Nn.expression,n)&&(hr=ys(hr,Ht.node,gi=>!(gi.flags&131072||gi.flags&128&&gi.value==="undefined"))));const Gr=oo(Nn,hr);Gr&&(hr=Ko(hr,Gr,Ht.node))}return KC(hr,JC($n))}function Sn(Ht){const Nn=[];let $n=!1,hr=!1,Gr;for(const gi of Ht.antecedent){if(!Gr&&gi.flags&128&&gi.node.clauseStart===gi.node.clauseEnd){Gr=gi;continue}const Pa=Te(gi),Oa=LA(Pa);if(Oa===a&&a===c)return Oa;kf(Nn,Oa),DL(Oa,c)||($n=!0),JC(Pa)&&(hr=!0)}if(Gr){const gi=Te(Gr),Pa=LA(gi);if(!(Pa.flags&131072)&&!jn(Nn,Pa)&&!l4e(Gr.node.switchStatement)){if(Pa===a&&a===c)return Pa;Nn.push(Pa),DL(Pa,c)||($n=!0),JC(gi)&&(hr=!0)}}return KC(Sr(Nn,$n?2:1),hr)}function vn(Ht){const Nn=R_e(Ht),$n=SC[Nn]||(SC[Nn]=new Map),hr=Ie();if(!hr)return a;const Gr=$n.get(hr);if(Gr)return Gr;for(let Qc=Lr;Qc{const Qc=ei(Gs,hr)||Nt;return!(Qc.flags&131072)&&!(Oa.flags&131072)&&Xz(Oa,Qc)})}function zi(Ht,Nn,$n,hr,Gr){if(($n===37||$n===38)&&Ht.flags&1048576){const gi=o5(Ht);if(gi&&gi===CA(Nn)){const Pa=a5(Ht,wd(hr));if(Pa)return $n===(Gr?37:38)?Pa:Nh(_n(Pa,gi)||Nt)?PY(Ht,Pa):Ht}}return ii(Ht,Nn,gi=>Hi(gi,$n,hr,Gr))}function Ko(Ht,Nn,$n){if($n.clauseStart<$n.clauseEnd&&Ht.flags&1048576&&o5(Ht)===CA(Nn)){const hr=MY($n.switchStatement).slice($n.clauseStart,$n.clauseEnd),Gr=pi(Vt(hr,gi=>a5(Ht,gi)||Nt));if(Gr!==Nt)return Gr}return ii(Ht,Nn,hr=>il(hr,$n))}function ms(Ht,Nn,$n){if(Ad(n,Nn))return MA(Ht,$n?4194304:8388608);ie&&$n&&NA(Nn,n)&&(Ht=MA(Ht,2097152));const hr=oo(Nn,Ht);return hr?ii(Ht,hr,Gr=>om(Gr,$n?4194304:8388608)):Ht}function fo(Ht,Nn,$n){const hr=Ea(Ht,Nn);return hr?!!(hr.flags&16777216||Fl(hr)&48)||$n:!!Qx(Ht,Nn)||!$n}function dl(Ht,Nn,$n){const hr=Uf(Nn);if(am(Ht,gi=>fo(gi,hr,!0)))return Ac(Ht,gi=>fo(gi,hr,$n));if($n){const gi=uct();if(gi)return Ma([Ht,GC(gi,[Nn,Nt])])}return Ht}function Xl(Ht,Nn,$n,hr,Gr){return Gr=Gr!==($n.kind===112)!=(hr!==38&&hr!==36),af(Ht,Nn,Gr)}function fu(Ht,Nn,$n){switch(Nn.operatorToken.kind){case 64:case 76:case 77:case 78:return ms(af(Ht,Nn.right,$n),Nn.left,$n);case 35:case 36:case 37:case 38:const hr=Nn.operatorToken.kind,Gr=NE(Nn.left),gi=NE(Nn.right);if(Gr.kind===222&&ds(gi))return vr(Ht,Gr,hr,gi,$n);if(gi.kind===222&&ds(Gr))return vr(Ht,gi,hr,Gr,$n);if(Ad(n,Gr))return Hi(Ht,hr,gi,$n);if(Ad(n,gi))return Hi(Ht,hr,Gr,$n);ie&&(NA(Gr,n)?Ht=rr(Ht,hr,gi,$n):NA(gi,n)&&(Ht=rr(Ht,hr,Gr,$n)));const Pa=oo(Gr,Ht);if(Pa)return zi(Ht,Pa,hr,gi,$n);const Oa=oo(gi,Ht);if(Oa)return zi(Ht,Oa,hr,Gr,$n);if(Ts(Gr))return Nf(Ht,hr,gi,$n);if(Ts(gi))return Nf(Ht,hr,Gr,$n);if(wN(gi)&&!Ks(Gr))return Xl(Ht,Gr,gi,hr,$n);if(wN(Gr)&&!Ks(gi))return Xl(Ht,gi,Gr,hr,$n);break;case 104:return Sl(Ht,Nn,$n);case 103:if(eo(Nn.left))return qn(Ht,Nn,$n);const Gs=NE(Nn.right);if(wW(Ht)&&Ks(n)&&Ad(n.expression,Gs)){const Qc=wd(Nn.left);if(jf(Qc)&&CA(n)===Uf(Qc))return om(Ht,$n?524288:65536)}if(Ad(n,Gs)){const Qc=wd(Nn.left);if(jf(Qc))return dl(Ht,Qc,$n)}break;case 28:return af(Ht,Nn.right,$n);case 56:return $n?af(af(Ht,Nn.left,!0),Nn.right,!0):pi([af(Ht,Nn.left,!1),af(Ht,Nn.right,!1)]);case 57:return $n?pi([af(Ht,Nn.left,!0),af(Ht,Nn.right,!0)]):af(af(Ht,Nn.left,!1),Nn.right,!1)}return Ht}function qn(Ht,Nn,$n){const hr=NE(Nn.right);if(!Ad(n,hr))return Ht;C.assertNode(Nn.left,eo);const Gr=QY(Nn.left);if(Gr===void 0)return Ht;const gi=Gr.parent,Pa=Oc(C.checkDefined(Gr.valueDeclaration,"should always have a declaration"))?_r(gi):qs(gi);return lm(Ht,Pa,$n,!0)}function rr(Ht,Nn,$n,hr){const Gr=Nn===35||Nn===37,gi=Nn===35||Nn===36?98304:32768,Pa=wd($n);return Gr!==hr&&Ep(Pa,Gs=>!!(Gs.flags&gi))||Gr===hr&&Ep(Pa,Gs=>!(Gs.flags&(3|gi)))?MA(Ht,2097152):Ht}function Hi(Ht,Nn,$n,hr){if(Ht.flags&1)return Ht;(Nn===36||Nn===38)&&(hr=!hr);const Gr=wd($n),gi=Nn===35||Nn===36;if(Gr.flags&98304){if(!ie)return Ht;const Pa=gi?hr?262144:2097152:Gr.flags&65536?hr?131072:1048576:hr?65536:524288;return MA(Ht,Pa)}if(hr){if(!gi&&(Ht.flags&2||am(Ht,tg))){if(Gr.flags&469893116||tg(Gr))return Gr;if(Gr.flags&524288)return Ln}const Pa=Ac(Ht,Oa=>Xz(Oa,Gr)||gi&&lut(Oa,Gr));return fFe(Pa,Gr)}return Nh(Gr)?Ac(Ht,Pa=>!(P8e(Pa)&&Xz(Pa,Gr))):Ht}function vr(Ht,Nn,$n,hr,Gr){($n===36||$n===38)&&(Gr=!Gr);const gi=NE(Nn.expression);if(!Ad(n,gi)){ie&&NA(gi,n)&&Gr===(hr.text!=="undefined")&&(Ht=MA(Ht,2097152));const Pa=oo(gi,Ht);return Pa?ii(Ht,Pa,Oa=>wo(Oa,hr,Gr)):Ht}return wo(Ht,hr,Gr)}function wo(Ht,Nn,$n){return $n?md(Ht,Nn.text):MA(Ht,joe.get(Nn.text)||32768)}function ys(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr},Gr){return $n!==hr&&Vn(MY(Nn).slice($n,hr),Gr)?om(Ht,2097152):Ht}function il(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){const Gr=MY(Nn);if(!Gr.length)return Ht;const gi=Gr.slice($n,hr),Pa=$n===hr||jn(gi,yn);if(Ht.flags&2&&!Pa){let mu;for(let pp=0;ppXz(Oa,mu)),Oa);if(!Pa)return Gs;const Qc=Ac(Ht,mu=>!(P8e(mu)&&jn(Gr,mu.flags&32768?he:Du(eut(mu)))));return Gs.flags&131072?Qc:pi([Gs,Qc])}function md(Ht,Nn){switch(Nn){case"string":return Xa(Ht,gt,1);case"number":return Xa(Ht,Bt,2);case"bigint":return Xa(Ht,gr,4);case"boolean":return Xa(Ht,jt,8);case"symbol":return Xa(Ht,Qt,16);case"object":return Ht.flags&1?Ht:pi([Xa(Ht,Ln,32),Xa(Ht,Xt,131072)]);case"function":return Ht.flags&1?Ht:Xa(Ht,er,64);case"undefined":return Xa(Ht,he,65536)}return Xa(Ht,Ln,128)}function Xa(Ht,Nn,$n){return Tl(Ht,hr=>T_(hr,Nn,cl)?Mh(hr,$n)?hr:yn:DE(Nn,hr)?Nn:Mh(hr,$n)?Ma([hr,Nn]):yn)}function cc(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){const Gr=uFe(Nn);if(!Gr)return Ht;const gi=ho(Nn.caseBlock.clauses,Gs=>Gs.kind===298);if($n===hr||gi>=$n&&giqC(Qc,Gs)===Gs)}const Oa=Gr.slice($n,hr);return pi(Vt(Oa,Gs=>Gs?md(Ht,Gs):yn))}function gc(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){const Gr=ho(Nn.caseBlock.clauses,Oa=>Oa.kind===298),gi=$n===hr||Gr>=$n&&GrOa.kind===297?af(Ht,Oa.expression,!0):yn))}function Ts(Ht){return(qr(Ht)&&Kr(Ht.name)==="constructor"||Ws(Ht)&&ds(Ht.argumentExpression)&&Ht.argumentExpression.text==="constructor")&&Ad(n,Ht.expression)}function Nf(Ht,Nn,$n,hr){if(hr?Nn!==35&&Nn!==37:Nn!==36&&Nn!==38)return Ht;const Gr=wd($n);if(!cye(Gr)&&!Rh(Gr))return Ht;const gi=Ea(Gr,"prototype");if(!gi)return Ht;const Pa=_r(gi),Oa=wr(Pa)?void 0:Pa;if(!Oa||Oa===Jt||Oa===er)return Ht;if(wr(Ht))return Oa;return Ac(Ht,Qc=>Gs(Qc,Oa));function Gs(Qc,mu){return Qc.flags&524288&&Hr(Qc)&1||mu.flags&524288&&Hr(mu)&1?Qc.symbol===mu.symbol:DE(Qc,mu)}}function Sl(Ht,Nn,$n){const hr=NE(Nn.left);if(!Ad(n,hr))return $n&&ie&&NA(hr,n)?MA(Ht,2097152):Ht;const Gr=Nn.right,gi=wd(Gr);if(!Y0(gi,Jt))return Ht;const Pa=d5(Nn),Oa=Pa&&nm(Pa);if(Oa&&Oa.kind===1&&Oa.parameterIndex===0)return lm(Ht,Oa.type,$n,!0);if(!Y0(gi,er))return Ht;const Gs=Tl(gi,rc);return wr(Ht)&&(Gs===Jt||Gs===er)||!$n&&!(Gs.flags&524288&&!tg(Gs))?Ht:lm(Ht,Gs,$n,!0)}function rc(Ht){const Nn=_n(Ht,"prototype");if(Nn&&!wr(Nn))return Nn;const $n=na(Ht,1);return $n.length?pi(Vt($n,hr=>fs(EW(hr)))):Ra}function lm(Ht,Nn,$n,hr){const Gr=Ht.flags&1048576?`N${pd(Ht)},${pd(Nn)},${($n?1:0)|(hr?2:0)}`:void 0;return Bu(Gr)??Dm(Gr,BL(Ht,Nn,$n,hr))}function BL(Ht,Nn,$n,hr){if(!$n){if(Ht===Nn)return yn;if(hr)return Ac(Ht,Gs=>!Y0(Gs,Nn));Ht=Ht.flags&2?qa:Ht;const Oa=lm(Ht,Nn,!0,!1);return N_e(Ac(Ht,Gs=>!DL(Gs,Oa)))}if(Ht.flags&3||Ht===Nn)return Nn;const Gr=hr?Y0:DE,gi=Ht.flags&1048576?o5(Ht):void 0,Pa=Tl(Nn,Oa=>{const Gs=gi&&_n(Oa,gi),Qc=Gs&&a5(Ht,Gs),mu=Tl(Qc||Ht,hr?pp=>Y0(pp,Oa)?pp:Y0(Oa,pp)?Oa:yn:pp=>EL(pp,Oa)?pp:EL(Oa,pp)?Oa:DE(pp,Oa)?pp:DE(Oa,pp)?Oa:yn);return mu.flags&131072?Tl(Ht,pp=>nc(pp,465829888)&&Gr(Oa,Ld(pp)||Nt)?Ma([pp,Oa]):yn):mu});return Pa.flags&131072?DE(Nn,Ht)?Nn:aa(Ht,Nn)?Ht:aa(Nn,Ht)?Nn:Ma([Ht,Nn]):Pa}function u8(Ht,Nn,$n){if(nFe(Nn,n)){const hr=$n||!qE(Nn)?d5(Nn):void 0,Gr=hr&&nm(hr);if(Gr&&(Gr.kind===0||Gr.kind===1))return GL(Ht,Gr,Nn,$n)}if(wW(Ht)&&Ks(n)&&qr(Nn.expression)){const hr=Nn.expression;if(Ad(n.expression,NE(hr.expression))&&He(hr.name)&&hr.name.escapedText==="hasOwnProperty"&&Nn.arguments.length===1){const Gr=Nn.arguments[0];if(ds(Gr)&&CA(n)===Nl(Gr.text))return om(Ht,$n?524288:65536)}}return Ht}function GL(Ht,Nn,$n,hr){if(Nn.type&&!(wr(Ht)&&(Nn.type===Jt||Nn.type===er))){const Gr=spt(Nn,$n);if(Gr){if(Ad(n,Gr))return lm(Ht,Nn.type,hr,!1);ie&&NA(Gr,n)&&(hr&&!Mh(Nn.type,65536)||!hr&&Ep(Nn.type,b5))&&(Ht=MA(Ht,2097152));const gi=oo(Gr,Ht);if(gi)return ii(Ht,gi,Pa=>lm(Pa,Nn.type,hr,!1))}}return Ht}function af(Ht,Nn,$n){if(rF(Nn)||Nr(Nn.parent)&&(Nn.parent.operatorToken.kind===61||Nn.parent.operatorToken.kind===78)&&Nn.parent.left===Nn)return p8(Ht,Nn,$n);switch(Nn.kind){case 80:if(!Ad(n,Nn)&&A<5){const hr=pu(Nn);if(oR(hr)){const Gr=hr.valueDeclaration;if(Gr&&yi(Gr)&&!Gr.type&&Gr.initializer&&k_e(n)){A++;const gi=af(Ht,Gr.initializer,$n);return A--,gi}}}case 110:case 108:case 212:case 213:return ms(Ht,Nn,$n);case 214:return u8(Ht,Nn,$n);case 218:case 236:case 239:return af(Ht,Nn.expression,$n);case 227:return fu(Ht,Nn,$n);case 225:if(Nn.operator===54)return af(Ht,Nn.operand,!$n);break}return Ht}function p8(Ht,Nn,$n){if(Ad(n,Nn))return MA(Ht,$n?2097152:262144);const hr=oo(Nn,Ht);return hr?ii(Ht,hr,Gr=>om(Gr,$n?2097152:262144)):Ht}}function cpt(n,a){if(n=Et(n),(a.kind===80||a.kind===81)&&(dM(a)&&(a=a.parent),P_(a)&&(!vb(a)||AI(a)))){const c=TY(AI(a)&&a.kind===212?$Y(a,void 0,!0):wd(a));if(Et(Vr(a).resolvedSymbol)===n)return c}return L_(a)&&Vh(a.parent)&&bE(a.parent)?kX(a.parent.symbol):tV(a)&&AI(a.parent)?Ov(n):xh(n)}function NL(n){return Dn(n.parent,a=>Yo(a)&&!OT(a)||a.kind===269||a.kind===308||a.kind===173)}function dpt(n){return(n.lastAssignmentPos!==void 0||BW(n)&&n.lastAssignmentPos!==void 0)&&n.lastAssignmentPos<0}function BW(n){return!gFe(n,void 0)}function gFe(n,a){const c=Dn(n.valueDeclaration,OY);if(!c)return!1;const p=Vr(c);return p.flags&131072||(p.flags|=131072,upt(c)||vFe(c)),!n.lastAssignmentPos||a&&Math.abs(n.lastAssignmentPos)a.kind!==233&&yFe(a.name))}function upt(n){return!!Dn(n.parent,a=>OY(a)&&!!(Vr(a).flags&131072))}function OY(n){return Ms(n)||Yi(n)}function vFe(n){switch(n.kind){case 80:const a=yb(n);if(a!==0){const m=pu(n),b=a===1||m.lastAssignmentPos!==void 0&&m.lastAssignmentPos<0;if(GW(m)){if(m.lastAssignmentPos===void 0||Math.abs(m.lastAssignmentPos)!==Number.MAX_VALUE){const I=Dn(n,OY),w=Dn(m.valueDeclaration,OY);m.lastAssignmentPos=I===w?ppt(n,m.valueDeclaration):Number.MAX_VALUE}b&&m.lastAssignmentPos>0&&(m.lastAssignmentPos*=-1)}}return;case 282:const c=n.parent.parent,p=n.propertyName||n.name;if(!n.isTypeOnly&&!c.isTypeOnly&&!c.moduleSpecifier&&p.kind!==11){const m=Vl(p,111551,!0,!0);if(m&&GW(m)){const b=m.lastAssignmentPos!==void 0&&m.lastAssignmentPos<0?-1:1;m.lastAssignmentPos=b*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}Ri(n)||Jo(n,vFe)}function ppt(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:c=n.end}n=n.parent}return c}function oR(n){return n.flags&3&&(Z_e(n)&6)!==0}function GW(n){const a=n.valueDeclaration&&Jh(n.valueDeclaration);return!!a&&(to(a)||yi(a)&&(jS(a.parent)||bFe(a)))}function bFe(n){return!!(n.parent.flags&1)&&!(MT(n)&32||n.parent.parent.kind===244&&Zy(n.parent.parent.parent))}function fpt(n){const a=Vr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!g_(n,8))return _A(n.symbol),!0;const c=!!Mh(PL(n,0),16777216);if(!rt())return _A(n.symbol),!0;a.parameterInitializerContainsUndefined??(a.parameterInitializerContainsUndefined=c)}return a.parameterInitializerContainsUndefined}function mpt(n,a){return ie&&a.kind===170&&a.initializer&&Mh(n,16777216)&&!fpt(a)?om(n,524288):n}function hpt(n,a){const c=a.parent;return c.kind===212||c.kind===167||c.kind===214&&c.expression===a||c.kind===215&&c.expression===a||c.kind===213&&c.expression===a&&!(am(n,SFe)&&AA(wd(c.argumentExpression)))}function TFe(n){return n.flags&2097152?yt(n.types,TFe):!!(n.flags&465829888&&v_(n).flags&1146880)}function SFe(n){return n.flags&2097152?yt(n.types,SFe):!!(n.flags&465829888&&!nc(v_(n),98304))}function _pt(n,a){const c=(He(n)||qr(n)||Ws(n))&&!((ph(n.parent)||E1(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Uu(n,8):Uu(n,void 0));return c&&!K0(c)}function O_e(n,a,c){return VC(n)&&(n=n.baseType),!(c&&c&2)&&am(n,TFe)&&(hpt(n,a)||_pt(a,c))?Tl(n,v_):n}function EFe(n){return!!Dn(n,a=>{const c=a.parent;return c===void 0?"quit":ll(c)?c.expression===a&&Ds(a):iu(c)?c.name===a||c.propertyName===a:!1})}function aR(n,a,c,p){if(We&&!(n.flags&33554432&&!Tu(n)&&!Po(n)))switch(a){case 1:return WY(n);case 2:return AFe(n,c,p);case 3:return IFe(n);case 4:return W_e(n);case 5:return xFe(n);case 6:return RFe(n);case 7:return DFe(n);case 8:return CFe(n);case 0:{if(He(n)&&(P_(n)||Ud(n.parent)||zc(n.parent)&&n.parent.moduleReference===n)&&LFe(n)){if(L2(n.parent)&&(qr(n.parent)?n.parent.expression:n.parent.left)!==n)return;WY(n);return}if(L2(n)){let m=n;for(;L2(m);){if(Hh(m))return;m=m.parent}return AFe(n)}return ll(n)?IFe(n):nu(n)||jm(n)?W_e(n):zc(n)?t1(n)||E$(n)?RFe(n):void 0:iu(n)?DFe(n):((Ms(n)||Gm(n))&&xFe(n),!O.emitDecoratorMetadata||!HS(n)||!pf(n)||!n.modifiers||!ek(J,n,n.parent,n.parent.parent)?void 0:CFe(n))}default:C.assertNever(a,`Unhandled reference hint: ${a}`)}}function WY(n){const a=pu(n);a&&a!==_e&&a!==ne&&!CS(n)&&f5(a,n)}function AFe(n,a,c){const p=qr(n)?n.expression:n.left;if(Tb(p)||!He(p))return;const m=pu(p);if(!m||m===ne)return;if(ym(O)||Eb(O)&&EFe(n)){f5(m,n);return}const b=c||jl(p);if(wr(b)||b===wt){f5(m,n);return}let I=a;if(!I&&!c){const w=qr(n)?n.name:n.right,U=eo(w)&&T5(w.escapedText,w),H=yb(n),Q=Ru(H!==0||rge(n)?$p(b):b);I=eo(w)?U&&ZY(Q,U)||void 0:Ea(Q,w.escapedText)}I&&(l8(I)||I.flags&8&&n.parent.kind===307)||f5(m,n)}function IFe(n){if(He(n.expression)){const a=n.expression,c=Et(Vl(a,-1,!0,!0,n));c&&f5(c,a)}}function W_e(n){if(!XY(n)){const a=ns&&O.jsx===2?f.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,c=qm(n),p=nu(n)?n.tagName:n,m=O.jsx!==1&&O.jsx!==3;let b;if(jm(n)&&c==="null"||(b=_t(p,c,m?111551:111167,a,!0)),b&&(b.isReferenced=-1,We&&b.flags&2097152&&!Ah(b)&&FY(b)),jm(n)){const I=Wn(n),w=uye(I);if(w){const U=Pu(w).escapedText;_t(p,U,m?111551:111167,a,!0)}}}}function xFe(n){if(G<2&&dc(n)&2){const a=kp(n);gpt(a)}}function RFe(n){di(n,32)&&NFe(n)}function DFe(n){if(!n.parent.parent.moduleSpecifier&&!n.isTypeOnly&&!n.parent.parent.isTypeOnly){const a=n.propertyName||n.name;if(a.kind===11)return;const c=_t(a,a.escapedText,2998271,void 0,!0);if(!(c&&(c===ce||c===Re||c.declarations&&Zy(Pt(c.declarations[0]))))){const p=c&&(c.flags&2097152?ud(c):c);(!p||dp(p)&111551)&&(NFe(n),WY(a))}return}}function CFe(n){if(O.emitDecoratorMetadata){const a=hn(n.modifiers,Fc);if(!a)return;switch($c(a,16),n.kind){case 264:const c=yg(n);if(c)for(const I of c.parameters)XC(_$(I));break;case 178:case 179:const p=n.kind===178?179:178,m=al(Wr(n),p);XC(bE(n)||m&&bE(m));break;case 175:for(const I of n.parameters)XC(_$(I));XC(kp(n));break;case 173:XC(Rc(n));break;case 170:XC(_$(n));const b=n.parent;for(const I of b.parameters)XC(_$(I));XC(kp(b));break}}}function f5(n,a){if(We&&nA(n,111551)&&!bI(a)){const c=ud(n);dp(n,!0)&1160127&&(ym(O)||Eb(O)&&EFe(a)||!l8(Et(c)))&&FY(n)}}function FY(n){C.assert(We);const a=Jr(n);if(!a.referenced){a.referenced=!0;const c=cp(n);if(!c)return C.fail();if(t1(c)&&dp(hc(n))&111551){const p=Pu(c.moduleReference);WY(p)}}}function NFe(n){const a=Wr(n),c=ud(a);c&&(c===ne||dp(a,!0)&111551&&!l8(c))&&FY(a)}function MFe(n,a){if(!n)return;const c=Pu(n),p=(n.kind===80?788968:1920)|2097152,m=_t(c,c.escapedText,p,void 0,!0);if(m&&m.flags&2097152){if(We&&An(m)&&!l8(ud(m))&&!Ah(m))FY(m);else if(a&&ym(O)&&vu(O)>=5&&!An(m)&&!yt(m.declarations,$y)){const b=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),I=hn(m.declarations||ae,Rv);I&&pa(b,Ar(I,f._0_was_imported_here,Kr(c)))}}}function gpt(n){MFe(n&&Z2(n),!1)}function XC(n){const a=jge(n);a&&Nu(a)&&MFe(a,!0)}function ypt(n,a){var c;const p=_r(n),m=n.valueDeclaration;if(m){if(Ha(m)&&!m.initializer&&!m.dotDotDotToken&&m.parent.elements.length>=2){const b=m.parent.parent,I=Jh(b);if(I.kind===261&&kE(I)&6||I.kind===170){const w=Vr(b);if(!(w.flags&4194304)){w.flags|=4194304;const U=Si(b,0),H=U&&Tl(U,v_);if(w.flags&=-4194305,H&&H.flags&1048576&&!(I.kind===170&&w_e(I))){const Q=m.parent,Ie=Vy(Q,H,H,void 0,a.flowNode);return Ie.flags&131072?yn:oT(m,Ie,!0)}}}}if(to(m)&&!m.type&&!m.initializer&&!m.dotDotDotToken){const b=m.parent;if(b.parameters.length>=2&&cY(b)){const I=jW(b);if(I&&I.parameters.length===1&&au(I)){const w=_L(io(_r(I.parameters[0]),(c=ME(b))==null?void 0:c.nonFixingMapper));if(w.flags&1048576&&Ep(w,Ka)&&!yt(b.parameters,w_e)){const U=Vy(b,w,w,void 0,a.flowNode),H=b.parameters.indexOf(m)-(DS(b)?1:0);return Xp(U,Ch(H))}}}}}return p}function PFe(n,a){if(CS(n))return;if(a===_e){if(age(n,!0)){Qe(n,f.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);return}let b=df(n);if(b)for(G<2&&(b.kind===220?Qe(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):di(b,1024)&&Qe(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Vr(b).flags|=512;b&&Xs(b);)b=df(b),b&&(Vr(b).flags|=512);return}const c=Et(a),p=nye(c,n);Iu(p)&&Lhe(n,p)&&p.declarations&&Cm(n,p.declarations,n.escapedText);const m=c.valueDeclaration;if(m&&c.flags&32&&ui(m)&&m.name!==n){let b=yu(n,!1,!1);for(;b.kind!==308&&b.parent!==m;)b=yu(b,!1,!1);b.kind!==308&&(Vr(m).flags|=262144,Vr(b).flags|=262144,Vr(n).flags|=536870912)}Ept(n,a)}function vpt(n,a){if(CS(n))return m5(n);const c=pu(n);if(c===ne)return nt;if(PFe(n,c),c===_e)return age(n)?nt:_r(c);LFe(n)&&aR(n,1);const p=Et(c);let m=p.valueDeclaration;const b=m;if(m&&m.kind===209&&jn(Rm,m.parent)&&Dn(n,vn=>vn===m.parent))return Tr;let I=ypt(p,n);const w=yb(n);if(w){if(!(p.flags&3)&&!(Ir(n)&&p.flags&512)){const vn=p.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:p.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:p.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:p.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:p.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,vn,uo(c)),nt}if(wh(p))return p.flags&3?Qe(n,f.Cannot_assign_to_0_because_it_is_a_constant,uo(c)):Qe(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,uo(c)),nt}const U=p.flags&2097152;if(p.flags&3){if(w===1)return xG(n)?zy(I):I}else if(U)m=cp(c);else return I;if(!m)return I;I=O_e(I,n,a);const H=Jh(m).kind===170,Q=NL(m);let Ie=NL(n);const Te=Ie!==Q,Ze=n.parent&&n.parent.parent&&xg(n.parent)&&P_e(n.parent.parent),Tt=c.flags&134217728,Dt=I===Rt||I===ld,$t=Dt&&n.parent.kind===236;for(;Ie!==Q&&(Ie.kind===219||Ie.kind===220||LF(Ie))&&(oR(p)&&I!==ld||GW(p)&&gFe(p,n));)Ie=NL(Ie);const Tn=b&&yi(b)&&!b.initializer&&!b.exclamationToken&&bFe(b)&&!dpt(c),nr=H||U||Te&&!Tn||Ze||Tt||bpt(n,m)||I!==Rt&&I!==ld&&(!ie||(I.flags&16387)!==0||bI(n)||I_e(n)||n.parent.kind===282)||n.parent.kind===236||m.kind===261&&m.exclamationToken||m.flags&33554432,yr=$t?he:nr?H?mpt(I,m):I:Dt?he:fT(I),Sn=$t?By(Vy(n,I,yr,Ie)):Vy(n,I,yr,Ie);if(!hFe(n)&&(I===Rt||I===ld)){if(Sn===Rt||Sn===ld)return ve&&(Qe(Oo(m),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,uo(c),ar(Sn)),Qe(n,f.Variable_0_implicitly_has_an_1_type,uo(c),ar(Sn))),a8(Sn)}else if(!nr&&!HC(I)&&HC(Sn))return Qe(n,f.Variable_0_is_used_before_being_assigned,uo(c)),I;return w?zy(Sn):Sn}function bpt(n,a){if(Ha(a)){const c=Dn(n,Ha);return c&&Jh(c)===Jh(a)}}function LFe(n){var a;const c=n.parent;if(c){if(qr(c)&&c.expression===n||iu(c)&&c.isTypeOnly)return!1;const p=(a=c.parent)==null?void 0:a.parent;if(p&&fc(p)&&p.isTypeOnly)return!1}return!0}function Tpt(n,a){return!!Dn(n,c=>c===a?"quit":Yo(c)||c.parent&&Po(c.parent)&&!Oc(c.parent)&&c.parent.initializer===c)}function Spt(n,a){return Dn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function F_e(n){return Dn(n,a=>!a||wG(a)?"quit":pb(a,!1))}function Ept(n,a){if(G>=2||!(a.flags&34)||!a.valueDeclaration||Yi(a.valueDeclaration)||a.valueDeclaration.parent.kind===300)return;const c=sh(a.valueDeclaration),p=Tpt(n,c),m=F_e(c);if(m){if(p){let b=!0;if($T(c)){const I=GT(a.valueDeclaration,262);if(I&&I.parent===c){const w=Spt(n.parent,c);if(w){const U=Vr(w);U.flags|=8192;const H=U.capturedBlockScopeBindings||(U.capturedBlockScopeBindings=[]);kf(H,a),w===c.initializer&&(b=!1)}}}b&&(Vr(m).flags|=4096)}if($T(c)){const b=GT(a.valueDeclaration,262);b&&b.parent===c&&Ipt(n,c)&&(Vr(a.valueDeclaration).flags|=65536)}Vr(a.valueDeclaration).flags|=32768}p&&(Vr(a.valueDeclaration).flags|=16384)}function Apt(n,a){const c=Vr(n);return!!c&&jn(c.capturedBlockScopeBindings,Wr(a))}function Ipt(n,a){let c=n;for(;c.parent.kind===218;)c=c.parent;let p=!1;if(vb(c))p=!0;else if(c.parent.kind===225||c.parent.kind===226){const m=c.parent;p=m.operator===46||m.operator===47}return p?!!Dn(c,m=>m===a?"quit":m===a.statement):!1}function z_e(n,a){if(Vr(n).flags|=2,a.kind===173||a.kind===177){const c=a.parent;Vr(c).flags|=4}else Vr(a).flags|=4}function kFe(n){return e1(n)?n:Yo(n)?void 0:Jo(n,kFe)}function B_e(n){const a=Wr(n),c=qs(a);return Py(c)===Pe}function wFe(n,a,c){const p=a.parent;xS(p)&&!B_e(p)&&ZR(n)&&n.flowNode&&!wY(n.flowNode,!1)&&Qe(n,c)}function xpt(n,a){Po(a)&&Oc(a)&&J&&a.initializer&&b2(a.initializer,n.pos)&&pf(a.parent)&&Qe(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function m5(n){const a=bI(n);let c=yu(n,!0,!0),p=!1,m=!1;for(c.kind===177&&wFe(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===220&&(c=yu(c,!1,!m),p=!0),c.kind===168){c=yu(c,!p,!1),m=!0;continue}break}if(xpt(n,c),m)Qe(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 268:Qe(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:Qe(n,f.this_cannot_be_referenced_in_current_location);break}!a&&p&&G<2&&z_e(n,c);const b=G_e(n,!0,c);if(xe){const I=_r(Re);if(b===I&&p)Qe(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!b){const w=Qe(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Yi(c)){const U=G_e(c);U&&U!==I&&pa(w,Ar(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return b||Ue}function G_e(n,a=!0,c=yu(n,!1,!1)){const p=Ir(n);if(Yo(c)&&(!U_e(n)||DS(c))){let m=LX(c)||p&&Cpt(c);if(!m){const b=Dpt(c);if(p&&b){const I=_o(b).symbol;I&&I.members&&I.flags&16&&(m=qs(I).thisType)}else E_(c)&&(m=qs(os(c.symbol)).thisType);m||(m=V_e(c))}if(m)return Vy(n,m)}if(ui(c.parent)){const m=Wr(c.parent),b=ua(c)?_r(m):qs(m).thisType;return Vy(n,b)}if(Yi(c))if(c.commonJsModuleIndicator){const m=Wr(c);return m&&_r(m)}else{if(c.externalModuleIndicator)return he;if(a)return _r(Re)}}function Rpt(n){const a=yu(n,!1,!1);if(Yo(a)){const c=Df(a);if(c.thisParameter)return LY(c.thisParameter)}if(ui(a.parent)){const c=Wr(a.parent);return ua(a)?_r(c):qs(c).thisType}}function Dpt(n){if(n.kind===219&&Nr(n.parent)&&ac(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===175&&n.parent.kind===211&&Nr(n.parent.parent)&&ac(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===219&&n.parent.kind===304&&n.parent.parent.kind===211&&Nr(n.parent.parent.parent)&&ac(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===219&&Nc(n.parent)&&He(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Wa(n.parent.parent)&&Zo(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&ac(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Ml(n)&&He(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Wa(n.parent)&&Zo(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&ac(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Cpt(n){const a=Z8(n);if(a&&a.typeExpression)return Ji(a.typeExpression);const c=yL(n);if(c)return q0(c)}function Npt(n,a){return!!Dn(n,c=>Ms(c)?"quit":c.kind===170&&c.parent===a)}function zY(n){const a=n.parent.kind===214&&n.parent.expression===n,c=$2(n,!0);let p=c,m=!1,b=!1;if(!a){for(;p&&p.kind===220;)di(p,1024)&&(b=!0),p=$2(p,!0),m=G<2;p&&di(p,1024)&&(b=!0)}let I=0;if(!p||!Q(p)){const Ie=Dn(n,Te=>Te===p?"quit":Te.kind===168);return Ie&&Ie.kind===168?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):!p||!p.parent||!(ui(p.parent)||p.parent.kind===211)?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),nt}if(!a&&c.kind===177&&wFe(n,p,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),ua(p)||a?(I=32,!a&&G>=2&&G<=8&&(Po(p)||Zl(p))&&Ste(n.parent,Ie=>{(!Yi(Ie)||Pp(Ie))&&(Vr(Ie).flags|=2097152)})):I=16,Vr(n).flags|=I,p.kind===175&&b&&(mp(n.parent)&&vb(n.parent)?Vr(p).flags|=256:Vr(p).flags|=128),m&&z_e(n.parent,p),p.parent.kind===211)return G<2?(Qe(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),nt):Ue;const w=p.parent;if(!xS(w))return Qe(n,f.super_can_only_be_referenced_in_a_derived_class),nt;if(B_e(w))return a?nt:Pe;const U=qs(Wr(w)),H=U&&Zm(U)[0];if(!H)return nt;if(p.kind===177&&Npt(n,p))return Qe(n,f.super_cannot_be_referenced_in_constructor_arguments),nt;return I===32?Py(U):Kp(H,U.thisType);function Q(Ie){return a?Ie.kind===177:ui(Ie.parent)||Ie.parent.kind===211?ua(Ie)?Ie.kind===175||Ie.kind===174||Ie.kind===178||Ie.kind===179||Ie.kind===173||Ie.kind===176:Ie.kind===175||Ie.kind===174||Ie.kind===178||Ie.kind===179||Ie.kind===173||Ie.kind===172||Ie.kind===177:!1}}function OFe(n){return(n.kind===175||n.kind===178||n.kind===179)&&n.parent.kind===211?n.parent:n.kind===219&&n.parent.kind===304?n.parent.parent:void 0}function WFe(n){return Hr(n)&4&&n.target===rf?rl(n)[0]:void 0}function Mpt(n){return Tl(n,a=>a.flags&2097152?Ye(a.types,WFe):WFe(a))}function FFe(n,a){let c=n,p=a;for(;p;){const m=Mpt(p);if(m)return m;if(c.parent.kind!==304)break;c=c.parent.parent,p=tS(c,void 0)}}function V_e(n){if(n.kind===220)return;if(cY(n)){const c=jW(n);if(c){const p=c.thisParameter;if(p)return _r(p)}}const a=Ir(n);if(xe||a){const c=OFe(n);if(c){const m=tS(c,void 0),b=FFe(c,m);return b?io(b,__e(ME(c))):$p(m?By(m):jl(c))}const p=zm(n.parent);if(id(p)){const m=p.left;if(Ks(m)){const{expression:b}=m;if(a&&He(b)){const I=Wn(p);if(I.commonJsModuleIndicator&&pu(b)===I.symbol)return}return $p(jl(b))}}}}function zFe(n){const a=n.parent;if(!cY(a))return;const c=OT(a);if(c&&c.arguments){const m=r$(c),b=a.parameters.indexOf(n);if(n.dotDotDotToken)return mge(m,b,m.length,Ue,void 0,0);const I=Vr(c),w=I.resolvedSignature;I.resolvedSignature=ur;const U=b0)return dL(c.name,!0,!1)}}function wpt(n,a){const c=df(n);if(c){let p=BY(c,a);if(p){const m=dc(c);if(m&1){const b=(m&2)!==0;p.flags&1048576&&(p=Ac(p,w=>!!Hv(1,w,b)));const I=Hv(1,p,(m&2)!==0);if(!I)return;p=I}if(m&2){const b=Tl(p,jy);return b&&pi([b,o4e(b)])}return p}}}function Opt(n,a){const c=Uu(n,a);if(c){const p=jy(c);return p&&pi([p,o4e(p)])}}function Wpt(n,a){const c=df(n);if(c){const p=dc(c);let m=BY(c,a);if(m){const b=(p&2)!==0;if(!n.asteriskToken&&m.flags&1048576&&(m=Ac(m,I=>!!Hv(1,I,b))),n.asteriskToken){const I=eye(m,b),w=I?.yieldType??wt,U=Uu(n,a)??wt,H=I?.nextType??Nt,Q=l$(w,U,H,!1);if(b){const Ie=l$(w,U,H,!0);return pi([Q,Ie])}return Q}return Hv(0,m,b)}}}function U_e(n){let a=!1;for(;n.parent&&!Yo(n.parent);){if(to(n.parent)&&(a||n.parent.initializer===n))return!0;Ha(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function BFe(n,a){const c=!!(dc(a)&2),p=BY(a,void 0);if(p)return Hv(n,p,c)||void 0}function BY(n,a){const c=zC(n);if(c)return c;const p=HY(n);if(p&&!jX(p)){const b=fs(p),I=dc(n);return I&1?Ac(b,w=>!!(w.flags&58998787)||Fge(w,I,void 0)):I&2?Ac(b,w=>!!(w.flags&58998787)||!!wL(w)):b}const m=OT(n);if(m)return Uu(m,a)}function GFe(n,a){const p=r$(n).indexOf(a);return p===-1?void 0:H_e(n,p)}function H_e(n,a){if(Qu(n))return a===0?gt:a===1?gWe(!1):Ue;const c=Vr(n).resolvedSignature===Dr?Dr:QC(n);if(nu(n)&&a===0)return UY(c,n);const p=c.parameters.length-1;return au(c)&&a>=p?Xp(_r(c.parameters[p]),Ch(a-p),256):Lh(c,a)}function Fpt(n){const a=Dge(n);return a?vA(a):void 0}function zpt(n,a){if(n.parent.kind===216)return GFe(n.parent,a)}function Bpt(n,a){const c=n.parent,{left:p,operatorToken:m,right:b}=c;switch(m.kind){case 64:case 77:case 76:case 78:return n===b?Vpt(c):void 0;case 57:case 61:const I=Uu(c,a);return n===b&&(I&&I.pattern||!I&&!Ute(c))?wd(p):I;case 56:case 28:return n===b?Uu(c,a):void 0;default:return}}function Gpt(n){if(ah(n)&&n.symbol)return n.symbol;if(He(n))return pu(n);if(qr(n)){const c=wd(n.expression);return eo(n.name)?a(c,n.name):Ea(c,n.name.escapedText)}if(Ws(n)){const c=jl(n.argumentExpression);if(!jf(c))return;const p=wd(n.expression);return Ea(p,Uf(c))}return;function a(c,p){const m=T5(p.escapedText,p);return m&&ZY(c,m)}}function Vpt(n){var a,c;const p=ac(n);switch(p){case 0:case 4:const m=Gpt(n.left),b=m&&m.valueDeclaration;if(b&&(Po(b)||Tu(b))){const U=Rc(b);return U&&io(Ji(U),Jr(m).mapper)||(Po(b)?b.initializer&&wd(n.left):void 0)}return p===0?wd(n.left):VFe(n);case 5:if(GY(n,p))return VFe(n);if(!ah(n.left)||!n.left.symbol)return wd(n.left);{const U=n.left.symbol.valueDeclaration;if(!U)return;const H=ma(n.left,Ks),Q=Rc(U);if(Q)return Ji(Q);if(He(H.expression)){const Ie=H.expression,Te=_t(Ie,Ie.escapedText,111551,void 0,!0);if(Te){const Ze=Te.valueDeclaration&&Rc(Te.valueDeclaration);if(Ze){const Tt=iy(H);if(Tt!==void 0)return eS(Ji(Ze),Tt)}return}}return Ir(U)||U===n.left?void 0:wd(n.left)}case 1:case 6:case 3:case 2:let I;p!==2&&(I=ah(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),I||(I=(c=n.symbol)==null?void 0:c.valueDeclaration);const w=I&&Rc(I);return w?Ji(w):void 0;case 7:case 8:case 9:return C.fail("Does not apply");default:return C.assertNever(p)}}function GY(n,a=ac(n)){if(a===4)return!0;if(!Ir(n)||a!==5||!He(n.left.expression))return!1;const c=n.left.expression.escapedText,p=_t(n.left,c,111551,void 0,!0,!0);return FF(p?.valueDeclaration)}function VFe(n){if(!n.symbol)return wd(n.left);if(n.symbol.valueDeclaration){const m=Rc(n.symbol.valueDeclaration);if(m){const b=Ji(m);if(b)return b}}const a=ma(n.left,Ks);if(!mm(yu(a.expression,!1,!1)))return;const c=m5(a.expression),p=iy(a);return p!==void 0&&eS(c,p)||void 0}function jpt(n){return!!(Fl(n)&262144&&!n.links.type&&ee(n,0)>=0)}function q_e(n,a){if(n.flags&16777216){const c=n;return!!(Pm(dT(c)).flags&131072)&&Oy(uT(c))===Oy(c.checkType)&&aa(a,c.extendsType)}return n.flags&2097152?yt(n.types,c=>q_e(c,a)):!1}function eS(n,a,c){return Tl(n,p=>{if(p.flags&2097152){let m,b,I=!1;for(const w of p.types){if(!(w.flags&524288))continue;if(up(w)&&yW(w)!==2){const H=jFe(w,a,c);m=J_e(m,H);continue}const U=UFe(w,a);if(!U){I||(b=Bn(b,w));continue}I=!0,b=void 0,m=J_e(m,U)}if(b)for(const w of b){const U=HFe(w,a,c);m=J_e(m,U)}return m?m.length===1?m[0]:Ma(m):void 0}if(p.flags&524288)return up(p)&&yW(p)!==2?jFe(p,a,c):UFe(p,a)??HFe(p,a,c)},!0)}function J_e(n,a){return a?Bn(n,a.flags&1?Nt:a):n}function jFe(n,a,c){const p=c||Sp(Gi(a)),m=Rf(n);if(n.nameType&&q_e(n.nameType,p)||q_e(m,p))return;const b=Ld(m)||m;if(aa(p,b))return rY(n,p)}function UFe(n,a){const c=Ea(n,a);if(!(!c||jpt(c)))return Gy(_r(c),!!(c.flags&16777216))}function HFe(n,a,c){var p;if(Ka(n)&&Eg(a)&&+a>=0){const m=xL(n,n.target.fixedLength,0,!1,!0);if(m)return m}return(p=ahe(she(n),c||Sp(Gi(a))))==null?void 0:p.type}function qFe(n,a){if(C.assert(mm(n)),!(n.flags&67108864))return K_e(n,a)}function K_e(n,a){const c=n.parent,p=Nc(n)&&j_e(n,a);if(p)return p;const m=tS(c,a);if(m){if(WC(n)){const b=Wr(n);return eS(m,b.escapedName,Jr(b).nameType)}if(oy(n)){const b=Oo(n);if(b&&va(b)){const I=_o(b.expression),w=jf(I)&&eS(m,Uf(I));if(w)return w}}if(n.name){const b=ky(n.name);return Tl(m,I=>{var w;return(w=ahe(she(I),b))==null?void 0:w.type},!0)}}}function Upt(n){let a,c;for(let p=0;p{if(Ka(b)){if((p===void 0||am)?c-a:0,w=I>0&&b.target.combinedFlags&12?AW(b.target,3):0;return I>0&&I<=w?rl(b)[Bv(b)-I]:xL(b,p===void 0?b.target.fixedLength:Math.min(b.target.fixedLength,p),c===void 0||m===void 0?w:Math.min(w,c-m),!1,!0)}return(!p||aVv(U)?Xp(U,Ch(I)):U,!0))}function Jpt(n,a){const c=n.parent;return uF(c)?Uu(n,a):r_(c)?qpt(c,n,a):void 0}function JFe(n,a){if(i_(n)){const c=tS(n.parent,a);return!c||wr(c)?void 0:eS(c,CM(n.name))}else return Uu(n.parent,a)}function h5(n){switch(n.kind){case 11:case 9:case 10:case 15:case 229:case 112:case 97:case 106:case 80:case 157:return!0;case 212:case 218:return h5(n.expression);case 295:return!n.expression||h5(n.expression)}return!1}function Kpt(n,a){const c=`D${ls(n)},${pd(a)}`;return Bu(c)??Dm(c,Fut(a,n)??e_e(a,so(Vt(Un(n.properties,p=>p.symbol?p.kind===304?h5(p.initializer)&&RL(a,p.symbol.escapedName):p.kind===305?RL(a,p.symbol.escapedName):!1:!1),p=>[()=>w5(p.kind===304?p.initializer:p.name),p.symbol.escapedName]),Vt(Un(bs(a),p=>{var m;return!!(p.flags&16777216)&&!!((m=n?.symbol)!=null&&m.members)&&!n.symbol.members.has(p.escapedName)&&RL(a,p.escapedName)}),p=>[()=>he,p.escapedName])),aa))}function Xpt(n,a){const c=`D${ls(n)},${pd(a)}`,p=Bu(c);if(p)return p;const m=y5(kA(n));return Dm(c,e_e(a,so(Vt(Un(n.properties,b=>!!b.symbol&&b.kind===292&&RL(a,b.symbol.escapedName)&&(!b.initializer||h5(b.initializer))),b=>[b.initializer?()=>w5(b.initializer):()=>ft,b.symbol.escapedName]),Vt(Un(bs(a),b=>{var I;if(!(b.flags&16777216)||!((I=n?.symbol)!=null&&I.members))return!1;const w=n.parent.parent;return b.escapedName===m&&r_(w)&&rD(w.children).length?!1:!n.symbol.members.has(b.escapedName)&&RL(a,b.escapedName)}),b=>[()=>he,b.escapedName])),aa))}function tS(n,a){const c=mm(n)?qFe(n,a):Uu(n,a),p=VY(c,n,a);if(p&&!(a&&a&2&&p.flags&8650752)){const m=Tl(p,b=>Hr(b)&32?b:Ru(b),!0);return m.flags&1048576&&Wa(n)?Kpt(n,m):m.flags&1048576&&VS(n)?Xpt(n,m):m}}function VY(n,a,c){if(n&&nc(n,465829888)){const p=ME(a);if(p&&c&1&&yt(p.inferences,Hht))return jY(n,p.nonFixingMapper);if(p?.returnMapper){const m=jY(n,p.returnMapper);return m.flags&1048576&&Ug(m.types,Jn)&&Ug(m.types,Mt)?Ac(m,b=>b!==Jn&&b!==Mt):m}}return n}function jY(n,a){return n.flags&465829888?io(n,a):n.flags&1048576?pi(Vt(n.types,c=>jY(c,a)),0):n.flags&2097152?Ma(Vt(n.types,c=>jY(c,a))):n}function Uu(n,a){var c;if(n.flags&67108864)return;const p=XFe(n,!a);if(p>=0)return sp[p];const{parent:m}=n;switch(m.kind){case 261:case 170:case 173:case 172:case 209:return kpt(n,a);case 220:case 254:return wpt(n,a);case 230:return Wpt(m,a);case 224:return Opt(m,a);case 214:case 215:return GFe(m,n);case 171:return Fpt(m);case 217:case 235:return Om(m.type)?Uu(m,a):Ji(m.type);case 227:return Bpt(n,a);case 304:case 305:return K_e(m,a);case 306:return Uu(m.parent,a);case 210:{const b=m,I=tS(b,a),w=jR(b.elements,n),U=(c=Vr(b)).spreadIndices??(c.spreadIndices=Upt(b.elements));return X_e(I,w,b.elements.length,U.first,U.last)}case 228:return Hpt(n,a);case 240:return C.assert(m.parent.kind===229),zpt(m.parent,n);case 218:{if(Ir(m)){if(kV(m))return Ji(wV(m));const b=PT(m);if(b&&!Om(b.typeExpression.type))return Ji(b.typeExpression.type)}return Uu(m,a)}case 236:return Uu(m,a);case 239:return Ji(m.type);case 278:return sT(m);case 295:return Jpt(m,a);case 292:case 294:return JFe(m,a);case 287:case 286:return rft(m,a);case 302:return nft(m)}}function KFe(n){_5(n,Uu(n,void 0),!0)}function _5(n,a,c){hl[Td]=n,sp[Td]=a,xm[Td]=c,Td++}function VW(){Td--,hl[Td]=void 0,sp[Td]=void 0,xm[Td]=void 0}function XFe(n,a){for(let c=Td-1;c>=0;c--)if(n===hl[c]&&(a||!xm[c]))return c;return-1}function Ypt(n,a){Hp[f_]=n,v0[f_]=a,f_++}function $pt(){f_--,Hp[f_]=void 0,v0[f_]=void 0}function ME(n){for(let a=f_-1;a>=0;a--)if(IS(n,Hp[a]))return v0[a]}function Qpt(n){j_[U_]=n,b0[U_]??(b0[U_]=new Map),U_++}function Zpt(){U_--,j_[U_]=void 0,b0[U_].clear()}function eft(n){for(let a=U_-1;a>=0;a--)if(n===j_[a])return a;return-1}function tft(){for(let n=U_-1;n>=0;n--)b0[n].clear()}function nft(n){return eS(vhe(!1),U6(n))}function rft(n,a){if(ph(n)&&a!==4){const c=XFe(n.parent,!a);if(c>=0)return sp[c]}return H_e(n,0)}function UY(n,a){return jm(a)||L6e(a)!==0?ift(n,a):sft(n,a)}function ift(n,a){let c=xge(n,Nt);c=YFe(a,kA(a),c);const p=PE(_f.IntrinsicAttributes,a);return pr(p)||(c=Mz(p,c)),c}function oft(n,a){if(n.compositeSignatures){const p=[];for(const m of n.compositeSignatures){const b=fs(m);if(wr(b))return b;const I=_n(b,a);if(!I)return;p.push(I)}return Ma(p)}const c=fs(n);return wr(c)?c:_n(c,a)}function aft(n){if(jm(n))return j6e(n);if(lR(n.tagName)){const c=a6e(n),p=i$(n,c);return vA(p)}const a=jl(n.tagName);if(a.flags&128){const c=o6e(a,n);if(!c)return nt;const p=i$(n,c);return vA(p)}return a}function YFe(n,a,c){const p=Nft(a);if(p){const m=aft(n),b=c6e(p,Ir(n),m,c);if(b)return b}return c}function sft(n,a){const c=kA(a),p=Pft(c);let m=p===void 0?xge(n,Nt):p===""?fs(n):oft(n,p);if(!m)return p&&et(a.attributes.properties)&&Qe(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Gi(p)),Nt;if(m=YFe(a,c,m),wr(m))return m;{let b=m;const I=PE(_f.IntrinsicClassAttributes,a);if(!pr(I)){const U=Na(I.symbol),H=fs(n);let Q;if(U){const Ie=zv([H],U,Z_(U),Ir(a));Q=io(I,Yp(U,Ie))}else Q=I;b=Mz(Q,b)}const w=PE(_f.IntrinsicAttributes,a);return pr(w)||(b=Mz(w,b)),b}}function lft(n){return Vd(O,"noImplicitAny")?_u(n,(a,c)=>a===c||!a?a:MOe(a.typeParameters,c.typeParameters)?uft(a,c):void 0):void 0}function cft(n,a,c){if(!n||!a)return n||a;const p=pi([_r(n),io(_r(a),c)]);return DA(n,p)}function dft(n,a,c){const p=Ap(n),m=Ap(a),b=p>=m?n:a,I=b===n?a:n,w=b===n?p:m,U=ng(n)||ng(a),H=U&&!ng(b),Q=new Array(w+(H?1:0));for(let Ie=0;Ie=kh(b)&&Ie>=kh(I),Tn=Ie>=p?void 0:ML(n,Ie),nr=Ie>=m?void 0:ML(a,Ie),yr=Tn===nr?Tn:Tn?nr?void 0:Tn:nr,Sn=ja(1|($t&&!Dt?16777216:0),yr||`arg${Ie}`,Dt?32768:$t?16384:0);Sn.links.type=Dt?Yd(Tt):Tt,Q[Ie]=Sn}if(H){const Ie=ja(1,"args",32768);Ie.links.type=Yd(Lh(I,w)),I===a&&(Ie.links.type=io(Ie.links.type,c)),Q[w]=Ie}return Q}function uft(n,a){const c=n.typeParameters||a.typeParameters;let p;n.typeParameters&&a.typeParameters&&(p=Yp(a.typeParameters,n.typeParameters));let m=(n.flags|a.flags)&166;const b=n.declaration,I=dft(n,a,p),w=Zs(I);w&&Fl(w)&32768&&(m|=1);const U=cft(n.thisParameter,a.thisParameter,p),H=Math.max(n.minArgumentCount,a.minArgumentCount),Q=y_(b,c,U,I,void 0,void 0,H,m);return Q.compositeKind=2097152,Q.compositeSignatures=so(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),p&&(Q.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?X0(n.mapper,p):p),Q}function Y_e(n,a){const c=na(n,0),p=Un(c,m=>!pft(m,a));return p.length===1?p[0]:lft(p)}function pft(n,a){let c=0;for(;c{const I=o.getTokenEnd();if(p.category===3&&c&&I===c.start&&m===c.length){const w=xI(a.fileName,a.text,I,m,p,b);pa(c,w)}else(!c||I!==c.start)&&(c=Wc(a,I,m,p,b),ns.add(c))}),o.setText(a.text,n.pos,n.end-n.pos);try{return o.scan(),C.assert(o.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!c}finally{o.setText(""),o.setOnError(void 0)}}return!1}function mft(n){const a=Vr(n);return a.flags&1||(a.flags|=1,r(()=>fft(n))),Jl}function hft(n,a){GIL(Te)||up(Te)&&!Te.nameType&&!!DW(Te.target||Te));let Ie=!1;for(let Te=0;TeI[Ze]&8?cT(Te,Bt)||Ue:Te),2):ie?En:B,U))}function QFe(n){if(!(Hr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=iWe(n),a.objectFlags|=147456),a}function yft(n){switch(n.kind){case 168:return vft(n);case 80:return Eg(n.escapedText);case 9:case 11:return Eg(n.text);default:return!1}}function vft(n){return kd(th(n),296)}function th(n){const a=Vr(n.expression);if(!a.resolvedType){if((ku(n.parent.parent)||ui(n.parent.parent)||gd(n.parent.parent))&&Nr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==178&&n.parent.kind!==179)return a.resolvedType=nt;if(a.resolvedType=_o(n.expression),Po(n.parent)&&!Oc(n.parent)&&uc(n.parent.parent)){const c=sh(n.parent.parent),p=F_e(c);p&&(Vr(p).flags|=4096,Vr(n).flags|=32768,Vr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!kd(a.resolvedType,402665900)&&!aa(a.resolvedType,Ii))&&Qe(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function bft(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return Eg(n.escapedName)||c&&nd(c)&&yft(c.name)}function ZFe(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return iM(n)||c&&nd(c)&&va(c.name)&&kd(th(c.name),4096)}function Tft(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return c&&nd(c)&&va(c.name)}function UW(n,a,c,p){var m;const b=[];let I;for(let U=a;U0&&(I=IE(I,Sn(),n.symbol,Tt,H),b=[],m=da(),$t=!1,Tn=!1,nr=!1);const oo=Pm(_o(vn.expression,a&2));if(g5(oo)){const ii=zhe(oo,H);if(p&&n6e(ii,p,vn),yr=b.length,pr(I))continue;I=IE(I,ii,n.symbol,Tt,H)}else Qe(vn,f.Spread_types_may_only_be_created_from_object_types),I=nt;continue}else C.assert(vn.kind===178||vn.kind===179),dR(vn);fi&&!(fi.flags&8576)?aa(fi,Ii)&&(aa(fi,Bt)?Tn=!0:aa(fi,Qt)?nr=!0:$t=!0,c&&(Dt=!0)):m.set(Sr.escapedName,Sr),b.push(Sr)}if(VW(),pr(I))return nt;if(I!==Ra)return b.length>0&&(I=IE(I,Sn(),n.symbol,Tt,H),b=[],m=da(),$t=!1,Tn=!1),Tl(I,vn=>vn===Ra?Sn():vn);return Sn();function Sn(){const vn=[],Sr=LL(n);$t&&vn.push(UW(Sr,yr,b,gt)),Tn&&vn.push(UW(Sr,yr,b,Bt)),nr&&vn.push(UW(Sr,yr,b,Qt));const fi=bl(n.symbol,m,ae,ae,vn);return fi.objectFlags|=Tt|128|131072,Ze&&(fi.objectFlags|=4096),Dt&&(fi.objectFlags|=512),c&&(fi.pattern=n),fi}}function g5(n){const a=W8e(Tl(n,v_));return!!(a.flags&126615553||a.flags&3145728&&Vn(a.types,g5))}function Eft(n){Q_e(n)}function Aft(n,a){return dR(n),v5(n)||Ue}function Ift(n){Q_e(n.openingElement),lR(n.closingElement.tagName)?KY(n.closingElement):_o(n.closingElement.tagName),JY(n)}function xft(n,a){return dR(n),v5(n)||Ue}function Rft(n){Q_e(n.openingFragment);const a=Wn(n);R6(O)&&(O.jsxFactory||a.pragmas.has("jsx"))&&!O.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Qe(n,O.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),JY(n);const c=v5(n);return pr(c)?Ue:c}function $_e(n){return n.includes("-")}function lR(n){return He(n)&&iD(n.escapedText)||fh(n)}function e6e(n,a){return n.initializer?kL(n.initializer,a):ft}function t6e(n,a=0){const c=ie?da():void 0;let p=da(),m=tc,b=!1,I,w=!1,U=2048;const H=y5(kA(n)),Q=jm(n);let Ie,Te=n;if(!Q){const Dt=n.attributes;Ie=Dt.symbol,Te=Dt;const $t=Uu(Dt,0);for(const Tn of Dt.properties){const nr=Tn.symbol;if(i_(Tn)){const yr=e6e(Tn,a);U|=Hr(yr)&458752;const Sn=ja(4|nr.flags,nr.escapedName);if(Sn.declarations=nr.declarations,Sn.parent=nr.parent,nr.valueDeclaration&&(Sn.valueDeclaration=nr.valueDeclaration),Sn.links.type=yr,Sn.links.target=nr,p.set(Sn.escapedName,Sn),c?.set(Sn.escapedName,Sn),CM(Tn.name)===H&&(w=!0),$t){const vn=Ea($t,nr.escapedName);vn&&vn.declarations&&Iu(vn)&&He(Tn.name)&&Cm(Tn.name,vn.declarations,Tn.name.escapedText)}if($t&&a&2&&!(a&4)&&Cf(Tn)){const vn=ME(Dt);C.assert(vn);const Sr=Tn.initializer.expression;m_e(vn,Sr,yr)}}else{C.assert(Tn.kind===294),p.size>0&&(m=IE(m,Tt(),Dt.symbol,U,!1),p=da());const yr=Pm(_o(Tn.expression,a&2));wr(yr)&&(b=!0),g5(yr)?(m=IE(m,yr,Dt.symbol,U,!1),c&&n6e(yr,c,Tn)):(Qe(Tn.expression,f.Spread_types_may_only_be_created_from_object_types),I=I?Ma([I,yr]):yr)}}b||p.size>0&&(m=IE(m,Tt(),Dt.symbol,U,!1))}const Ze=n.parent;if((r_(Ze)&&Ze.openingElement===n||ZT(Ze)&&Ze.openingFragment===n)&&rD(Ze.children).length>0){const Dt=JY(Ze,a);if(!b&&H&&H!==""){w&&Qe(Te,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Gi(H));const $t=ph(n)?tS(n.attributes,void 0):void 0,Tn=$t&&eS($t,H),nr=ja(4,H);nr.links.type=Dt.length===1?Dt[0]:Tn&&am(Tn,IL)?eg(Dt):Yd(pi(Dt)),nr.valueDeclaration=L.createPropertySignature(void 0,Gi(H),void 0,void 0),ps(nr.valueDeclaration,Te),nr.valueDeclaration.symbol=nr;const yr=da();yr.set(H,nr),m=IE(m,bl(Ie,yr,ae,ae,ae),Ie,U,!1)}}if(b)return Ue;if(I&&m!==tc)return Ma([I,m]);return I||(m===tc?Tt():m);function Tt(){return U|=8192,Dft(U,Ie,p)}}function Dft(n,a,c){const p=bl(a,c,ae,ae,ae);return p.objectFlags|=n|8192|128|131072,p}function JY(n,a){const c=[];for(const p of n.children)if(p.kind===12)p.containsOnlyTriviaWhiteSpaces||c.push(gt);else{if(p.kind===295&&!p.expression)continue;c.push(kL(p,a))}return c}function n6e(n,a,c){for(const p of bs(n))if(!(p.flags&16777216)){const m=a.get(p.escapedName);if(m){const b=Qe(m.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Gi(m.escapedName));pa(b,Ar(c,f.This_spread_always_overwrites_this_property))}}}function Cft(n,a){return t6e(n.parent,a)}function PE(n,a){const c=kA(a),p=c&&qp(c),m=p&&Sd(p,n,788968);return m?qs(m):nt}function KY(n){const a=Vr(n);if(!a.resolvedSymbol){const c=PE(_f.IntrinsicElements,n);if(pr(c))return ve&&Qe(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Gi(_f.IntrinsicElements)),a.resolvedSymbol=ne;{if(!He(n.tagName)&&!fh(n.tagName))return C.fail();const p=fh(n.tagName)?LI(n.tagName):n.tagName.escapedText,m=Ea(c,p);if(m)return a.jsxFlags|=1,a.resolvedSymbol=m;const b=D3e(c,Sp(Gi(p)));return b?(a.jsxFlags|=2,a.resolvedSymbol=b):ei(c,p)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Qe(n,f.Property_0_does_not_exist_on_type_1,OV(n.tagName),"JSX."+_f.IntrinsicElements),a.resolvedSymbol=ne)}}return a.resolvedSymbol}function XY(n){const a=n&&Wn(n),c=a&&Vr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const p=D6(zk(O,a),O);if(!p)return;const b=ru(O)===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.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,I=ubt(a,p),w=iA(I||n,p,b,n),U=w&&w!==ne?os(hc(w)):void 0;return c&&(c.jsxImplicitImportContainer=U||!1),U}function kA(n){const a=n&&Vr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let p=XY(n);if(!p||p===ne){const m=qm(n);p=_t(n,m,1920,void 0,!1)}if(p){const m=hc(Sd(qp(hc(p)),_f.JSX,1920));if(m&&m!==ne)return a&&(a.jsxNamespace=m),m}a&&(a.jsxNamespace=!1)}const c=hc(jC(_f.JSX,1920,void 0));if(c!==ne)return c}function r6e(n,a){const c=a&&Sd(a.exports,n,788968),p=c&&qs(c),m=p&&bs(p);if(m){if(m.length===0)return"";if(m.length===1)return m[0].escapedName;m.length>1&&c.declarations&&Qe(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Gi(n))}}function Nft(n){return n&&Sd(n.exports,_f.LibraryManagedAttributes,788968)}function Mft(n){return n&&Sd(n.exports,_f.ElementType,788968)}function Pft(n){return r6e(_f.ElementAttributesPropertyNameContainer,n)}function y5(n){return O.jsx===4||O.jsx===5?"children":r6e(_f.ElementChildrenAttributeNameContainer,n)}function i6e(n,a){if(n.flags&4)return[ur];if(n.flags&128){const m=o6e(n,a);return m?[i$(a,m)]:(Qe(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+_f.IntrinsicElements),ae)}const c=Ru(n);let p=na(c,1);return p.length===0&&(p=na(c,0)),p.length===0&&c.flags&1048576&&(p=Yme(Vt(c.types,m=>i6e(m,a)))),p}function o6e(n,a){const c=PE(_f.IntrinsicElements,a);if(!pr(c)){const p=n.value,m=Ea(c,Nl(p));if(m)return _r(m);const b=H0(c,gt);return b||void 0}return Ue}function Lft(n,a,c){if(n===1){const m=l6e(c);m&&rm(a,m,qd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,p)}else if(n===0){const m=s6e(c);m&&rm(a,m,qd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,p)}else{const m=l6e(c),b=s6e(c);if(!m||!b)return;const I=pi([m,b]);rm(a,I,qd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,p)}function p(){const m=Al(c.tagName);return qo(void 0,f._0_cannot_be_used_as_a_JSX_component,m)}}function a6e(n){var a;C.assert(lR(n.tagName));const c=Vr(n);if(!c.resolvedJsxElementAttributesType){const p=KY(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=_r(p)||nt;if(c.jsxFlags&2){const m=fh(n.tagName)?LI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=Qx(PE(_f.IntrinsicElements,n),m))==null?void 0:a.type)||nt}else return c.resolvedJsxElementAttributesType=nt}return c.resolvedJsxElementAttributesType}function s6e(n){const a=PE(_f.ElementClass,n);if(!pr(a))return a}function v5(n){return PE(_f.Element,n)}function l6e(n){const a=v5(n);if(a)return pi([a,Xt])}function kft(n){const a=kA(n);if(!a)return;const c=Mft(a);if(!c)return;const p=c6e(c,Ir(n));if(!(!p||pr(p)))return p}function c6e(n,a,...c){const p=qs(n);if(n.flags&524288){const m=Jr(n).typeParameters;if(et(m)>=c.length){const b=zv(c,m,c.length,a);return et(b)===0?p:GC(n,b)}}if(et(p.typeParameters)>=c.length){const m=zv(c,p.typeParameters,c.length,a);return Ly(p,m)}}function wft(n){const a=PE(_f.IntrinsicElements,n);return a?bs(a):ae}function Oft(n){(O.jsx||0)===0&&Qe(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),v5(n)===void 0&&ve&&Qe(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Q_e(n){const a=nu(n);a&&Ovt(n),Oft(n),W_e(n);const c=QC(n);if(a$(c,n),a){const p=n,m=kft(p);if(m!==void 0){const b=p.tagName,I=lR(b)?Sp(OV(b)):_o(b);rm(I,m,qd,b,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const w=Al(b);return qo(void 0,f._0_cannot_be_used_as_a_JSX_component,w)})}else Lft(L6e(p),fs(c),p)}}function YY(n,a,c){if(n.flags&524288&&(TE(n,a)||Qx(n,a)||_W(a)&&Vg(n,gt)||c&&$_e(a)))return!0;if(n.flags&33554432)return YY(n.baseType,a,c);if(n.flags&3145728&&HW(n)){for(const p of n.types)if(YY(p,a,c))return!0}return!1}function HW(n){return!!(n.flags&524288&&!(Hr(n)&512)||n.flags&67108864||n.flags&33554432&&HW(n.baseType)||n.flags&1048576&&yt(n.types,HW)||n.flags&2097152&&Vn(n.types,HW))}function Wft(n,a){if(Fvt(n),n.expression){const c=_o(n.expression,a);return n.dotDotDotToken&&c!==Ue&&!im(c)&&Qe(n,f.JSX_spread_child_must_be_an_array_type),c}else return nt}function Z_e(n){return n.valueDeclaration?kE(n.valueDeclaration):0}function ege(n){if(n.flags&8192||Fl(n)&4)return!0;if(Ir(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&Nr(a)&&ac(a)===3}}function tge(n,a,c,p,m,b=!0){const I=b?n.kind===167?n.right:n.kind===206?n:n.kind===209&&n.propertyName?n.propertyName:n.name:void 0;return d6e(n,a,c,p,m,I)}function d6e(n,a,c,p,m,b){var I;const w=Vf(m,c);if(a){if(G<2&&u6e(m))return b&&Qe(b,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(w&64)return b&&Qe(b,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,uo(m),ar(rR(m))),!1;if(!(w&256)&&((I=m.declarations)!=null&&I.some(Gee)))return b&&Qe(b,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,uo(m)),!1}if(w&64&&u6e(m)&&(Q2(n)||Gte(n)||ff(n.parent)&&FF(n.parent.parent))){const H=cy(Yc(m));if(H&&kyt(n))return b&&Qe(b,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,uo(m),zf(H.name)),!1}if(!(w&6))return!0;if(w&2){const H=cy(Yc(m));return aye(n,H)?!0:(b&&Qe(b,f.Property_0_is_private_and_only_accessible_within_class_1,uo(m),ar(rR(m))),!1)}if(a)return!0;let U=x3e(n,H=>{const Q=qs(Wr(H));return R8e(Q,m,c)});return!U&&(U=Fft(n),U=U&&R8e(U,m,c),w&256||!U)?(b&&Qe(b,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,uo(m),ar(rR(m)||p)),!1):w&256?!0:(p.flags&262144&&(p=p.isThisType?ju(p):Ld(p)),!p||!Ur(p,U)?(b&&Qe(b,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,uo(m),ar(U),ar(p)),!1):!0)}function Fft(n){const a=zft(n);let c=a?.type&&Ji(a.type);if(c)c.flags&262144&&(c=ju(c));else{const p=yu(n,!1,!1);Yo(p)&&(c=V_e(p))}if(c&&Hr(c)&7)return zn(c)}function zft(n){const a=yu(n,!1,!1);return a&&Yo(a)?DS(a):void 0}function u6e(n){return!!Zz(n,a=>!(a.flags&8192))}function YC(n){return S_(_o(n),n)}function b5(n){return Mh(n,50331648)}function nge(n){return b5(n)?By(n):n}function Bft(n,a){const c=Ds(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(He(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 Gft(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 p6e(n,a,c){if(ie&&n.flags&2){if(Ds(a)){const m=Mp(a);if(m.length<100)return Qe(a,f._0_is_of_type_unknown,m),nt}return Qe(a,f.Object_is_of_type_unknown),nt}const p=qC(n,50331648);if(p&50331648){c(a,p);const m=By(n);return m.flags&229376?nt:m}return n}function S_(n,a){return p6e(n,a,Bft)}function f6e(n,a){const c=S_(n,a);if(c.flags&16384){if(Ds(a)){const p=Mp(a);if(He(a)&&p==="undefined")return Qe(a,f.The_value_0_cannot_be_used_here,p),c;if(p.length<100)return Qe(a,f._0_is_possibly_undefined,p),c}Qe(a,f.Object_is_possibly_undefined)}return c}function $Y(n,a,c){return n.flags&64?Vft(n,a):ige(n,n.expression,YC(n.expression),n.name,a,c)}function Vft(n,a){const c=_o(n.expression),p=kW(c,n.expression);return SY(ige(n,n.expression,S_(p,n.expression),n.name,a),n,p!==c)}function m6e(n,a){const c=GF(n)&&Tb(n.left)?S_(m5(n.left),n.left):YC(n.left);return ige(n,n.left,c,n.right,a)}function rge(n){for(;n.parent.kind===218;)n=n.parent;return Gh(n.parent)&&n.parent.expression===n}function T5(n,a){for(let c=OF(a);c;c=hd(c)){const{symbol:p}=c,m=vk(p,n),b=p.members&&p.members.get(m)||p.exports&&p.exports.get(m);if(b)return b}}function jft(n){if(!hd(n))return Cn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!c4(n.parent)){if(!P_(n))return Cn(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=Nr(n.parent)&&n.parent.operatorToken.kind===103;if(!QY(n)&&!a)return Cn(n,f.Cannot_find_name_0,Kr(n))}return!1}function Uft(n){jft(n);const a=QY(n);return a&&E5(a,void 0,!1),Ue}function QY(n){if(!P_(n))return;const a=Vr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=T5(n.escapedText,n)),a.resolvedSymbol}function ZY(n,a){return Ea(n,a.escapedName)}function Hft(n,a,c){let p;const m=bs(n);m&&Ye(m,I=>{const w=I.valueDeclaration;if(w&&nd(w)&&eo(w.name)&&w.name.escapedText===a.escapedText)return p=I,!0});const b=vp(a);if(p){const I=C.checkDefined(p.valueDeclaration),w=C.checkDefined(hd(I));if(c?.valueDeclaration){const U=c.valueDeclaration,H=hd(U);if(C.assert(!!H),Dn(H,Q=>w===Q)){const Q=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,b,ar(n));return pa(Q,Ar(U,f.The_shadowing_declaration_of_0_is_defined_here,b),Ar(I,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,b)),!0}}return Qe(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,b,vp(w.name||yU)),!0}return!1}function h6e(n,a){return(zg(a)||Q2(n)&&Y_(a))&&yu(n,!0,!1)===br(a)}function ige(n,a,c,p,m,b){const I=Vr(a).resolvedSymbol,w=yb(n),U=Ru(w!==0||rge(n)?$p(c):c),H=wr(U)||U===wt;let Q;if(eo(p)){(G{switch(c.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return a?!1:"quit";case 242:return Ms(c.parent)&&c.parent.kind!==220?"quit":!1;default:return!1}})}function Jft(n){if(!(n.parent.flags&32))return!1;let a=_r(n.parent);for(;;){if(a=a.symbol&&Kft(a),!a)return!1;const c=Ea(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Kft(n){const a=Zm(n);if(a.length!==0)return Ma(a)}function g6e(n,a,c){const p=Vr(n),m=p.nonExistentPropCheckCache||(p.nonExistentPropCheckCache=new Set),b=`${pd(a)}|${c}`;if(m.has(b))return;m.add(b);let I,w;if(!eo(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const H of a.types)if(!Ea(H,n.escapedText)&&!Qx(H,n.escapedText)){I=qo(I,f.Property_0_does_not_exist_on_type_1,ws(n),ar(H));break}}if(y6e(n.escapedText,a)){const H=ws(n),Q=ar(a);I=qo(I,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,H,Q,Q+"."+H)}else{const H=n8(a);if(H&&Ea(H,n.escapedText))I=qo(I,f.Property_0_does_not_exist_on_type_1,ws(n),ar(a)),w=Ar(n,f.Did_you_forget_to_use_await);else{const Q=ws(n),Ie=ar(a),Te=$ft(Q,a);if(Te!==void 0)I=qo(I,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,Q,Ie,Te);else{const Ze=sge(n,a);if(Ze!==void 0){const Tt=Ol(Ze),Dt=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;I=qo(I,Dt,Q,Ie,Tt),w=Ze.valueDeclaration&&Ar(Ze.valueDeclaration,f._0_is_declared_here,Tt)}else{const Tt=Xft(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;I=qo(ohe(I,a),Tt,Q,Ie)}}}}const U=hg(Wn(n),n,I);w&&pa(U,w),Pg(!c||I.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,U)}function Xft(n){return O.lib&&!O.lib.includes("lib.dom.d.ts")&&Zut(n,a=>a.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(Gi(a.symbol.escapedName)))&&Fy(n)}function y6e(n,a){const c=a.symbol&&Ea(_r(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&ua(c.valueDeclaration)}function Yft(n){const a=vp(n),p=eG().get(a);return p&&IB(p.keys())}function $ft(n,a){const c=Ru(a).symbol;if(!c)return;const p=Ol(c),b=eG().get(p);if(b){for(const[I,w]of b)if(jn(w,n))return I}}function v6e(n,a){return S5(n,bs(a),106500)}function sge(n,a){let c=bs(a);if(typeof n!="string"){const p=n.parent;qr(p)&&(c=Un(c,m=>A6e(p,a,m))),n=Kr(n)}return S5(n,c,111551)}function b6e(n,a){const c=Bo(n)?n:Kr(n),p=bs(a);return(c==="for"?hn(p,b=>Ol(b)==="htmlFor"):c==="class"?hn(p,b=>Ol(b)==="className"):void 0)??S5(c,p,111551)}function T6e(n,a){const c=sge(n,a);return c&&Ol(c)}function Qft(n,a,c){const p=Sd(n,a,c);if(p)return p;let m;return n===lt?m=Ui(["string","number","boolean","object","bigint","symbol"],I=>n.has(I.charAt(0).toUpperCase()+I.slice(1))?ja(524288,I):void 0).concat(Co(n.values())):m=Co(n.values()),S5(Gi(a),m,c)}function S6e(n,a,c){return C.assert(a!==void 0,"outername should always be defined"),en(n,a,c,void 0,!1,!1)}function lge(n,a){return a.exports&&S5(Kr(n),Bx(a),2623475)}function Zft(n,a,c){function p(I){const w=TE(n,I);if(w){const U=OA(_r(w));return!!U&&kh(U)>=1&&aa(c,Lh(U,0))}return!1}const m=vb(a)?"set":"get";if(!p(m))return;let b=Ck(a.expression);return b===void 0?b=m:b+="."+m,b}function emt(n,a){const c=a.types.filter(p=>!!(p.flags&128));return pS(n.value,c,p=>p.value)}function S5(n,a,c){return pS(n,a,p);function p(m){const b=Ol(m);if(!po(b,'"')){if(m.flags&c)return b;if(m.flags&2097152){const I=Ox(m);if(I&&I.flags&c)return b}}}}function E5(n,a,c){const p=n&&n.flags&106500&&n.valueDeclaration;if(!p)return;const m=wp(p,2),b=n.valueDeclaration&&nd(n.valueDeclaration)&&eo(n.valueDeclaration.name);if(!(!m&&!b)&&!(a&&g6(a)&&!(n.flags&65536))){if(c){const I=Dn(a,Ms);if(I&&I.symbol===n)return}(Fl(n)&1?Jr(n).target:n).isReferenced=-1}}function E6e(n,a){return n.kind===110||!!a&&Ds(n)&&a===pu(Pu(n))}function tmt(n,a){switch(n.kind){case 212:return cge(n,n.expression.kind===108,a,$p(_o(n.expression)));case 167:return cge(n,!1,a,$p(_o(n.left)));case 206:return cge(n,!1,a,Ji(n))}}function A6e(n,a,c){return dge(n,n.kind===212&&n.expression.kind===108,!1,a,c)}function cge(n,a,c,p){if(wr(p))return!0;const m=Ea(p,c);return!!m&&dge(n,a,!1,p,m)}function dge(n,a,c,p,m){if(wr(p))return!0;if(m.valueDeclaration&&tu(m.valueDeclaration)){const b=hd(m.valueDeclaration);return!eu(n)&&!!Dn(n,I=>I===b)}return d6e(n,a,c,p,m)}function nmt(n){const a=n.initializer;if(a.kind===262){const c=a.declarations[0];if(c&&!Qo(c.name))return Wr(c)}else if(a.kind===80)return pu(a)}function rmt(n){return Xd(n).length===1&&!!Vg(n,Bt)}function imt(n){const a=us(n);if(a.kind===80){const c=pu(a);if(c.flags&3){let p=n,m=n.parent;for(;m;){if(m.kind===250&&p===m.statement&&nmt(m)===c&&rmt(wd(m.expression)))return!0;p=m,m=m.parent}}}return!1}function omt(n,a){return n.flags&64?amt(n,a):I6e(n,YC(n.expression),a)}function amt(n,a){const c=_o(n.expression),p=kW(c,n.expression);return SY(I6e(n,S_(p,n.expression),a),n,p!==c)}function I6e(n,a,c){const p=yb(n)!==0||rge(n)?$p(a):a,m=n.argumentExpression,b=_o(m);if(pr(p)||p===wt)return p;if(d$(p)&&!ds(m))return Qe(m,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),nt;const I=imt(m)?Bt:b,w=yb(n);let U;w===0?U=32:(U=4|(EA(p)&&!DM(p)?2:0),w===2&&(U|=32));const H=cT(p,I,U,n)||nt;return k4e(_6e(n,Vr(n).resolvedSymbol,H,m,c),n)}function x6e(n){return Gh(n)||KT(n)||nu(n)}function wA(n){return x6e(n)&&Ye(n.typeArguments,wa),n.kind===216?_o(n.template):nu(n)?_o(n.attributes):Nr(n)?_o(n.left):Gh(n)&&Ye(n.arguments,a=>{_o(a)}),ur}function Ph(n){return wA(n),si}function smt(n,a,c){let p,m,b=0,I,w=-1,U;C.assert(!a.length);for(const H of n){const Q=H.declaration&&Wr(H.declaration),Ie=H.declaration&&H.declaration.parent;!m||Q===m?p&&Ie===p?I=I+1:(p=Ie,I=b):(I=b=a.length,p=Ie),m=Q,b1e(H)?(w++,U=w,b++):U=I,a.splice(U,0,c?Ust(H,c):H)}}function e$(n){return!!n&&(n.kind===231||n.kind===238&&n.isSpread)}function uge(n){return ho(n,e$)}function R6e(n){return!!(n.flags&16384)}function lmt(n){return!!(n.flags&49155)}function t$(n,a,c,p=!1){if(jm(n))return!0;let m,b=!1,I=Ap(c),w=kh(c);if(n.kind===216)if(m=a.length,n.template.kind===229){const U=Ba(n.template.templateSpans);b=Wl(U.literal)||!!U.literal.isUnterminated}else{const U=n.template;C.assert(U.kind===15),b=!!U.isUnterminated}else if(n.kind===171)m=w6e(n,c);else if(n.kind===227)m=1;else if(nu(n)){if(b=n.attributes.end===n.end,b)return!0;m=w===0?a.length:1,I=a.length===0?I:1,w=Math.min(w,1)}else if(n.arguments){m=p?a.length+1:a.length,b=n.arguments.end===n.end;const U=uge(a);if(U>=0)return U>=kh(c)&&(ng(c)||UI)return!1;if(b||m>=w)return!0;for(let U=m;U=p&&a.length<=c}function D6e(n,a){let c;return!!(n.target&&(c=LE(n.target,a))&&K0(c))}function OA(n){return qW(n,0,!1)}function C6e(n){return qW(n,0,!1)||qW(n,1,!1)}function qW(n,a,c){if(n.flags&524288){const p=Dh(n);if(c||p.properties.length===0&&p.indexInfos.length===0){if(a===0&&p.callSignatures.length===1&&p.constructSignatures.length===0)return p.callSignatures[0];if(a===1&&p.constructSignatures.length===1&&p.callSignatures.length===0)return p.constructSignatures[0]}}}function N6e(n,a,c,p){const m=WW(eWe(n),n,0,p),b=XW(a),I=c&&(b&&b.flags&262144?c.nonFixingMapper:c.mapper),w=I?xA(a,I):a;return u_e(w,n,(U,H)=>{qg(m.inferences,U,H)}),c||p_e(a,n,(U,H)=>{qg(m.inferences,U,H,128)}),SW(n,A_e(m),Ir(a.declaration))}function cmt(n,a,c,p){const m=UY(a,n),b=ZC(n.attributes,m,p,c);return qg(p.inferences,b,m),A_e(p)}function M6e(n){if(!n)return In;const a=_o(n);return Ene(n)?a:CN(n.parent)?By(a):eu(n.parent)?TY(a):a}function fge(n,a,c,p,m){if(nu(n))return cmt(n,a,p,m);if(n.kind!==171&&n.kind!==227){const U=Vn(a.typeParameters,Q=>!!SE(Q)),H=Uu(n,U?8:0);if(H){const Q=fs(a);if(mT(Q)){const Ie=ME(n);if(!(!U&&Uu(n,8)!==H)){const Dt=__e(G8e(Ie,1)),$t=io(H,Dt),Tn=OA($t),nr=Tn&&Tn.typeParameters?vA(uhe(Tn,Tn.typeParameters)):$t;qg(m.inferences,nr,Q,128)}const Ze=WW(a.typeParameters,a,m.flags),Tt=io(H,Ie&&ldt(Ie));qg(Ze.inferences,Tt,Q),m.returnMapper=yt(Ze.inferences,eN)?__e(yut(Ze)):void 0}}}const b=YW(a),I=b?Math.min(Ap(a)-1,c.length):c.length;if(b&&b.flags&262144){const U=hn(m.inferences,H=>H.typeParameter===b);U&&(U.impliedArity=ho(c,e$,I)<0?c.length-I:void 0)}const w=q0(a);if(w&&mT(w)){const U=k6e(n);qg(m.inferences,M6e(U),w)}for(let U=0;U=c-1){const Q=n[c-1];if(e$(Q)){const Ie=Q.kind===238?Q.type:ZC(Q.expression,p,m,b);return Vv(Ie)?P6e(Ie):Yd(Uv(33,Ie,he,Q.kind===231?Q.expression:Q),I)}}const w=[],U=[],H=[];for(let Q=a;Qqo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,Ie=p||f.Type_0_does_not_satisfy_the_constraint_1;w||(w=Yp(b,I));const Te=I[U];if(!$d(Te,Kp(io(H,w),Te),c?a[U]:void 0,Ie,Q))return}}return I}function L6e(n){if(lR(n.tagName))return 2;const a=Ru(_o(n.tagName));return et(na(a,1))?0:et(na(a,0))?1:2}function dmt(n,a,c,p,m,b,I){const w=UY(a,n),U=jm(n)?t6e(n):ZC(n.attributes,w,void 0,p),H=p&4?OW(U):U;return Q()&&Xhe(H,w,c,m?jm(n)?n:n.tagName:void 0,jm(n)?void 0:n.attributes,void 0,b,I);function Q(){var Ie;if(XY(n))return!0;const Te=(ph(n)||E1(n))&&!(lR(n.tagName)||fh(n.tagName))?_o(n.tagName):void 0;if(!Te)return!0;const Ze=na(Te,0);if(!et(Ze))return!0;const Tt=uye(n);if(!Tt)return!0;const Dt=Vl(Tt,111551,!0,!1,n);if(!Dt)return!0;const $t=_r(Dt),Tn=na($t,0);if(!et(Tn))return!0;let nr=!1,yr=0;for(const vn of Tn){const Sr=Lh(vn,0),fi=na(Sr,0);if(et(fi))for(const oo of fi){if(nr=!0,ng(oo))return!0;const ii=Ap(oo);ii>yr&&(yr=ii)}}if(!nr)return!0;let Sn=1/0;for(const vn of Ze){const Sr=kh(vn);Sr{m.push(b.expression)}),m}if(n.kind===171)return umt(n);if(n.kind===227)return[n.left];if(nu(n))return n.attributes.properties.length>0||ph(n)&&n.parent.children.length>0?[n.attributes]:ae;const a=n.arguments||ae,c=uge(a);if(c>=0){const p=a.slice(0,c);for(let m=c;m{var H;const Q=I.target.elementFlags[U],Ie=JW(b,Q&4?Yd(w):w,!!(Q&12),(H=I.target.labeledElementDeclarations)==null?void 0:H[U]);p.push(Ie)}):p.push(b)}return p}return a}function umt(n){const a=n.expression,c=Dge(n);if(c){const p=[];for(const m of c.parameters){const b=_r(m);p.push(JW(a,b))}return p}return C.fail()}function w6e(n,a){return O.experimentalDecorators?pmt(n,a):Math.min(Math.max(Ap(a),1),2)}function pmt(n,a){switch(n.parent.kind){case 264:case 232:return 1;case 173:return Kh(n.parent)?3:2;case 175:case 178:case 179:return a.parameters.length<=2?2:3;case 170:return 3;default:return C.fail()}}function O6e(n){const a=Wn(n),{start:c,length:p}=ZE(a,qr(n.expression)?n.expression.name:n.expression);return{start:c,length:p,sourceFile:a}}function KW(n,a,...c){if(Zo(n)){const{sourceFile:p,start:m,length:b}=O6e(n);return"message"in a?Wc(p,m,b,a,...c):uG(p,a)}else return"message"in a?Ar(n,a,...c):hg(Wn(n),n,a)}function fmt(n){return Gh(n)?qr(n.expression)?n.expression.name:n.expression:KT(n)?qr(n.tag)?n.tag.name:n.tag:nu(n)?n.tagName:n}function mmt(n){if(!Zo(n)||!He(n.expression))return!1;const a=_t(n.expression,n.expression.escapedText,111551,void 0,!1),c=a?.valueDeclaration;if(!c||!to(c)||!Ib(c.parent)||!BS(c.parent.parent)||!He(c.parent.parent.expression))return!1;const p=bhe(!1);return p?sm(c.parent.parent.expression,!0)===p:!1}function W6e(n,a,c,p){var m;const b=uge(c);if(b>-1)return Ar(c[b],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let I=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,U=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY,Q;for(const Dt of a){const $t=kh(Dt),Tn=Ap(Dt);$tU&&(U=$t),c.lengthm?I=Math.min(I,U):H1&&(Dt=oo(Tn,H_,Sn,vn)),Dt||(Dt=oo(Tn,qd,Sn,vn));const Sr=Vr(n);if(Sr.resolvedSignature!==Dr&&!c)return C.assert(Sr.resolvedSignature),Sr.resolvedSignature;if(Dt)return Dt;if(Dt=_mt(n,Tn,yr,!!c,p),Sr.resolvedSignature=Dt,Ie){if(!b&&Q&&(b=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),Te)if(Te.length===1||Te.length>3){const ii=Te[Te.length-1];let zi;Te.length>3&&(zi=qo(zi,f.The_last_overload_gave_the_following_error),zi=qo(zi,f.No_overload_matches_this_call)),b&&(zi=qo(zi,b));const Ko=A5(n,yr,ii,qd,0,!0,()=>zi);if(Ko)for(const ms of Ko)ii.declaration&&Te.length>3&&pa(ms,Ar(ii.declaration,f.The_last_overload_is_declared_here)),fi(ii,ms),ns.add(ms);else C.fail("No error for last overload signature")}else{const ii=[];let zi=0,Ko=Number.MAX_VALUE,ms=0,fo=0;for(const rr of Te){const vr=A5(n,yr,rr,qd,0,!0,()=>qo(void 0,f.Overload_0_of_1_2_gave_the_following_error,fo+1,Tn.length,iT(rr)));vr?(vr.length<=Ko&&(Ko=vr.length,ms=fo),zi=Math.max(zi,vr.length),ii.push(vr)):C.fail("No error for 3 or fewer overload signatures"),fo++}const dl=zi>1?ii[ms]:la(ii);C.assert(dl.length>0,"No errors reported for 3 or fewer overload signatures");let Xl=qo(Vt(dl,Ite),f.No_overload_matches_this_call);b&&(Xl=qo(Xl,b));const fu=[...Ki(dl,rr=>rr.relatedInformation)];let qn;if(Vn(dl,rr=>rr.start===dl[0].start&&rr.length===dl[0].length&&rr.file===dl[0].file)){const{file:rr,start:Hi,length:vr}=dl[0];qn={file:rr,start:Hi,length:vr,code:Xl.code,category:Xl.category,messageText:Xl,relatedInformation:fu}}else qn=hg(Wn(n),fmt(n),Xl,fu);fi(Te[0],qn),ns.add(qn)}else if(Ze)ns.add(W6e(n,[Ze],yr,b));else if(Tt)hge(Tt,n.typeArguments,!0,b);else if(!H){const ii=Un(a,zi=>pge(zi,nr));ii.length===0?ns.add(hmt(n,a,nr,b)):ns.add(W6e(n,ii,yr,b))}}return Dt;function fi(ii,zi){var Ko,ms;const fo=Te,dl=Ze,Xl=Tt,fu=((ms=(Ko=ii.declaration)==null?void 0:Ko.symbol)==null?void 0:ms.declarations)||ae,rr=fu.length>1?hn(fu,Hi=>Ms(Hi)&&fm(Hi.body)):void 0;if(rr){const Hi=Df(rr),vr=!Hi.typeParameters;oo([Hi],qd,vr)&&pa(zi,Ar(rr,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Te=fo,Ze=dl,Tt=Xl}function oo(ii,zi,Ko,ms=!1){if(Te=void 0,Ze=void 0,Tt=void 0,Ko){const fo=ii[0];if(yt(nr)||!t$(n,yr,fo,ms))return;if(A5(n,yr,fo,zi,0,!1,void 0)){Te=[fo];return}return fo}for(let fo=0;fo0),dR(n),p||a.length===1||a.some(b=>!!b.typeParameters)?vmt(n,a,c,m):gmt(a)}function gmt(n){const a=Ui(n,U=>U.thisParameter);let c;a.length&&(c=F6e(a,a.map(R5)));const{min:p,max:m}=sre(n,ymt),b=[];for(let U=0;Uau(Q)?ULE(Q,U))))}const I=Ui(n,U=>au(U)?Ba(U.parameters):void 0);let w=128;if(I.length!==0){const U=Yd(pi(Ui(n,ZOe),2));b.push(z6e(I,U)),w|=1}return n.some(b1e)&&(w|=2),y_(n[0].declaration,void 0,c,b,Ma(n.map(fs)),void 0,p,w)}function ymt(n){const a=n.parameters.length;return au(n)?a-1:a}function F6e(n,a){return z6e(n,pi(a,2))}function z6e(n,a){return DA($a(n),a)}function vmt(n,a,c,p){const m=Smt(a,at===void 0?c.length:at),b=a[m],{typeParameters:I}=b;if(!I)return b;const w=x6e(n)?n.typeArguments:void 0,U=w?UX(b,bmt(w,I,Ir(n))):Tmt(n,I,b,c,p);return a[m]=U,U}function bmt(n,a,c){const p=n.map(uR);for(;p.length>a.length;)p.pop();for(;p.length=a)return m;I>p&&(p=I,c=m)}return c}function Emt(n,a,c){if(n.expression.kind===108){const U=zY(n.expression);if(wr(U)){for(const H of n.arguments)_o(H);return ur}if(!pr(U)){const H=lh(hd(n));if(H){const Q=Bg(U,H.typeArguments,H);return $C(n,Q,a,c,0)}}return wA(n)}let p,m=_o(n.expression);if(qE(n)){const U=kW(m,n.expression);p=U===m?0:NN(n)?16:8,m=U}else p=0;if(m=p6e(m,n.expression,Gft),m===wt)return Fn;const b=Ru(m);if(pr(b))return Ph(n);const I=na(b,0),w=na(b,1).length;if(I5(m,b,I.length,w))return!pr(m)&&n.typeArguments&&Qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),wA(n);if(!I.length){if(w)Qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ar(m));else{let U;if(n.arguments.length===1){const H=Wn(n).text;Zd(H.charCodeAt(La(H,n.expression.end,!0)-1))&&(U=Ar(n.expression,f.Are_you_missing_a_semicolon))}gge(n.expression,b,0,U)}return Ph(n)}return c&8&&!n.typeArguments&&I.some(Amt)?(E4e(n,c),Dr):I.some(U=>Ir(U.declaration)&&!!x9(U.declaration))?(Qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,ar(m)),Ph(n)):$C(n,I,a,c,p)}function Amt(n){return!!(n.typeParameters&&cye(fs(n)))}function I5(n,a,c,p){return wr(n)||wr(a)&&!!(n.flags&262144)||!c&&!p&&!(a.flags&1048576)&&!(Pm(a).flags&131072)&&aa(n,er)}function Imt(n,a,c){let p=YC(n.expression);if(p===wt)return Fn;if(p=Ru(p),pr(p))return Ph(n);if(wr(p))return n.typeArguments&&Qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),wA(n);const m=na(p,1);if(m.length){if(!xmt(n,m[0]))return Ph(n);if(B6e(m,w=>!!(w.flags&4)))return Qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Ph(n);const I=p.symbol&&cy(p.symbol);return I&&di(I,64)?(Qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Ph(n)):$C(n,m,a,c,0)}const b=na(p,0);if(b.length){const I=$C(n,b,a,c,0);return ve||(I.declaration&&!E_(I.declaration)&&fs(I)!==In&&Qe(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),q0(I)===In&&Qe(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),I}return gge(n.expression,p,1),Ph(n)}function B6e(n,a){return Mo(n)?yt(n,c=>B6e(c,a)):n.compositeKind===1048576?yt(n.compositeSignatures,a):a(n)}function _ge(n,a){const c=Zm(a);if(!et(c))return!1;const p=c[0];if(p.flags&2097152){const m=p.types,b=LOe(m);let I=0;for(const w of p.types){if(!b[I]&&Hr(w)&3&&(w.symbol===n||_ge(n,w)))return!0;I++}return!1}return p.symbol===n?!0:_ge(n,p)}function xmt(n,a){if(!a||!a.declaration)return!0;const c=a.declaration,p=TI(c,6);if(!p||c.kind!==177)return!0;const m=cy(c.parent.symbol),b=qs(c.parent.symbol);if(!aye(n,m)){const I=hd(n);if(I&&p&4){const w=uR(I);if(_ge(c.parent.symbol,w))return!0}return p&2&&Qe(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ar(b)),p&4&&Qe(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ar(b)),!1}return!0}function G6e(n,a,c){let p;const m=c===0,b=cR(a),I=b&&na(b,c).length>0;if(a.flags&1048576){const U=a.types;let H=!1;for(const Q of U)if(na(Q,c).length!==0){if(H=!0,p)break}else if(p||(p=qo(p,m?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,ar(Q)),p=qo(p,m?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,ar(a))),H)break;H||(p=qo(void 0,m?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,ar(a))),p||(p=qo(p,m?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,ar(a)))}else p=qo(p,m?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,ar(a));let w=m?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(Zo(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:U}=Vr(n);U&&U.flags&32768&&(w=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:qo(p,w),relatedMessage:I?f.Did_you_forget_to_use_await:void 0}}function gge(n,a,c,p){const{messageChain:m,relatedMessage:b}=G6e(n,a,c),I=hg(Wn(n),n,m);if(b&&pa(I,Ar(n,b)),Zo(n.parent)){const{start:w,length:U}=O6e(n.parent);I.start=w,I.length=U}ns.add(I),V6e(a,c,p?pa(I,p):I)}function V6e(n,a,c){if(!n.symbol)return;const p=Jr(n.symbol).originatingImport;if(p&&!Qu(p)){const m=na(_r(Jr(n.symbol).target),a);if(!m||!m.length)return;pa(c,Ar(p,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 Rmt(n,a,c){const p=_o(n.tag),m=Ru(p);if(pr(m))return Ph(n);const b=na(m,0),I=na(m,1).length;if(I5(p,m,b.length,I))return wA(n);if(!b.length){if(Cd(n.parent)){const w=Ar(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 ns.add(w),Ph(n)}return gge(n.tag,m,0),Ph(n)}return $C(n,b,a,c,0)}function Dmt(n){switch(n.parent.kind){case 264:case 232:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 170:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 173:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 175:case 178:case 179:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return C.fail()}}function Cmt(n,a,c){const p=_o(n.expression),m=Ru(p);if(pr(m))return Ph(n);const b=na(m,0),I=na(m,1).length;if(I5(p,m,b.length,I))return wA(n);if(Pmt(n,b)&&!wu(n.expression)){const U=Al(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,U),Ph(n)}const w=Dmt(n);if(!b.length){const U=G6e(n.expression,m,0),H=qo(U.messageChain,w),Q=hg(Wn(n.expression),n.expression,H);return U.relatedMessage&&pa(Q,Ar(n.expression,U.relatedMessage)),ns.add(Q),V6e(m,0,Q),Ph(n)}return $C(n,b,a,c,0,w)}function i$(n,a){const c=kA(n),p=c&&qp(c),m=p&&Sd(p,_f.Element,788968),b=m&&be.symbolToEntityName(m,788968,n),I=L.createFunctionTypeNode(void 0,[L.createParameterDeclaration(void 0,void 0,"props",void 0,be.typeToTypeNode(a,n))],b?L.createTypeReferenceNode(b,void 0):L.createKeywordTypeNode(133)),w=ja(1,"props");return w.links.type=a,y_(I,void 0,void 0,[w],m?qs(m):nt,void 0,1,0)}function j6e(n){const a=Vr(Wn(n));if(a.jsxFragmentType!==void 0)return a.jsxFragmentType;const c=qm(n);if(!((O.jsx===2||O.jsxFragmentFactory!==void 0)&&c!=="null"))return a.jsxFragmentType=Ue;const m=O.jsx!==1&&O.jsx!==3,b=ns?f.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,I=XY(n)??_t(n,c,m?111551:111167,b,!0);if(I===void 0)return a.jsxFragmentType=nt;if(I.escapedName===AU.Fragment)return a.jsxFragmentType=_r(I);const w=I.flags&2097152?ud(I):I,U=I&&qp(w),H=U&&Sd(U,AU.Fragment,2),Q=H&&_r(H);return a.jsxFragmentType=Q===void 0?nt:Q}function Nmt(n,a,c){const p=jm(n);let m;if(p)m=j6e(n);else{if(lR(n.tagName)){const w=a6e(n),U=i$(n,w);return CE(ZC(n.attributes,UY(U,n),void 0,0),w,n.tagName,n.attributes),et(n.typeArguments)&&(Ye(n.typeArguments,wa),ns.add(HR(Wn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,et(n.typeArguments)))),U}m=_o(n.tagName)}const b=Ru(m);if(pr(b))return Ph(n);const I=i6e(m,n);return I5(m,b,I.length,0)?wA(n):I.length===0?(p?Qe(n,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Al(n)):Qe(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Al(n.tagName)),Ph(n)):$C(n,I,a,c,0)}function Mmt(n,a,c){const p=_o(n.right);if(!wr(p)){const m=Lge(p);if(m){const b=Ru(m);if(pr(b))return Ph(n);const I=na(b,0),w=na(b,1);if(I5(m,b,I.length,w.length))return wA(n);if(I.length)return $C(n,I,a,c,0)}else if(!(N$(p)||DE(p,er)))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),Ph(n)}return ur}function Pmt(n,a){return a.length&&Vn(a,c=>c.minArgumentCount===0&&!au(c)&&c.parameters.length1?jl(n.arguments[1]):void 0;for(let b=2;b{const I=$p(m);dY(b,I)||b8e(m,b,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 Gmt(n){const a=_o(n.expression),c=kW(a,n.expression);return SY(By(c),n,c!==a)}function Vmt(n){return n.flags&64?Gmt(n):By(_o(n.expression))}function Y6e(n){if(V3e(n),Ye(n.typeArguments,wa),n.kind===234){const c=zm(n.parent);c.kind===227&&c.operatorToken.kind===104&&IS(n,c.right)&&Qe(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===234?_o(n.expression):Tb(n.exprName)?m5(n.exprName):_o(n.exprName);return $6e(a,n)}function $6e(n,a){const c=a.typeArguments;if(n===wt||pr(n)||!yt(c))return n;const p=Vr(a);if(p.instantiationExpressionTypes||(p.instantiationExpressionTypes=new Map),p.instantiationExpressionTypes.has(n.id))return p.instantiationExpressionTypes.get(n.id);let m=!1,b;const I=U(n);p.instantiationExpressionTypes.set(n.id,I);const w=m?b:n;return w&&ns.add(HR(Wn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,ar(w))),I;function U(Q){let Ie=!1,Te=!1;const Ze=Tt(Q);return m||(m=Te),Ie&&!Te&&(b??(b=Q)),Ze;function Tt(Dt){if(Dt.flags&524288){const $t=Dh(Dt),Tn=H($t.callSignatures),nr=H($t.constructSignatures);if(Ie||(Ie=$t.callSignatures.length!==0||$t.constructSignatures.length!==0),Te||(Te=Tn.length!==0||nr.length!==0),Tn!==$t.callSignatures||nr!==$t.constructSignatures){const yr=bl(ja(0,"__instantiationExpression"),$t.members,Tn,nr,$t.indexInfos);return yr.objectFlags|=8388608,yr.node=a,yr}}else if(Dt.flags&58982400){const $t=Ld(Dt);if($t){const Tn=Tt($t);if(Tn!==$t)return Tn}}else{if(Dt.flags&1048576)return Tl(Dt,U);if(Dt.flags&2097152)return Ma(Zi(Dt.types,Tt))}return Dt}}function H(Q){const Ie=Un(Q,Te=>!!Te.typeParameters&&pge(Te,c));return Zi(Ie,Te=>{const Ze=hge(Te,c,!0);return Ze?SW(Te,Ze,Ir(Te.declaration)):Te})}}function jmt(n){return wa(n.type),Tge(n.expression,n.type)}function Tge(n,a,c){const p=_o(n,c),m=Ji(a);if(pr(m))return m;const b=Dn(a.parent,I=>I.kind===239||I.kind===351);return CE(p,m,b,n,f.Type_0_does_not_satisfy_the_expected_type_1),p}function Umt(n){return Kvt(n),n.keywordToken===105?Sge(n):n.keywordToken===102?n.name.escapedText==="defer"?(C.assert(!Zo(n.parent)||n.parent.expression!==n,"Trying to get the type of `import.defer` in `import.defer(...)`"),nt):Hmt(n):C.assertNever(n.keywordToken)}function Q6e(n){switch(n.keywordToken){case 102:return _We();case 105:const a=Sge(n);return pr(a)?nt:lht(a);default:C.assertNever(n.keywordToken)}}function Sge(n){const a=Bte(n);if(a)if(a.kind===177){const c=Wr(a.parent);return _r(c)}else{const c=Wr(a);return _r(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"),nt}function Hmt(n){100<=j&&j<=199?Wn(n).impliedNodeFormat!==99&&Qe(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):j<6&&j!==4&&Qe(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext);const a=Wn(n);return C.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?hWe():nt}function R5(n){const a=n.valueDeclaration;return uu(_r(n),!1,!!a&&(Qy(a)||PI(a)))}function Ege(n,a,c){switch(n.name.kind){case 80:{const p=n.name.escapedText;return n.dotDotDotToken?c&12?p:`${p}_${a}`:c&3?p:`${p}_n`}case 208:{if(n.dotDotDotToken){const p=n.name.elements,m=ni(Zs(p),Ha),b=p.length-(m?.dotDotDotToken?1:0);if(a=p-1)return a===p-1?b:Yd(Xp(b,Bt));const I=[],w=[],U=[];for(let H=a;H!(U&1)),w=I<0?b.target.fixedLength:I;w>0&&(m=n.parameters.length-1+w)}}if(m===void 0){if(!c&&n.flags&32)return 0;m=n.minArgumentCount}if(p)return m;for(let b=m-1;b>=0;b--){const I=Lh(n,b);if(Ac(I,R6e).flags&131072)break;m=b}n.resolvedMinArgumentCount=m}return n.resolvedMinArgumentCount}function ng(n){if(au(n)){const a=_r(n.parameters[n.parameters.length-1]);return!Ka(a)||!!(a.target.combinedFlags&12)}return!1}function XW(n){if(au(n)){const a=_r(n.parameters[n.parameters.length-1]);if(!Ka(a))return wr(a)?bd:a;if(a.target.combinedFlags&12)return SL(a,a.target.fixedLength)}}function YW(n){const a=XW(n);return a&&!im(a)&&!wr(a)?a:void 0}function Ige(n){return xge(n,yn)}function xge(n,a){return n.parameters.length>0?Lh(n,0):a}function n4e(n,a,c){const p=n.parameters.length-(au(n)?1:0);for(let b=0;b=0);const b=Pl(p.parent)?_r(Wr(p.parent.parent)):N3e(p.parent),I=Pl(p.parent)?he:M3e(p.parent),w=Ch(m),U=Ef("target",b),H=Ef("propertyKey",I),Q=Ef("parameterIndex",w);c.decoratorSignature=r8(void 0,void 0,[U,H,Q],In);break}case 175:case 178:case 179:case 173:{const p=a;if(!ui(p.parent))break;const m=N3e(p),b=Ef("target",m),I=M3e(p),w=Ef("propertyKey",I),U=Po(p)?In:IWe(uR(p));if(!Po(a)||Kh(a)){const Q=IWe(uR(p)),Ie=Ef("descriptor",Q);c.decoratorSignature=r8(void 0,void 0,[b,w,Ie],pi([U,In]))}else c.decoratorSignature=r8(void 0,void 0,[b,w],pi([U,In]));break}}return c.decoratorSignature===ur?void 0:c.decoratorSignature}function Dge(n){return J?sht(n):aht(n)}function N5(n){const a=zz(!0);return a!==Zt?(n=jy(OL(n))||Nt,Ly(a,[n])):Nt}function o4e(n){const a=bWe(!0);return a!==Zt?(n=jy(OL(n))||Nt,Ly(a,[n])):Nt}function M5(n,a){const c=N5(a);return c===Nt?(Qe(n,Qu(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),nt):(bhe(!0)||Qe(n,Qu(n)?f.A_dynamic_import_call_in_ES5_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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function lht(n){const a=ja(0,"NewTargetExpression"),c=ja(4,"target",8);c.parent=a,c.links.type=n;const p=da([c]);return a.members=p,bl(a,p,ae,ae,ae)}function s$(n,a){if(!n.body)return nt;const c=dc(n),p=(c&2)!==0,m=(c&1)!==0;let b,I,w,U=In;if(n.body.kind!==242)b=jl(n.body,a&&a&-9),p&&(b=OL(W5(b,!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(m){const H=c4e(n,a);H?H.length>0&&(b=pi(H,2)):U=yn;const{yieldTypes:Q,nextTypes:Ie}=cht(n,a);I=yt(Q)?pi(Q,2):void 0,w=yt(Ie)?Ma(Ie):void 0}else{const H=c4e(n,a);if(!H)return c&2?M5(n,yn):yn;if(H.length===0){const Q=BY(n,void 0),Ie=Q&&(j5(Q,c)||In).flags&32768?he:In;return c&2?M5(n,Ie):Ie}b=pi(H,2)}if(b||I||w){if(I&&xY(n,I,3),b&&xY(n,b,1),w&&xY(n,w,2),b&&Nh(b)||I&&Nh(I)||w&&Nh(w)){const H=HY(n),Q=H?H===Df(n)?m?void 0:b:VY(fs(H),n,void 0):void 0;m?(I=c_e(I,Q,0,p),b=c_e(b,Q,1,p),w=c_e(w,Q,2,p)):b=nut(b,Q,p)}I&&(I=$p(I)),b&&(b=$p(b)),w&&(w=$p(w))}return m?l$(I||yn,b||U,w||BFe(2,n)||Nt,p):p?N5(b||U):b||U}function l$(n,a,c,p){const m=p?mc:Hs,b=m.getGlobalGeneratorType(!1);if(n=m.resolveIterationType(n,void 0)||Nt,a=m.resolveIterationType(a,void 0)||Nt,b===Zt){const I=m.getGlobalIterableIteratorType(!1);return I!==Zt?TL(I,[n,a,c]):(m.getGlobalIterableIteratorType(!0),Ra)}return TL(b,[n,a,c])}function cht(n,a){const c=[],p=[],m=(dc(n)&2)!==0;return Nte(n.body,b=>{const I=b.expression?_o(b.expression,a):B;kf(c,a4e(b,I,Ue,m));let w;if(b.asteriskToken){const U=b$(I,m?19:17,b.expression);w=U&&U.nextType}else w=Uu(b,void 0);w&&kf(p,w)}),{yieldTypes:c,nextTypes:p}}function a4e(n,a,c,p){if(a===wt)return wt;const m=n.expression||n,b=n.asteriskToken?Uv(p?19:17,a,c,m):a;return p?cR(b,m,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):b}function s4e(n,a,c){let p=0;for(let m=0;m=a?c[m]:void 0;p|=b!==void 0?joe.get(b)||32768:0}return p}function l4e(n){const a=Vr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=dht(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function dht(n){if(n.expression.kind===222){const p=uFe(n);if(!p)return!1;const m=v_(jl(n.expression.expression)),b=s4e(0,0,p);return m.flags&3?(556800&b)===556800:!am(m,I=>qC(I,b)===b)}const a=v_(jl(n.expression));if(!LW(a))return!1;const c=MY(n);return!c.length||yt(c,Zdt)?!1:$ut(Tl(a,Du),c)}function Cge(n){return n.endFlowNode&&u5(n.endFlowNode)}function c4e(n,a){const c=dc(n),p=[];let m=Cge(n),b=!1;if(gb(n.body,I=>{let w=I.expression;if(w){if(w=us(w,!0),c&2&&w.kind===224&&(w=us(w.expression,!0)),w.kind===214&&w.expression.kind===80&&jl(w.expression).symbol===os(n.symbol)&&(!Ib(n.symbol.valueDeclaration)||k_e(w.expression))){b=!0;return}let U=jl(w,a&&a&-9);c&2&&(U=OL(W5(U,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),U.flags&131072&&(b=!0),kf(p,U)}else m=!0}),!(p.length===0&&!m&&(b||uht(n))))return ie&&p.length&&m&&!(E_(n)&&p.some(I=>I.symbol===n.symbol))&&kf(p,he),p}function uht(n){switch(n.kind){case 219:case 220:return!0;case 175:return n.parent.kind===211;default:return!1}}function pht(n){switch(n.kind){case 177:case 178:case 179:return}if(dc(n)!==0)return;let c;if(n.body&&n.body.kind!==242)c=n.body;else if(gb(n.body,m=>{if(c||!m.expression)return!0;c=m.expression})||!c||Cge(n))return;return fht(n,c)}function fht(n,a){if(a=us(a,!0),!!(jl(a).flags&16))return Ye(n.parameters,(p,m)=>{const b=_r(p.symbol);if(!b||b.flags&16||!He(p.name)||BW(p.symbol)||C_(p))return;const I=mht(n,a,p,b);if(I)return TW(1,Gi(p.name.escapedText),m,I)})}function mht(n,a,c,p){const m=ZR(a)&&a.flowNode||a.parent.kind===254&&a.parent.flowNode||F_(2,void 0,void 0),b=F_(32,a,m),I=Vy(c.name,p,p,n,b);if(I===p)return;const w=F_(64,a,m);return Pm(Vy(c.name,p,I,n,w)).flags&131072?I:void 0}function Nge(n,a){r(c);return;function c(){const p=dc(n),m=a&&j5(a,p);if(m&&(nc(m,16384)||m.flags&32769)||n.kind===174||Wl(n.body)||n.body.kind!==242||!Cge(n))return;const b=n.flags&1024,I=kp(n)||n;if(m&&m.flags&131072)Qe(I,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(m&&!b)Qe(I,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(m&&ie&&!aa(he,m))Qe(I,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(O.noImplicitReturns){if(!m){if(!b)return;const w=fs(Df(n));if(r3e(n,w))return}Qe(I,f.Not_all_code_paths_return_a_value)}}}function d4e(n,a){if(C.assert(n.kind!==175||mm(n)),dR(n),Us(n)&&WL(n,n.name),a&&a&4&&Cf(n)){if(!kp(n)&&!B6(n)){const p=jW(n);if(p&&mT(fs(p))){const m=Vr(n);if(m.contextFreeType)return m.contextFreeType;const b=s$(n,a),I=y_(void 0,void 0,void 0,ae,b,void 0,0,64),w=bl(n.symbol,k,[I],ae,ae);return w.objectFlags|=262144,m.contextFreeType=w}}return As}return!k$(n)&&n.kind===219&&mye(n),hht(n,a),_r(Wr(n))}function hht(n,a){const c=Vr(n);if(!(c.flags&64)){const p=jW(n);if(!(c.flags&64)){c.flags|=64;const m=Ic(na(_r(Wr(n)),0));if(!m)return;if(Cf(n))if(p){const b=ME(n);let I;if(a&&a&2){n4e(m,p,b);const w=XW(p);w&&w.flags&262144&&(I=xA(p,b.nonFixingMapper))}I||(I=b?xA(p,b.mapper):p),Kmt(m,I)}else Xmt(m);else if(p&&!n.typeParameters&&p.parameters.length>n.parameters.length){const b=ME(n);a&&a&2&&n4e(m,p,b)}if(p&&!zC(n)&&!m.resolvedReturnType){const b=s$(n,a);m.resolvedReturnType||(m.resolvedReturnType=b)}ZW(n)}}}function _ht(n){C.assert(n.kind!==175||mm(n));const a=dc(n),c=zC(n);if(Nge(n,c),n.body)if(kp(n)||fs(Df(n)),n.body.kind===242)wa(n.body);else{const p=_o(n.body),m=c&&j5(c,a);m&&T$(n,m,n.body,n.body,p)}}function c$(n,a,c,p=!1){if(!aa(a,ra)){const m=p&&wL(a);return Av(n,!!m&&aa(m,ra),c),!1}return!0}function ght(n){if(!Zo(n)||!r1(n))return!1;const a=jl(n.arguments[2]);if(_n(a,"value")){const m=Ea(a,"writable"),b=m&&_r(m);if(!b||b===tr||b===Jn)return!0;if(m&&m.valueDeclaration&&Nc(m.valueDeclaration)){const I=m.valueDeclaration.initializer,w=_o(I);if(w===tr||w===Jn)return!0}return!1}return!Ea(a,"set")}function wh(n){return!!(Fl(n)&8||n.flags&4&&Vf(n)&8||n.flags&3&&Z_e(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||yt(n.declarations,ght))}function u4e(n,a,c){var p,m;if(c===0)return!1;if(wh(a)){if(a.flags&4&&Ks(n)&&n.expression.kind===110){const b=NL(n);if(!(b&&(b.kind===177||E_(b))))return!0;if(a.valueDeclaration){const I=Nr(a.valueDeclaration),w=b.parent===a.valueDeclaration.parent,U=b===a.valueDeclaration.parent,H=I&&((p=a.parent)==null?void 0:p.valueDeclaration)===b.parent,Q=I&&((m=a.parent)==null?void 0:m.valueDeclaration)===b;return!(w||U||H||Q)}}return!0}if(Ks(n)){const b=us(n.expression);if(b.kind===80){const I=Vr(b).resolvedSymbol;if(I.flags&2097152){const w=cp(I);return!!w&&w.kind===275}}}return!1}function $W(n,a,c){const p=Hl(n,39);return p.kind!==80&&!Ks(p)?(Qe(n,a),!1):p.flags&64?(Qe(n,c),!1):!0}function yht(n){_o(n.expression);const a=us(n.expression);if(!Ks(a))return Qe(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),jt;qr(a)&&eo(a.name)&&Qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=Vr(a),p=Et(c.resolvedSymbol);return p&&(wh(p)?Qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):vht(a,p)),jt}function vht(n,a){const c=_r(a);ie&&!(c.flags&131075)&&!(Ce?a.flags&16777216:Mh(c,16777216))&&Qe(n,f.The_operand_of_a_delete_operator_must_be_optional)}function bht(n){return _o(n.expression),EC}function Tht(n){return dR(n),B}function p4e(n){let a=!1;const c=wF(n);if(c&&Zl(c)){const p=Nb(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,p),a=!0}else if(!(n.flags&65536))if(WF(n)){const p=Wn(n);if(!gT(p)){let m;if(!UR(p,O)){m??(m=jh(p,n.pos));const b=Nb(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,I=Wc(p,m.start,m.length,b);ns.add(I),a=!0}switch(j){case 100:case 101:case 102:case 199:if(p.impliedNodeFormat===1){m??(m=jh(p,n.pos)),ns.add(Wc(p,m.start,m.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(G>=4)break;default:m??(m=jh(p,n.pos));const b=Nb(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_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_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;ns.add(Wc(p,m.start,m.length,b)),a=!0;break}}}else{const p=Wn(n);if(!gT(p)){const m=jh(p,n.pos),b=Nb(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,I=Wc(p,m.start,m.length,b);if(c&&c.kind!==177&&!(dc(c)&2)){const w=Ar(c,f.Did_you_mean_to_mark_this_function_as_async);pa(I,w)}ns.add(I),a=!0}}return Nb(n)&&U_e(n)&&(Qe(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function Sht(n){r(()=>p4e(n));const a=_o(n.expression),c=W5(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&&!pr(c)&&!(a.flags&3)&&Pg(!1,Ar(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function Eht(n){const a=_o(n.operand);if(a===wt)return wt;switch(n.operand.kind){case 9:switch(n.operator){case 41:return nR(Ch(-n.operand.text));case 40:return nR(Ch(+n.operand.text))}break;case 10:if(n.operator===41)return nR(Hz({negative:!0,base10Value:AM(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return S_(a,n.operand),P5(a,12288)&&Qe(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,_a(n.operator)),n.operator===40?(P5(a,2112)&&Qe(n.operand,f.Operator_0_cannot_be_applied_to_type_1,_a(n.operator),ar(zy(a))),Bt):Mge(a);case 54:Jge(a,n.operand);const c=qC(a,12582912);return c===4194304?tr:c===8388608?ft:jt;case 46:case 47:return c$(n.operand,S_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&$W(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),Mge(a)}return nt}function Aht(n){const a=_o(n.operand);return a===wt?wt:(c$(n.operand,S_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&$W(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),Mge(a))}function Mge(n){return nc(n,2112)?kd(n,3)||nc(n,296)?ra:gr:Bt}function P5(n,a){if(nc(n,a))return!0;const c=v_(n);return!!c&&nc(c,a)}function nc(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const c=n.types;for(const p of c)if(nc(p,a))return!0}return!1}function kd(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&aa(n,Bt)||!!(a&2112)&&aa(n,gr)||!!(a&402653316)&&aa(n,gt)||!!(a&528)&&aa(n,jt)||!!(a&16384)&&aa(n,In)||!!(a&131072)&&aa(n,yn)||!!(a&65536)&&aa(n,Xt)||!!(a&32768)&&aa(n,he)||!!(a&4096)&&aa(n,Qt)||!!(a&67108864)&&aa(n,Ln)}function QW(n,a,c){return n.flags&1048576?Vn(n.types,p=>QW(p,a,c)):kd(n,a,c)}function d$(n){return!!(Hr(n)&16)&&!!n.symbol&&Pge(n.symbol)}function Pge(n){return(n.flags&128)!==0}function Lge(n){const a=Z4e("hasInstance");if(QW(n,67108864)){const c=Ea(n,a);if(c){const p=_r(c);if(p&&na(p,0).length!==0)return p}}}function Iht(n,a,c,p,m){if(c===wt||p===wt)return wt;!wr(c)&&QW(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),C.assert(f6(n.parent));const b=QC(n.parent,void 0,m);if(b===Dr)return wt;const I=fs(b);return $d(I,jt,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),jt}function xht(n){return am(n,a=>a===is||!!(a.flags&2097152)&&tg(v_(a)))}function Rht(n,a,c,p){if(c===wt||p===wt)return wt;if(eo(n)){if((GSL(H,c)):Yd(p);return WA(w,U,m)}}}}function WA(n,a,c,p){let m;if(n.kind===305){const b=n;b.objectAssignmentInitializer&&(ie&&!Mh(_o(b.objectAssignmentInitializer),16777216)&&(a=om(a,524288)),Oht(b.name,b.equalsToken,b.objectAssignmentInitializer,c)),m=n.name}else m=n;return m.kind===227&&m.operatorToken.kind===64&&(Se(m,c),m=m.left,ie&&(a=om(a,524288))),m.kind===211?Dht(m,a,p):m.kind===210?Cht(m,a,c):Nht(m,a,c)}function Nht(n,a,c){const p=_o(n,c),m=n.parent.kind===306?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,b=n.parent.kind===306?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 $W(n,m,b)&&CE(a,p,n,n),FR(n)&&$c(n.parent,1048576),a}function L5(n){switch(n=us(n),n.kind){case 80:case 11:case 14:case 216:case 229:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 219:case 232:case 220:case 210:case 211:case 222:case 236:case 286:case 285:return!0;case 228:return L5(n.whenTrue)&&L5(n.whenFalse);case 227:return sy(n.operatorToken.kind)?!1:L5(n.left)&&L5(n.right);case 225:case 226:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 223:case 217:case 235:default:return!1}}function kge(n,a){return(a.flags&98304)!==0||dY(n,a)}function Mht(){const n=S4(a,c,p,m,b,I);return(Te,Ze)=>{const Tt=n(Te,Ze);return C.assertIsDefined(Tt),Tt};function a(Te,Ze,Tt){return Ze?(Ze.stackIndex++,Ze.skip=!1,H(Ze,void 0),Ie(Ze,void 0)):Ze={checkMode:Tt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Ir(Te)&&fI(Te)?(Ze.skip=!0,Ie(Ze,_o(Te.right,Tt)),Ze):(Pht(Te),Te.operatorToken.kind===64&&(Te.left.kind===211||Te.left.kind===210)&&(Ze.skip=!0,Ie(Ze,WA(Te.left,_o(Te.right,Tt),Tt,Te.right.kind===110))),Ze)}function c(Te,Ze,Tt){if(!Ze.skip)return w(Ze,Te)}function p(Te,Ze,Tt){if(!Ze.skip){const Dt=Q(Ze);C.assertIsDefined(Dt),H(Ze,Dt),Ie(Ze,void 0);const $t=Te.kind;if(u6($t)){let Tn=Tt.parent;for(;Tn.kind===218||xk(Tn);)Tn=Tn.parent;($t===56||YT(Tn))&&qge(Tt.left,Dt,YT(Tn)?Tn.thenStatement:void 0),Ik($t)&&Jge(Dt,Tt.left)}}}function m(Te,Ze,Tt){if(!Ze.skip)return w(Ze,Te)}function b(Te,Ze){let Tt;if(Ze.skip)Tt=Q(Ze);else{const Dt=U(Ze);C.assertIsDefined(Dt);const $t=Q(Ze);C.assertIsDefined($t),Tt=h4e(Te.left,Te.operatorToken,Te.right,Dt,$t,Ze.checkMode,Te)}return Ze.skip=!1,H(Ze,void 0),Ie(Ze,void 0),Ze.stackIndex--,Tt}function I(Te,Ze,Tt){return Ie(Te,Ze),Te}function w(Te,Ze){if(Nr(Ze))return Ze;Ie(Te,_o(Ze,Te.checkMode))}function U(Te){return Te.typeStack[Te.stackIndex]}function H(Te,Ze){Te.typeStack[Te.stackIndex]=Ze}function Q(Te){return Te.typeStack[Te.stackIndex+1]}function Ie(Te,Ze){Te.typeStack[Te.stackIndex+1]=Ze}}function Pht(n){if(n.operatorToken.kind===61){if(Nr(n.parent)){const{left:a,operatorToken:c}=n.parent;Nr(a)&&c.kind===57&&Cn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(61),_a(c.kind))}else if(Nr(n.left)){const{operatorToken:a}=n.left;(a.kind===57||a.kind===56)&&Cn(n.left,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(a.kind),_a(61))}else if(Nr(n.right)){const{operatorToken:a}=n.right;a.kind===56&&Cn(n.right,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(61),_a(a.kind))}Lht(n),kht(n)}}function Lht(n){const a=Hl(n.left,63),c=k5(a);c!==3&&(c===1?Qe(a,f.This_expression_is_always_nullish):Qe(a,f.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}function kht(n){const a=Hl(n.right,63),c=k5(a);wht(n)||(c===1?Qe(a,f.This_expression_is_always_nullish):c===2&&Qe(a,f.This_expression_is_never_nullish))}function wht(n){return!Nr(n.parent)||n.parent.operatorToken.kind!==61}function k5(n){switch(n=Hl(n),n.kind){case 224:case 214:case 216:case 213:case 237:case 215:case 212:case 230:case 110:return 3;case 227:switch(n.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return k5(n.right)}return 2;case 228:return k5(n.whenTrue)|k5(n.whenFalse);case 106:return 1;case 80:return pu(n)===ce?1:3}return 2}function Oht(n,a,c,p,m){const b=a.kind;if(b===64&&(n.kind===211||n.kind===210))return WA(n,_o(c,p),p,c.kind===110);let I;Ik(b)?I=s8(n,p):I=_o(n,p);const w=_o(c,p);return h4e(n,a,c,I,w,p,m)}function h4e(n,a,c,p,m,b,I){const w=a.kind;switch(w){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(p===wt||m===wt)return wt;p=S_(p,n),m=S_(m,c);let Sn;if(p.flags&528&&m.flags&528&&(Sn=Te(a.kind))!==void 0)return Qe(I||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,_a(a.kind),_a(Sn)),Bt;{const fi=c$(n,p,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),oo=c$(c,m,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let ii;if(kd(p,3)&&kd(m,3)||!(nc(p,2112)||nc(m,2112)))ii=Bt;else if(U(p,m)){switch(w){case 50:case 73:$t();break;case 43:case 68:G<3&&Qe(I,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}ii=gr}else $t(U),ii=nt;if(fi&&oo)switch(Ze(ii),w){case 48:case 71:case 49:case 72:case 50:case 73:const zi=Be(c);typeof zi.value=="number"&&Math.abs(zi.value)>=32&&Jm(py(zm(c.parent.parent)),I||a,f.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Al(n),_a(w),zi.value%32);break}return ii}case 40:case 65:if(p===wt||m===wt)return wt;!kd(p,402653316)&&!kd(m,402653316)&&(p=S_(p,n),m=S_(m,c));let vn;return kd(p,296,!0)&&kd(m,296,!0)?vn=Bt:kd(p,2112,!0)&&kd(m,2112,!0)?vn=gr:kd(p,402653316,!0)||kd(m,402653316,!0)?vn=gt:(wr(p)||wr(m))&&(vn=pr(p)||pr(m)?nt:Ue),vn&&!Ie(w)?vn:vn?(w===65&&Ze(vn),vn):($t((oo,ii)=>kd(oo,402655727)&&kd(ii,402655727)),Ue);case 30:case 32:case 33:case 34:return Ie(w)&&(p=s_e(S_(p,n)),m=s_e(S_(m,c)),Dt((fi,oo)=>{if(wr(fi)||wr(oo))return!0;const ii=aa(fi,ra),zi=aa(oo,ra);return ii&&zi||!ii&&!zi&&Xz(fi,oo)})),jt;case 35:case 36:case 37:case 38:if(!(b&&b&64)){if((k9(n)||k9(c))&&(!Ir(n)||w===37||w===38)){const fi=w===35||w===37;Qe(I,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,fi?"false":"true")}nr(I,w,n,c),Dt((fi,oo)=>kge(fi,oo)||kge(oo,fi))}return jt;case 104:return Iht(n,c,p,m,b);case 103:return Rht(n,c,p,m);case 56:case 77:{const fi=Mh(p,4194304)?pi([out(ie?p:zy(m)),m]):p;return w===77&&Ze(m),fi}case 57:case 76:{const fi=Mh(p,8388608)?pi([By(W8e(p)),m],2):p;return w===76&&Ze(m),fi}case 61:case 78:{const fi=Mh(p,262144)?pi([By(p),m],2):p;return w===78&&Ze(m),fi}case 64:const Sr=Nr(n.parent)?ac(n.parent):0;return H(Sr,m),Tt(Sr)?((!(m.flags&524288)||Sr!==2&&Sr!==6&&!Fy(m)&&!D_e(m)&&!(Hr(m)&1))&&Ze(m),p):(Ze(m),m);case 28:if(!O.allowUnreachableCode&&L5(n)&&!Q(n.parent)){const fi=Wn(n),oo=fi.text,ii=La(oo,n.pos);fi.parseDiagnostics.some(Ko=>Ko.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:b9(Ko,ii))||Qe(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return m;default:return C.fail()}function U(Sn,vn){return kd(Sn,2112)&&kd(vn,2112)}function H(Sn,vn){if(Sn===2)for(const Sr of Fv(vn)){const fi=_r(Sr);if(fi.symbol&&fi.symbol.flags&32){const oo=Sr.escapedName,ii=_t(Sr.valueDeclaration,oo,788968,void 0,!1);ii?.declarations&&ii.declarations.some(I1)&&(Lg(ii,f.Duplicate_identifier_0,Gi(oo),Sr),Lg(Sr,f.Duplicate_identifier_0,Gi(oo),ii))}}}function Q(Sn){return Sn.parent.kind===218&&np(Sn.left)&&Sn.left.text==="0"&&(Zo(Sn.parent.parent)&&Sn.parent.parent.expression===Sn.parent||Sn.parent.parent.kind===216)&&(Ks(Sn.right)||He(Sn.right)&&Sn.right.escapedText==="eval")}function Ie(Sn){const vn=P5(p,12288)?n:P5(m,12288)?c:void 0;return vn?(Qe(vn,f.The_0_operator_cannot_be_applied_to_type_symbol,_a(Sn)),!1):!0}function Te(Sn){switch(Sn){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Ze(Sn){sy(w)&&r(vn);function vn(){let Sr=p;if(aP(a.kind)&&n.kind===212&&(Sr=$Y(n,void 0,!0)),$W(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 fi;if(Ce&&qr(n)&&nc(Sn,32768)){const oo=_n(wd(n.expression),n.name.escapedText);pY(Sn,oo)&&(fi=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}CE(Sn,Sr,n,c,fi)}}}function Tt(Sn){var vn;switch(Sn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Sr=If(n),fi=fI(c);return!!fi&&Wa(fi)&&!!((vn=Sr?.exports)!=null&&vn.size);default:return!1}}function Dt(Sn){return Sn(p,m)?!1:($t(Sn),!0)}function $t(Sn){let vn=!1;const Sr=I||a;if(Sn){const Ko=jy(p),ms=jy(m);vn=!(Ko===p&&ms===m)&&!!(Ko&&ms)&&Sn(Ko,ms)}let fi=p,oo=m;!vn&&Sn&&([fi,oo]=Wht(p,m,Sn));const[ii,zi]=sL(fi,oo);Tn(Sr,vn,ii,zi)||Av(Sr,vn,f.Operator_0_cannot_be_applied_to_types_1_and_2,_a(a.kind),ii,zi)}function Tn(Sn,vn,Sr,fi){switch(a.kind){case 37:case 35:case 38:case 36:return Av(Sn,vn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Sr,fi);default:return}}function nr(Sn,vn,Sr,fi){const oo=yr(us(Sr)),ii=yr(us(fi));if(oo||ii){const zi=Qe(Sn,f.This_condition_will_always_return_0,_a(vn===37||vn===35?97:112));if(oo&&ii)return;const Ko=vn===38||vn===36?_a(54):"",ms=oo?fi:Sr,fo=us(ms);pa(zi,Ar(ms,f.Did_you_mean_0,`${Ko}Number.isNaN(${Ds(fo)?Mp(fo):"..."})`))}}function yr(Sn){if(He(Sn)&&Sn.escapedText==="NaN"){const vn=dct();return!!vn&&vn===pu(Sn)}return!1}}function Wht(n,a,c){let p=n,m=a;const b=zy(n),I=zy(a);return c(b,I)||(p=b,m=I),[p,m]}function Fht(n){r(Ie);const a=df(n);if(!a)return Ue;const c=dc(a);if(!(c&1))return Ue;const p=(c&2)!==0;n.asteriskToken&&(p&&GFge(Te,c,void 0)));const b=m&&eye(m,p),I=b&&b.yieldType||Ue,w=b&&b.nextType||Ue,U=n.expression?_o(n.expression):B,H=a4e(n,U,w,p);if(m&&H&&CE(H,I,n.expression||n,n.expression),n.asteriskToken)return Yge(p?19:17,1,U,n.expression)||Ue;if(m)return Hv(2,m,p)||Ue;let Q=BFe(2,a);return Q||(Q=Ue,r(()=>{if(ve&&!fre(n)){const Te=Uu(n,void 0);(!Te||wr(Te))&&Qe(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Q;function Ie(){n.flags&16384||fd(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),U_e(n)&&Qe(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function zht(n,a){const c=s8(n.condition,a);qge(n.condition,c,n.whenTrue);const p=_o(n.whenTrue,a),m=_o(n.whenFalse,a);return pi([p,m],2)}function _4e(n){const a=n.parent;return wu(a)&&_4e(a)||Ws(a)&&a.argumentExpression===n}function Bht(n){const a=[n.head.text],c=[];for(const m of n.templateSpans){const b=_o(m.expression);P5(b,12288)&&Qe(m.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(m.literal.text),c.push(aa(b,sa)?b:gt)}const p=n.parent.kind!==216&&Be(n).value;return p?nR(Sp(p)):LL(n)||_4e(n)||am(Uu(n,void 0)||Nt,Ght)?TA(a,c):gt}function Ght(n){return!!(n.flags&134217856||n.flags&58982400&&nc(Ld(n)||Nt,402653316))}function Vht(n){return VS(n)&&!E1(n.parent)?n.parent.parent:n}function ZC(n,a,c,p){const m=Vht(n);_5(m,a,!1),Ypt(m,c);const b=_o(n,p|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const I=nc(b,2944)&&u$(b,VY(a,n,void 0))?Du(b):b;return $pt(),VW(),I}function jl(n,a){if(a)return _o(n,a);const c=Vr(n);if(!c.resolvedType){const p=Lr,m=Qi;Lr=Yn,Qi=void 0,c.resolvedType=_o(n,a),Qi=m,Lr=p}return c.resolvedType}function g4e(n){return n=us(n,!0),n.kind===217||n.kind===235||US(n)}function PL(n,a,c){const p=ok(n);if(Ir(n)){const b=j6(n);if(b)return Tge(p,b,a)}const m=Wge(p)||(c?ZC(p,c,void 0,a||0):jl(p,a));if(to(Ha(n)?UE(n):n)){if(n.name.kind===207&&jv(m))return jht(m,n.name);if(n.name.kind===208&&Ka(m))return Uht(m,n.name)}return m}function jht(n,a){let c;for(const b of a.elements)if(b.initializer){const I=y4e(b);I&&!Ea(n,I)&&(c=Bn(c,b))}if(!c)return n;const p=da();for(const b of Fv(n))p.set(b.escapedName,b);for(const b of c){const I=ja(16777220,y4e(b));I.links.type=Ih(b,!1,!1),p.set(I.escapedName,I)}const m=bl(n.symbol,p,ae,ae,Xd(n));return m.objectFlags=n.objectFlags,m}function y4e(n){const a=ky(n.propertyName||n.name);return jf(a)?Uf(a):void 0}function Uht(n,a){if(n.target.combinedFlags&12||Bv(n)>=a.elements.length)return n;const c=a.elements,p=AE(n).slice(),m=n.target.elementFlags.slice();for(let b=Bv(n);bu$(n,p))}if(a.flags&58982400){const c=Ld(a)||Nt;return nc(c,4)&&nc(n,128)||nc(c,8)&&nc(n,256)||nc(c,64)&&nc(n,2048)||nc(c,4096)&&nc(n,8192)||u$(n,c)}return!!(a.flags&406847616&&nc(n,128)||a.flags&256&&nc(n,256)||a.flags&2048&&nc(n,2048)||a.flags&512&&nc(n,512)||a.flags&8192&&nc(n,8192))}return!1}function LL(n){const a=n.parent;return gS(a)&&Om(a.type)||US(a)&&Om(ND(a))||bge(n)&&yA(Uu(n,0))||(wu(a)||Cd(a)||qf(a))&&LL(a)||(Nc(a)||Ud(a)||ED(a))&&LL(a.parent)}function kL(n,a,c){const p=_o(n,a,c);return LL(n)||Pte(n)?Du(p):g4e(n)?p:l_e(p,VY(Uu(n,void 0),n,void 0))}function b4e(n,a){return n.name.kind===168&&th(n.name),kL(n.initializer,a)}function T4e(n,a){H3e(n),n.name.kind===168&&th(n.name);const c=d4e(n,a);return S4e(n,c,a)}function S4e(n,a,c){if(c&&c&10){const p=qW(a,0,!0),m=qW(a,1,!0),b=p||m;if(b&&b.typeParameters){const I=tS(n,2);if(I){const w=qW(By(I),p?0:1,!1);if(w&&!w.typeParameters){if(c&8)return E4e(n,c),As;const U=ME(n),H=U.signature&&fs(U.signature),Q=H&&C6e(H);if(Q&&!Q.typeParameters&&!Vn(U.inferences,eN)){const Ie=Kht(U,b.typeParameters),Te=uhe(b,Ie),Ze=Vt(U.inferences,Tt=>h_e(Tt.typeParameter));if(u_e(Te,w,(Tt,Dt)=>{qg(Ze,Tt,Dt,0,!0)}),yt(Ze,eN)&&(p_e(Te,w,(Tt,Dt)=>{qg(Ze,Tt,Dt)}),!qht(U.inferences,Ze)))return Jht(U.inferences,Ze),U.inferredTypeParameters=so(U.inferredTypeParameters,Ie),vA(Te)}return vA(N6e(b,w,U))}}}}return a}function E4e(n,a){if(a&2){const c=ME(n);c.flags|=4}}function eN(n){return!!(n.candidates||n.contraCandidates)}function Hht(n){return!!(n.candidates||n.contraCandidates||GOe(n.typeParameter))}function qht(n,a){for(let c=0;cc.symbol.escapedName===a)}function Xht(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;const p=a.slice(0,c);for(let m=1;;m++){const b=p+m;if(!Oge(n,b))return b}}function A4e(n){const a=OA(n);if(a&&!a.typeParameters)return fs(a)}function Yht(n){const a=_o(n.expression),c=kW(a,n.expression),p=A4e(a);return p&&SY(p,n,c!==a)}function wd(n){const a=Wge(n);if(a)return a;if(n.flags&268435456&&Qi){const m=Qi[ls(n)];if(m)return m}const c=Ro,p=_o(n,64);if(Ro!==c){const m=Qi||(Qi=[]);m[ls(n)]=p,pre(n,n.flags|268435456)}return p}function Wge(n){let a=us(n,!0);if(US(a)){const c=ND(a);if(!Om(c))return Ji(c)}if(a=us(n),Nb(a)){const c=Wge(a.expression);return c?cR(c):void 0}if(Zo(a)&&a.expression.kind!==108&&!Zu(a,!0)&&!U6e(a)&&!Qu(a))return qE(a)?Yht(a):A4e(YC(a.expression));if(gS(a)&&!Om(a.type))return Ji(a.type);if(JE(n)||wN(n))return _o(n)}function w5(n){const a=Vr(n);if(a.contextFreeType)return a.contextFreeType;_5(n,Ue,!1);const c=a.contextFreeType=_o(n,4);return VW(),c}function _o(n,a,c){var p,m;(p=xr)==null||p.push(xr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const b=R;R=n,y=0;const I=Zht(n,a,c),w=S4e(n,I,a);return d$(w)&&$ht(n,w),R=b,(m=xr)==null||m.pop(),w}function $ht(n,a){var c;const p=n.parent.kind===212&&n.parent.expression===n||n.parent.kind===213&&n.parent.expression===n||(n.kind===80||n.kind===167)&&D$(n)||n.parent.kind===187&&n.parent.exprName===n||n.parent.kind===282;if(p||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),O.isolatedModules||O.verbatimModuleSyntax&&p&&!_t(n,Pu(n),2097152,void 0,!1,!0)){C.assert(!!(a.symbol.flags&128));const m=a.symbol.valueDeclaration,b=(c=e.getRedirectFromOutput(Wn(m).resolvedPath))==null?void 0:c.resolvedRef;m.flags&33554432&&!UT(n)&&(!b||!Eb(b.commandLine.options))&&Qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Ge)}}function Qht(n,a){if(ef(n)){if(kV(n))return Tge(n.expression,wV(n),a);if(US(n))return K6e(n,a)}return _o(n.expression,a)}function Zht(n,a,c){const p=n.kind;if(i)switch(p){case 232:case 219:case 220:i.throwIfCancellationRequested()}switch(p){case 80:return vpt(n,a);case 81:return Uft(n);case 110:return m5(n);case 108:return zY(n);case 106:return Pe;case 15:case 11:return b_e(n)?Ot:nR(Sp(n.text));case 9:return $3e(n),nR(Ch(+n.text));case 10:return tbt(n),nR(Hz({negative:!1,base10Value:AM(n.text)}));case 112:return ft;case 97:return tr;case 229:return Bht(n);case 14:return mft(n);case 210:return $Fe(n,a,c);case 211:return Sft(n,a);case 212:return $Y(n,a);case 167:return m6e(n,a);case 213:return omt(n,a);case 214:if(Qu(n))return Wmt(n);case 215:return Omt(n,a);case 216:return Fmt(n);case 218:return Qht(n,a);case 232:return jgt(n);case 219:case 220:return d4e(n,a);case 222:return bht(n);case 217:case 235:return zmt(n,a);case 236:return Vmt(n);case 234:return Y6e(n);case 239:return jmt(n);case 237:return Umt(n);case 221:return yht(n);case 223:return Tht(n);case 224:return Sht(n);case 225:return Eht(n);case 226:return Aht(n);case 227:return Se(n,a);case 228:return zht(n,a);case 231:return hft(n,a);case 233:return B;case 230:return Fht(n);case 238:return _ft(n);case 295:return Wft(n,a);case 285:return xft(n);case 286:return Aft(n);case 289:return Rft(n);case 293:return Cft(n,a);case 287:C.fail("Shouldn't ever directly check a JsxOpeningElement")}return nt}function I4e(n){Kg(n),n.expression&&fd(n.expression,f.Type_expected),wa(n.constraint),wa(n.default);const a=j0(Wr(n));Ld(a),hlt(a)||Qe(n.default,f.Type_parameter_0_has_a_circular_default,ar(a));const c=ju(a),p=SE(a);c&&p&&$d(p,Kp(io(c,RE(a,p)),p),n.default,f.Type_0_does_not_satisfy_the_constraint_1),dR(n),r(()=>FL(n.name,f.Type_parameter_name_cannot_be_0))}function e_t(n){var a,c;if(gd(n.parent)||ui(n.parent)||vm(n.parent)){const p=j0(Wr(n)),m=r_e(p)&24576;if(m){const b=Wr(n.parent);if(vm(n.parent)&&!(Hr(qs(b))&48))Qe(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(m===8192||m===16384){(a=xr)==null||a.push(xr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:pd(qs(b)),id:pd(p)});const I=Qz(b,p,m===16384?qt:pt),w=Qz(b,p,m===16384?pt:qt),U=p;N=p,$d(I,w,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),N=U,(c=xr)==null||c.pop()}}}}function x4e(n){Kg(n),G5(n);const a=df(n);di(n,31)&&(O.erasableSyntaxOnly&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),a.kind===177&&fm(a.body)||Qe(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===177&&He(n.name)&&n.name.escapedText==="constructor"&&Qe(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&PI(n)&&Qo(n.name)&&a.body&&Qe(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&He(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===177||a.kind===181||a.kind===186)&&Qe(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===220&&Qe(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===178||a.kind===179)&&Qe(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Qo(n.name)&&!aa(Pm(_r(n.symbol)),jp)&&Qe(n,f.A_rest_parameter_must_be_of_an_array_type)}function t_t(n){const a=n_t(n);if(!a){Qe(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=Df(a),p=nm(c);if(!p)return;wa(n.type);const{parameterName:m}=n;if(p.kind!==0&&p.kind!==2){if(p.parameterIndex>=0){if(au(c)&&p.parameterIndex===c.parameters.length-1)Qe(m,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(p.type){const b=()=>qo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);$d(p.type,_r(c.parameters[p.parameterIndex]),n.type,void 0,b)}}else if(m){let b=!1;for(const{name:I}of a.parameters)if(Qo(I)&&R4e(I,m,p.parameterName)){b=!0;break}b||Qe(n.parameterName,f.Cannot_find_parameter_0,p.parameterName)}}}function n_t(n){switch(n.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:const a=n.parent;if(n===a.type)return a}}function R4e(n,a,c){for(const p of n.elements){if(Jc(p))continue;const m=p.name;if(m.kind===80&&m.escapedText===c)return Qe(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((m.kind===208||m.kind===207)&&R4e(m,a,c))return!0}}function ZW(n){n.kind===182?Nvt(n):(n.kind===185||n.kind===263||n.kind===186||n.kind===180||n.kind===177||n.kind===181)&&k$(n);const a=dc(n);a&4||((a&3)===3&&G0&&c.declarations[0]!==n)return}const a=HX(Wr(n));if(a?.declarations){const c=new Map;for(const p of a.declarations)Cb(p)&&p.parameters.length===1&&p.parameters[0].type&&PA(Ji(p.parameters[0].type),m=>{const b=c.get(pd(m));b?b.declarations.push(p):c.set(pd(m),{type:m,declarations:[p]})});c.forEach(p=>{if(p.declarations.length>1)for(const m of p.declarations)Qe(m,f.Duplicate_index_signature_for_type_0,ar(p.type))})}}function C4e(n){!Kg(n)&&!Qvt(n)&&w$(n.name),G5(n),p$(n),di(n,64)&&n.kind===173&&n.initializer&&Qe(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,ws(n.name))}function o_t(n){return eo(n.name)&&Qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),C4e(n)}function a_t(n){H3e(n)||w$(n.name),Ml(n)&&n.asteriskToken&&He(n.name)&&Kr(n.name)==="constructor"&&Qe(n.name,f.Class_constructor_may_not_be_a_generator),G4e(n),di(n,64)&&n.kind===175&&n.body&&Qe(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,ws(n.name)),eo(n.name)&&!hd(n)&&Qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),p$(n)}function p$(n){if(eo(n.name)&&(Gdi(H,31))))if(!c_t(w,n.body))Qe(w,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 Q of n.body.statements){if(od(Q)&&e1(Hl(Q.expression))){H=Q;break}if(N4e(Q))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 I||Qe(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function c_t(n,a){const c=zm(n.parent);return od(c)&&c.parent===a}function N4e(n){return n.kind===108||n.kind===110?!0:zte(n)?!1:!!Jo(n,N4e)}function M4e(n){He(n.name)&&Kr(n.name)==="constructor"&&ui(n.parent)&&Qe(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),wa(n.body),p$(n);function a(){if(!k$(n)&&!zvt(n)&&w$(n.name),F5(n),ZW(n),n.kind===178&&!(n.flags&33554432)&&fm(n.body)&&n.flags&512&&(n.flags&1024||Qe(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===168&&th(n.name),WC(n)){const p=Wr(n),m=al(p,178),b=al(p,179);if(m&&b&&!(pR(m)&1)){Vr(m).flags|=1;const I=Gd(m),w=Gd(b);(I&64)!==(w&64)&&(Qe(m.name,f.Accessors_must_both_be_abstract_or_non_abstract),Qe(b.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(I&4&&!(w&6)||I&2&&!(w&2))&&(Qe(m.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Qe(b.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=pL(Wr(n));n.kind===178&&Nge(n,c)}}function d_t(n){F5(n)}function u_t(n,a,c){return n.typeArguments&&c{const p=Bge(n);p&&P4e(n,p)});const c=Vr(n).resolvedSymbol;c&&yt(c.declarations,p=>MI(p)&&!!(p.flags&536870912))&&Cm(x5(n),c.declarations,c.escapedName)}}function f_t(n){const a=ni(n.parent,hF);if(!a)return;const c=Bge(a);if(!c)return;const p=ju(c[a.typeArguments.indexOf(n)]);return p&&io(p,Yp(c,f$(a,c)))}function m_t(n){pWe(n)}function h_t(n){Ye(n.members,wa),r(a);function a(){const c=n8e(n);S$(c,c.symbol),zge(n),D4e(n)}}function __t(n){wa(n.elementType)}function g_t(n){let a=!1,c=!1;for(const p of n.elements){let m=Ehe(p);if(m&8){const b=Ji(p.type);if(!Vv(b)){Qe(p,f.A_rest_element_type_must_be_an_array_type);break}(im(b)||Ka(b)&&b.target.combinedFlags&4)&&(m|=4)}if(m&4){if(c){Cn(p,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(m&2){if(c){Cn(p,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(m&1&&a){Cn(p,f.A_required_element_cannot_follow_an_optional_element);break}}Ye(n.elements,wa),Ji(n)}function y_t(n){Ye(n.types,wa),Ji(n)}function k4e(n,a){if(!(n.flags&8388608))return n;const c=n.objectType,p=n.indexType,m=up(c)&&yW(c)===2?BWe(c,0):b_(c,0),b=!!Vg(c,Bt);if(Ep(p,I=>aa(I,m)||b&&$x(I,Bt)))return a.kind===213&&vb(a)&&Hr(c)&32&&Q_(c)&1&&Qe(a,f.Index_signature_in_type_0_only_permits_reading,ar(c)),n;if(EA(c)){const I=nY(p,a);if(I){const w=PA(Ru(c),U=>Ea(U,I));if(w&&Vf(w)&6)return Qe(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Gi(I)),nt}}return Qe(a,f.Type_0_cannot_be_used_to_index_type_1,ar(p),ar(c)),nt}function v_t(n){wa(n.objectType),wa(n.indexType),k4e(YWe(n),n)}function b_t(n){T_t(n),wa(n.typeParameter),wa(n.nameType),wa(n.type),n.type||Z0(n,Ue);const a=whe(n),c=Wv(a);if(c)$d(c,Ii,n.nameType);else{const p=Rf(a);$d(p,Ii,OR(n.typeParameter))}}function T_t(n){var a;if((a=n.members)!=null&&a.length)return Cn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function S_t(n){Vhe(n)}function E_t(n){Gvt(n),wa(n.type)}function A_t(n){Jo(n,wa)}function I_t(n){Dn(n,c=>c.parent&&c.parent.kind===195&&c.parent.extendsType===c)||Cn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),wa(n.typeParameter);const a=Wr(n.typeParameter);if(a.declarations&&a.declarations.length>1){const c=Jr(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const p=j0(a),m=ote(a,169);if(!a3e(m,[p],b=>[b])){const b=uo(a);for(const I of m)Qe(I.name,f.All_declarations_of_0_must_have_identical_constraints,b)}}}hT(n)}function x_t(n){for(const a of n.templateSpans){wa(a.type);const c=Ji(a.type);$d(c,sa,a.type)}Ji(n)}function R_t(n){wa(n.argument),n.attributes&&UD(n.attributes,Cn),L4e(n)}function D_t(n){n.dotDotDotToken&&n.questionToken&&Cn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===191&&Cn(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===192&&Cn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),wa(n.type),Ji(n)}function O5(n){return(wp(n,2)||tu(n))&&!!(n.flags&33554432)}function e8(n,a){let c=W$(n);if(n.parent.kind!==265&&n.parent.kind!==264&&n.parent.kind!==232&&n.flags&33554432){const p=RF(n);p&&p.flags&128&&!(c&128)&&!(t_(n.parent)&&pc(n.parent.parent)&&M_(n.parent.parent))&&(c|=32),c|=128}return c&a}function m$(n){r(()=>C_t(n))}function C_t(n){function a(Sn,vn){return vn!==void 0&&vn.parent===Sn[0].parent?vn:Sn[0]}function c(Sn,vn,Sr,fi,oo){if((fi^oo)!==0){const zi=e8(a(Sn,vn),Sr);AR(Sn,Ko=>Wn(Ko).fileName).forEach(Ko=>{const ms=e8(a(Ko,vn),Sr);for(const fo of Ko){const dl=e8(fo,Sr)^zi,Xl=e8(fo,Sr)^ms;Xl&32?Qe(Oo(fo),f.Overload_signatures_must_all_be_exported_or_non_exported):Xl&128?Qe(Oo(fo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):dl&6?Qe(Oo(fo)||fo,f.Overload_signatures_must_all_be_public_private_or_protected):dl&64&&Qe(Oo(fo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function p(Sn,vn,Sr,fi){if(Sr!==fi){const oo=_I(a(Sn,vn));Ye(Sn,ii=>{_I(ii)!==oo&&Qe(Oo(ii),f.Overload_signatures_must_all_be_optional_or_required)})}}const m=230;let b=0,I=m,w=!1,U=!0,H=!1,Q,Ie,Te;const Ze=n.declarations,Tt=(n.flags&16384)!==0;function Dt(Sn){if(Sn.name&&Wl(Sn.name))return;let vn=!1;const Sr=Jo(Sn.parent,oo=>{if(vn)return oo;vn=oo===Sn});if(Sr&&Sr.pos===Sn.end&&Sr.kind===Sn.kind){const oo=Sr.name||Sr,ii=Sr.name;if(Sn.name&&ii&&(eo(Sn.name)&&eo(ii)&&Sn.name.escapedText===ii.escapedText||va(Sn.name)&&va(ii)&&Hg(th(Sn.name),th(ii))||qh(Sn.name)&&qh(ii)&&rM(Sn.name)===rM(ii))){if((Sn.kind===175||Sn.kind===174)&&ua(Sn)!==ua(Sr)){const Ko=ua(Sn)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;Qe(oo,Ko)}return}if(fm(Sr.body)){Qe(oo,f.Function_implementation_name_must_be_0,ws(Sn.name));return}}const fi=Sn.name||Sn;Tt?Qe(fi,f.Constructor_implementation_is_missing):di(Sn,64)?Qe(fi,f.All_declarations_of_an_abstract_method_must_be_consecutive):Qe(fi,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let $t=!1,Tn=!1,nr=!1;const yr=[];if(Ze)for(const Sn of Ze){const vn=Sn,Sr=vn.flags&33554432,fi=vn.parent&&(vn.parent.kind===265||vn.parent.kind===188)||Sr;if(fi&&(Te=void 0),(vn.kind===264||vn.kind===232)&&!Sr&&(nr=!0),vn.kind===263||vn.kind===175||vn.kind===174||vn.kind===177){yr.push(vn);const oo=e8(vn,m);b|=oo,I&=oo,w=w||_I(vn),U=U&&_I(vn);const ii=fm(vn.body);ii&&Q?Tt?Tn=!0:$t=!0:Te?.parent===vn.parent&&Te.end!==vn.pos&&Dt(Te),ii?Q||(Q=vn):H=!0,Te=vn,fi||(Ie=vn)}Ir(Sn)&&Yo(Sn)&&Sn.jsDoc&&(H=et(IG(Sn))>0)}if(Tn&&Ye(yr,Sn=>{Qe(Sn,f.Multiple_constructor_implementations_are_not_allowed)}),$t&&Ye(yr,Sn=>{Qe(Oo(Sn)||Sn,f.Duplicate_function_implementation)}),nr&&!Tt&&n.flags&16&&Ze){const Sn=Un(Ze,vn=>vn.kind===264).map(vn=>Ar(vn,f.Consider_adding_a_declare_modifier_to_this_class));Ye(Ze,vn=>{const Sr=vn.kind===264?f.Class_declaration_cannot_implement_overload_list_for_0:vn.kind===263?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Sr&&pa(Qe(Oo(vn)||vn,Sr,Ol(n)),...Sn)})}if(Ie&&!Ie.body&&!di(Ie,64)&&!Ie.questionToken&&Dt(Ie),H&&(Ze&&(c(Ze,Q,m,b,I),p(Ze,Q,w,U)),Q)){const Sn=EE(n),vn=Df(Q);for(const Sr of Sn)if(!Mdt(vn,Sr)){const fi=Sr.declaration&&pv(Sr.declaration)?Sr.declaration.parent.tagName:Sr.declaration;pa(Qe(fi,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Ar(Q,f.The_implementation_signature_is_declared_here));break}}}function t8(n){r(()=>N_t(n))}function N_t(n){let a=n.localSymbol;if(!a&&(a=Wr(n),!a.exportSymbol)||al(a,n.kind)!==n)return;let c=0,p=0,m=0;for(const H of a.declarations){const Q=U(H),Ie=e8(H,2080);Ie&32?Ie&2048?m|=Q:c|=Q:p|=Q}const b=c|p,I=c&p,w=m&b;if(I||w)for(const H of a.declarations){const Q=U(H),Ie=Oo(H);Q&w?Qe(Ie,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,ws(Ie)):Q&I&&Qe(Ie,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,ws(Ie))}function U(H){let Q=H;switch(Q.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return gu(Q)||my(Q)!==0?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:const Ie=Q,Te=ll(Ie)?Ie.expression:Ie.right;if(!Ds(Te))return 1;Q=Te;case 272:case 275:case 274:let Ze=0;const Tt=ud(Wr(Q));return Ye(Tt.declarations,Dt=>{Ze|=U(Dt)}),Ze;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return C.failBadSyntaxKind(Q)}}}function wL(n,a,c,...p){const m=n8(n,a);return m&&cR(m,a,c,...p)}function n8(n,a,c){if(wr(n))return;const p=n;if(p.promisedTypeOfPromise)return p.promisedTypeOfPromise;if(Jp(n,zz(!1)))return p.promisedTypeOfPromise=rl(n)[0];if(QW(v_(n),402915324))return;const m=_n(n,"then");if(wr(m))return;const b=m?na(m,0):ae;if(b.length===0){a&&Qe(a,f.A_promise_must_have_a_then_method);return}let I,w;for(const Q of b){const Ie=q0(Q);Ie&&Ie!==In&&!T_(n,Ie,H_)?I=Ie:w=Bn(w,Q)}if(!w){C.assertIsDefined(I),c&&(c.value=I),a&&Qe(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ar(n),ar(I));return}const U=om(pi(Vt(w,Ige)),2097152);if(wr(U))return;const H=na(U,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 p.promisedTypeOfPromise=pi(Vt(H,Ige),2)}function W5(n,a,c,p,...m){return(a?cR(n,c,p,...m):jy(n,c,p,...m))||nt}function w4e(n){if(QW(v_(n),402915324))return!1;const a=_n(n,"then");return!!a&&na(om(a,2097152),0).length>0}function h$(n){var a;if(n.flags&16777216){const c=She(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function OL(n){return n.flags&1048576?Tl(n,OL):h$(n)?n.aliasTypeArguments[0]:n}function O4e(n){if(wr(n)||h$(n))return!1;if(EA(n)){const a=Ld(n);if(a?a.flags&3||Fy(a)||am(a,w4e):nc(n,8650752))return!0}return!1}function M_t(n){const a=She(!0);if(a)return GC(a,[OL(n)])}function P_t(n){return O4e(n)?M_t(n)??n:(C.assert(h$(n)||n8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n)}function cR(n,a,c,...p){const m=jy(n,a,c,...p);return m&&P_t(m)}function jy(n,a,c,...p){if(wr(n)||h$(n))return n;const m=n;if(m.awaitedTypeOfType)return m.awaitedTypeOfType;if(n.flags&1048576){if(qb.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 w=a?H=>jy(H,a,c,...p):jy;qb.push(n.id);const U=Tl(n,w);return qb.pop(),m.awaitedTypeOfType=U}if(O4e(n))return m.awaitedTypeOfType=n;const b={value:void 0},I=n8(n,void 0,b);if(I){if(n.id===I.id||qb.lastIndexOf(I.id)>=0){a&&Qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}qb.push(n.id);const w=jy(I,a,c,...p);return qb.pop(),w?m.awaitedTypeOfType=w:void 0}if(w4e(n)){if(a){C.assertIsDefined(c);let w;b.value&&(w=qo(w,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ar(n),ar(b.value))),w=qo(w,c,...p),ns.add(hg(Wn(a),a,w))}return}return m.awaitedTypeOfType=n}function L_t(n,a,c){const p=Ji(a);if(G>=2){if(pr(p))return;const b=zz(!0);if(b!==Zt&&!Jp(p,b)){m(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,ar(jy(p)||In));return}}else{if(aR(n,5),pr(p))return;const b=Z2(a);if(b===void 0){m(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,ar(p));return}const I=Vl(b,111551,!0),w=I?_r(I):nt;if(pr(w)){b.kind===80&&b.escapedText==="Promise"&&zn(p)===zz(!1)?Qe(c,f.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):m(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Mp(b));return}const U=Glt(!0);if(U===Ra){m(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Mp(b));return}const H=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!$d(w,U,c,H,()=>a===c?void 0:qo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Ie=b&&Pu(b),Te=Sd(n.locals,Ie.escapedText,111551);if(Te){Qe(Te.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Kr(Ie),Mp(b));return}}W5(p,!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 m(b,I,w,U){if(I===w)Qe(w,b,U);else{const H=Qe(w,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);pa(H,Ar(I,b,U))}}}function k_t(n){const a=Wn(n);if(!gT(a)){let c=n.expression;if(wu(c))return!1;let p=!0,m;for(;;){if(dy(c)||qI(c)){c=c.expression;continue}if(Zo(c)){p||(m=c),c.questionDotToken&&(m=c.questionDotToken),c=c.expression,p=!1;continue}if(qr(c)){c.questionDotToken&&(m=c.questionDotToken),c=c.expression,p=!1;continue}He(c)||(m=c);break}if(m)return pa(Qe(n.expression,f.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Ar(m,f.Invalid_syntax_in_decorator)),!0}return!1}function w_t(n){k_t(n);const a=QC(n);a$(a,n);const c=fs(a);if(c.flags&1)return;const p=Dge(n);if(!p?.resolvedReturnType)return;let m;const b=p.resolvedReturnType;switch(n.parent.kind){case 264:case 232:m=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!J){m=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:m=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:m=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return C.failBadSyntaxKind(n.parent)}$d(c,b,n.expression,m)}function r8(n,a,c,p,m,b=c.length,I=0){const w=L.createFunctionTypeNode(void 0,ae,L.createKeywordTypeNode(133));return y_(w,n,a,c,p,m,b,I)}function Vge(n,a,c,p,m,b,I){const w=r8(n,a,c,p,m,b,I);return vA(w)}function W4e(n){return Vge(void 0,void 0,ae,n)}function F4e(n){const a=Ef("value",n);return Vge(void 0,void 0,[a],In)}function jge(n){if(n)switch(n.kind){case 194:case 193:return z4e(n.types);case 195:return z4e([n.trueType,n.falseType]);case 197:case 203:return jge(n.type);case 184:return n.typeName}}function z4e(n){let a;for(let c of n){for(;c.kind===197||c.kind===203;)c=c.type;if(c.kind===146||!ie&&(c.kind===202&&c.literal.kind===106||c.kind===157))continue;const p=jge(c);if(!p)return;if(a){if(!He(a)||!He(p)||a.escapedText!==p.escapedText)return}else a=p}return a}function _$(n){const a=Rc(n);return C_(n)?mG(a):a}function F5(n){if(!HS(n)||!pf(n)||!n.modifiers||!ek(J,n,n.parent,n.parent.parent))return;const a=hn(n.modifiers,Fc);if(a){J?($c(a,8),n.kind===170&&$c(a,32)):G1)for(let p=1;p0),c.length>1&&Qe(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const p=B4e(n.class.expression),m=xS(a);if(m){const b=B4e(m.expression);b&&p.escapedText!==b.escapedText&&Qe(p,f.JSDoc_0_1_does_not_match_the_extends_2_clause,Kr(n.tagName),Kr(p),Kr(b))}}function X_t(n){const a=AS(n);a&&tu(a)&&Qe(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function B4e(n){switch(n.kind){case 80:return n;case 212:return n.name;default:return}}function G4e(n){var a;F5(n),ZW(n);const c=dc(n);if(n.name&&n.name.kind===168&&th(n.name),WC(n)){const b=Wr(n),I=n.localSymbol||b,w=(a=I.declarations)==null?void 0:a.find(U=>U.kind===n.kind&&!(U.flags&524288));n===w&&m$(I),b.parent&&m$(b)}const p=n.kind===174?void 0:n.body;if(wa(p),Nge(n,zC(n)),r(m),Ir(n)){const b=PT(n);b&&b.typeExpression&&!Y_e(Ji(b.typeExpression),n)&&Qe(b.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function m(){kp(n)||(Wl(p)&&!O5(n)&&Z0(n,Ue),c&1&&fm(p)&&fs(Df(n)))}}function hT(n){r(a);function a(){const c=Wn(n);let p=Qn.get(c.path);p||(p=[],Qn.set(c.path,p)),p.push(n)}}function V4e(n,a){for(const c of n)switch(c.kind){case 264:case 232:Y_t(c,a),Uge(c,a);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:H4e(c,a);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:c.body&&H4e(c,a),Uge(c,a);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:Uge(c,a);break;case 196:$_t(c,a);break;default:C.assertNever(c,"Node should not have been registered for unused identifiers check")}}function j4e(n,a,c){const p=Oo(n)||n,m=MI(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,Ar(p,m,a))}function i8(n){return He(n)&&Kr(n).charCodeAt(0)===95}function Y_t(n,a){for(const c of n.members)switch(c.kind){case 175:case 173:case 178:case 179:if(c.kind===179&&c.symbol.flags&32768)break;const p=Wr(c);!p.isReferenced&&(wp(c,2)||nd(c)&&eo(c.name))&&!(c.flags&33554432)&&a(c,0,Ar(c.name,f._0_is_declared_but_its_value_is_never_read,uo(p)));break;case 177:for(const m of c.parameters)!m.symbol.isReferenced&&di(m,2)&&a(m,0,Ar(m.name,f.Property_0_is_declared_but_its_value_is_never_read,Ol(m.symbol)));break;case 182:case 241:case 176:break;default:C.fail("Unexpected class member")}}function $_t(n,a){const{typeParameter:c}=n;Hge(c)&&a(n,1,Ar(n,f._0_is_declared_but_its_value_is_never_read,Kr(c.name)))}function Uge(n,a){const c=Wr(n).declarations;if(!c||Ba(c)!==n)return;const p=sb(n),m=new Set;for(const b of p){if(!Hge(b))continue;const I=Kr(b.name),{parent:w}=b;if(w.kind!==196&&w.typeParameters.every(Hge)){if(rh(m,w)){const U=Wn(w),H=bm(w)?DV(w):CV(U,w.typeParameters),Ie=w.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,I]:[f.All_type_parameters_are_unused];a(b,1,Wc(U,H.pos,H.end-H.pos,...Ie))}}else a(b,1,Ar(b,f._0_is_declared_but_its_value_is_never_read,I))}}function Hge(n){return!(os(n.symbol).isReferenced&262144)&&!i8(n.name)}function z5(n,a,c,p){const m=String(p(a)),b=n.get(m);b?b[1].push(c):n.set(m,[a,[c]])}function U4e(n){return ni(Jh(n),to)}function Q_t(n){return Ha(n)?ff(n.parent)?!!(n.propertyName&&i8(n.name)):i8(n.name):gu(n)||(yi(n)&&YE(n.parent.parent)||q4e(n))&&i8(n.name)}function H4e(n,a){const c=new Map,p=new Map,m=new Map;n.locals.forEach(b=>{if(!(b.flags&262144?!(b.flags&3&&!(b.isReferenced&3)):b.isReferenced||b.exportSymbol)&&b.declarations){for(const I of b.declarations)if(!Q_t(I))if(q4e(I))z5(c,egt(I),I,ls);else if(Ha(I)&&ff(I.parent)){const w=Ba(I.parent.elements);(I===w||!Ba(I.parent.elements).dotDotDotToken)&&z5(p,I.parent,I,ls)}else if(yi(I)){const w=kE(I)&7,U=Oo(I);(w!==4&&w!==6||!U||!i8(U))&&z5(m,I.parent,I,ls)}else{const w=b.valueDeclaration&&U4e(b.valueDeclaration),U=b.valueDeclaration&&Oo(b.valueDeclaration);w&&U?!Np(w,w.parent)&&!bb(w)&&!i8(U)&&(Ha(I)&&uv(I.parent)?z5(p,I.parent,I,ls):a(w,1,Ar(U,f._0_is_declared_but_its_value_is_never_read,Ol(b)))):j4e(I,Ol(b),a)}}}),c.forEach(([b,I])=>{const w=b.parent;if((b.name?1:0)+(b.namedBindings?b.namedBindings.kind===275?1:b.namedBindings.elements.length:0)===I.length)a(w,0,I.length===1?Ar(w,f._0_is_declared_but_its_value_is_never_read,Kr($a(I).name)):Ar(w,f.All_imports_in_import_declaration_are_unused));else for(const H of I)j4e(H,Kr(H.name),a)}),p.forEach(([b,I])=>{const w=U4e(b.parent)?1:0;if(b.elements.length===I.length)I.length===1&&b.parent.kind===261&&b.parent.parent.kind===262?z5(m,b.parent.parent,b.parent,ls):a(b,w,I.length===1?Ar(b,f._0_is_declared_but_its_value_is_never_read,B5($a(I).name)):Ar(b,f.All_destructured_elements_are_unused));else for(const U of I)a(U,w,Ar(U,f._0_is_declared_but_its_value_is_never_read,B5(U.name)))}),m.forEach(([b,I])=>{if(b.declarations.length===I.length)a(b,0,I.length===1?Ar($a(I).name,f._0_is_declared_but_its_value_is_never_read,B5($a(I).name)):Ar(b.parent.kind===244?b.parent:b,f.All_variables_are_unused));else for(const w of I)a(w,0,Ar(w,f._0_is_declared_but_its_value_is_never_read,B5(w.name)))})}function Z_t(){var n;for(const a of Ay)if(!((n=Wr(a))!=null&&n.isReferenced)){const c=UE(a);C.assert(VT(c),"Only parameter declaration should be checked here");const p=Ar(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,ws(a.name),ws(a.propertyName));c.type||pa(p,Wc(Wn(c),c.end,0,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,ws(a.propertyName))),ns.add(p)}}function B5(n){switch(n.kind){case 80:return Kr(n);case 208:case 207:return B5(ma($a(n.elements),Ha).name);default:return C.assertNever(n)}}function q4e(n){return n.kind===274||n.kind===277||n.kind===275}function egt(n){return n.kind===274?n:n.kind===275?n.parent:n.parent.parent}function g$(n){if(n.kind===242&&Uy(n),W9(n)){const a=Oi;Ye(n.statements,wa),Oi=a}else Ye(n.statements,wa);n.locals&&hT(n)}function tgt(n){G>=2||!H9(n)||n.flags&33554432||Wl(n.body)||Ye(n.parameters,a=>{a.name&&!Qo(a.name)&&a.name.escapedText===_e.escapedName&&Ev("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function o8(n,a,c){if(a?.escapedText!==c||n.kind===173||n.kind===172||n.kind===175||n.kind===174||n.kind===178||n.kind===179||n.kind===304||n.flags&33554432||(Vm(n)||zc(n)||Su(n))&&$y(n))return!1;const p=Jh(n);return!(to(p)&&Wl(p.parent.body))}function ngt(n){Dn(n,a=>pR(a)&4?(n.kind!==80?Qe(Oo(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 rgt(n){Dn(n,a=>pR(a)&8?(n.kind!==80?Qe(Oo(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 igt(n,a){if(e.getEmitModuleFormatOfFile(Wn(n))>=5||!a||!o8(n,a,"require")&&!o8(n,a,"exports")||pc(n)&&my(n)!==1)return;const c=Pt(n);c.kind===308&&Pp(c)&&Ev("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,ws(a),ws(a))}function ogt(n,a){if(!a||G>=4||!o8(n,a,"Promise")||pc(n)&&my(n)!==1)return;const c=Pt(n);c.kind===308&&Pp(c)&&c.flags&4096&&Ev("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,ws(a),ws(a))}function agt(n,a){G<=8&&(o8(n,a,"WeakMap")||o8(n,a,"WeakSet"))&&Sy.push(n)}function sgt(n){const a=sh(n);pR(a)&1048576&&(C.assert(nd(n)&&He(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Ev("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function lgt(n,a){a&&G>=2&&G<=8&&o8(n,a,"Reflect")&&Ey.push(n)}function cgt(n){let a=!1;if(uc(n)){for(const c of n.members)if(pR(c)&2097152){a=!0;break}}else if(Us(n))pR(n)&2097152&&(a=!0);else{const c=sh(n);c&&pR(c)&2097152&&(a=!0)}a&&(C.assert(nd(n)&&He(n.name),"The target of a Reflect collision check should be an identifier"),Ev("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,ws(n.name),"Reflect"))}function WL(n,a){a&&(igt(n,a),ogt(n,a),agt(n,a),lgt(n,a),ui(n)?(FL(a,f.Class_name_cannot_be_0),n.flags&33554432||zgt(a)):QT(n)&&FL(a,f.Enum_name_cannot_be_0))}function dgt(n){if(kE(n)&7||VT(n))return;const a=Wr(n);if(a.flags&1){if(!He(n.name))return C.fail();const c=_t(n,n.name.escapedText,3,void 0,!1);if(c&&c!==a&&c.flags&2&&Z_e(c)&7){const p=GT(c.valueDeclaration,262),m=p.parent.kind===244&&p.parent.parent?p.parent.parent:void 0;if(!(m&&(m.kind===242&&Yo(m.parent)||m.kind===269||m.kind===268||m.kind===308))){const I=uo(c);Qe(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,I,I)}}}}function a8(n){return n===Rt?Ue:n===ld?bd:n}function G5(n){var a;if(F5(n),Ha(n)||wa(n.type),!n.name)return;if(n.name.kind===168&&(th(n.name),$E(n)&&n.initializer&&jl(n.initializer)),Ha(n)){if(n.propertyName&&He(n.name)&&VT(n)&&Wl(df(n).body)){Ay.push(n);return}ff(n.parent)&&n.dotDotDotToken&&G1&&yt(c.declarations,b=>b!==n&&VN(b)&&!K4e(b,n))&&Qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,ws(n.name))}else{const m=a8(Xx(n));!pr(p)&&!pr(m)&&!Hg(p,m)&&!(c.flags&67108864)&&J4e(c.valueDeclaration,p,n,m),$E(n)&&n.initializer&&CE(jl(n.initializer),m,n,n.initializer,void 0),c.valueDeclaration&&!K4e(n,c.valueDeclaration)&&Qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,ws(n.name))}n.kind!==173&&n.kind!==172&&(t8(n),(n.kind===261||n.kind===209)&&dgt(n),WL(n,n.name))}function J4e(n,a,c,p){const m=Oo(c),b=c.kind===173||c.kind===172?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,I=ws(m),w=Qe(m,b,I,ar(a),ar(p));n&&pa(w,Ar(n,f._0_was_also_declared_here,I))}function K4e(n,a){if(n.kind===170&&a.kind===261||n.kind===261&&a.kind===170)return!0;if(_I(n)!==_I(a))return!1;const c=1358;return TI(n,c)===TI(a,c)}function ugt(n){var a,c;(a=xr)==null||a.push(xr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),qvt(n),G5(n),(c=xr)==null||c.pop()}function pgt(n){return jvt(n),G5(n)}function y$(n){const a=ty(n)&7;(a===4||a===6)&&G=2,w=!I&&O.downlevelIteration,U=O.noUncheckedIndexedAccess&&!!(n&128);if(I||w||b){const Ze=b$(a,n,I?p:void 0);if(m&&Ze){const Tt=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;Tt&&$d(c,Ze.nextType,p,Tt)}if(Ze||I)return U?zW(Ze&&Ze.yieldType):Ze&&Ze.yieldType}let H=a,Q=!1;if(n&4){if(H.flags&1048576){const Ze=a.types,Tt=Un(Ze,Dt=>!(Dt.flags&402653316));Tt!==Ze&&(H=pi(Tt,2))}else H.flags&402653316&&(H=yn);if(Q=H!==a,Q&&H.flags&131072)return U?zW(gt):gt}if(!Vv(H)){if(p){const Ze=!!(n&4)&&!Q,[Tt,Dt]=Te(Ze,w);Av(p,Dt&&!!wL(H),Tt,ar(H))}return Q?U?zW(gt):gt:void 0}const Ie=H0(H,Bt);if(Q&&Ie)return Ie.flags&402653316&&!O.noUncheckedIndexedAccess?gt:pi(U?[Ie,gt,he]:[Ie,gt],2);return n&128?zW(Ie):Ie;function Te(Ze,Tt){var Dt;return Tt?Ze?[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]:Yge(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]:Egt((Dt=a.symbol)==null?void 0:Dt.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:Ze?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function Egt(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 Yge(n,a,c,p){if(wr(c))return;const m=b$(c,n,p);return m&&m[v1e(a)]}function _T(n=yn,a=yn,c=Nt){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){const p=Lm([n,a,c]);let m=Ns.get(p);return m||(m={yieldType:n,returnType:a,nextType:c},Ns.set(p,m)),m}return{yieldType:n,returnType:a,nextType:c}}function X4e(n){let a,c,p;for(const m of n)if(!(m===void 0||m===Da)){if(m===Qs)return Qs;a=Bn(a,m.yieldType),c=Bn(c,m.returnType),p=Bn(p,m.nextType)}return a||c||p?_T(a&&pi(a),c&&pi(c),p&&Ma(p)):Da}function v$(n,a){return n[a]}function Jg(n,a,c){return n[a]=c}function b$(n,a,c){var p,m;if(n===wt)return Ec;if(wr(n))return Qs;if(!(n.flags&1048576)){const H=c?{errors:void 0,skipLogging:!0}:void 0,Q=Y4e(n,a,c,H);if(Q===Da){if(c){const Ie=Qge(c,n,!!(a&2));H?.errors&&pa(Ie,...H.errors)}return}else if((p=H?.errors)!=null&&p.length)for(const Ie of H.errors)ns.add(Ie);return Q}const b=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",I=v$(n,b);if(I)return I===Da?void 0:I;let w;for(const H of n.types){const Q=c?{errors:void 0}:void 0,Ie=Y4e(H,a,c,Q);if(Ie===Da){if(c){const Te=Qge(c,n,!!(a&2));Q?.errors&&pa(Te,...Q.errors)}Jg(n,b,Da);return}else if((m=Q?.errors)!=null&&m.length)for(const Te of Q.errors)ns.add(Te);w=Bn(w,Ie)}const U=w?X4e(w):Da;return Jg(n,b,U),U===Da?void 0:U}function $ge(n,a){if(n===Da)return Da;if(n===Qs)return Qs;const{yieldType:c,returnType:p,nextType:m}=n;return a&&She(!0),_T(cR(c,a)||Ue,cR(p,a)||Ue,m)}function Y4e(n,a,c,p){if(wr(n))return Qs;let m=!1;if(a&2){const b=$4e(n,mc)||Q4e(n,mc);if(b)if(b===Da&&c)m=!0;else return a&8?$ge(b,c):b}if(a&1){let b=$4e(n,Hs)||Q4e(n,Hs);if(b)if(b===Da&&c)m=!0;else if(a&2){if(b!==Da)return b=$ge(b,c),m?b:Jg(n,"iterationTypesOfAsyncIterable",b)}else return b}if(a&2){const b=e3e(n,mc,c,p,m);if(b!==Da)return b}if(a&1){let b=e3e(n,Hs,c,p,m);if(b!==Da)return a&2?(b=$ge(b,c),m?b:Jg(n,"iterationTypesOfAsyncIterable",b)):b}return Da}function $4e(n,a){return v$(n,a.iterableCacheKey)}function Q4e(n,a){if(Jp(n,a.getGlobalIterableType(!1))||Jp(n,a.getGlobalIteratorObjectType(!1))||Jp(n,a.getGlobalIterableIteratorType(!1))||Jp(n,a.getGlobalGeneratorType(!1))){const[c,p,m]=rl(n);return Jg(n,a.iterableCacheKey,_T(a.resolveIterationType(c,void 0)||c,a.resolveIterationType(p,void 0)||p,m))}if(FX(n,a.getGlobalBuiltinIteratorTypes())){const[c]=rl(n),p=The(),m=Nt;return Jg(n,a.iterableCacheKey,_T(a.resolveIterationType(c,void 0)||c,a.resolveIterationType(p,void 0)||p,m))}}function Z4e(n){const a=yWe(!1),c=a&&_n(_r(a),Nl(n));return c&&jf(c)?Uf(c):`__@${n}`}function e3e(n,a,c,p,m){const b=Ea(n,Z4e(a.iteratorSymbolName)),I=b&&!(b.flags&16777216)?_r(b):void 0;if(wr(I))return m?Qs:Jg(n,a.iterableCacheKey,Qs);const w=I?na(I,0):void 0,U=Un(w,Ie=>kh(Ie)===0);if(!yt(U))return c&&yt(w)&&$d(n,a.getGlobalIterableType(!0),c,void 0,void 0,p),m?Da:Jg(n,a.iterableCacheKey,Da);const H=Ma(Vt(U,fs)),Q=t3e(H,a,c,p,m)??Da;return m?Q:Jg(n,a.iterableCacheKey,Q)}function Qge(n,a,c){const p=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,m=!!wL(a)||!c&&sw(n.parent)&&n.parent.expression===n&&Bz(!1)!==Zt&&aa(a,TL(Bz(!1),[Ue,Ue,Ue]));return Av(n,m,p,ar(a))}function Agt(n,a,c,p){return t3e(n,a,c,p,!1)}function t3e(n,a,c,p,m){if(wr(n))return Qs;let b=Igt(n,a)||xgt(n,a);return b===Da&&c&&(b=void 0,m=!0),b??(b=Ngt(n,a,c,p,m)),b===Da?void 0:b}function Igt(n,a){return v$(n,a.iteratorCacheKey)}function xgt(n,a){if(Jp(n,a.getGlobalIterableIteratorType(!1))||Jp(n,a.getGlobalIteratorType(!1))||Jp(n,a.getGlobalIteratorObjectType(!1))||Jp(n,a.getGlobalGeneratorType(!1))){const[c,p,m]=rl(n);return Jg(n,a.iteratorCacheKey,_T(c,p,m))}if(FX(n,a.getGlobalBuiltinIteratorTypes())){const[c]=rl(n),p=The(),m=Nt;return Jg(n,a.iteratorCacheKey,_T(c,p,m))}}function n3e(n,a){const c=_n(n,"done")||tr;return aa(a===0?tr:ft,c)}function Rgt(n){return n3e(n,0)}function Dgt(n){return n3e(n,1)}function Cgt(n){if(wr(n))return Qs;const a=v$(n,"iterationTypesOfIteratorResult");if(a)return a;if(Jp(n,Ylt(!1))){const I=rl(n)[0];return Jg(n,"iterationTypesOfIteratorResult",_T(I,void 0,void 0))}if(Jp(n,$lt(!1))){const I=rl(n)[0];return Jg(n,"iterationTypesOfIteratorResult",_T(void 0,I,void 0))}const c=Ac(n,Rgt),p=c!==yn?_n(c,"value"):void 0,m=Ac(n,Dgt),b=m!==yn?_n(m,"value"):void 0;return!p&&!b?Jg(n,"iterationTypesOfIteratorResult",Da):Jg(n,"iterationTypesOfIteratorResult",_T(p,b||In,void 0))}function Zge(n,a,c,p,m){var b,I,w,U;const H=Ea(n,c);if(!H&&c!=="next")return;const Q=H&&!(c==="next"&&H.flags&16777216)?c==="next"?_r(H):om(_r(H),2097152):void 0;if(wr(Q))return Qs;const Ie=Q?na(Q,0):ae;if(Ie.length===0){if(p){const Sn=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;m?(m.errors??(m.errors=[]),m.errors.push(Ar(p,Sn,c))):Qe(p,Sn,c)}return c==="next"?Da:void 0}if(Q?.symbol&&Ie.length===1){const Sn=a.getGlobalGeneratorType(!1),vn=a.getGlobalIteratorType(!1),Sr=((I=(b=Sn.symbol)==null?void 0:b.members)==null?void 0:I.get(c))===Q.symbol,fi=!Sr&&((U=(w=vn.symbol)==null?void 0:w.members)==null?void 0:U.get(c))===Q.symbol;if(Sr||fi){const oo=Sr?Sn:vn,{mapper:ii}=Q;return _T(Gv(oo.typeParameters[0],ii),Gv(oo.typeParameters[1],ii),c==="next"?Gv(oo.typeParameters[2],ii):void 0)}}let Te,Ze;for(const Sn of Ie)c!=="throw"&&yt(Sn.parameters)&&(Te=Bn(Te,Lh(Sn,0))),Ze=Bn(Ze,fs(Sn));let Tt,Dt;if(c!=="throw"){const Sn=Te?pi(Te):Nt;if(c==="next")Dt=Sn;else if(c==="return"){const vn=a.resolveIterationType(Sn,p)||Ue;Tt=Bn(Tt,vn)}}let $t;const Tn=Ze?Ma(Ze):yn,nr=a.resolveIterationType(Tn,p)||Ue,yr=Cgt(nr);return yr===Da?(p&&(m?(m.errors??(m.errors=[]),m.errors.push(Ar(p,a.mustHaveAValueDiagnostic,c))):Qe(p,a.mustHaveAValueDiagnostic,c)),$t=Ue,Tt=Bn(Tt,Ue)):($t=yr.yieldType,Tt=Bn(Tt,yr.returnType)),_T($t,pi(Tt),Dt)}function Ngt(n,a,c,p,m){const b=X4e([Zge(n,a,"next",c,p),Zge(n,a,"return",c,p),Zge(n,a,"throw",c,p)]);return m?b:Jg(n,a.iteratorCacheKey,b)}function Hv(n,a,c){if(wr(a))return;const p=eye(a,c);return p&&p[v1e(n)]}function eye(n,a){if(wr(n))return Qs;const c=a?2:1,p=a?mc:Hs;return b$(n,c,void 0)||Agt(n,p,void 0,void 0)}function Mgt(n){Uy(n)||Vvt(n)}function j5(n,a){const c=!!(a&1),p=!!(a&2);if(c){const m=Hv(1,n,p);return m?p?jy(OL(m)):m:nt}return p?jy(n)||nt:n}function r3e(n,a){const c=j5(a,dc(n));return!!(c&&(nc(c,16384)||c.flags&32769))}function Pgt(n){if(Uy(n))return;const a=wF(n);if(a&&Zl(a)){fd(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){fd(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}const c=Df(a),p=fs(c);if(ie||n.expression||p.flags&131072){const m=n.expression?jl(n.expression):he;if(a.kind===179)n.expression&&Qe(n,f.Setters_cannot_return_a_value);else if(a.kind===177){const b=n.expression?jl(n.expression):he;n.expression&&!CE(b,p,n,n.expression)&&Qe(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else if(zC(a)){const b=j5(p,dc(a))??p;T$(a,b,n,n.expression,m)}}else a.kind!==177&&O.noImplicitReturns&&!r3e(a,p)&&Qe(n,f.Not_all_code_paths_return_a_value)}function T$(n,a,c,p,m,b=!1){const I=Ir(c),w=dc(n);if(p){const Te=us(p,I);if(v1(Te)){T$(n,a,c,Te.whenTrue,_o(Te.whenTrue),!0),T$(n,a,c,Te.whenFalse,_o(Te.whenFalse),!0);return}}const U=c.kind===254,H=w&2?W5(m,!1,c,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):m,Q=p&&n$(p);CE(H,a,U&&!b?c:Q,Q)}function Lgt(n){Uy(n)||n.flags&65536&&fd(n,f.with_statements_are_not_allowed_in_an_async_function_block),_o(n.expression);const a=Wn(n);if(!gT(a)){const c=jh(a,n.pos).start,p=n.statement.pos;nS(a,c,p-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function kgt(n){Uy(n);let a,c=!1;const p=_o(n.expression);Ye(n.caseBlock.clauses,m=>{m.kind===298&&!c&&(a===void 0?a=m:(Cn(m,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),m.kind===297&&r(b(m)),Ye(m.statements,wa),O.noFallthroughCasesInSwitch&&m.fallthroughFlowNode&&u5(m.fallthroughFlowNode)&&Qe(m,f.Fallthrough_case_in_switch);function b(I){return()=>{const w=_o(I.expression);kge(p,w)||b8e(w,p,I.expression,void 0)}}}),n.caseBlock.locals&&hT(n.caseBlock)}function wgt(n){Uy(n)||Dn(n.parent,a=>Yo(a)?"quit":a.kind===257&&a.label.escapedText===n.label.escapedText?(Cn(n.label,f.Duplicate_label_0,Al(n.label)),!0):!1),wa(n.statement)}function Ogt(n){Uy(n)||He(n.expression)&&!n.expression.escapedText&&nbt(n,f.Line_break_not_permitted_here),n.expression&&_o(n.expression)}function Wgt(n){Uy(n),g$(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;G5(c);const p=Rc(c);if(p){const m=Ji(p);m&&!(m.flags&3)&&fd(p,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)fd(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{const m=a.block.locals;m&&fg(a.locals,b=>{const I=m.get(b);I?.valueDeclaration&&I.flags&2&&Cn(I.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Gi(b))})}}g$(a.block)}n.finallyBlock&&g$(n.finallyBlock)}function S$(n,a,c){const p=Xd(n);if(p.length===0)return;for(const b of Fv(n))c&&b.flags&4194304||i3e(n,b,Zx(b,8576,!0),xh(b));const m=a.valueDeclaration;if(m&&ui(m)){for(const b of m.members)if((!c&&!ua(b)||c&&ua(b))&&!WC(b)){const I=Wr(b);i3e(n,I,wd(b.name.expression),xh(I))}}if(p.length>1)for(const b of p)Fgt(n,b)}function i3e(n,a,c,p){const m=a.valueDeclaration,b=Oo(m);if(b&&eo(b))return;const I=lhe(n,c),w=Hr(n)&2?al(n.symbol,265):void 0,U=m&&m.kind===227||b&&b.kind===168?m:void 0,H=Yc(a)===n.symbol?m:void 0;for(const Q of I){const Ie=Q.declaration&&Yc(Wr(Q.declaration))===n.symbol?Q.declaration:void 0,Te=H||Ie||(w&&!yt(Zm(n),Ze=>!!TE(Ze,a.escapedName)&&!!H0(Ze,Q.keyType))?w:void 0);if(Te&&!aa(p,Q.type)){const Ze=cE(Te,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,uo(a),ar(p),ar(Q.keyType),ar(Q.type));U&&Te!==U&&pa(Ze,Ar(U,f._0_is_declared_here,uo(a))),ns.add(Ze)}}}function Fgt(n,a){const c=a.declaration,p=lhe(n,a.keyType),m=Hr(n)&2?al(n.symbol,265):void 0,b=c&&Yc(Wr(c))===n.symbol?c:void 0;for(const I of p){if(I===a)continue;const w=I.declaration&&Yc(Wr(I.declaration))===n.symbol?I.declaration:void 0,U=b||w||(m&&!yt(Zm(n),H=>!!Vg(H,a.keyType)&&!!H0(H,I.keyType))?m:void 0);U&&!aa(a.type,I.type)&&Qe(U,f._0_index_type_1_is_not_assignable_to_2_index_type_3,ar(a.keyType),ar(a.type),ar(I.keyType),ar(I.type))}}function FL(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":case"undefined":Qe(n,a,n.escapedText)}}function zgt(n){G>=1&&n.escapedText==="Object"&&e.getEmitModuleFormatOfFile(Wn(n))<5&&Qe(n,f.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,DR[j])}function Bgt(n){const a=Un(LT(n),mf);if(!et(a))return;const c=Ir(n),p=new Set,m=new Set;if(Ye(n.parameters,({name:I},w)=>{He(I)&&p.add(I.escapedText),Qo(I)&&m.add(w)}),dhe(n)){const I=a.length-1,w=a[I];c&&w&&He(w.name)&&w.typeExpression&&w.typeExpression.type&&!p.has(w.name.escapedText)&&!m.has(I)&&!im(Ji(w.typeExpression.type))&&Qe(w.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,Kr(w.name))}else Ye(a,({name:I,isNameFirst:w},U)=>{m.has(U)||He(I)&&p.has(I.escapedText)||(Lu(I)?c&&Qe(I,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Mp(I),Mp(I.left)):w||Jm(c,I,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Kr(I)))})}function U5(n){let a=!1;if(n)for(let p=0;p{p.default?(a=!0,Ggt(p.default,n,m)):a&&Qe(p,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let b=0;bp)return!1;for(let U=0;UOc(c)&&tu(c))&&Cn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!di(n,2048)&&fd(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),l3e(n),Ye(n.members,wa),hT(n)}function l3e(n){Rvt(n),F5(n),WL(n,n.name),U5(sb(n)),t8(n);const a=Wr(n),c=qs(a),p=Kp(c),m=_r(a);o3e(a),m$(a),r_t(n),!!(n.flags&33554432)||i_t(n);const I=lh(n);if(I){Ye(I.typeArguments,wa),G{const Ie=Q[0],Te=Py(c),Ze=Ru(Te);if(Jgt(Ze,I),wa(I.expression),yt(I.typeArguments)){Ye(I.typeArguments,wa);for(const Dt of Qm(Ze,I.typeArguments,I))if(!P4e(I,Dt.typeParameters))break}const Tt=Kp(Ie,c.thisType);if($d(p,Tt,void 0)?$d(m,m8e(Ze),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):u3e(n,p,Tt,f.Class_0_incorrectly_extends_base_class_1),Te.flags&8650752&&(Ed(m)?na(Te,1).some($t=>$t.flags&4)&&!di(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)),!(Ze.symbol&&Ze.symbol.flags&32)&&!(Te.flags&8650752)){const Dt=Bg(Ze,I.typeArguments,I);Ye(Dt,$t=>!E_($t.declaration)&&!Hg(fs($t),Ie))&&Qe(I.expression,f.Base_constructors_must_all_have_the_same_return_type)}Ygt(c,Ie)})}qgt(n,c,p,m);const w=tD(n);if(w)for(const H of w)(!Ds(H.expression)||eu(H.expression))&&Qe(H.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Gge(H),r(U(H));r(()=>{S$(c,a),S$(m,a,!0),zge(n),Zgt(n)});function U(H){return()=>{const Q=Pm(Ji(H));if(!pr(Q))if(Cz(Q)){const Ie=Q.symbol&&Q.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,Te=Kp(Q,c.thisType);$d(p,Te,void 0)||u3e(n,p,Te,Ie)}else Qe(H,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function qgt(n,a,c,p){const b=lh(n)&&Zm(a),I=b?.length?Kp($a(b),a.thisType):void 0,w=Py(a);for(const U of n.members)YG(U)||(Pl(U)&&Ye(U.parameters,H=>{Np(H,U)&&c3e(n,p,w,I,a,c,H,!0)}),c3e(n,p,w,I,a,c,U,!1))}function c3e(n,a,c,p,m,b,I,w,U=!0){const H=I.name&&sm(I.name)||sm(I);return H?d3e(n,a,c,p,m,b,d6(I),MS(I),ua(I),w,H,U?I:void 0):0}function d3e(n,a,c,p,m,b,I,w,U,H,Q,Ie){const Te=Ir(n),Ze=!!(n.flags&33554432);if(I&&Q?.valueDeclaration&&Tc(Q.valueDeclaration)&&Q.valueDeclaration.name&&xOe(Q.valueDeclaration.name))return Qe(Ie,Te?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:f.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(p&&(I||O.noImplicitOverride)){const Tt=U?a:b,Dt=U?c:p,$t=Ea(Tt,Q.escapedName),Tn=Ea(Dt,Q.escapedName),nr=ar(p);if($t&&!Tn&&I){if(Ie){const yr=v6e(Ol(Q),Dt);yr?Qe(Ie,Te?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,nr,uo(yr)):Qe(Ie,Te?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,nr)}return 2}else if($t&&Tn?.declarations&&O.noImplicitOverride&&!Ze){const yr=yt(Tn.declarations,MS);if(I)return 0;if(yr){if(w&&yr)return Ie&&Qe(Ie,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,nr),1}else{if(Ie){const Sn=H?Te?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:Te?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(Ie,Sn,nr)}return 1}}}else if(I){if(Ie){const Tt=ar(m);Qe(Ie,Te?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,Tt)}return 2}return 0}function u3e(n,a,c,p){let m=!1;for(const b of n.members){if(ua(b))continue;const I=b.name&&sm(b.name)||sm(b);if(I){const w=Ea(a,I.escapedName),U=Ea(c,I.escapedName);if(w&&U){const H=()=>qo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,uo(I),ar(a),ar(c));$d(_r(w),_r(U),b.name||b,void 0,H)||(m=!0)}}}m||$d(a,c,n.name||n,p)}function Jgt(n,a){const c=na(n,1);if(c.length){const p=c[0].declaration;if(p&&wp(p,2)){const m=cy(n.symbol);aye(a,m)||Qe(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Cv(n.symbol))}}}function Kgt(n,a,c){if(!a.name)return 0;const p=Wr(n),m=qs(p),b=Kp(m),I=_r(p),U=lh(n)&&Zm(m),H=U?.length?Kp($a(U),m.thisType):void 0,Q=Py(m),Ie=a.parent?d6(a):di(a,16);return d3e(n,I,Q,H,m,b,Ie,MS(a),ua(a),!1,c)}function tN(n){return Fl(n)&1?n.links.target:n}function Xgt(n){return Un(n.declarations,a=>a.kind===264||a.kind===265)}function Ygt(n,a){var c,p,m,b,I;const w=bs(a),U=new Map;e:for(const H of w){const Q=tN(H);if(Q.flags&4194304)continue;const Ie=TE(n,Q.escapedName);if(!Ie)continue;const Te=tN(Ie),Ze=Vf(Q);if(C.assert(!!Te,"derived should point to something, even if it is the base class' declaration."),Te===Q){const Tt=cy(n.symbol);if(Ze&64&&(!Tt||!di(Tt,64))){for(const yr of Zm(n)){if(yr===a)continue;const Sn=TE(yr,Q.escapedName),vn=Sn&&tN(Sn);if(vn&&vn!==Q)continue e}const Dt=ar(a),$t=ar(n),Tn=uo(H),nr=Bn((c=U.get(Tt))==null?void 0:c.missedProperties,Tn);U.set(Tt,{baseTypeName:Dt,typeName:$t,missedProperties:nr})}}else{const Tt=Vf(Te);if(Ze&2||Tt&2)continue;let Dt;const $t=Q.flags&98308,Tn=Te.flags&98308;if($t&&Tn){if((Fl(Q)&6?(p=Q.declarations)!=null&&p.some(Sn=>p3e(Sn,Ze)):(m=Q.declarations)!=null&&m.every(Sn=>p3e(Sn,Ze)))||Fl(Q)&262144||Te.valueDeclaration&&Nr(Te.valueDeclaration))continue;const nr=$t!==4&&Tn===4;if(nr||$t===4&&Tn!==4){const Sn=nr?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(Oo(Te.valueDeclaration)||Te.valueDeclaration,Sn,uo(Q),ar(a),ar(n))}else if(Z){const Sn=(b=Te.declarations)==null?void 0:b.find(vn=>vn.kind===173&&!vn.initializer);if(Sn&&!(Te.flags&33554432)&&!(Ze&64)&&!(Tt&64)&&!((I=Te.declarations)!=null&&I.some(vn=>!!(vn.flags&33554432)))){const vn=Xk(cy(n.symbol)),Sr=Sn.name;if(Sn.exclamationToken||!vn||!He(Sr)||!ie||!m3e(Sr,n,vn)){const fi=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(Oo(Te.valueDeclaration)||Te.valueDeclaration,fi,uo(Q),ar(a))}}}continue}else if(ege(Q)){if(ege(Te)||Te.flags&4)continue;C.assert(!!(Te.flags&98304)),Dt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Q.flags&98304?Dt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Dt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Qe(Oo(Te.valueDeclaration)||Te.valueDeclaration,Dt,ar(a),uo(Q),ar(n))}}for(const[H,Q]of U)if(et(Q.missedProperties)===1)uc(H)?Qe(H,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,$a(Q.missedProperties),Q.baseTypeName):Qe(H,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Q.typeName,$a(Q.missedProperties),Q.baseTypeName);else if(et(Q.missedProperties)>5){const Ie=Vt(Q.missedProperties.slice(0,4),Ze=>`'${Ze}'`).join(", "),Te=et(Q.missedProperties)-4;uc(H)?Qe(H,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,Q.baseTypeName,Ie,Te):Qe(H,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,Q.typeName,Q.baseTypeName,Ie,Te)}else{const Ie=Vt(Q.missedProperties,Te=>`'${Te}'`).join(", ");uc(H)?Qe(H,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,Q.baseTypeName,Ie):Qe(H,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,Q.typeName,Q.baseTypeName,Ie)}}function p3e(n,a){return a&64&&(!Po(n)||!n.initializer)||gd(n.parent)}function $gt(n,a,c){if(!et(a))return c;const p=new Map;Ye(c,m=>{p.set(m.escapedName,m)});for(const m of a){const b=bs(Kp(m,n.thisType));for(const I of b){const w=p.get(I.escapedName);w&&I.parent===w.parent&&p.delete(I.escapedName)}}return Co(p.values())}function Qgt(n,a){const c=Zm(n);if(c.length<2)return!0;const p=new Map;Ye(Jme(n).declaredProperties,b=>{p.set(b.escapedName,{prop:b,containingType:n})});let m=!0;for(const b of c){const I=bs(Kp(b,n.thisType));for(const w of I){const U=p.get(w.escapedName);if(!U)p.set(w.escapedName,{prop:w,containingType:b});else if(U.containingType!==n&&!Hdt(U.prop,w)){m=!1;const Q=ar(U.containingType),Ie=ar(b);let Te=qo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,uo(w),Q,Ie);Te=qo(Te,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,ar(n),Q,Ie),ns.add(hg(Wn(a),a,Te))}}}return m}function Zgt(n){if(!ie||!de||n.flags&33554432)return;const a=Xk(n);for(const c of n.members)if(!(Gd(c)&128)&&!ua(c)&&f3e(c)){const p=c.name;if(He(p)||eo(p)||va(p)){const m=_r(Wr(c));m.flags&3||HC(m)||(!a||!m3e(p,m,a))&&Qe(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,ws(p))}}}function f3e(n){return n.kind===173&&!MS(n)&&!n.exclamationToken&&!n.initializer}function eyt(n,a,c,p,m){for(const b of c)if(b.pos>=p&&b.pos<=m){const I=L.createPropertyAccessExpression(L.createThis(),n);ps(I.expression,I),ps(I,b),I.flowNode=b.returnFlowNode;const w=Vy(I,a,fT(a));if(!HC(w))return!0}return!1}function m3e(n,a,c){const p=va(n)?L.createElementAccessExpression(L.createThis(),n.expression):L.createPropertyAccessExpression(L.createThis(),n);ps(p.expression,p),ps(p,c),p.flowNode=c.returnFlowNode;const m=Vy(p,a,fT(a));return!HC(m)}function tyt(n){Kg(n)||kvt(n),O$(n.parent)||Cn(n,f._0_declarations_can_only_be_declared_inside_a_block,"interface"),U5(n.typeParameters),r(()=>{FL(n.name,f.Interface_name_cannot_be_0),t8(n);const a=Wr(n);o3e(a);const c=al(a,265);if(n===c){const p=qs(a),m=Kp(p);if(Qgt(p,n.name)){for(const b of Zm(p))$d(m,Kp(b,p.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);S$(p,a)}}D4e(n)}),Ye(tM(n),a=>{(!Ds(a.expression)||eu(a.expression))&&Qe(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Gge(a)}),Ye(n.members,wa),r(()=>{zge(n),hT(n)})}function nyt(n){if(Kg(n),FL(n.name,f.Type_alias_name_cannot_be_0),O$(n.parent)||Cn(n,f._0_declarations_can_only_be_declared_inside_a_block,"type"),t8(n),U5(n.typeParameters),n.type.kind===141){const a=et(n.typeParameters);(a===0?n.name.escapedText==="BuiltinIteratorReturn":a===1&&SU.has(n.name.escapedText))||Qe(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else wa(n.type),hT(n)}function h3e(n){const a=Vr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0,p;for(const m of n.members){const b=ryt(m,c,p);Vr(m).enumMemberValue=b,c=typeof b.value=="number"?b.value+1:void 0,p=m}}}function ryt(n,a,c){if(U2(n.name))Qe(n.name,f.Computed_property_names_are_not_allowed_in_enums);else if(gD(n.name))Qe(n.name,f.An_enum_member_cannot_have_a_numeric_name);else{const p=pI(n.name);Eg(p)&&!RM(p)&&Qe(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return iyt(n);if(n.parent.flags&33554432&&!wT(n.parent))return qc(void 0);if(a===void 0)return Qe(n.name,f.Enum_member_must_have_initializer),qc(void 0);if(ym(O)&&c?.initializer){const p=FA(c);typeof p.value=="number"&&!p.resolvedOtherFiles||Qe(n.name,f.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return qc(a)}function iyt(n){const a=wT(n.parent),c=n.initializer,p=Be(c,n);return p.value!==void 0?a&&typeof p.value=="number"&&!isFinite(p.value)?Qe(c,isNaN(p.value)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):ym(O)&&typeof p.value=="string"&&!p.isSyntacticallyString&&Qe(c,f._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Kr(n.parent.name)}.${pI(n.name)}`):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):$d(_o(c),Bt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),p}function _3e(n,a){const c=Vl(n,111551,!0);if(!c)return qc(void 0);if(n.kind===80){const p=n;if(RM(p.escapedText)&&c===jC(p.escapedText,111551,void 0))return qc(+p.escapedText,!1)}if(c.flags&8)return a?g3e(n,c,a):FA(c.valueDeclaration);if(oR(c)){const p=c.valueDeclaration;if(p&&yi(p)&&!p.type&&p.initializer&&(!a||p!==a&&Dy(p,a))){const m=Be(p.initializer,p);return a&&Wn(a)!==Wn(p)?qc(m.value,!1,!0,!0):qc(m.value,m.isSyntacticallyString,m.resolvedOtherFiles,!0)}}return qc(void 0)}function oyt(n,a){const c=n.expression;if(Ds(c)&&ds(n.argumentExpression)){const p=Vl(c,111551,!0);if(p&&p.flags&384){const m=Nl(n.argumentExpression.text),b=p.exports.get(m);if(b)return C.assert(Wn(b.valueDeclaration)===Wn(p.valueDeclaration)),a?g3e(n,b,a):FA(b.valueDeclaration)}}return qc(void 0)}function g3e(n,a,c){const p=a.valueDeclaration;if(!p||p===c)return Qe(n,f.Property_0_is_used_before_being_assigned,uo(a)),qc(void 0);if(!Dy(p,c))return Qe(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),qc(0);const m=FA(p);return c.parent!==p.parent?qc(m.value,m.isSyntacticallyString,m.resolvedOtherFiles,!0):m}function ayt(n){r(()=>syt(n))}function syt(n){Kg(n),WL(n,n.name),t8(n),n.members.forEach(wa),O.erasableSyntaxOnly&&!(n.flags&33554432)&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),h3e(n);const a=Wr(n),c=al(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){const m=wT(n);Ye(a.declarations,b=>{QT(b)&&wT(b)!==m&&Qe(Oo(b),f.Enum_declarations_must_all_be_const_or_non_const)})}let p=!1;Ye(a.declarations,m=>{if(m.kind!==267)return!1;const b=m;if(!b.members.length)return!1;const I=b.members[0];I.initializer||(p?Qe(I.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):p=!0)})}}function lyt(n){eo(n.name)&&Qe(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&_o(n.initializer)}function cyt(n){const a=n.declarations;if(a){for(const c of a)if((c.kind===264||c.kind===263&&fm(c.body))&&!(c.flags&33554432))return c}}function dyt(n,a){const c=sh(n),p=sh(a);return Zy(c)?Zy(p):Zy(p)?!1:c===p}function uyt(n){n.body&&(wa(n.body),M_(n)||hT(n)),r(a);function a(){var c,p;const m=M_(n),b=n.flags&33554432;m&&!b&&Qe(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const I=gu(n),w=I?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(H5(n,w))return;if(Kg(n)||!b&&n.name.kind===11&&Cn(n.name,f.Only_ambient_modules_can_use_quoted_names),He(n.name)&&(WL(n,n.name),!(n.flags&2080))){const H=Wn(n),Q=fte(n),Ie=jh(H,Q);X1.add(Wc(H,Ie.start,Ie.length,f.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}t8(n);const U=Wr(n);if(U.flags&512&&!b&&EU(n,Eb(O))){if(O.erasableSyntaxOnly&&Qe(n.name,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),ym(O)&&!Wn(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,Ge),((c=U.declarations)==null?void 0:c.length)>1){const H=cyt(U);H&&(Wn(n)!==Wn(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.posQ.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(I)if(bS(n)){if((m||Wr(n).flags&33554432)&&n.body)for(const Q of n.body.statements)tye(Q,m)}else Zy(n.parent)?m?Qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):td(zf(n.name))&&Qe(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):m?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 tye(n,a){switch(n.kind){case 244:for(const p of n.declarationList.declarations)tye(p,a);break;case 278:case 279:fd(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(t1(n))break;case 273:fd(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:const c=n.name;if(Qo(c)){for(const p of c.elements)tye(p,a);break}case 264:case 267:case 263:case 265:case 268:case 266:if(a)return;break}}function pyt(n){switch(n.kind){case 80:return n;case 167:do n=n.left;while(n.kind!==80);return n;case 212:do{if(gg(n.expression)&&!eo(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function E$(n){const a=hI(n);if(!a||Wl(a))return!1;if(!ka(a))return Qe(a,f.String_literal_expected),!1;const c=n.parent.kind===269&&gu(n.parent.parent);if(n.parent.kind!==308&&!c)return Qe(a,n.kind===279?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&td(a.text)&&!lL(n))return Qe(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!zc(n)&&n.attributes){const p=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions;let m=!1;for(const b of n.attributes.elements)ka(b.value)||(m=!0,Qe(b.value,p));return!m}return!0}function A$(n,a=!0){n===void 0||n.kind!==11||(a?(j===5||j===6)&&Cn(n,f.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):Cn(n,f.Identifier_expected))}function I$(n){var a,c,p,m,b;let I=Wr(n);const w=ud(I);if(w!==ne){if(I=os(I.exportSymbol||I),Ir(n)&&!(w.flags&111551)&&!$y(n)){const Q=cb(n)?n.propertyName||n.name:nd(n)?n.name:n;if(C.assert(n.kind!==281),n.kind===282){const Ie=Qe(Q,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Te=(c=(a=Wn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get(vS(n.propertyName||n.name));if(Te===w){const Ze=(p=Te.declarations)==null?void 0:p.find(BR);Ze&&pa(Ie,Ar(Ze,f._0_is_automatically_exported_here,Gi(Te.escapedName)))}}else{C.assert(n.kind!==261);const Ie=Dn(n,Rp(vl,zc)),Te=(Ie&&((m=mI(Ie))==null?void 0:m.text))??"...",Ze=Gi(He(Q)?Q.escapedText:I.escapedName);Qe(Q,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Ze,`import("${Te}").${Ze}`)}return}const U=dp(w),H=(I.flags&1160127?111551:0)|(I.flags&788968?788968:0)|(I.flags&1920?1920:0);if(U&H){const Q=n.kind===282?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;Qe(n,Q,uo(I))}else n.kind!==282&&O.isolatedModules&&!Dn(n,$y)&&I.flags&1160127&&Qe(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,uo(I),Ge);if(ym(O)&&!$y(n)&&!(n.flags&33554432)){const Q=Ah(I),Ie=!(U&111551);if(Ie||Q)switch(n.kind){case 274:case 277:case 272:{if(O.verbatimModuleSyntax){C.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const Te=O.verbatimModuleSyntax&&t1(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Ie?f._0_is_a_type_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_verbatimModuleSyntax_is_enabled,Ze=_b(n.kind===277&&n.propertyName||n.name);Wo(Qe(n,Te,Ze),Ie?void 0:Q,Ze)}Ie&&n.kind===272&&wp(n,32)&&Qe(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Ge);break}case 282:if(O.verbatimModuleSyntax||Wn(Q)!==Wn(n)){const Te=_b(n.propertyName||n.name),Ze=Ie?Qe(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Ge):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,Te,Ge);Wo(Ze,Ie?void 0:Q,Te);break}}if(O.verbatimModuleSyntax&&n.kind!==272&&!Ir(n)&&e.getEmitModuleFormatOfFile(Wn(n))===1?Qe(n,Y1(n)):j===200&&n.kind!==272&&n.kind!==261&&e.getEmitModuleFormatOfFile(Wn(n))===1&&Qe(n,f.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),O.verbatimModuleSyntax&&!$y(n)&&!(n.flags&33554432)&&U&128){const Te=w.valueDeclaration,Ze=(b=e.getRedirectFromOutput(Wn(Te).resolvedPath))==null?void 0:b.resolvedRef;Te.flags&33554432&&(!Ze||!Eb(Ze.commandLine.options))&&Qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Ge)}}if(Su(n)){const Q=nye(I,n);Iu(Q)&&Q.declarations&&Cm(n,Q.declarations,Q.escapedName)}}}function nye(n,a){if(!(n.flags&2097152)||Iu(n)||!cp(n))return n;const c=ud(n);if(c===ne)return c;for(;n.flags&2097152;){const p=qY(n);if(p){if(p===c)break;if(p.declarations&&et(p.declarations))if(Iu(p)){Cm(a,p.declarations,p.escapedName);break}else{if(n===c)break;n=p}}else break}return c}function x$(n){WL(n,n.name),I$(n),n.kind===277&&(A$(n.propertyName),N_(n.propertyName||n.name)&&$h(O)&&e.getEmitModuleFormatOfFile(Wn(n))<4&&$c(n,131072))}function rye(n){var a;const c=n.attributes;if(c){const p=vhe(!0);p!==Ra&&$d(Fme(c),r5(p,32768),c);const m=aH(n),b=UD(c,m?Cn:void 0),I=n.attributes.token===118;if(m&&b)return;if(!qne(j))return Cn(c,I?f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=j&&j<=199&&!I)return fd(c,f.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(n.moduleSpecifier&&Cy(n.moduleSpecifier)===1)return Cn(c,I?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(o_(n)||(vl(n)?(a=n.importClause)==null?void 0:a.isTypeOnly:n.isTypeOnly))return Cn(c,I?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(b)return Cn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function fyt(n){return Du(jl(n.value))}function myt(n){if(!H5(n,Ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Kg(n)&&n.modifiers&&fd(n,f.An_import_declaration_cannot_have_modifiers),E$(n)){let a;const c=n.importClause;c&&!ibt(c)?(c.name&&x$(c),c.namedBindings&&(c.namedBindings.kind===275?(x$(c.namedBindings),e.getEmitModuleFormatOfFile(Wn(n))<4&&$h(O)&&$c(n,65536)):(a=du(n,n.moduleSpecifier),a&&Ye(c.namedBindings.elements,x$))),!c.isTypeOnly&&101<=j&&j<=199&&Qb(n.moduleSpecifier,a)&&!hyt(n)&&Qe(n.moduleSpecifier,f.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,DR[j])):Je&&!c&&du(n,n.moduleSpecifier)}rye(n)}}function hyt(n){return!!n.attributes&&n.attributes.elements.some(a=>{var c;return zf(a.name)==="type"&&((c=ni(a.value,ds))==null?void 0:c.text)==="json"})}function _yt(n){if(!H5(n,Ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Kg(n),O.erasableSyntaxOnly&&!(n.flags&33554432)&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),t1(n)||E$(n)))if(x$(n),aR(n,6),n.moduleReference.kind!==284){const a=ud(Wr(n));if(a!==ne){const c=dp(a);if(c&111551){const p=Pu(n.moduleReference);Vl(p,112575).flags&1920||Qe(p,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,ws(p))}c&788968&&FL(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&Cn(n,f.An_import_alias_cannot_use_import_type)}else 5<=j&&j<=99&&!n.isTypeOnly&&!(n.flags&33554432)&&Cn(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 gyt(n){if(!H5(n,Ir(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Kg(n)&&_ne(n)&&fd(n,f.An_export_declaration_cannot_have_modifiers),yyt(n),!n.moduleSpecifier||E$(n))if(n.exportClause&&!O_(n.exportClause)){Ye(n.exportClause.elements,vyt);const a=n.parent.kind===269&&gu(n.parent.parent),c=!a&&n.parent.kind===269&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==308&&!a&&!c&&Qe(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=du(n,n.moduleSpecifier);a&&Ym(a)?Qe(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,uo(a)):n.exportClause&&(I$(n.exportClause),A$(n.exportClause.name)),e.getEmitModuleFormatOfFile(Wn(n))<4&&(n.exportClause?$h(O)&&$c(n,65536):$c(n,32768))}rye(n)}}function yyt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===280?Q3e(n.exportClause):!1}function H5(n,a){const c=n.parent.kind===308||n.parent.kind===269||n.parent.kind===268;return c||fd(n,a),!c}function vyt(n){I$(n);const a=n.parent.parent.moduleSpecifier!==void 0;if(A$(n.propertyName,a),A$(n.name),_p(O)&&kC(n.propertyName||n.name,!0),a)$h(O)&&e.getEmitModuleFormatOfFile(Wn(n))<4&&N_(n.propertyName||n.name)&&$c(n,131072);else{const c=n.propertyName||n.name;if(c.kind===11)return;const p=_t(c,c.escapedText,2998271,void 0,!0);p&&(p===ce||p===Re||p.declarations&&Zy(Pt(p.declarations[0])))?Qe(c,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Kr(c)):aR(n,7)}}function byt(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(H5(n,a))return;O.erasableSyntaxOnly&&n.isExportEquals&&!(n.flags&33554432)&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);const c=n.parent.kind===308?n.parent:n.parent.parent;if(c.kind===268&&!gu(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}!Kg(n)&&XG(n)&&fd(n,f.An_export_assignment_cannot_have_modifiers);const p=Rc(n);p&&$d(jl(n.expression),Ji(p),n.expression);const m=!n.isExportEquals&&!(n.flags&33554432)&&O.verbatimModuleSyntax&&e.getEmitModuleFormatOfFile(Wn(n))===1;if(n.expression.kind===80){const b=n.expression,I=Et(Vl(b,-1,!0,!0,n));if(I){aR(n,3);const w=Ah(I,111551);if(dp(I)&111551?(jl(b),!m&&!(n.flags&33554432)&&O.verbatimModuleSyntax&&w&&Qe(b,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,Kr(b))):!m&&!(n.flags&33554432)&&O.verbatimModuleSyntax&&Qe(b,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,Kr(b)),!m&&!(n.flags&33554432)&&ym(O)&&!(I.flags&111551)){const U=dp(I,!1,!0);I.flags&2097152&&U&788968&&!(U&111551)&&(!w||Wn(w)!==Wn(n))?Qe(b,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,Kr(b),Ge):w&&Wn(w)!==Wn(n)&&Wo(Qe(b,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,Kr(b),Ge),w,Kr(b))}}else jl(b);_p(O)&&kC(b,!0)}else jl(n.expression);m&&Qe(n,Y1(n)),y3e(c),n.flags&33554432&&!Ds(n.expression)&&Cn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(j>=5&&j!==200&&(n.flags&33554432&&e.getImpliedNodeFormatForEmit(Wn(n))===99||!(n.flags&33554432)&&e.getImpliedNodeFormatForEmit(Wn(n))!==1)?Cn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):j===4&&!(n.flags&33554432)&&Cn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function Tyt(n){return Hc(n.exports,(a,c)=>c!=="export=")}function y3e(n){const a=Wr(n),c=Jr(a);if(!c.exportsChecked){const p=a.exports.get("export=");if(p&&Tyt(a)){const b=cp(p)||p.valueDeclaration;b&&!lL(b)&&!Ir(b)&&Qe(b,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const m=__(a);m&&m.forEach(({declarations:b,flags:I},w)=>{if(w==="__export"||I&1920)return;const U=Io(b,M8(qUe,P8(gd)));if(!(I&524288&&U<=2)&&U>1&&!R$(b))for(const H of b)g1e(H)&&ns.add(Ar(H,f.Cannot_redeclare_exported_variable_0,Gi(w)))}),c.exportsChecked=!0}}function R$(n){return n&&n.length>1&&n.every(a=>Ir(a)&&Ks(a)&&(n1(a.expression)||gg(a.expression)))}function wa(n){if(n){const a=R;R=n,y=0,Syt(n),R=a}}function Syt(n){if(pR(n)&8388608)return;fk(n)&&Ye(n.jsDoc,({comment:c,tags:p})=>{v3e(c),Ye(p,m=>{v3e(m.comment),Ir(n)&&wa(m)})});const a=n.kind;if(i)switch(a){case 268:case 264:case 265:case 263:i.throwIfCancellationRequested()}switch(a>=244&&a<=260&&ZR(n)&&n.flowNode&&!u5(n.flowNode)&&Jm(O.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 169:return I4e(n);case 170:return x4e(n);case 173:return C4e(n);case 172:return o_t(n);case 186:case 185:case 180:case 181:case 182:return ZW(n);case 175:case 174:return a_t(n);case 176:return s_t(n);case 177:return l_t(n);case 178:case 179:return M4e(n);case 184:return Gge(n);case 183:return t_t(n);case 187:return m_t(n);case 188:return h_t(n);case 189:return __t(n);case 190:return g_t(n);case 193:case 194:return y_t(n);case 197:case 191:case 192:return wa(n.type);case 198:return S_t(n);case 199:return E_t(n);case 195:return A_t(n);case 196:return I_t(n);case 204:return x_t(n);case 206:return R_t(n);case 203:return D_t(n);case 329:return K_t(n);case 330:return J_t(n);case 347:case 339:case 341:return W_t(n);case 346:return F_t(n);case 345:return z_t(n);case 325:case 326:case 327:return G_t(n);case 342:return V_t(n);case 349:return j_t(n);case 318:U_t(n);case 316:case 315:case 313:case 314:case 323:b3e(n),Jo(n,wa);return;case 319:Eyt(n);return;case 310:return wa(n.type);case 334:case 336:case 335:return X_t(n);case 351:return B_t(n);case 344:return H_t(n);case 352:return q_t(n);case 200:return v_t(n);case 201:return b_t(n);case 263:return O_t(n);case 242:case 269:return g$(n);case 244:return fgt(n);case 245:return mgt(n);case 246:return hgt(n);case 247:return ygt(n);case 248:return vgt(n);case 249:return bgt(n);case 250:return Sgt(n);case 251:return Tgt(n);case 252:case 253:return Mgt(n);case 254:return Pgt(n);case 255:return Lgt(n);case 256:return kgt(n);case 257:return wgt(n);case 258:return Ogt(n);case 259:return Wgt(n);case 261:return ugt(n);case 209:return pgt(n);case 264:return Hgt(n);case 265:return tyt(n);case 266:return nyt(n);case 267:return ayt(n);case 307:return lyt(n);case 268:return uyt(n);case 273:return myt(n);case 272:return _yt(n);case 279:return gyt(n);case 278:return byt(n);case 243:case 260:Uy(n);return;case 283:return d_t(n)}}function v3e(n){Mo(n)&&Ye(n,a=>{aI(a)&&wa(a)})}function b3e(n){if(!Ir(n))if(u4(n)||xD(n)){const a=_a(u4(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,p=n.type,m=Ji(p);Cn(n,c,a,ar(xD(n)&&!(m===yn||m===In)?pi(Bn([m,he],n.postfix?void 0:Xt)):m))}else Cn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Eyt(n){b3e(n),wa(n.type);const{parent:a}=n;if(to(a)&&RD(a.parent)){Ba(a.parent.parameters)!==a&&Qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}e0(a)||Qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!mf(c)){Qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const p=mk(c);if(!p)return;const m=zT(c);(!m||Ba(m.parameters).symbol!==p)&&Qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function Ayt(n){const a=Ji(n.type),{parent:c}=n,p=n.parent.parent;if(e0(n.parent)&&mf(p)){const m=zT(p),b=pj(p.parent.parent);if(m||b){const I=Zs(b?p.parent.parent.typeExpression.parameters:m.parameters),w=mk(p);if(!I||w&&I.symbol===w&&C_(I))return Yd(a)}}return to(c)&&RD(c.parent)?Yd(a):uu(a)}function dR(n){const a=Wn(n),c=Vr(a);c.flags&1?C.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function T3e(n){const a=Vr(n);a.deferredNodes&&a.deferredNodes.forEach(Iyt),a.deferredNodes=void 0}function Iyt(n){var a,c;(a=xr)==null||a.push(xr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const p=R;switch(R=n,y=0,n.kind){case 214:case 215:case 216:case 171:case 287:wA(n);break;case 219:case 220:case 175:case 174:_ht(n);break;case 178:case 179:M4e(n);break;case 232:Ugt(n);break;case 169:e_t(n);break;case 286:Eft(n);break;case 285:Ift(n);break;case 217:case 235:case 218:Bmt(n);break;case 223:_o(n.expression);break;case 227:f6(n)&&wA(n);break}R=p,(c=xr)==null||c.pop()}function xyt(n,a){var c,p;(c=xr)==null||c.push(xr.Phase.Check,a?"checkSourceFileNodes":"checkSourceFile",{path:n.path},!0);const m=a?"beforeCheckNodes":"beforeCheck",b=a?"afterCheckNodes":"afterCheck";Dl(m),a?Dyt(n,a):Ryt(n),Dl(b),wf("Check",m,b),(p=xr)==null||p.pop()}function S3e(n,a){if(a)return!1;switch(n){case 0:return!!O.noUnusedLocals;case 1:return!!O.noUnusedParameters;default:return C.assertNever(n)}}function E3e(n){return Qn.get(n.path)||ae}function Ryt(n){const a=Vr(n);if(!(a.flags&1)){if(fD(n,O,e))return;Y3e(n),hi(Hb),hi(Sv),hi(Sy),hi(Ey),hi(Ay),a.flags&8388608&&(Hb=a.potentialThisCollisions,Sv=a.potentialNewTargetCollisions,Sy=a.potentialWeakMapSetCollisions,Ey=a.potentialReflectCollisions,Ay=a.potentialUnusedRenamedBindingElementsInTypes),Ye(n.statements,wa),wa(n.endOfFileToken),T3e(n),Pp(n)&&hT(n),r(()=>{!n.isDeclarationFile&&(O.noUnusedLocals||O.noUnusedParameters)&&V4e(E3e(n),(c,p,m)=>{!dI(c)&&S3e(p,!!(c.flags&33554432))&&ns.add(m)}),n.isDeclarationFile||Z_t()}),Pp(n)&&y3e(n),Hb.length&&(Ye(Hb,ngt),hi(Hb)),Sv.length&&(Ye(Sv,rgt),hi(Sv)),Sy.length&&(Ye(Sy,sgt),hi(Sy)),Ey.length&&(Ye(Ey,cgt),hi(Ey)),a.flags|=1}}function Dyt(n,a){const c=Vr(n);if(!(c.flags&1)){if(fD(n,O,e))return;Y3e(n),hi(Hb),hi(Sv),hi(Sy),hi(Ey),hi(Ay),Ye(a,wa),T3e(n),(c.potentialThisCollisions||(c.potentialThisCollisions=[])).push(...Hb),(c.potentialNewTargetCollisions||(c.potentialNewTargetCollisions=[])).push(...Sv),(c.potentialWeakMapSetCollisions||(c.potentialWeakMapSetCollisions=[])).push(...Sy),(c.potentialReflectCollisions||(c.potentialReflectCollisions=[])).push(...Ey),(c.potentialUnusedRenamedBindingElementsInTypes||(c.potentialUnusedRenamedBindingElementsInTypes=[])).push(...Ay),c.flags|=8388608;for(const p of a){const m=Vr(p);m.flags|=8388608}}}function A3e(n,a,c){try{return i=a,Cyt(n,c)}finally{i=void 0}}function iye(){for(const n of t)n();t=[]}function oye(n,a){iye();const c=r;r=p=>p(),xyt(n,a),r=c}function Cyt(n,a){if(n){iye();const c=ns.getGlobalDiagnostics(),p=c.length;oye(n,a);const m=ns.getDiagnostics(n.fileName);if(a)return m;const b=ns.getGlobalDiagnostics();if(b!==c){const I=SQ(c,b,_M);return so(I,m)}else if(p===0&&b.length>0)return so(b,m);return m}return Ye(e.getSourceFiles(),c=>oye(c)),ns.getDiagnostics()}function Nyt(){return iye(),ns.getGlobalDiagnostics()}function Myt(n,a){if(n.flags&67108864)return[];const c=da();let p=!1;return m(),c.delete("this"),che(c);function m(){for(;n;){switch(D_(n)&&n.locals&&!Zy(n)&&I(n.locals,a),n.kind){case 308:if(!Bc(n))break;case 268:w(Wr(n).exports,a&2623475);break;case 267:I(Wr(n).exports,a&8);break;case 232:n.name&&b(n.symbol,a);case 264:case 265:p||I($_(Wr(n)),a&788968);break;case 219:n.name&&b(n.symbol,a);break}kte(n)&&b(_e,a),p=ua(n),n=n.parent}I(lt,a)}function b(U,H){if(lD(U)&H){const Q=U.escapedName;c.has(Q)||c.set(Q,U)}}function I(U,H){H&&U.forEach(Q=>{b(Q,H)})}function w(U,H){H&&U.forEach(Q=>{!al(Q,282)&&!al(Q,281)&&Q.escapedName!=="default"&&b(Q,H)})}}function Pyt(n){return n.kind===80&&MI(n.parent)&&Oo(n.parent)===n}function I3e(n){for(;n.parent.kind===167;)n=n.parent;return n.parent.kind===184}function Lyt(n){for(;n.parent.kind===212;)n=n.parent;return n.parent.kind===234}function x3e(n,a){let c,p=hd(n);for(;p&&!(c=a(p));)p=hd(p);return c}function kyt(n){return!!Dn(n,a=>Pl(a)&&fm(a.body)||Po(a)?!0:ui(a)||Ms(a)?"quit":!1)}function aye(n,a){return!!x3e(n,c=>c===a)}function wyt(n){for(;n.parent.kind===167;)n=n.parent;if(n.parent.kind===272)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===278)return n.parent.expression===n?n.parent:void 0}function D$(n){return wyt(n)!==void 0}function Oyt(n){switch(ac(n.parent.parent)){case 1:case 3:return If(n.parent);case 5:if(qr(n.parent)&&cD(n.parent)===n)return;case 4:case 2:return Wr(n.parent.parent)}}function Wyt(n){let a=n.parent;for(;Lu(a);)n=a,a=a.parent;if(a&&a.kind===206&&a.qualifier===n)return a}function Fyt(n){if(n.expression.kind===110){const a=yu(n,!1,!1);if(Yo(a)){const c=OFe(a);if(c){const p=tS(c,void 0),m=FFe(c,p);return m&&!wr(m)}}}}function R3e(n){if(L_(n))return If(n.parent);if(Ir(n)&&n.parent.kind===212&&n.parent===n.parent.parent.left&&!eo(n)&&!t0(n)&&!Fyt(n.parent)){const a=Oyt(n);if(a)return a}if(n.parent.kind===278&&Ds(n)){const a=Vl(n,2998271,!0);if(a&&a!==ne)return a}else if(Nu(n)&&D$(n)){const a=GT(n,272);return C.assert(a!==void 0),tT(n,!0)}if(Nu(n)){const a=Wyt(n);if(a){Ji(a);const c=Vr(n).resolvedSymbol;return c===ne?void 0:c}}for(;Sne(n);)n=n.parent;if(Lyt(n)){let a=0;n.parent.kind===234?(a=Hh(n)?788968:111551,p6(n.parent)&&(a|=111551)):a=1920,a|=2097152;const c=Ds(n)?Vl(n,a,!0):void 0;if(c)return c}if(n.parent.kind===342)return mk(n.parent);if(n.parent.kind===169&&n.parent.parent.kind===346){C.assert(!Ir(n));const a=Yte(n.parent);return a&&a.symbol}if(P_(n)){if(Wl(n))return;const a=Dn(n,Rp(aI,UM,t0)),c=a?901119:111551;if(n.kind===80){if(YR(n)&&lR(n)){const m=KY(n.parent);return m===ne?void 0:m}const p=Vl(n,c,!0,!0,zT(n));if(!p&&a){const m=Dn(n,Rp(ui,gd));if(m)return q5(n,!0,Wr(m))}if(p&&a){const m=AS(n);if(m&&py(m)&&m===p.valueDeclaration)return Vl(n,c,!0,!0,Wn(m))||p}return p}else{if(eo(n))return QY(n);if(n.kind===212||n.kind===167){const p=Vr(n);return p.resolvedSymbol?p.resolvedSymbol:(n.kind===212?($Y(n,0),p.resolvedSymbol||(p.resolvedSymbol=D3e(jl(n.expression),ky(n.name)))):m6e(n,0),!p.resolvedSymbol&&a&&Lu(n)?q5(n):p.resolvedSymbol)}else if(t0(n))return q5(n)}}else if(Nu(n)&&I3e(n)){const a=n.parent.kind===184?788968:1920,c=Vl(n,a,!0,!0);return c&&c!==ne?c:YX(n)}if(n.parent.kind===183)return Vl(n,1,!0)}function D3e(n,a){const c=lhe(n,a);if(c.length&&n.members){const p=qX(Dh(n).members);if(c===Xd(n))return p;if(p){const m=Jr(p),b=Ui(c,w=>w.declaration),I=Vt(b,ls).join(",");if(m.filteredIndexSymbolCache||(m.filteredIndexSymbolCache=new Map),m.filteredIndexSymbolCache.has(I))return m.filteredIndexSymbolCache.get(I);{const w=ja(131072,"__index");return w.declarations=Ui(c,U=>U.declaration),w.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:sm(w.declarations[0].parent),m.filteredIndexSymbolCache.set(I,w),w}}}}function q5(n,a,c){if(Nu(n)){let I=Vl(n,901119,a,!0,zT(n));if(!I&&He(n)&&c&&(I=os(Sd(qp(c),n.escapedText,901119))),I)return I}const p=He(n)?c:q5(n.left,a,c),m=He(n)?n.escapedText:n.right.escapedText;if(p){const b=p.flags&111551&&Ea(_r(p),"prototype"),I=b?_r(b):qs(p);return Ea(I,m)}}function sm(n,a){if(Yi(n))return Bc(n)?os(n.symbol):void 0;const{parent:c}=n,p=c.parent;if(!(n.flags&67108864)){if(y1e(n)){const m=Wr(c);return cb(n.parent)&&n.parent.propertyName===n?qY(m):m}else if(_k(n))return Wr(c.parent);if(n.kind===80){if(D$(n))return R3e(n);if(c.kind===209&&p.kind===207&&n===c.propertyName){const m=uR(p),b=Ea(m,n.escapedText);if(b)return b}else if(b1(c)&&c.name===n)return c.keywordToken===105&&Kr(n)==="target"?Sge(c).symbol:c.keywordToken===102&&Kr(n)==="meta"?_We().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 212:case 167:if(!CS(n))return R3e(n);case 110:const m=yu(n,!1,!1);if(Yo(m)){const w=Df(m);if(w.thisParameter)return w.thisParameter}if(BF(n))return _o(n).symbol;case 198:return Vhe(n).symbol;case 108:return _o(n).symbol;case 137:const b=n.parent;return b&&b.kind===177?b.parent.symbol:void 0;case 11:case 15:if(WT(n.parent.parent)&&qN(n.parent.parent)===n||(n.parent.kind===273||n.parent.kind===279)&&n.parent.moduleSpecifier===n||Ir(n)&&o_(n.parent)&&n.parent.moduleSpecifier===n||Ir(n)&&Zu(n.parent,!1)||Qu(n.parent)||dv(n.parent)&&ry(n.parent.parent)&&n.parent.parent.argument===n.parent)return du(n,n,a);if(Zo(c)&&r1(c)&&c.arguments[1]===n)return Wr(c);case 9:const I=Ws(c)?c.argumentExpression===n?wd(c.expression):void 0:dv(c)&&zS(p)?Ji(p.objectType):void 0;return I&&Ea(I,Nl(n.text));case 90:case 100:case 39:case 86:return If(n.parent);case 206:return ry(n)?sm(n.argument.literal,a):void 0;case 95:return ll(n.parent)?C.checkDefined(n.parent.symbol):void 0;case 102:if(b1(n.parent)&&n.parent.name.escapedText==="defer")return;case 105:return b1(n.parent)?Q6e(n.parent).symbol:void 0;case 104:if(Nr(n.parent)){const w=wd(n.parent.right),U=Lge(w);return U?.symbol??w.symbol}return;case 237:return _o(n).symbol;case 296:if(YR(n)&&lR(n)){const w=KY(n.parent);return w===ne?void 0:w}default:return}}}function zyt(n){if(He(n)&&qr(n.parent)&&n.parent.name===n){const a=ky(n),c=wd(n.parent.expression),p=c.flags&1048576?c.types:[c];return Ki(p,m=>Un(Xd(m),b=>$x(a,b.keyType)))}}function Byt(n){if(n&&n.kind===305)return Vl(n.name,2208703,!0)}function Gyt(n){if(iu(n)){const a=n.propertyName||n.name;return n.parent.parent.moduleSpecifier?k0(n.parent.parent,n):a.kind===11?void 0:Vl(a,2998271,!0)}else return Vl(n,2998271,!0)}function uR(n){if(Yi(n)&&!Bc(n)||n.flags&67108864)return nt;const a=eV(n),c=a&&tm(Wr(a.class));if(Hh(n)){const p=Ji(n);return c?Kp(p,c.thisType):p}if(P_(n))return C3e(n);if(c&&!a.isImplements){const p=Ic(Zm(c));return p?Kp(p,c.thisType):nt}if(MI(n)){const p=Wr(n);return qs(p)}if(Pyt(n)){const p=sm(n);return p?qs(p):nt}if(Ha(n))return Jx(n,!0,0)||nt;if(rd(n)){const p=Wr(n);return p?_r(p):nt}if(y1e(n)){const p=sm(n);return p?_r(p):nt}if(Qo(n))return Jx(n.parent,!0,0)||nt;if(D$(n)){const p=sm(n);if(p){const m=qs(p);return pr(m)?_r(p):m}}return b1(n.parent)&&n.parent.keywordToken===n.kind?Q6e(n.parent):S1(n)?vhe(!1):nt}function C$(n){if(C.assert(n.kind===211||n.kind===210),n.parent.kind===251){const m=V5(n.parent);return WA(n,m||nt)}if(n.parent.kind===227){const m=wd(n.parent.right);return WA(n,m||nt)}if(n.parent.kind===304){const m=ma(n.parent.parent,Wa),b=C$(m)||nt,I=jR(m.properties,n.parent);return f4e(m,b,I)}const a=ma(n.parent,Cd),c=C$(a)||nt,p=Uv(65,c,he,n.parent)||nt;return m4e(a,c,a.elements.indexOf(n),p)}function Vyt(n){const a=C$(ma(n.parent.parent,ON));return a&&Ea(a,n.escapedText)}function C3e(n){return dM(n)&&(n=n.parent),Du(wd(n))}function N3e(n){const a=If(n.parent);return ua(n)?_r(a):qs(a)}function M3e(n){const a=n.name;switch(a.kind){case 80:return Sp(Kr(a));case 9:case 11:return Sp(a.text);case 168:const c=th(a);return kd(c,12288)?c:gt;default:return C.fail("Unsupported property name.")}}function sye(n){n=Ru(n);const a=da(bs(n)),c=na(n,0).length?go:na(n,1).length?Za:void 0;return c&&Ye(bs(c),p=>{a.has(p.escapedName)||a.set(p.escapedName,p)}),Vu(a)}function N$(n){return na(n,0).length!==0||na(n,1).length!==0}function P3e(n){const a=jyt(n);return a?Ki(a,P3e):[n]}function jyt(n){if(Fl(n)&6)return Ui(Jr(n).containingType.types,a=>Ea(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:c,syntheticOrigin:p}}=n;return a?[a,c]:p?[p]:$A(Uyt(n))}}function Uyt(n){let a,c=n;for(;c=Jr(c).target;)a=c;return a}function Hyt(n){if(pl(n))return!1;const a=jo(n,He);if(!a)return!1;const c=a.parent;return c?!((qr(c)||Nc(c))&&c.name===a)&&c8(a)===_e:!1}function qyt(n){return w2(n.parent)&&n===n.parent.name}function Jyt(n,a){var c;const p=jo(n,He);if(p){let m=c8(p,qyt(p));if(m){if(m.flags&1048576){const I=os(m.exportSymbol);if(!a&&I.flags&944&&!(I.flags&3))return;m=I}const b=Yc(m);if(b){if(b.flags&512&&((c=b.valueDeclaration)==null?void 0:c.kind)===308){const I=b.valueDeclaration,w=Wn(p);return I!==w?void 0:I}return Dn(p.parent,I=>w2(I)&&Wr(I)===b)}}}}function Kyt(n){const a=jre(n);if(a)return a;const c=jo(n,He);if(c){const p=cvt(c);if(nA(p,111551)&&!Ah(p,111551))return cp(p)}}function Xyt(n){return n.valueDeclaration&&Ha(n.valueDeclaration)&&UE(n.valueDeclaration).parent.kind===300}function L3e(n){if(n.flags&418&&n.valueDeclaration&&!Yi(n.valueDeclaration)){const a=Jr(n);if(a.isDeclarationWithCollidingName===void 0){const c=sh(n.valueDeclaration);if(dte(c)||Xyt(n))if(_t(c.parent,n.escapedName,111551,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(lye(n.valueDeclaration,16384)){const p=lye(n.valueDeclaration,32768),m=pb(c,!1),b=c.kind===242&&pb(c.parent,!1);a.isDeclarationWithCollidingName=!yte(c)&&(!p||!m&&!b)}else a.isDeclarationWithCollidingName=!1}return a.isDeclarationWithCollidingName}return!1}function Yyt(n){if(!pl(n)){const a=jo(n,He);if(a){const c=c8(a);if(c&&L3e(c))return c.valueDeclaration}}}function $yt(n){const a=jo(n,rd);if(a){const c=Wr(a);if(c)return L3e(c)}return!1}function k3e(n){switch(C.assert(We),n.kind){case 272:return M$(Wr(n));case 274:case 275:case 277:case 282:const a=Wr(n);return!!a&&M$(a,!0);case 279:const c=n.exportClause;return!!c&&(O_(c)||yt(c.elements,k3e));case 278:return n.expression&&n.expression.kind===80?M$(Wr(n),!0):!0}return!1}function Qyt(n){const a=jo(n,zc);return a===void 0||a.parent.kind!==308||!t1(a)?!1:M$(Wr(a))&&a.moduleReference&&!Wl(a.moduleReference)}function M$(n,a){if(!n)return!1;const c=Wn(n.valueDeclaration),p=c&&Wr(c);Tp(p);const m=Et(ud(n));return m===ne?!a||!Ah(n):!!(dp(n,a,!0)&111551)&&(Eb(O)||!l8(m))}function l8(n){return Pge(n)||!!n.constEnumOnlyModule}function w3e(n,a){if(C.assert(We),Rv(n)){const c=Wr(n),p=c&&Jr(c);if(p?.referenced)return!0;const m=Jr(c).aliasTarget;if(m&&Gd(n)&32&&dp(m)&111551&&(Eb(O)||!l8(m)))return!0}return a?!!Jo(n,c=>w3e(c,a)):!1}function O3e(n){if(fm(n.body)){if(ug(n)||Vh(n))return!1;const a=Wr(n),c=EE(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function Zyt(n){const a=z3e(n);if(!a)return!1;const c=Ji(a);return pr(c)||HC(c)}function J5(n,a){return(evt(n,a)||tvt(n))&&!Zyt(n)}function evt(n,a){return!ie||bW(n)||mf(n)||!n.initializer?!1:di(n,31)?!!a&&Ms(a):!0}function tvt(n){return ie&&bW(n)&&(mf(n)||!n.initializer)&&di(n,31)}function W3e(n){const a=jo(n,p=>ec(p)||yi(p));if(!a)return!1;let c;if(yi(a)){if(a.type||!Ir(a)&&!d8(a))return!1;const p=XN(a);if(!p||!ah(p))return!1;c=Wr(p)}else c=Wr(a);return!c||!(c.flags&16|3)?!1:!!Hc(qp(c),p=>p.flags&111551&&kI(p.valueDeclaration))}function nvt(n){const a=jo(n,ec);if(!a)return ae;const c=Wr(a);return c&&bs(_r(c))||ae}function pR(n){var a;const c=n.id||0;return c<0||c>=S0.length?0:((a=S0[c])==null?void 0:a.flags)||0}function lye(n,a){return rvt(n,a),!!(pR(n)&a)}function rvt(n,a){if(!O.noCheck&&EM(Wn(n),O)||Vr(n).calculatedFlags&a)return;switch(a){case 16:case 32:return I(n);case 128:case 256:case 2097152:return b(n);case 512:case 8192:case 65536:case 262144:return U(n);case 536870912:return Q(n);case 4096:case 32768:case 16384:return Te(n);default:return C.assertNever(a,`Unhandled node check flag calculation: ${C.formatNodeCheckFlags(a)}`)}function p(Tt,Dt){const $t=Dt(Tt,Tt.parent);if($t!=="skip")return $t||$I(Tt,Dt)}function m(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=2097536,I(Tt)}function b(Tt){p(Tt,m)}function I(Tt){const Dt=Vr(Tt);Dt.calculatedFlags|=48,Tt.kind===108&&zY(Tt)}function w(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=336384,Q(Tt)}function U(Tt){p(Tt,w)}function H(Tt){return P_(Tt)||Ud(Tt.parent)&&(Tt.parent.objectAssignmentInitializer??Tt.parent.name)===Tt}function Q(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags|=536870912,He(Tt)&&(Dt.calculatedFlags|=49152,H(Tt)&&!(qr(Tt.parent)&&Tt.parent.name===Tt))){const $t=pu(Tt);$t&&$t!==ne&&PFe(Tt,$t)}}function Ie(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=53248,Ze(Tt)}function Te(Tt){const Dt=sh(L_(Tt)?Tt.parent:Tt);p(Dt,Ie)}function Ze(Tt){Q(Tt),va(Tt)&&th(Tt),eo(Tt)&&Tc(Tt.parent)&&p$(Tt.parent)}}function FA(n){return h3e(n.parent),Vr(n).enumMemberValue??qc(void 0)}function F3e(n){switch(n.kind){case 307:case 212:case 213:return!0}return!1}function P$(n){if(n.kind===307)return FA(n).value;Vr(n).resolvedSymbol||jl(n);const a=Vr(n).resolvedSymbol||(Ds(n)?Vl(n,111551,!0):void 0);if(a&&a.flags&8){const c=a.valueDeclaration;if(wT(c.parent))return FA(c).value}}function cye(n){return!!(n.flags&524288)&&na(n,0).length>0}function ivt(n,a){var c;const p=jo(n,Nu);if(!p||a&&(a=jo(a),!a))return 0;let m=!1;if(Lu(p)){const Q=Vl(Pu(p),111551,!0,!0,a);m=!!((c=Q?.declarations)!=null&&c.every($y))}const b=Vl(p,111551,!0,!0,a),I=b&&b.flags&2097152?ud(b):b;m||(m=!!(b&&Ah(b,111551)));const w=Vl(p,788968,!0,!0,a),U=w&&w.flags&2097152?ud(w):w;if(b||m||(m=!!(w&&Ah(w,788968))),I&&I===U){const Q=bhe(!1);if(Q&&I===Q)return 9;const Ie=_r(I);if(Ie&&Rh(Ie))return m?10:1}if(!U)return m?11:0;const H=qs(U);return pr(H)?m?11:0:H.flags&3?11:kd(H,245760)?2:kd(H,528)?6:kd(H,296)?3:kd(H,2112)?4:kd(H,402653316)?5:Ka(H)?7:kd(H,12288)?8:cye(H)?10:im(H)?7:11}function ovt(n,a,c,p,m){const b=jo(n,q6);if(!b)return L.createToken(133);const I=Wr(b);return be.serializeTypeForDeclaration(b,I,a,c|1024,p,m)}function dye(n){n=jo(n,R2);const a=n.kind===179?178:179,c=al(Wr(n),a),p=c&&c.pos{switch(p.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}}function pvt(n){return q2(n)||yi(n)&&d8(n)?xE(_r(Wr(n))):!1}function fvt(n,a,c){const p=n.flags&1056?be.symbolToExpression(n.symbol,111551,a,void 0,void 0,c):n===ft?L.createTrue():n===tr&&L.createFalse();if(p)return p;const m=n.value;return typeof m=="object"?L.createBigIntLiteral(m):typeof m=="string"?L.createStringLiteral(m):m<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-m)):L.createNumericLiteral(m)}function mvt(n,a){const c=_r(Wr(n));return fvt(c,n,a)}function uye(n){return n?(qm(n),Wn(n).localJsxFactory||xy):xy}function pye(n){if(n){const a=Wn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),p=Mo(c)?c[0]:c;if(p)return a.localJsxFragmentFactory=ZI(p.arguments.factory,G),a.localJsxFragmentFactory}}if(O.jsxFragmentFactory)return ZI(O.jsxFragmentFactory,G)}function z3e(n){const a=Rc(n);if(a)return a;if(n.kind===170&&n.parent.kind===179){const c=dye(n.parent).getAccessor;if(c)return kp(c)}}function hvt(){return{getReferencedExportContainer:Jyt,getReferencedImportDeclaration:Kyt,getReferencedDeclarationWithCollidingName:Yyt,isDeclarationWithCollidingName:$yt,isValueAliasDeclaration:a=>{const c=jo(a);return c&&We?k3e(c):!0},hasGlobalName:lvt,isReferencedAliasDeclaration:(a,c)=>{const p=jo(a);return p&&We?w3e(p,c):!0},hasNodeCheckFlag:(a,c)=>{const p=jo(a);return p?lye(p,c):!1},isTopLevelValueImportEqualsWithEntityName:Qyt,isDeclarationVisible:X_,isImplementationOfOverload:O3e,requiresAddingImplicitUndefined:J5,isExpandoFunctionDeclaration:W3e,getPropertiesOfContainerFunction:nvt,createTypeOfDeclaration:ovt,createReturnTypeOfSignatureDeclaration:avt,createTypeOfExpression:svt,createLiteralConstValue:mvt,isSymbolAccessible:rT,isEntityNameVisible:qx,getConstantValue:a=>{const c=jo(a,F3e);return c?P$(c):void 0},getEnumMemberValue:a=>{const c=jo(a,py);return c?FA(c):void 0},collectLinkedAliases:kC,markLinkedReferences:a=>{const c=jo(a);return c&&aR(c,0)},getReferencedValueDeclaration:dvt,getReferencedValueDeclarations:uvt,getTypeReferenceSerializationKind:ivt,isOptionalParameter:bW,isArgumentsLocalBinding:Hyt,getExternalModuleFileFromDeclaration:a=>{const c=jo(a,Tte);return c&&fye(c)},isLiteralConstDeclaration:pvt,isLateBound:a=>{const c=jo(a,rd),p=c&&Wr(c);return!!(p&&Fl(p)&4096)},getJsxFactoryEntity:uye,getJsxFragmentFactoryEntity:pye,isBindingCapturedByNode:(a,c)=>{const p=jo(a),m=jo(c);return!!p&&!!m&&(yi(m)||Ha(m))&&Apt(p,m)},getDeclarationStatementsForSourceFile:(a,c,p,m)=>{const b=jo(a);C.assert(b&&b.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");const I=Wr(a);return I?(Tp(I),I.exports?be.symbolTableToDeclarationStatements(I.exports,a,c,p,m):[]):a.locals?be.symbolTableToDeclarationStatements(a.locals,a,c,p,m):[]},isImportRequiredByAugmentation:n,isDefinitelyReferenceToGlobalSymbolObject:q_,createLateBoundIndexSignatures:(a,c,p,m,b)=>{const I=a.symbol,w=Xd(_r(I)),U=HX(I),H=U&&JX(U,Co($_(I).values()));let Q;for(const Te of[w,H])if(et(Te)){Q||(Q=[]);for(const Ze of Te){if(Ze.declaration||Ze===So)continue;if(Ze.components&&Vn(Ze.components,$t=>{var Tn;return!!($t.name&&va($t.name)&&Ds($t.name.expression)&&c&&((Tn=qx($t.name.expression,c,!1))==null?void 0:Tn.accessibility)===0)})){const $t=Un(Ze.components,Tn=>!OC(Tn));Q.push(...Vt($t,Tn=>{Ie(Tn.name.expression);const nr=Te===w?[L.createModifier(126)]:void 0;return L.createPropertyDeclaration(Bn(nr,Ze.isReadonly?L.createModifier(148):void 0),Tn.name,(Tu(Tn)||Po(Tn)||Gm(Tn)||Ml(Tn)||ug(Tn)||Vh(Tn))&&Tn.questionToken?L.createToken(58):void 0,be.typeToTypeNode(_r(Tn.symbol),c,p,m,b),void 0)}));continue}const Tt=be.indexInfoToIndexSignatureDeclaration(Ze,c,p,m,b);Tt&&Te===w&&(Tt.modifiers||(Tt.modifiers=L.createNodeArray())).unshift(L.createModifier(126)),Tt&&Q.push(Tt)}}return Q;function Ie(Te){if(!b.trackSymbol)return;const Ze=Pu(Te),Tt=_t(Ze,Ze.escapedText,1160127,void 0,!0);Tt&&b.trackSymbol(Tt,c,111551)}},symbolToDeclarations:(a,c,p,m,b,I)=>be.symbolToDeclarations(a,c,p,m,b,I)};function n(a){const c=Wn(a);if(!c.symbol)return!1;const p=fye(a);if(!p||p===c)return!1;const m=__(c.symbol);for(const b of Co(m.values()))if(b.mergeId){const I=os(b);if(I.declarations){for(const w of I.declarations)if(Wn(w)===p)return!0}}return!1}}function fye(n){const a=n.kind===268?ni(n.name,ka):hI(n),c=bp(a,a,void 0);if(c)return al(c,308)}function _vt(){for(const a of e.getSourceFiles())Ooe(a,O);Ll=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!Pp(a)){const c=a.locals.get("globalThis");if(c?.declarations)for(const p of c.declarations)ns.add(Ar(p,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));m_(lt,a.locals)}a.jsGlobalAugmentations&&m_(lt,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(op=so(op,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((p,m)=>{lt.has(m)||lt.set(m,p)})}if(n)for(const a of n)for(const c of a)M_(c.parent)&&uE(c);if(N0(),Jr(ce).type=B,Jr(_e).type=Kl("IArguments",0,!0),Jr(ne).type=nt,Jr(Re).type=_c(16,Re),es=Kl("Array",1,!0),Jt=Kl("Object",0,!0),er=Kl("Function",0,!0),go=pe&&Kl("CallableFunction",0,!0)||er,Za=pe&&Kl("NewableFunction",0,!0)||er,Pc=Kl("String",0,!0),tl=Kl("Number",0,!0),kl=Kl("Boolean",0,!0),Jl=Kl("RegExp",0,!0),bd=Yd(Ue),ld=Yd(Rt),ld===Ra&&(ld=bl(void 0,k,ae,ae,ae)),Va=AWe("ReadonlyArray",1)||es,jp=Va?TL(Va,[Ue]):bd,rf=AWe("ThisType",1),n)for(const a of n)for(const c of a)M_(c.parent)||uE(c);Ll.forEach(({firstFile:a,secondFile:c,conflictingSymbols:p})=>{if(p.size<8)p.forEach(({isBlockScoped:m,firstFileLocations:b,secondFileLocations:I},w)=>{const U=m?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(const H of b)C0(H,U,w,I);for(const H of I)C0(H,U,w,b)});else{const m=Co(p.keys()).join(", ");ns.add(pa(Ar(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),Ar(c,f.Conflicts_are_in_this_file))),ns.add(pa(Ar(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),Ar(a,f.Conflicts_are_in_this_file)))}}),Ll=void 0}function $c(n,a){if(O.importHelpers){const c=Wn(n);if(UR(c,O)&&!(n.flags&33554432)){const p=yvt(c,n);if(p!==ne){const m=Jr(p);if(m.requestedExternalEmitHelpers??(m.requestedExternalEmitHelpers=0),(m.requestedExternalEmitHelpers&a)!==a){const b=a&~m.requestedExternalEmitHelpers;for(let I=1;I<=16777216;I<<=1)if(b&I)for(const w of gvt(I)){const U=hc(Sd(__(p),Nl(w),111551));U?I&524288?yt(EE(U),H=>Ap(H)>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,fb,w,4):I&1048576?yt(EE(U),H=>Ap(H)>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,fb,w,5):I&1024&&(yt(EE(U),H=>Ap(H)>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,fb,w,3)):Qe(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,fb,w)}}m.requestedExternalEmitHelpers|=a}}}}function gvt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return J?["__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["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return C.fail("Unrecognized helper")}}function yvt(n,a){const c=Vr(n);return c.externalHelpersModule||(c.externalHelpersModule=iA(pbt(n),fb,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ne),c.externalHelpersModule}function Kg(n){var a;const c=Tvt(n)||vvt(n);if(c!==void 0)return c;if(to(n)&&bb(n))return fd(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const p=sc(n)?n.declarationList.flags&7:0;let m,b,I,w,U,H=0,Q=!1,Ie=!1;for(const Te of n.modifiers)if(Fc(Te)){if(ek(J,n,n.parent,n.parent.parent)){if(J&&(n.kind===178||n.kind===179)){const Ze=dye(n);if(pf(Ze.firstAccessor)&&n===Ze.secondAccessor)return fd(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===175&&!fm(n.body)?fd(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):fd(n,f.Decorators_are_not_valid_here);if(H&-34849)return Cn(Te,f.Decorators_are_not_valid_here);if(Ie&&H&98303){C.assertIsDefined(U);const Ze=Wn(Te);return gT(Ze)?!1:(pa(Qe(Te,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Ar(U,f.Decorator_used_before_export_here)),!0)}H|=32768,H&98303?H&32&&(Q=!0):Ie=!0,U??(U=Te)}else{if(Te.kind!==148){if(n.kind===172||n.kind===174)return Cn(Te,f._0_modifier_cannot_appear_on_a_type_member,_a(Te.kind));if(n.kind===182&&(Te.kind!==126||!ui(n.parent)))return Cn(Te,f._0_modifier_cannot_appear_on_an_index_signature,_a(Te.kind))}if(Te.kind!==103&&Te.kind!==147&&Te.kind!==87&&n.kind===169)return Cn(Te,f._0_modifier_cannot_appear_on_a_type_parameter,_a(Te.kind));switch(Te.kind){case 87:{if(n.kind!==267&&n.kind!==169)return Cn(n,f.A_class_member_cannot_have_the_0_keyword,_a(87));const Dt=bm(n.parent)&&BT(n.parent)||n.parent;if(n.kind===169&&!(Ms(Dt)||ui(Dt)||w_(Dt)||yD(Dt)||GI(Dt)||FM(Dt)||Gm(Dt)))return Cn(Te,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,_a(Te.kind));break}case 164:if(H&16)return Cn(Te,f._0_modifier_already_seen,"override");if(H&128)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(H&8)return Cn(Te,f._0_modifier_must_precede_1_modifier,"override","readonly");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,"override","accessor");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,"override","async");H|=16,w=Te;break;case 125:case 124:case 123:const Ze=G0(SI(Te.kind));if(H&7)return Cn(Te,f.Accessibility_modifier_already_seen);if(H&16)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"override");if(H&256)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"static");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"accessor");if(H&8)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"readonly");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"async");if(n.parent.kind===269||n.parent.kind===308)return Cn(Te,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ze);if(H&64)return Te.kind===123?Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,Ze,"abstract"):Cn(Te,f._0_modifier_must_precede_1_modifier,Ze,"abstract");if(tu(n))return Cn(Te,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);H|=SI(Te.kind);break;case 126:if(H&256)return Cn(Te,f._0_modifier_already_seen,"static");if(H&8)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","readonly");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","async");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===269||n.parent.kind===308)return Cn(Te,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"static");if(H&64)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&16)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","override");H|=256,m=Te;break;case 129:if(H&512)return Cn(Te,f._0_modifier_already_seen,"accessor");if(H&8)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(H&128)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==173)return Cn(Te,f.accessor_modifier_can_only_appear_on_a_property_declaration);H|=512;break;case 148:if(H&8)return Cn(Te,f._0_modifier_already_seen,"readonly");if(n.kind!==173&&n.kind!==172&&n.kind!==182&&n.kind!==170)return Cn(Te,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(H&512)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");H|=8;break;case 95:if(O.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==266&&n.kind!==265&&n.kind!==268&&n.parent.kind===308&&e.getEmitModuleFormatOfFile(Wn(n))===1)return Cn(Te,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(H&32)return Cn(Te,f._0_modifier_already_seen,"export");if(H&128)return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","declare");if(H&64)return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","abstract");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","async");if(ui(n.parent))return Cn(Te,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"export");if(p===4)return Cn(Te,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(p===6)return Cn(Te,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");H|=32;break;case 90:const Tt=n.parent.kind===308?n.parent:n.parent.parent;if(Tt.kind===268&&!gu(Tt))return Cn(Te,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(p===4)return Cn(Te,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(p===6)return Cn(Te,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(H&32){if(Q)return Cn(U,f.Decorators_are_not_valid_here)}else return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","default");H|=2048;break;case 138:if(H&128)return Cn(Te,f._0_modifier_already_seen,"declare");if(H&1024)return Cn(Te,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(H&16)return Cn(Te,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ui(n.parent)&&!Po(n))return Cn(Te,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(p===4)return Cn(Te,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(p===6)return Cn(Te,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===269)return Cn(Te,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(tu(n))return Cn(Te,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(H&512)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");H|=128,b=Te;break;case 128:if(H&64)return Cn(Te,f._0_modifier_already_seen,"abstract");if(n.kind!==264&&n.kind!==186){if(n.kind!==175&&n.kind!==173&&n.kind!==178&&n.kind!==179)return Cn(Te,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===264&&di(n.parent,64))){const Dt=n.kind===173?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return Cn(Te,Dt)}if(H&256)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&2)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(H&1024&&I)return Cn(I,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(H&16)return Cn(Te,f._0_modifier_must_precede_1_modifier,"abstract","override");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(nd(n)&&n.name.kind===81)return Cn(Te,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");H|=64;break;case 134:if(H&1024)return Cn(Te,f._0_modifier_already_seen,"async");if(H&128||n.parent.flags&33554432)return Cn(Te,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"async");if(H&64)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");H|=1024,I=Te;break;case 103:case 147:{const Dt=Te.kind===103?8192:16384,$t=Te.kind===103?"in":"out",Tn=bm(n.parent)&&(BT(n.parent)||hn((a=eD(n.parent))==null?void 0:a.tags,I1))||n.parent;if(n.kind!==169||Tn&&!(gd(Tn)||ui(Tn)||vm(Tn)||I1(Tn)))return Cn(Te,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,$t);if(H&Dt)return Cn(Te,f._0_modifier_already_seen,$t);if(Dt&8192&&H&16384)return Cn(Te,f._0_modifier_must_precede_1_modifier,"in","out");H|=Dt;break}}}return n.kind===177?H&256?Cn(m,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):H&16?Cn(w,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):H&1024?Cn(I,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===273||n.kind===272)&&H&128?Cn(b,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===170&&H&31&&Qo(n.name)?Cn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===170&&H&31&&n.dotDotDotToken?Cn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):H&1024?Evt(n,I):!1}function vvt(n){if(!n.modifiers)return!1;const a=bvt(n);return a&&fd(a,f.Modifiers_cannot_appear_here)}function L$(n,a){const c=hn(n.modifiers,Aa);return c&&c.kind!==a?c:void 0}function bvt(n){switch(n.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return hn(n.modifiers,Aa);default:if(n.parent.kind===269||n.parent.kind===308)return;switch(n.kind){case 263:return L$(n,134);case 264:case 186:return L$(n,128);case 232:case 265:case 266:return hn(n.modifiers,Aa);case 244:return n.declarationList.flags&4?L$(n,135):hn(n.modifiers,Aa);case 267:return L$(n,87);default:C.assertNever(n)}}}function Tvt(n){const a=Svt(n);return a&&fd(a,f.Decorators_are_not_valid_here)}function Svt(n){return Cj(n)?hn(n.modifiers,Fc):void 0}function Evt(n,a){switch(n.kind){case 175:case 263:case 219:case 220:return!1}return Cn(a,f._0_modifier_cannot_be_used_here,"async")}function fR(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?nS(n[0],n.end-1,1,a):!1}function B3e(n,a){if(n&&n.length===0){const c=n.pos-1,p=La(a.text,n.end)+1;return nS(a,c,p-c,f.Type_parameter_list_cannot_be_empty)}return!1}function Avt(n){let a=!1;const c=n.length;for(let p=0;p!!a.initializer||Qo(a.name)||C_(a))}function xvt(n){if(G>=3){const a=n.body&&ea(n.body)&&Ij(n.body.statements);if(a){const c=Ivt(n.parameters);if(et(c)){Ye(c,m=>{pa(Qe(m,f.This_parameter_is_not_allowed_with_use_strict_directive),Ar(a,f.use_strict_directive_used_here))});const p=c.map((m,b)=>b===0?Ar(m,f.Non_simple_parameter_declared_here):Ar(m,f.and_here));return pa(Qe(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...p),!0}}}return!1}function k$(n){const a=Wn(n);return Kg(n)||B3e(n.typeParameters,a)||Avt(n.parameters)||Dvt(n,a)||Ms(n)&&xvt(n)}function Rvt(n){const a=Wn(n);return Lvt(n)||B3e(n.typeParameters,a)}function Dvt(n,a){if(!Xs(n))return!1;n.typeParameters&&!(et(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Ql(a.fileName,[".mts",".cts"])&&Cn(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,p=ca(a,c.pos).line,m=ca(a,c.end).line;return p!==m&&Cn(c,f.Line_terminator_not_permitted_before_arrow)}function Cvt(n){const a=n.parameters[0];if(n.parameters.length!==1)return Cn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(fR(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Cn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(XG(a))return Cn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Cn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Cn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Cn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);const c=Ji(a.type);return am(c,p=>!!(p.flags&8576))||K0(c)?Cn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Ep(c,KX)?n.type?!1:Cn(n,f.An_index_signature_must_have_a_type_annotation):Cn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Nvt(n){return Kg(n)||Cvt(n)}function Mvt(n,a){if(a&&a.length===0){const c=Wn(n),p=a.pos-1,m=La(c.text,a.end)+1;return nS(c,p,m-p,f.Type_argument_list_cannot_be_empty)}return!1}function K5(n,a){return fR(a)||Mvt(n,a)}function Pvt(n){return n.questionDotToken||n.flags&64?Cn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function G3e(n){const a=n.types;if(fR(a))return!0;if(a&&a.length===0){const c=_a(n.token);return nS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return yt(a,V3e)}function V3e(n){return dy(n)&&WM(n.expression)&&n.typeArguments?Cn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):K5(n,n.typeArguments)}function Lvt(n){let a=!1,c=!1;if(!Kg(n)&&n.heritageClauses)for(const p of n.heritageClauses){if(p.token===96){if(a)return fd(p,f.extends_clause_already_seen);if(c)return fd(p,f.extends_clause_must_precede_implements_clause);if(p.types.length>1)return fd(p.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(C.assert(p.token===119),c)return fd(p,f.implements_clause_already_seen);c=!0}G3e(p)}}function kvt(n){let a=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(a)return fd(c,f.extends_clause_already_seen);a=!0}else return C.assert(c.token===119),fd(c,f.Interface_declaration_cannot_have_implements_clause);G3e(c)}return!1}function w$(n){if(n.kind!==168)return!1;const a=n;return a.expression.kind===227&&a.expression.operatorToken.kind===28?Cn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function mye(n){if(n.asteriskToken){if(C.assert(n.kind===263||n.kind===219||n.kind===175),n.flags&33554432)return Cn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Cn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function hye(n,a){return!!n&&Cn(n,a)}function j3e(n,a){return!!n&&Cn(n,a)}function wvt(n,a){const c=new Map;for(const p of n.properties){if(p.kind===306){if(a){const I=us(p.expression);if(Cd(I)||Wa(I))return Cn(p.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}const m=p.name;if(m.kind===168&&w$(m),p.kind===305&&!a&&p.objectAssignmentInitializer&&Cn(p.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),m.kind===81&&Cn(m,f.Private_identifiers_are_not_allowed_outside_class_bodies),Tm(p)&&p.modifiers)for(const I of p.modifiers)Aa(I)&&(I.kind!==134||p.kind!==175)&&Cn(I,f._0_modifier_cannot_be_used_here,Al(I));else if(Cie(p)&&p.modifiers)for(const I of p.modifiers)Aa(I)&&Cn(I,f._0_modifier_cannot_be_used_here,Al(I));let b;switch(p.kind){case 305:case 304:j3e(p.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),hye(p.questionToken,f.An_object_member_cannot_be_declared_optional),m.kind===9&&$3e(m),m.kind===10&&Pg(!0,Ar(m,f.A_bigint_literal_cannot_be_used_as_a_property_name)),b=4;break;case 175:b=8;break;case 178:b=1;break;case 179:b=2;break;default:C.assertNever(p,"Unexpected syntax kind:"+p.kind)}if(!a){const I=yye(m);if(I===void 0)continue;const w=c.get(I);if(!w)c.set(I,b);else if(b&8&&w&8)Cn(m,f.Duplicate_identifier_0,Al(m));else if(b&4&&w&4)Cn(m,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Al(m));else if(b&3&&w&3)if(w!==3&&b!==w)c.set(I,b|w);else return Cn(m,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Cn(m,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Ovt(n){Wvt(n.tagName),K5(n,n.typeArguments);const a=new Map;for(const c of n.attributes.properties){if(c.kind===294)continue;const{name:p,initializer:m}=c,b=CM(p);if(!a.get(b))a.set(b,!0);else return Cn(p,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(m&&m.kind===295&&!m.expression)return Cn(m,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Wvt(n){if(qr(n)&&fh(n.expression))return Cn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(fh(n)&&R6(O)&&!iD(n.namespace.escapedText))return Cn(n,f.React_components_cannot_include_JSX_namespace_names)}function Fvt(n){if(n.expression&&JM(n.expression))return Cn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function U3e(n){if(Uy(n))return!0;if(n.kind===251&&n.awaitModifier&&!(n.flags&65536)){const a=Wn(n);if(WF(n)){if(!gT(a))switch(UR(a,O)||ns.add(Ar(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)),j){case 100:case 101:case 102:case 199:if(a.impliedNodeFormat===1){ns.add(Ar(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(G>=4)break;default:ns.add(Ar(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!gT(a)){const c=Ar(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),p=df(n);if(p&&p.kind!==177){C.assert((dc(p)&2)===0,"Enclosing function should never be an async function.");const m=Ar(p,f.Did_you_mean_to_mark_this_function_as_async);pa(c,m)}return ns.add(c),!0}}if(sw(n)&&!(n.flags&65536)&&He(n.initializer)&&n.initializer.escapedText==="async")return Cn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===262){const a=n.initializer;if(!gye(a)){const c=a.declarations;if(!c.length)return!1;if(c.length>1){const m=n.kind===250?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return fd(a.declarations[1],m)}const p=c[0];if(p.initializer){const m=n.kind===250?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 Cn(p.name,m)}if(p.type){const m=n.kind===250?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 Cn(p,m)}}}return!1}function zvt(n){if(!(n.flags&33554432)&&n.parent.kind!==188&&n.parent.kind!==265){if(G<2&&eo(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!di(n,64))return nS(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(di(n,64))return Cn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===188||n.parent.kind===265)return Cn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Cn(n.name,f.An_accessor_cannot_have_type_parameters);if(!Bvt(n))return Cn(n.name,n.kind===178?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===179){if(n.type)return Cn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);const a=C.checkDefined(lM(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Cn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Cn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Cn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Bvt(n){return _ye(n)||n.parameters.length===(n.kind===178?0:1)}function _ye(n){if(n.parameters.length===(n.kind===178?1:2))return DS(n)}function Gvt(n){if(n.operator===158){if(n.type.kind!==155)return Cn(n.type,f._0_expected,_a(155));let a=hk(n.parent);if(Ir(a)&&e0(a)){const c=AS(a);c&&(a=yI(c)||c)}switch(a.kind){case 261:const c=a;if(c.name.kind!==80)return Cn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!jN(c))return Cn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Cn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!ua(a)||!c1(a))return Cn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!di(a,8))return Cn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Cn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==189&&n.type.kind!==190)return fd(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,_a(155))}function zL(n,a){if(xOe(n)&&!Ds(Ws(n)?us(n.argumentExpression):n.expression))return Cn(n,a)}function H3e(n){if(k$(n))return!0;if(n.kind===175){if(n.parent.kind===211){if(n.modifiers&&!(n.modifiers.length===1&&$a(n.modifiers).kind===134))return fd(n,f.Modifiers_cannot_appear_here);if(hye(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(j3e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return nS(n,n.end-1,1,f._0_expected,"{")}if(mye(n))return!0}if(ui(n.parent)){if(G<2&&eo(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return zL(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===175&&!n.body)return zL(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===265)return zL(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===188)return zL(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 Vvt(n){let a=n;for(;a;){if(zR(a))return Cn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 257:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===252&&!pb(a.statement,!0)?Cn(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 256:if(n.kind===253&&!n.label)return!1;break;default:if(pb(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const c=n.kind===253?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 Cn(n,c)}else{const c=n.kind===253?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 Cn(n,c)}}function jvt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==Ba(a))return Cn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(fR(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Cn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return nS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function q3e(n){return uf(n)||n.kind===225&&n.operator===41&&n.operand.kind===9}function Uvt(n){return n.kind===10||n.kind===225&&n.operator===41&&n.operand.kind===10}function Hvt(n){if((qr(n)||Ws(n)&&q3e(n.argumentExpression))&&Ds(n.expression))return!!(jl(n).flags&1056)}function J3e(n){const a=n.initializer;if(a){const c=!(q3e(a)||Hvt(a)||a.kind===112||a.kind===97||Uvt(a));if((q2(n)||yi(n)&&d8(n))&&!n.type){if(c)return Cn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Cn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function qvt(n){const a=kE(n),c=a&7;if(Qo(n.name))switch(c){case 6:return Cn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Cn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==250&&n.parent.parent.kind!==251){if(a&33554432)J3e(n);else if(!n.initializer){if(Qo(n.name)&&!Qo(n.parent))return Cn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return Cn(n,f._0_declarations_must_be_initialized,"await using");case 4:return Cn(n,f._0_declarations_must_be_initialized,"using");case 2:return Cn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==244||!n.type||n.initializer||a&33554432)){const p=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 Cn(n.exclamationToken,p)}return e.getEmitModuleFormatOfFile(Wn(n))<4&&!(n.parent.parent.flags&33554432)&&di(n.parent.parent,32)&&K3e(n.name),!!c&&X3e(n.name)}function K3e(n){if(n.kind===80){if(Kr(n)==="__esModule")return Xvt("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 K3e(c.name)}return!1}function X3e(n){if(n.kind===80){if(n.escapedText==="let")return Cn(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)||X3e(c.name)}return!1}function gye(n){const a=n.declarations;if(fR(n.declarations))return!0;if(!n.declarations.length)return nS(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;if(c===4||c===6){if(c4(n.parent))return Cn(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);if(n.flags&33554432)return Cn(n,c===4?f.using_declarations_are_not_allowed_in_ambient_contexts:f.await_using_declarations_are_not_allowed_in_ambient_contexts);if(c===6)return p4e(n)}return!1}function O$(n){switch(n.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return O$(n.parent)}return!0}function Jvt(n){if(!O$(n.parent)){const a=kE(n.declarationList)&7;if(a){const c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":C.fail("Unknown BlockScope flag");Qe(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Kvt(n){const a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Gi(n.name.escapedText),_a(n.keywordToken),"target");break;case 102:if(a!=="meta"){const c=Zo(n.parent)&&n.parent.expression===n;if(a==="defer"){if(!c)return nS(n,n.end,0,f._0_expected,"(")}else return c?Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,Gi(n.name.escapedText)):Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Gi(n.name.escapedText),_a(n.keywordToken),"meta")}break}}function gT(n){return n.parseDiagnostics.length>0}function fd(n,a,...c){const p=Wn(n);if(!gT(p)){const m=jh(p,n.pos);return ns.add(Wc(p,m.start,m.length,a,...c)),!0}return!1}function nS(n,a,c,p,...m){const b=Wn(n);return gT(b)?!1:(ns.add(Wc(b,a,c,p,...m)),!0)}function Xvt(n,a,c,...p){const m=Wn(a);return gT(m)?!1:(Ev(n,a,c,...p),!0)}function Cn(n,a,...c){const p=Wn(n);return gT(p)?!1:(Qe(n,a,...c),!0)}function Yvt(n){const a=Ir(n)?c6(n):void 0,c=n.typeParameters||a&&Ic(a);if(c){const p=c.pos===c.end?c.pos:La(Wn(n).text,c.pos);return nS(n,p,c.end-p,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function $vt(n){const a=n.type||kp(n);if(a)return Cn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Qvt(n){if(va(n.name)&&Nr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Cn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(ui(n.parent)){if(ka(n.name)&&n.name.text==="constructor")return Cn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(zL(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(G<2&&eo(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(G<2&&Yu(n)&&!(n.flags&33554432))return Cn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Yu(n)&&hye(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===265){if(zL(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(C.assertNode(n,Tu),n.initializer)return Cn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(ku(n.parent)){if(zL(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(C.assertNode(n,Tu),n.initializer)return Cn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&J3e(n),Po(n)&&n.exclamationToken&&(!ui(n.parent)||!n.type||n.initializer||n.flags&33554432||ua(n)||MS(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 Cn(n.exclamationToken,a)}}function Zvt(n){return n.kind===265||n.kind===266||n.kind===273||n.kind===272||n.kind===279||n.kind===278||n.kind===271||di(n,2208)?!1:fd(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function ebt(n){for(const a of n.statements)if((rd(a)||a.kind===244)&&Zvt(a))return!0;return!1}function Y3e(n){return!!(n.flags&33554432)&&ebt(n)}function Uy(n){if(n.flags&33554432){if(!Vr(n).hasReportedStatementInAmbientContext&&(Yo(n.parent)||ub(n.parent)))return Vr(n).hasReportedStatementInAmbientContext=fd(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===242||n.parent.kind===269||n.parent.kind===308){const c=Vr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=fd(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function $3e(n){const a=Al(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||Pg(!1,Ar(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function tbt(n){return!!(!(dv(n.parent)||XT(n.parent)&&dv(n.parent.parent))&&!(n.flags&33554432)&&G<7&&Cn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function nbt(n,a,...c){const p=Wn(n);if(!gT(p)){const m=jh(p,n.pos);return ns.add(Wc(p,Cl(m),0,a,...c)),!0}return!1}function rbt(){return nf||(nf=[],lt.forEach((n,a)=>{Voe.test(a)&&nf.push(n)})),nf}function ibt(n){var a,c;if(n.phaseModifier===156){if(n.name&&n.namedBindings)return Cn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(((a=n.namedBindings)==null?void 0:a.kind)===276)return Q3e(n.namedBindings)}else if(n.phaseModifier===166){if(n.name)return Cn(n,f.Default_imports_are_not_allowed_in_a_deferred_import);if(((c=n.namedBindings)==null?void 0:c.kind)===276)return Cn(n,f.Named_imports_are_not_allowed_in_a_deferred_import);if(j!==99&&j!==200)return Cn(n,f.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}function Q3e(n){return!!Ye(n.elements,a=>{if(a.isTypeOnly)return fd(a,a.kind===277?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 obt(n){if(O.verbatimModuleSyntax&&j===1)return Cn(n,Y1(n));if(n.expression.kind===237){if(j!==99&&j!==200)return Cn(n,f.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(j===5)return Cn(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(n.typeArguments)return Cn(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(!(100<=j&&j<=199)&&j!==99&&j!==200&&(fR(a),a.length>1)){const p=a[1];return Cn(p,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve)}if(a.length===0||a.length>2)return Cn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const c=hn(a,qf);return c?Cn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function abt(n,a){const c=Hr(n);if(c&20&&a.flags&1048576)return hn(a.types,p=>{if(p.flags&524288){const m=c&Hr(p);if(m&4)return n.target===p.target;if(m&16)return!!n.aliasSymbol&&n.aliasSymbol===p.aliasSymbol}return!1})}function sbt(n,a){if(Hr(n)&128&&am(a,Vv))return hn(a.types,c=>!Vv(c))}function lbt(n,a){let c=0;if(na(n,c).length>0||(c=1,na(n,c).length>0))return hn(a.types,m=>na(m,c).length>0)}function cbt(n,a){let c;if(!(n.flags&406978556)){let p=0;for(const m of a.types)if(!(m.flags&406978556)){const b=Ma([b_(n),b_(m)]);if(b.flags&4194304)return m;if(Nh(b)||b.flags&1048576){const I=b.flags&1048576?Io(b.types,Nh):1;I>=p&&(c=m,p=I)}}}return c}function dbt(n){if(nc(n,67108864)){const a=Ac(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function Z3e(n,a,c){if(a.flags&1048576&&n.flags&2621440){const p=eFe(a,n);if(p)return p;const m=bs(n);if(m){const b=Z8e(m,a);if(b){const I=e_e(a,Vt(b,w=>[()=>_r(w),w.escapedName]),c);if(I!==a)return I}}}}function yye(n){const a=s1(n);return a||(va(n)?x_e(wd(n.expression)):void 0)}function W$(n){return gn===n||(gn=n,Kn=MT(n)),Kn}function kE(n){return Wt===n||(Wt=n,cn=ty(n)),cn}function d8(n){const a=kE(n)&7;return a===2||a===4||a===6}function ubt(n,a){const c=O.importHelpers?1:0,p=n?.imports[c];return p&&C.assert(Os(p)&&p.text===a,`Expected sourceFile.imports[${c}] to be the synthesized JSX runtime import`),p}function pbt(n){C.assert(O.importHelpers,"Expected importHelpers to be enabled");const a=n.imports[0];return C.assert(a&&Os(a)&&a.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),a}}function KUe(e){return!ub(e)}function g1e(e){return e.kind!==263&&e.kind!==175||!!e.body}function y1e(e){switch(e.parent.kind){case 277:case 282:return He(e)||e.kind===11;default:return L_(e)}}var _f;(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"})(_f||(_f={}));var AU;(e=>{e.Fragment="Fragment"})(AU||(AU={}));function v1e(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function au(e){return!!(e.flags&1)}function b1e(e){return!!(e.flags&2)}function XUe(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:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,r)=>e.getModeForResolutionAtIndex(t,r),getGlobalTypingsCacheLocation:ia(e,e.getGlobalTypingsCacheLocation)}}var Hoe=class a7e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof a7e;)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())}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}reportInferenceFallback(t){var r;(r=this.inner)!=null&&r.reportInferenceFallback&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(t))}pushErrorFallbackNode(t){var r,i;return(i=(r=this.inner)==null?void 0:r.pushErrorFallbackNode)==null?void 0:i.call(r,t)}popErrorFallbackNode(){var t,r;return(r=(t=this.inner)==null?void 0:t.popErrorFallbackNode)==null?void 0:r.call(t)}};function st(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return Mo(o)?s=(i||tHe)(o):s=o,C.assertNode(s,r),s}function Xn(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,d=-1;i>0||os-i)&&(o=s-i),T1e(e,t,r,i,o)}function T1e(e,t,r,i,o){let s;const l=e.length;(i>0||o=2&&(o=YUe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function YUe(e,t){let r;for(let i=0;i{const l=iu,addSource:ve,setSourceContent:xe,addName:X,addMapping:Se,appendSourceMap:re,toJSON:ce,toString:()=>JSON.stringify(ce())};function ve(_e){s();const je=MR(i,_e,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let Ge=g.get(je);return Ge===void 0&&(Ge=d.length,d.push(je),u.push(_e),g.set(je,Ge)),l(),Ge}function xe(_e,je){if(s(),je!==null){for(h||(h=[]);h.length<_e;)h.push(null);h[_e]=je}l()}function X(_e){s(),E||(E=new Map);let je=E.get(_e);return je===void 0&&(je=y.length,y.push(_e),E.set(_e,je)),l(),je}function Ce(_e,je){return!pe||J!==_e||Z!==je}function Je(_e,je,Ge){return _e!==void 0&&je!==void 0&&Ge!==void 0&&q===_e&&(ye>je||ye===je&&ie>Ge)}function Se(_e,je,Ge,We,at,Wt){C.assert(_e>=J,"generatedLine cannot backtrack"),C.assert(je>=0,"generatedCharacter cannot be negative"),C.assert(Ge===void 0||Ge>=0,"sourceIndex cannot be negative"),C.assert(We===void 0||We>=0,"sourceLine cannot be negative"),C.assert(at===void 0||at>=0,"sourceCharacter cannot be negative"),s(),(Ce(_e,je)||Je(Ge,We,at))&&(Be(),J=_e,Z=je,de=!1,fe=!1,pe=!0),Ge!==void 0&&We!==void 0&&at!==void 0&&(q=Ge,ye=We,ie=at,de=!0,Wt!==void 0&&(K=Wt,fe=!0)),l()}function re(_e,je,Ge,We,at,Wt){C.assert(_e>=J,"generatedLine cannot backtrack"),C.assert(je>=0,"generatedCharacter cannot be negative"),s();const cn=[];let gn;const Kn=CU(Ge.mappings);for(const _t of Kn){if(Wt&&(_t.generatedLine>Wt.line||_t.generatedLine===Wt.line&&_t.generatedCharacter>Wt.character))break;if(at&&(_t.generatedLine=1024&<()}function Be(){if(!(!pe||!be())){if(s(),N0&&(R+=String.fromCharCode.apply(void 0,A),A.length=0)}function ce(){return Be(),lt(),{version:3,file:t,sourceRoot:r,sources:d,names:y,mappings:R,sourcesContent:h}}function Re(_e){_e<0?_e=(-_e<<1)+1:_e=_e<<1;do{let je=_e&31;_e=_e>>5,_e>0&&(je=je|32),Ne(iHe(je))}while(_e>0)}}var Joe=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,xU=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,RU=/^\s*(\/\/[@#] .*)?$/;function DU(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Koe(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=xU.exec(r);if(i)return i[1].trimEnd();if(!r.match(RU))break}}function nHe(e){return typeof e=="string"||e===null}function rHe(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Mo(e.sources)&&Vn(e.sources,Bo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Mo(e.sourcesContent)&&Vn(e.sourcesContent,nHe))&&(e.names===void 0||e.names===null||Mo(e.names)&&Vn(e.names,Bo))}function Xoe(e){try{const t=JSON.parse(e);if(rHe(t))return t}catch{}}function CU(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,d=0,g;return{get pos(){return r},get error(){return g},get state(){return h(!0,!0)},next(){for(;!t&&r=e.length)return E("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const G=oHe(e.charCodeAt(r));if(G===-1)return E("Invalid character in VLQ"),-1;k=(G&32)!==0,O=O|(G&31)<>1,O=-O):O=O>>1,O}}function S1e(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 Yoe(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function iHe(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:C.fail(`${e}: not a base64 value`)}function oHe(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 E1e(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function A1e(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function aHe(e,t){return C.assert(e.sourceIndex===t.sourceIndex),js(e.sourcePosition,t.sourcePosition)}function sHe(e,t){return js(e.generatedPosition,t.generatedPosition)}function lHe(e){return e.sourcePosition}function cHe(e){return e.generatedPosition}function $oe(e,t,r){const i=ci(r),o=t.sourceRoot?To(t.sourceRoot,i):i,s=To(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(W=>To(W,o)),d=new Map(u.map((W,O)=>[e.getCanonicalFileName(W),O]));let g,h,y;return{getSourcePosition:k,getGeneratedPosition:P};function E(W){const O=l!==void 0?m2(l,W.generatedLine,W.generatedCharacter,!0):-1;let G,j;if(Yoe(W)){const J=e.getSourceFileLike(u[W.sourceIndex]);G=t.sources[W.sourceIndex],j=J!==void 0?m2(J,W.sourceLine,W.sourceCharacter,!0):-1}return{generatedPosition:O,source:G,sourceIndex:W.sourceIndex,sourcePosition:j,nameIndex:W.nameIndex}}function A(){if(g===void 0){const W=CU(t.mappings),O=Co(W,E);W.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${W.error}`),g=ae):g=O}return g}function R(W){if(y===void 0){const O=[];for(const G of A()){if(!E1e(G))continue;let j=O[G.sourceIndex];j||(O[G.sourceIndex]=j=[]),j.push(G)}y=O.map(G=>dN(G,aHe,A1e))}return y[W]}function N(){if(h===void 0){const W=[];for(const O of A())W.push(O);h=dN(W,sHe,A1e)}return h}function P(W){const O=d.get(e.getCanonicalFileName(W.fileName));if(O===void 0)return W;const G=R(O);if(!yt(G))return W;let j=JA(G,W.pos,lHe,js);j<0&&(j=~j);const J=G[j];return J===void 0||J.sourceIndex!==O?W:{fileName:s,pos:J.generatedPosition}}function k(W){const O=N();if(!yt(O))return W;let G=JA(O,W.pos,cHe,js);G<0&&(G=~G);const j=O[G];return j===void 0||!E1e(j)?W:{fileName:u[j.sourceIndex],pos:j.sourcePosition}}}var NU={getSourcePosition:Vs,getGeneratedPosition:Vs};function Wu(e){return e=yl(e),e?ls(e):0}function I1e(e){return!e||!n_(e)&&!Jf(e)?!1:yt(e.elements,x1e)}function x1e(e){return N_(e.propertyName||e.name)}function hh(e,t){return r;function r(o){return o.kind===308?t(o):i(o)}function i(o){return e.factory.createBundle(Vt(o.sourceFiles,t))}}function Qoe(e){return!!QR(e)}function n3(e){if(QR(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!n_(t))return!1;let r=0;for(const i of t.elements)x1e(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&o1(e)}function MU(e){return!n3(e)&&(o1(e)||!!e.importClause&&n_(e.importClause.namedBindings)&&I1e(e.importClause.namedBindings))}function PU(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new dHe,l=[],u=new Map,d=new Set;let g,h=!1,y,E=!1,A=!1,R=!1;for(const W of t.statements)switch(W.kind){case 273:o.push(W),!A&&n3(W)&&(A=!0),!R&&MU(W)&&(R=!0);break;case 272:W.moduleReference.kind===284&&o.push(W);break;case 279:if(W.moduleSpecifier)if(!W.exportClause)o.push(W),E=!0;else if(o.push(W),Jf(W.exportClause))P(W),R||(R=I1e(W.exportClause));else{const O=W.exportClause.name,G=_b(O);u.get(G)||(oP(l,Wu(W),O),u.set(G,!0),g=Bn(g,O)),A=!0}else P(W);break;case 278:W.isExportEquals&&!y&&(y=W);break;case 244:if(di(W,32))for(const O of W.declarationList.declarations)g=R1e(O,u,g,l);break;case 263:di(W,32)&&k(W,void 0,di(W,2048));break;case 264:if(di(W,32))if(di(W,2048))h||(oP(l,Wu(W),e.factory.getDeclarationName(W)),h=!0);else{const O=W.name;O&&!u.get(Kr(O))&&(oP(l,Wu(W),O),u.set(Kr(O),!0),g=Bn(g,O))}break}const N=xj(e.factory,e.getEmitHelperFactory(),t,i,E,A,R);return N&&o.unshift(N),{externalImports:o,exportSpecifiers:s,exportEquals:y,hasExportStarsToExportValues:E,exportedBindings:l,exportedNames:g,exportedFunctions:d,externalHelpersImportDeclaration:N};function P(W){for(const O of ma(W.exportClause,Jf).elements){const G=_b(O.name);if(!u.get(G)){const j=O.propertyName||O.name;if(j.kind!==11){W.moduleSpecifier||s.add(j,O);const J=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);if(J){if(J.kind===263){k(J,O.name,N_(O.name));continue}oP(l,Wu(J),O.name)}}u.set(G,!0),g=Bn(g,O.name)}}}function k(W,O,G){if(d.add(yl(W,ec)),G)h||(oP(l,Wu(W),O??e.factory.getDeclarationName(W)),h=!0);else{O??(O=W.name);const j=_b(O);u.get(j)||(oP(l,Wu(W),O),u.set(j,!0))}}}function R1e(e,t,r,i){if(Qo(e.name))for(const o of e.name.elements)Jc(o)||(r=R1e(o,t,r,i));else if(!pl(e.name)){const o=Kr(e.name);t.get(o)||(t.set(o,!0),r=Bn(r,e.name),fy(e.name)&&oP(i,Wu(e),e.name))}return r}function oP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}var VD=class rN{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(rN.toKey(t))}get(t){return this._map.get(rN.toKey(t))}set(t,r){return this._map.set(rN.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(rN.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(KE(t)||pl(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=gw(t),o=dg(i)&&i!==t?rN.toKey(i):`(generated@${ls(i)})`;return n0(!1,r.prefix,o,r.suffix,rN.toKey)}else{const i=`(auto@${r.id})`;return n0(!1,r.prefix,i,r.suffix,rN.toKey)}}return eo(t)?Kr(t).slice(1):Kr(t)}},dHe=class extends VD{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&&(YA(r,t),r.length||this.delete(e))}};function JS(e){return ds(e)||e.kind===9||ep(e.kind)||He(e)}function z_(e){return!He(e)&&JS(e)}function aP(e){return e>=65&&e<=79}function sP(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 r3(e){if(!od(e))return;const t=us(e.expression);return e1(t)?t:void 0}function D1e(e,t,r){for(let i=t;ipHe(i,t,r))}function uHe(e){return fHe(e)||Zl(e)}function o3(e){return Un(e.members,uHe)}function pHe(e,t,r){return Po(e)&&(!!e.initializer||!t)&&Oc(e)===r}function fHe(e){return Po(e)&&Oc(e)}function ww(e){return e.kind===173&&e.initializer!==void 0}function Zoe(e){return!ua(e)&&(iI(e)||Yu(e))&&eo(e.name)}function eae(e){let t;if(e){const r=e.parameters,i=r.length>0&&bb(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lwU(r.privateEnv,t))}function gHe(e){return!e.initializer&&He(e.name)}function Ow(e){return Vn(e,gHe)}function rx(e,t){if(!e||!ka(e)||!uk(e.text,t))return e;const r=ov(e.text,jw(e.text,t));return r!==e.text?jr(vt(L.createStringLiteral(r,e.singleQuote),e),e):e}var rae=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(rae||{});function P1(e,t,r,i,o,s){let l=e,u;if(nv(e))for(u=e.right;Ane(e.left)||nV(e.left);)if(nv(u))l=e=u,u=e.right;else return C.checkDefined(st(u,t,St));let d;const g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:h,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:E=>IHe(r.factory,E),createObjectBindingOrAssignmentPattern:E=>RHe(r.factory,E),createArrayBindingOrAssignmentElement:CHe,visitor:t};if(u&&(u=st(u,t,St),C.assert(u),He(u)&&iae(e,u.escapedText)||oae(e)?u=ix(g,u,!1,l):o?u=ix(g,u,!0,l):Os(e)&&(l=u)),lP(g,e,u,l,nv(e)),u&&o){if(!yt(d))return u;d.push(u)}return r.factory.inlineExpressions(d)||r.factory.createOmittedExpression();function h(E){d=Bn(d,E)}function y(E,A,R,N){C.assertNode(E,s?He:St);const P=s?s(E,A,R):vt(r.factory.createAssignment(C.checkDefined(st(E,t,St)),A),R);P.original=N,h(P)}}function iae(e,t){const r=Pb(e);return N2(r)?yHe(r,t):He(r)?r.escapedText===t:!1}function yHe(e,t){const r=PD(e);for(const i of r)if(iae(i,t))return!0;return!1}function oae(e){const t=T4(e);if(t&&va(t)&&!JE(t.expression))return!0;const r=Pb(e);return!!r&&N2(r)&&vHe(r)}function vHe(e){return!!Ye(PD(e),oae)}function KS(e,t,r,i,o,s=!1,l){let u;const d=[],g=[],h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:y,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:A=>AHe(r.factory,A),createObjectBindingOrAssignmentPattern:A=>xHe(r.factory,A),createArrayBindingOrAssignmentElement:A=>DHe(r.factory,A),visitor:t};if(yi(e)){let A=hw(e);A&&(He(A)&&iae(e,A.escapedText)||oae(e))&&(A=ix(h,C.checkDefined(st(A,h.visitor,St)),!1,A),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,A))}if(lP(h,e,o,e,l),u){const A=r.factory.createTempVariable(void 0);if(s){const R=r.factory.inlineExpressions(u);u=void 0,E(A,R,void 0,void 0)}else{r.hoistVariableDeclaration(A);const R=Ba(d);R.pendingExpressions=Bn(R.pendingExpressions,r.factory.createAssignment(A,R.value)),Xr(R.pendingExpressions,u),R.value=A}}for(const{pendingExpressions:A,name:R,value:N,location:P,original:k}of d){const W=r.factory.createVariableDeclaration(R,void 0,void 0,A?r.factory.inlineExpressions(Bn(A,N)):N);W.original=k,vt(W,P),g.push(W)}return g;function y(A){u=Bn(u,A)}function E(A,R,N,P){C.assertNode(A,XE),u&&(R=r.factory.inlineExpressions(Bn(u,R)),u=void 0),d.push({pendingExpressions:u,name:A,value:R,location:N,original:P})}}function lP(e,t,r,i,o){const s=Pb(t);if(!o){const l=st(hw(t),e.visitor,St);l?r?(r=SHe(e,r,l,i),!z_(l)&&N2(s)&&(r=ix(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}F9(s)?bHe(e,t,s,r,i):z9(s)?THe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function bHe(e,t,r,i,o){const s=PD(r),l=s.length;if(l!==1){const g=!C2(t)||l!==0;i=ix(e,i,g,o)}let u,d;for(let g=0;g=1&&!(h.transformFlags&98304)&&!(Pb(h).transformFlags&98304)&&!va(y))u=Bn(u,st(h,e.visitor,jee));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const E=EHe(e,i,y);va(y)&&(d=Bn(d,E.argumentExpression)),lP(e,h,E,h)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function THe(e,t,r,i,o){const s=PD(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=ix(e,vt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&b4(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Vn(s,Jc)){const g=!C2(t)||l!==0;i=ix(e,i,g,o)}let u,d;for(let g=0;g=1)if(h.transformFlags&65536||e.hasTransformedPriorElement&&!N1e(h)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),d=Bn(d,[y,h]),u=Bn(u,e.createArrayBindingOrAssignmentElement(y))}else u=Bn(u,h);else{if(Jc(h))continue;if(b4(h)){if(g===l-1){const y=e.context.factory.createArraySliceCall(i,g);lP(e,h,y,h)}}else{const y=e.context.factory.createElementAccessExpression(i,g);lP(e,h,y,h)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),d)for(const[g,h]of d)lP(e,h,g,h)}function N1e(e){const t=Pb(e);if(!t||Jc(t))return!0;const r=T4(e);if(r&&!qh(r))return!1;const i=hw(e);return i&&!z_(i)?!1:N2(t)?Vn(PD(t),N1e):He(t)}function SHe(e,t,r,i){return t=ix(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function EHe(e,t,r){const{factory:i}=e.context;if(va(r)){const o=ix(e,C.checkDefined(st(r.expression,e.visitor,St)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(uf(r)||gD(r)){const o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{const o=e.context.factory.createIdentifier(Kr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function ix(e,t,r,i){if(He(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(vt(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function AHe(e,t){return C.assertEachNode(t,lF),e.createArrayBindingPattern(t)}function IHe(e,t){return C.assertEachNode(t,P2),e.createArrayLiteralExpression(Vt(t,e.converters.convertToArrayAssignmentElement))}function xHe(e,t){return C.assertEachNode(t,Ha),e.createObjectBindingPattern(t)}function RHe(e,t){return C.assertEachNode(t,M2),e.createObjectLiteralExpression(Vt(t,e.converters.convertToObjectAssignmentElement))}function DHe(e,t){return e.createBindingElement(void 0,void 0,t)}function CHe(e){return e}function NHe(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 jd(l).classThis=t,l}function cP(e){var t;if(!Zl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return od(r)&&id(r.expression,!0)&&He(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function OU(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&yt(e.members,cP)}function aae(e,t,r,i){if(OU(t))return t;const o=NHe(e,r,i);t.name&&Ua(o.body.statements[0],t.name);const s=e.createNodeArray([o,...t.members]);vt(s,t.members);const l=Cc(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 jd(l).classThis=r,l}function s3(e,t,r){const i=yl(Hl(r));return(Cc(i)||ec(i))&&!i.name&&di(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function M1e(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(qh(t)||eo(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(qh(t.expression)&&!He(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 MHe(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 jd(u).assignedName=t,u}function ox(e){var t;if(!Zl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return od(r)&&kM(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function l3(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&yt(e.members,ox)}function WU(e){return!!e.name||l3(e)}function c3(e,t,r,i){if(l3(t))return t;const{factory:o}=e,s=MHe(e,r,i);t.name&&Ua(s.body.statements[0],t.name);const l=ho(t.members,cP)+1,u=t.members.slice(0,l),d=t.members.slice(l),g=o.createNodeArray([...u,s,...d]);return vt(g,t.members),t=Cc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),jd(t).assignedName=r,t}function jD(e,t,r,i){if(i&&ka(r)&&gG(r))return t;const{factory:o}=e,s=Hl(t),l=uc(s)?ma(c3(e,s,r),uc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function PHe(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=M1e(e,t.name,i),u=jD(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function LHe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):s3(o,t.name,t.objectAssignmentInitializer),l=jD(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function kHe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):s3(o,t.name,t.initializer),l=jD(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function wHe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):s3(o,t.name,t.initializer),l=jD(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function OHe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):s3(o,t.name,t.initializer),l=jD(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function WHe(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=M1e(e,t.name,i),u=jD(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function FHe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):s3(o,t.left,t.right),l=jD(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function zHe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=jD(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function zp(e,t,r,i){switch(t.kind){case 304:return PHe(e,t,r,i);case 305:return LHe(e,t,r,i);case 261:return kHe(e,t,r,i);case 170:return wHe(e,t,r,i);case 209:return OHe(e,t,r,i);case 173:return WHe(e,t,r,i);case 227:return FHe(e,t,r,i);case 278:return zHe(e,t,r,i)}}var sae=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(sae||{});function FU(e,t,r,i,o,s){const l=st(t.tag,r,St);C.assert(l);const u=[void 0],d=[],g=[],h=t.template;if(s===0&&!zG(h))return kn(t,r,e);const{factory:y}=e;if(h1(h))d.push(lae(y,h)),g.push(cae(y,h,i));else{d.push(lae(y,h.head)),g.push(cae(y,h.head,i));for(const A of h.templateSpans)d.push(lae(y,A.literal)),g.push(cae(y,A.literal,i)),u.push(C.checkDefined(st(A.expression,r,St)))}const E=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(d),y.createArrayLiteralExpression(g));if(Bc(i)){const A=y.createUniqueName("templateObject");o(A),u[0]=y.createLogicalOr(A,y.createAssignment(A,E))}else u[0]=E;return y.createCallExpression(l,void 0,u)}function lae(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function cae(e,t,r){let i=t.rawText;if(i===void 0){C.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=yS(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,` `),vt(e.createStringLiteral(i),t)}function dae(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),d=e.getCompilerOptions(),g=Ga(d),h=vu(d),y=!!d.experimentalDecorators,E=d.emitDecoratorMetadata?pae(e):void 0,A=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=tc,e.onSubstituteNode=bf,e.enableSubstitution(212),e.enableSubstitution(213);let N,P,k,W,O,G=0,j;return J;function J(Ee){return Ee.kind===309?Z(Ee):q(Ee)}function Z(Ee){return t.createBundle(Ee.sourceFiles.map(q))}function q(Ee){if(Ee.isDeclarationFile)return Ee;N=Ee;const Y=ye(Ee,Re);return Ag(Y,e.readEmitHelpers()),N=void 0,Y}function ye(Ee,Y){const pt=W,qt=O;ie(Ee);const fn=Y(Ee);return W!==pt&&(O=qt),W=pt,fn}function ie(Ee){switch(Ee.kind){case 308:case 270:case 269:case 242:W=Ee,O=void 0;break;case 264:case 263:if(di(Ee,128))break;Ee.name?B(Ee):C.assert(Ee.kind===264||di(Ee,2048));break}}function K(Ee){return ye(Ee,pe)}function pe(Ee){return Ee.transformFlags&1?ce(Ee):Ee}function de(Ee){return ye(Ee,fe)}function fe(Ee){switch(Ee.kind){case 273:case 272:case 278:case 279:return xe(Ee);default:return pe(Ee)}}function ve(Ee){const Y=jo(Ee);if(Y===Ee||ll(Ee))return!1;if(!Y||Y.kind!==Ee.kind)return!0;switch(Ee.kind){case 273:if(C.assertNode(Y,vl),Ee.importClause!==Y.importClause||Ee.attributes!==Y.attributes)return!0;break;case 272:if(C.assertNode(Y,zc),Ee.name!==Y.name||Ee.isTypeOnly!==Y.isTypeOnly||Ee.moduleReference!==Y.moduleReference&&(Nu(Ee.moduleReference)||Nu(Y.moduleReference)))return!0;break;case 279:if(C.assertNode(Y,fc),Ee.exportClause!==Y.exportClause||Ee.attributes!==Y.attributes)return!0;break}return!1}function xe(Ee){if(ve(Ee))return Ee.transformFlags&1?kn(Ee,K,e):Ee;switch(Ee.kind){case 273:return Bt(Ee);case 272:return En(Ee);case 278:return ft(Ee);case 279:return Mt(Ee);default:C.fail("Unhandled ellided statement")}}function X(Ee){return ye(Ee,Ce)}function Ce(Ee){if(!(Ee.kind===279||Ee.kind===273||Ee.kind===274||Ee.kind===272&&Ee.moduleReference.kind===284))return Ee.transformFlags&1||di(Ee,32)?ce(Ee):Ee}function Je(Ee){return Y=>ye(Y,pt=>Se(pt,Ee))}function Se(Ee,Y){switch(Ee.kind){case 177:return $e(Ee);case 173:return Ci(Ee,Y);case 178:return qi(Ee,Y);case 179:return $o(Ee,Y);case 175:return ri(Ee,Y);case 176:return kn(Ee,K,e);case 241:return Ee;case 182:return;default:return C.failBadSyntaxKind(Ee)}}function re(Ee){return Y=>ye(Y,pt=>be(pt,Ee))}function be(Ee,Y){switch(Ee.kind){case 304:case 305:case 306:return K(Ee);case 178:return qi(Ee,Y);case 179:return $o(Ee,Y);case 175:return ri(Ee,Y);default:return C.failBadSyntaxKind(Ee)}}function Ne(Ee){return Fc(Ee)?void 0:K(Ee)}function Be(Ee){return Aa(Ee)?void 0:K(Ee)}function lt(Ee){if(!Fc(Ee)&&!(SI(Ee.kind)&28895)&&!(P&&Ee.kind===95))return Ee}function ce(Ee){if(Vi(Ee)&&di(Ee,128))return t.createNotEmittedStatement(Ee);switch(Ee.kind){case 95:case 90:return P?void 0:Ee;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:return;case 266:return t.createNotEmittedStatement(Ee);case 271:return;case 265:return t.createNotEmittedStatement(Ee);case 264:return at(Ee);case 232:return Wt(Ee);case 299:return Ai(Ee);case 234:return Ni(Ee);case 211:return _e(Ee);case 177:case 173:case 175:case 178:case 179:case 176:return C.fail("Class and object literal elements must be visited with their respective visitors");case 263:return Ia(Ee);case 219:return Mn(Ee);case 220:return Uo(Ee);case 170:return ot(Ee);case 218:return ne(Ee);case 217:case 235:return Fe(Ee);case 239:return dt(Ee);case 214:return Lt(Ee);case 215:return Ue(Ee);case 216:return Rt(Ee);case 236:return it(Ee);case 267:return Kt(Ee);case 244:return Ft(Ee);case 261:return ht(Ee);case 268:return Xt(Ee);case 272:return En(Ee);case 286:return It(Ee);case 287:return Ot(Ee);default:return kn(Ee,K,e)}}function Re(Ee){const Y=Vd(d,"alwaysStrict")&&!(Bc(Ee)&&h>=5)&&!Ff(Ee);return t.updateSourceFile(Ee,IU(Ee.statements,de,e,0,Y))}function _e(Ee){return t.updateObjectLiteralExpression(Ee,Xn(Ee.properties,re(Ee),ny))}function je(Ee){let Y=0;yt(LU(Ee,!0,!0))&&(Y|=1);const pt=lh(Ee);return pt&&Hl(pt.expression).kind!==106&&(Y|=64),ev(y,Ee)&&(Y|=2),HN(y,Ee)&&(Y|=4),xn(Ee)?Y|=8:Ii(Ee)?Y|=32:ln(Ee)&&(Y|=16),Y}function Ge(Ee){return!!(Ee.transformFlags&8192)}function We(Ee){return pf(Ee)||yt(Ee.typeParameters)||yt(Ee.heritageClauses,Ge)||yt(Ee.members,Ge)}function at(Ee){const Y=je(Ee),pt=g<=1&&!!(Y&7);if(!We(Ee)&&!ev(y,Ee)&&!xn(Ee))return t.updateClassDeclaration(Ee,Xn(Ee.modifiers,lt,Aa),Ee.name,void 0,Xn(Ee.heritageClauses,K,Fp),Xn(Ee.members,Je(Ee),Tc));pt&&e.startLexicalEnvironment();const qt=pt||Y&8;let fn=qt?Xn(Ee.modifiers,Be,fl):Xn(Ee.modifiers,K,fl);Y&2&&(fn=gn(fn,Ee));const si=qt&&!Ee.name||Y&4||Y&1?Ee.name??t.getGeneratedNameForNode(Ee):Ee.name,Dr=t.updateClassDeclaration(Ee,fn,si,void 0,Xn(Ee.heritageClauses,K,Fp),cn(Ee));let Fn=Qa(Ee);Y&1&&(Fn|=64),Cr(Dr,Fn);let ro;if(pt){const So=[Dr],Ns=iV(La(N.text,Ee.members.end),20),Da=t.getInternalName(Ee),Qs=t.createPartiallyEmittedExpression(Da);mD(Qs,Ns.end),Cr(Qs,3072);const Ec=t.createReturnStatement(Qs);IM(Ec,Ns.pos),Cr(Ec,3840),So.push(Ec),mg(So,e.endLexicalEnvironment());const mc=t.createImmediatelyInvokedArrowFunction(So);ew(mc,1);const Hs=t.createVariableDeclaration(t.getLocalName(Ee,!1,!1),void 0,void 0,mc);jr(Hs,Ee);const Ll=t.createVariableStatement(void 0,t.createVariableDeclarationList([Hs],1));jr(Ll,Ee),Dc(Ll,Ee),Ua(Ll,ly(Ee)),ou(Ll),ro=Ll}else ro=Dr;if(qt){if(Y&8)return[ro,ra(Ee)];if(Y&32)return[ro,t.createExportDefault(t.getLocalName(Ee,!1,!0))];if(Y&16)return[ro,t.createExternalModuleExport(t.getDeclarationName(Ee,!1,!0))]}return ro}function Wt(Ee){let Y=Xn(Ee.modifiers,Be,fl);return ev(y,Ee)&&(Y=gn(Y,Ee)),t.updateClassExpression(Ee,Y,Ee.name,void 0,Xn(Ee.heritageClauses,K,Fp),cn(Ee))}function cn(Ee){const Y=Xn(Ee.members,Je(Ee),Tc);let pt;const qt=yg(Ee),fn=qt&&Un(qt.parameters,ur=>Np(ur,qt));if(fn)for(const ur of fn){const si=t.createPropertyDeclaration(void 0,ur.name,void 0,void 0,void 0);jr(si,ur),pt=Bn(pt,si)}return pt?(pt=Xr(pt,Y),vt(t.createNodeArray(pt),Ee.members)):Y}function gn(Ee,Y){const pt=_t(Y,Y);if(yt(pt)){const qt=[];Xr(qt,zB(Ee,_w)),Xr(qt,Un(Ee,Fc)),Xr(qt,pt),Xr(qt,Un(WQ(Ee,_w),Aa)),Ee=vt(t.createNodeArray(qt),Ee)}return Ee}function Kn(Ee,Y,pt){if(ui(pt)&&_G(y,Y,pt)){const qt=_t(Y,pt);if(yt(qt)){const fn=[];Xr(fn,Un(Ee,Fc)),Xr(fn,qt),Xr(fn,Un(Ee,Aa)),Ee=vt(t.createNodeArray(fn),Ee)}}return Ee}function _t(Ee,Y){if(y)return en(Ee,Y)}function en(Ee,Y){if(E){let pt;if(ir(Ee)){const qt=r().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:W,currentNameScope:Y},Ee,Y));pt=Bn(pt,t.createDecorator(qt))}if(lo(Ee)){const qt=r().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:W,currentNameScope:Y},Ee,Y));pt=Bn(pt,t.createDecorator(qt))}if(Di(Ee)){const qt=r().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:W,currentNameScope:Y},Ee));pt=Bn(pt,t.createDecorator(qt))}return pt}}function ir(Ee){const Y=Ee.kind;return Y===175||Y===178||Y===179||Y===173}function Di(Ee){return Ee.kind===175}function lo(Ee){switch(Ee.kind){case 264:case 232:return yg(Ee)!==void 0;case 175:case 178:case 179:return!0}return!1}function zt(Ee,Y){const pt=Ee.name;return eo(pt)?t.createIdentifier(""):va(pt)?pt.expression:He(pt)?t.createStringLiteral(Kr(pt)):t.cloneNode(pt)}function Zr(Ee){const Y=Ee.name;if(y&&va(Y)&&pf(Ee)){const pt=st(Y.expression,K,St);C.assert(pt);const qt=Wm(pt);if(!z_(qt)){const fn=t.getGeneratedNameForNode(Y);return l(fn),t.updateComputedPropertyName(Y,t.createAssignment(fn,pt))}}return C.checkDefined(st(Y,K,bc))}function Ai(Ee){if(Ee.token!==119)return kn(Ee,K,e)}function Ni(Ee){return t.updateExpressionWithTypeArguments(Ee,C.checkDefined(st(Ee.expression,K,$u)),void 0)}function Pr(Ee){return!Wl(Ee.body)}function Ci(Ee,Y){const pt=Ee.flags&33554432||di(Ee,64);if(pt&&!(y&&pf(Ee)))return;let qt=ui(Y)?pt?Xn(Ee.modifiers,Be,fl):Xn(Ee.modifiers,K,fl):Xn(Ee.modifiers,Ne,fl);return qt=Kn(qt,Ee,Y),pt?t.updatePropertyDeclaration(Ee,so(qt,t.createModifiersFromModifierFlags(128)),C.checkDefined(st(Ee.name,K,bc)),void 0,void 0,void 0):t.updatePropertyDeclaration(Ee,qt,Zr(Ee),void 0,void 0,st(Ee.initializer,K,St))}function $e(Ee){if(Pr(Ee))return t.updateConstructorDeclaration(Ee,void 0,zl(Ee.parameters,K,e),mn(Ee.body,Ee))}function At(Ee,Y,pt,qt,fn,ur){const si=qt[fn],Dr=Y[si];if(Xr(Ee,Xn(Y,K,Vi,pt,si-pt)),T1(Dr)){const Fn=[];At(Fn,Dr.tryBlock.statements,0,qt,fn+1,ur);const ro=t.createNodeArray(Fn);vt(ro,Dr.tryBlock.statements),Ee.push(t.updateTryStatement(Dr,t.updateBlock(Dr.tryBlock,Fn),st(Dr.catchClause,K,jS),st(Dr.finallyBlock,K,ea)))}else Xr(Ee,Xn(Y,K,Vi,si,1)),Xr(Ee,ur);Xr(Ee,Xn(Y,K,Vi,si+1))}function mn(Ee,Y){const pt=Y&&Un(Y.parameters,Fn=>Np(Fn,Y));if(!yt(pt))return gf(Ee,K,e);let qt=[];o();const fn=t.copyPrologue(Ee.statements,qt,!1,K),ur=i3(Ee.statements,fn),si=Ui(pt,dr);ur.length?At(qt,Ee.statements,fn,ur,0,si):(Xr(qt,si),Xr(qt,Xn(Ee.statements,K,Vi,fn))),qt=t.mergeLexicalEnvironment(qt,s());const Dr=t.createBlock(vt(t.createNodeArray(qt),Ee.statements),!0);return vt(Dr,Ee),jr(Dr,Ee),Dr}function dr(Ee){const Y=Ee.name;if(!He(Y))return;const pt=ps(vt(t.cloneNode(Y),Y),Y.parent);Cr(pt,3168);const qt=ps(vt(t.cloneNode(Y),Y),Y.parent);return Cr(qt,3072),ou(Zk(vt(jr(t.createExpressionStatement(t.createAssignment(vt(t.createPropertyAccessExpression(t.createThis(),pt),Ee.name),qt)),Ee),jT(Ee,-1))))}function ri(Ee,Y){if(!(Ee.transformFlags&1))return Ee;if(!Pr(Ee))return;let pt=ui(Y)?Xn(Ee.modifiers,K,fl):Xn(Ee.modifiers,Ne,fl);return pt=Kn(pt,Ee,Y),t.updateMethodDeclaration(Ee,pt,Ee.asteriskToken,Zr(Ee),void 0,void 0,zl(Ee.parameters,K,e),void 0,gf(Ee.body,K,e))}function ai(Ee){return!(Wl(Ee.body)&&di(Ee,64))}function qi(Ee,Y){if(!(Ee.transformFlags&1))return Ee;if(!ai(Ee))return;let pt=ui(Y)?Xn(Ee.modifiers,K,fl):Xn(Ee.modifiers,Ne,fl);return pt=Kn(pt,Ee,Y),t.updateGetAccessorDeclaration(Ee,pt,Zr(Ee),zl(Ee.parameters,K,e),void 0,gf(Ee.body,K,e)||t.createBlock([]))}function $o(Ee,Y){if(!(Ee.transformFlags&1))return Ee;if(!ai(Ee))return;let pt=ui(Y)?Xn(Ee.modifiers,K,fl):Xn(Ee.modifiers,Ne,fl);return pt=Kn(pt,Ee,Y),t.updateSetAccessorDeclaration(Ee,pt,Zr(Ee),zl(Ee.parameters,K,e),gf(Ee.body,K,e)||t.createBlock([]))}function Ia(Ee){if(!Pr(Ee))return t.createNotEmittedStatement(Ee);const Y=t.updateFunctionDeclaration(Ee,Xn(Ee.modifiers,lt,Aa),Ee.asteriskToken,Ee.name,void 0,zl(Ee.parameters,K,e),void 0,gf(Ee.body,K,e)||t.createBlock([]));if(xn(Ee)){const pt=[Y];return sa(pt,Ee),pt}return Y}function Mn(Ee){return Pr(Ee)?t.updateFunctionExpression(Ee,Xn(Ee.modifiers,lt,Aa),Ee.asteriskToken,Ee.name,void 0,zl(Ee.parameters,K,e),void 0,gf(Ee.body,K,e)||t.createBlock([])):t.createOmittedExpression()}function Uo(Ee){return t.updateArrowFunction(Ee,Xn(Ee.modifiers,lt,Aa),void 0,zl(Ee.parameters,K,e),void 0,Ee.equalsGreaterThanToken,gf(Ee.body,K,e))}function ot(Ee){if(bb(Ee))return;const Y=t.updateParameterDeclaration(Ee,Xn(Ee.modifiers,pt=>Fc(pt)?K(pt):void 0,fl),Ee.dotDotDotToken,C.checkDefined(st(Ee.name,K,XE)),void 0,void 0,st(Ee.initializer,K,St));return Y!==Ee&&(Dc(Y,Ee),vt(Y,Yh(Ee)),Ua(Y,Yh(Ee)),Cr(Y.name,64)),Y}function Ft(Ee){if(xn(Ee)){const Y=fM(Ee.declarationList);return Y.length===0?void 0:vt(t.createExpressionStatement(t.inlineExpressions(Vt(Y,le))),Ee)}else return kn(Ee,K,e)}function le(Ee){const Y=Ee.name;return Qo(Y)?P1(Ee,K,e,0,!1,Gl):vt(t.createAssignment(xl(Y),C.checkDefined(st(Ee.initializer,K,St))),Ee)}function ht(Ee){const Y=t.updateVariableDeclaration(Ee,C.checkDefined(st(Ee.name,K,XE)),void 0,void 0,st(Ee.initializer,K,St));return Ee.type&&Bre(Y.name,Ee.type),Y}function ne(Ee){const Y=Hl(Ee.expression,-55);if(gS(Y)||SD(Y)){const pt=st(Ee.expression,K,St);return C.assert(pt),t.createPartiallyEmittedExpression(pt,Ee)}return kn(Ee,K,e)}function Fe(Ee){const Y=st(Ee.expression,K,St);return C.assert(Y),t.createPartiallyEmittedExpression(Y,Ee)}function it(Ee){const Y=st(Ee.expression,K,$u);return C.assert(Y),t.createPartiallyEmittedExpression(Y,Ee)}function dt(Ee){const Y=st(Ee.expression,K,St);return C.assert(Y),t.createPartiallyEmittedExpression(Y,Ee)}function Lt(Ee){return t.updateCallExpression(Ee,C.checkDefined(st(Ee.expression,K,St)),void 0,Xn(Ee.arguments,K,St))}function Ue(Ee){return t.updateNewExpression(Ee,C.checkDefined(st(Ee.expression,K,St)),void 0,Xn(Ee.arguments,K,St))}function Rt(Ee){return t.updateTaggedTemplateExpression(Ee,C.checkDefined(st(Ee.tag,K,St)),void 0,C.checkDefined(st(Ee.template,K,oI)))}function It(Ee){return t.updateJsxSelfClosingElement(Ee,C.checkDefined(st(Ee.tagName,K,WN)),void 0,C.checkDefined(st(Ee.attributes,K,VS)))}function Ot(Ee){return t.updateJsxOpeningElement(Ee,C.checkDefined(st(Ee.tagName,K,WN)),void 0,C.checkDefined(st(Ee.attributes,K,VS)))}function nt(Ee){return!wT(Ee)||Eb(d)}function Kt(Ee){if(!nt(Ee))return t.createNotEmittedStatement(Ee);const Y=[];let pt=4;const qt=xt(Y,Ee);qt&&(h!==4||W!==N)&&(pt|=1024);const fn=Ps(Ee),ur=co(Ee),si=xn(Ee)?t.getExternalModuleOrNamespaceExportName(k,Ee,!1,!0):t.getDeclarationName(Ee,!1,!0);let Dr=t.createLogicalOr(si,t.createAssignment(si,t.createObjectLiteralExpression()));if(xn(Ee)){const ro=t.getLocalName(Ee,!1,!0);Dr=t.createAssignment(ro,Dr)}const Fn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,fn)],void 0,Tr(Ee,ur)),void 0,[Dr]));return jr(Fn,Ee),qt&&(qT(Fn,void 0),wI(Fn,void 0)),vt(Fn,Ee),Qh(Fn,pt),Y.push(Fn),Y}function Tr(Ee,Y){const pt=k;k=Y;const qt=[];i();const fn=Vt(Ee.members,Oe);return mg(qt,s()),Xr(qt,fn),k=pt,t.createBlock(vt(t.createNodeArray(qt),Ee.members),!0)}function Oe(Ee){const Y=zt(Ee),pt=u.getEnumMemberValue(Ee),qt=Nt(Ee,pt?.value),fn=t.createAssignment(t.createElementAccessExpression(k,Y),qt),ur=typeof pt?.value=="string"||pt?.isSyntacticallyString?fn:t.createAssignment(t.createElementAccessExpression(k,fn),Y);return vt(t.createExpressionStatement(vt(ur,Ee)),Ee)}function Nt(Ee,Y){return Y!==void 0?typeof Y=="string"?t.createStringLiteral(Y):Y<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Y)):t.createNumericLiteral(Y):(Go(),Ee.initializer?C.checkDefined(st(Ee.initializer,K,St)):t.createVoidZero())}function he(Ee){const Y=jo(Ee,pc);return Y?EU(Y,Eb(d)):!0}function B(Ee){O||(O=new Map);const Y=te(Ee);O.has(Y)||O.set(Y,Ee)}function Ae(Ee){if(O){const Y=te(Ee);return O.get(Y)===Ee}return!0}function te(Ee){return C.assertNode(Ee.name,He),Ee.name.escapedText}function xt(Ee,Y){const pt=t.createVariableDeclaration(t.getLocalName(Y,!1,!0)),qt=W.kind===308?0:1,fn=t.createVariableStatement(Xn(Y.modifiers,lt,Aa),t.createVariableDeclarationList([pt],qt));return jr(pt,Y),qT(pt,void 0),wI(pt,void 0),jr(fn,Y),B(Y),Ae(Y)?(Y.kind===267?Ua(fn.declarationList,Y):Ua(fn,Y),Dc(fn,Y),Qh(fn,2048),Ee.push(fn),!0):!1}function Xt(Ee){if(!he(Ee))return t.createNotEmittedStatement(Ee);C.assertNode(Ee.name,He,"A TypeScript namespace should have an Identifier name."),Sc();const Y=[];let pt=4;const qt=xt(Y,Ee);qt&&(h!==4||W!==N)&&(pt|=1024);const fn=Ps(Ee),ur=co(Ee),si=xn(Ee)?t.getExternalModuleOrNamespaceExportName(k,Ee,!1,!0):t.getDeclarationName(Ee,!1,!0);let Dr=t.createLogicalOr(si,t.createAssignment(si,t.createObjectLiteralExpression()));if(xn(Ee)){const ro=t.getLocalName(Ee,!1,!0);Dr=t.createAssignment(ro,Dr)}const Fn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,fn)],void 0,Pe(Ee,ur)),void 0,[Dr]));return jr(Fn,Ee),qt&&(qT(Fn,void 0),wI(Fn,void 0)),vt(Fn,Ee),Qh(Fn,pt),Y.push(Fn),Y}function Pe(Ee,Y){const pt=k,qt=P,fn=O;k=Y,P=Ee,O=void 0;const ur=[];i();let si,Dr;if(Ee.body)if(Ee.body.kind===269)ye(Ee.body,ro=>Xr(ur,Xn(ro.statements,X,Vi))),si=Ee.body.statements,Dr=Ee.body;else{const ro=Xt(Ee.body);ro&&(Mo(ro)?Xr(ur,ro):ur.push(ro));const So=gt(Ee).body;si=jT(So.statements,-1)}mg(ur,s()),k=pt,P=qt,O=fn;const Fn=t.createBlock(vt(t.createNodeArray(ur),si),!0);return vt(Fn,Dr),(!Ee.body||Ee.body.kind!==269)&&Cr(Fn,Qa(Fn)|3072),Fn}function gt(Ee){if(Ee.body.kind===268)return gt(Ee.body)||Ee.body}function Bt(Ee){if(!Ee.importClause)return Ee;if(Ee.importClause.isTypeOnly)return;const Y=st(Ee.importClause,gr,Vm);return Y?t.updateImportDeclaration(Ee,void 0,Y,Ee.moduleSpecifier,Ee.attributes):void 0}function gr(Ee){C.assert(Ee.phaseModifier!==156);const Y=Fs(Ee)?Ee.name:void 0,pt=st(Ee.namedBindings,tr,j9);return Y||pt?t.updateImportClause(Ee,Ee.phaseModifier,Y,pt):void 0}function tr(Ee){if(Ee.kind===275)return Fs(Ee)?Ee:void 0;{const Y=d.verbatimModuleSyntax,pt=Xn(Ee.elements,Jn,Su);return Y||yt(pt)?t.updateNamedImports(Ee,pt):void 0}}function Jn(Ee){return!Ee.isTypeOnly&&Fs(Ee)?Ee:void 0}function ft(Ee){return d.verbatimModuleSyntax||u.isValueAliasDeclaration(Ee)?kn(Ee,K,e):void 0}function Mt(Ee){if(Ee.isTypeOnly)return;if(!Ee.exportClause||O_(Ee.exportClause))return t.updateExportDeclaration(Ee,Ee.modifiers,Ee.isTypeOnly,Ee.exportClause,Ee.moduleSpecifier,Ee.attributes);const Y=!!d.verbatimModuleSyntax,pt=st(Ee.exportClause,qt=>In(qt,Y),P9);return pt?t.updateExportDeclaration(Ee,void 0,Ee.isTypeOnly,pt,Ee.moduleSpecifier,Ee.attributes):void 0}function jt(Ee,Y){const pt=Xn(Ee.elements,yn,iu);return Y||yt(pt)?t.updateNamedExports(Ee,pt):void 0}function Qt(Ee){return t.updateNamespaceExport(Ee,C.checkDefined(st(Ee.name,K,He)))}function In(Ee,Y){return O_(Ee)?Qt(Ee):jt(Ee,Y)}function yn(Ee){return!Ee.isTypeOnly&&(d.verbatimModuleSyntax||u.isValueAliasDeclaration(Ee))?Ee:void 0}function wt(Ee){return Fs(Ee)||!Bc(N)&&u.isTopLevelValueImportEqualsWithEntityName(Ee)}function En(Ee){if(Ee.isTypeOnly)return;if(WT(Ee))return Fs(Ee)?kn(Ee,K,e):void 0;if(!wt(Ee))return;const Y=uw(t,Ee.moduleReference);return Cr(Y,7168),ln(Ee)||!xn(Ee)?jr(vt(t.createVariableStatement(Xn(Ee.modifiers,lt,Aa),t.createVariableDeclarationList([jr(t.createVariableDeclaration(Ee.name,void 0,void 0,Y),Ee)])),Ee),Ee):jr(zo(Ee.name,Y,Ee),Ee)}function xn(Ee){return P!==void 0&&di(Ee,32)}function Ln(Ee){return P===void 0&&di(Ee,32)}function ln(Ee){return Ln(Ee)&&!di(Ee,2048)}function Ii(Ee){return Ln(Ee)&&di(Ee,2048)}function ra(Ee){const Y=t.createAssignment(t.getExternalModuleOrNamespaceExportName(k,Ee,!1,!0),t.getLocalName(Ee));Ua(Y,Bf(Ee.name?Ee.name.pos:Ee.pos,Ee.end));const pt=t.createExpressionStatement(Y);return Ua(pt,Bf(-1,Ee.end)),pt}function sa(Ee,Y){Ee.push(ra(Y))}function zo(Ee,Y,pt){return vt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(k,Ee,!1,!0),Y)),pt)}function Gl(Ee,Y,pt){return vt(t.createAssignment(xl(Ee),Y),pt)}function xl(Ee){return t.getNamespaceMemberName(k,Ee,!1,!0)}function Ps(Ee){const Y=t.getGeneratedNameForNode(Ee);return Ua(Y,Ee.name),Y}function co(Ee){return t.getGeneratedNameForNode(Ee)}function Go(){G&8||(G|=8,e.enableSubstitution(80))}function Sc(){G&2||(G|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268))}function $s(Ee){return yl(Ee).kind===268}function Ra(Ee){return yl(Ee).kind===267}function tc(Ee,Y,pt){const qt=j,fn=N;Yi(Y)&&(N=Y),G&2&&$s(Y)&&(j|=2),G&8&&Ra(Y)&&(j|=8),A(Ee,Y,pt),j=qt,N=fn}function bf(Ee,Y){return Y=R(Ee,Y),Ee===1?fa(Y):Ud(Y)?Lo(Y):Y}function Lo(Ee){if(G&2){const Y=Ee.name,pt=qa(Y);if(pt){if(Ee.objectAssignmentInitializer){const qt=t.createAssignment(pt,Ee.objectAssignmentInitializer);return vt(t.createPropertyAssignment(Y,qt),Ee)}return vt(t.createPropertyAssignment(Y,pt),Ee)}}return Ee}function fa(Ee){switch(Ee.kind){case 80:return is(Ee);case 212:return Zt(Ee);case 213:return As(Ee)}return Ee}function is(Ee){return qa(Ee)||Ee}function qa(Ee){if(G&j&&!pl(Ee)&&!fy(Ee)){const Y=u.getReferencedExportContainer(Ee,!1);if(Y&&Y.kind!==308&&(j&2&&Y.kind===268||j&8&&Y.kind===267))return vt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Y),Ee),Ee)}}function Zt(Ee){return lc(Ee)}function As(Ee){return lc(Ee)}function ql(Ee){return Ee.replace(/\*\//g,"*_/")}function lc(Ee){const Y=vd(Ee);if(Y!==void 0){Fre(Ee,Y);const pt=typeof Y=="string"?t.createStringLiteral(Y):Y<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Y)):t.createNumericLiteral(Y);if(!d.removeComments){const qt=yl(Ee,Ks);LM(pt,3,` ${ql(Al(qt))} `)}return pt}return Ee}function vd(Ee){if(!ym(d))return qr(Ee)||Ws(Ee)?u.getConstantValue(Ee):void 0}function Fs(Ee){return d.verbatimModuleSyntax||Ir(Ee)||u.isReferencedAliasDeclaration(Ee)}}function uae(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,d=e.getEmitResolver(),g=e.getCompilerOptions(),h=Ga(g),y=Wk(g),E=!!g.experimentalDecorators,A=!y,R=y&&h<9,N=A||R,P=h<9,k=h<99?-1:y?0:3,W=h<9,O=W&&h>=2,G=N||P||k===-1,j=e.onSubstituteNode;e.onSubstituteNode=ql;const J=e.onEmitNode;e.onEmitNode=As;let Z=!1,q=0,ye,ie,K,pe;const de=new Map,fe=new Set;let ve,xe,X=!1,Ce=!1;return hh(e,Je);function Je(Y){if(Y.isDeclarationFile||(pe=void 0,Z=!!(Fm(Y)&32),!G&&!Z))return Y;const pt=kn(Y,re,e);return Ag(pt,e.readEmitHelpers()),pt}function Se(Y){switch(Y.kind){case 129:return At()?void 0:Y;default:return ni(Y,Aa)}}function re(Y){if(!(Y.transformFlags&16777216)&&!(Y.transformFlags&134234112))return Y;switch(Y.kind){case 264:return Kt(Y);case 232:return Oe(Y);case 176:case 173:return C.fail("Use `classElementVisitor` instead.");case 304:return We(Y);case 244:return at(Y);case 261:return Wt(Y);case 170:return cn(Y);case 209:return gn(Y);case 278:return Kn(Y);case 81:return je(Y);case 212:return $o(Y);case 213:return Ia(Y);case 225:case 226:return Mn(Y,!1);case 227:return it(Y,!1);case 218:return Lt(Y,!1);case 214:return le(Y);case 245:return ot(Y);case 216:return ht(Y);case 249:return Uo(Y);case 110:return B(Y);case 263:case 219:return zt(void 0,be,Y);case 177:case 175:case 178:case 179:return zt(Y,be,Y);default:return be(Y)}}function be(Y){return kn(Y,re,e)}function Ne(Y){switch(Y.kind){case 225:case 226:return Mn(Y,!0);case 227:return it(Y,!0);case 357:return dt(Y);case 218:return Lt(Y,!0);default:return re(Y)}}function Be(Y){switch(Y.kind){case 299:return kn(Y,Be,e);case 234:return Ot(Y);default:return re(Y)}}function lt(Y){switch(Y.kind){case 211:case 210:return Zt(Y);default:return re(Y)}}function ce(Y){switch(Y.kind){case 177:return zt(Y,ir,Y);case 178:case 179:case 175:return zt(Y,lo,Y);case 173:return zt(Y,mn,Y);case 176:return zt(Y,he,Y);case 168:return en(Y);case 241:return Y;default:return fl(Y)?Se(Y):re(Y)}}function Re(Y){switch(Y.kind){case 168:return en(Y);default:return re(Y)}}function _e(Y){switch(Y.kind){case 173:return $e(Y);case 178:case 179:return ce(Y);default:C.assertMissingNode(Y,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function je(Y){return!P||Vi(Y.parent)?Y:jr(t.createIdentifier(""),Y)}function Ge(Y){const pt=Go(Y.left);if(pt){const qt=st(Y.right,re,St);return jr(r().createClassPrivateFieldInHelper(pt.brandCheckIdentifier,qt),Y)}return kn(Y,re,e)}function We(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),kn(Y,re,e)}function at(Y){const pt=K;K=[];const qt=kn(Y,re,e),fn=yt(K)?[qt,...K]:qt;return K=pt,fn}function Wt(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),kn(Y,re,e)}function cn(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),kn(Y,re,e)}function gn(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),kn(Y,re,e)}function Kn(Y){return Lp(Y,Fe)&&(Y=zp(e,Y,!0,Y.isExportEquals?"":"default")),kn(Y,re,e)}function _t(Y){return yt(ie)&&(wu(Y)?(ie.push(Y.expression),Y=t.updateParenthesizedExpression(Y,t.inlineExpressions(ie))):(ie.push(Y),Y=t.inlineExpressions(ie)),ie=void 0),Y}function en(Y){const pt=st(Y.expression,re,St);return t.updateComputedPropertyName(Y,_t(pt))}function ir(Y){return ve?xt(Y,ve):be(Y)}function Di(Y){return!!(P||Oc(Y)&&Fm(Y)&32)}function lo(Y){if(C.assert(!pf(Y)),!tu(Y)||!Di(Y))return kn(Y,ce,e);const pt=Go(Y.name);if(C.assert(pt,"Undeclared private name for property declaration."),!pt.isValid)return Y;const qt=Zr(Y);qt&&Ln().push(t.createAssignment(qt,t.createFunctionExpression(Un(Y.modifiers,fn=>Aa(fn)&&!BI(fn)&&!oj(fn)),Y.asteriskToken,qt,void 0,zl(Y.parameters,re,e),void 0,gf(Y.body,re,e))))}function zt(Y,pt,qt){if(Y!==xe){const fn=xe;xe=Y;const ur=pt(qt);return xe=fn,ur}return pt(qt)}function Zr(Y){C.assert(eo(Y.name));const pt=Go(Y.name);if(C.assert(pt,"Undeclared private name for property declaration."),pt.kind==="m")return pt.methodName;if(pt.kind==="a"){if(ug(Y))return pt.getterName;if(Vh(Y))return pt.setterName}}function Ai(){const Y=En();return Y.classThis??Y.classConstructor??ve?.name}function Ni(Y){const pt=Zh(Y),qt=sv(Y),fn=Y.name;let ur=fn,si=fn;if(va(fn)&&!z_(fn.expression)){const Qs=E4(fn);if(Qs)ur=t.updateComputedPropertyName(fn,st(fn.expression,re,St)),si=t.updateComputedPropertyName(fn,Qs.left);else{const Ec=t.createTempVariable(i);Ua(Ec,fn.expression);const mc=st(fn.expression,re,St),Hs=t.createAssignment(Ec,mc);Ua(Hs,fn.expression),ur=t.updateComputedPropertyName(fn,Hs),si=t.updateComputedPropertyName(fn,Ec)}}const Dr=Xn(Y.modifiers,Se,Aa),Fn=Pj(t,Y,Dr,Y.initializer);jr(Fn,Y),Cr(Fn,3072),Ua(Fn,qt);const ro=ua(Y)?Ai()??t.createThis():t.createThis(),So=Wie(t,Y,Dr,ur,ro);jr(So,Y),Dc(So,pt),Ua(So,qt);const Ns=t.createModifiersFromModifierFlags(Xh(Dr)),Da=Fie(t,Y,Ns,si,ro);return jr(Da,Y),Cr(Da,3072),Ua(Da,qt),iP([Fn,So,Da],_e,Tc)}function Pr(Y){if(Di(Y)){const pt=Go(Y.name);if(C.assert(pt,"Undeclared private name for property declaration."),!pt.isValid)return Y;if(pt.isStatic&&!P){const qt=Bt(Y,t.createThis());if(qt)return t.createClassStaticBlockDeclaration(t.createBlock([qt],!0))}return}return A&&!ua(Y)&&pe?.data&&pe.data.facts&16?t.updatePropertyDeclaration(Y,Xn(Y.modifiers,re,fl),Y.name,void 0,void 0,void 0):(Lp(Y,Fe)&&(Y=zp(e,Y)),t.updatePropertyDeclaration(Y,Xn(Y.modifiers,Se,Aa),st(Y.name,Re,bc),void 0,void 0,st(Y.initializer,re,St)))}function Ci(Y){if(N&&!Yu(Y)){const pt=In(Y.name,!!Y.initializer||y);if(pt&&Ln().push(...zie(pt)),ua(Y)&&!P){const qt=Bt(Y,t.createThis());if(qt){const fn=t.createClassStaticBlockDeclaration(t.createBlock([qt]));return jr(fn,Y),Dc(fn,Y),Dc(qt,{pos:-1,end:-1}),qT(qt,void 0),wI(qt,void 0),fn}}return}return t.updatePropertyDeclaration(Y,Xn(Y.modifiers,Se,Aa),st(Y.name,Re,bc),void 0,void 0,st(Y.initializer,re,St))}function $e(Y){return C.assert(!pf(Y),"Decorators should already have been transformed and elided."),tu(Y)?Pr(Y):Ci(Y)}function At(){return k===-1||k===3&&!!pe?.data&&!!(pe.data.facts&16)}function mn(Y){return Yu(Y)&&(At()||Oc(Y)&&Fm(Y)&32)?Ni(Y):$e(Y)}function dr(){return!!xe&&Oc(xe)&&ub(xe)&&Yu(yl(xe))}function ri(Y){if(dr()){const pt=Hl(Y);pt.kind===110&&fe.add(pt)}}function ai(Y,pt){return pt=st(pt,re,St),ri(pt),qi(Y,pt)}function qi(Y,pt){switch(Dc(pt,jT(pt,-1)),Y.kind){case"a":return r().createClassPrivateFieldGetHelper(pt,Y.brandCheckIdentifier,Y.kind,Y.getterName);case"m":return r().createClassPrivateFieldGetHelper(pt,Y.brandCheckIdentifier,Y.kind,Y.methodName);case"f":return r().createClassPrivateFieldGetHelper(pt,Y.brandCheckIdentifier,Y.kind,Y.isStatic?Y.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(Y,"Unknown private element type")}}function $o(Y){if(eo(Y.name)){const pt=Go(Y.name);if(pt)return vt(jr(ai(pt,Y.expression),Y),Y)}if(O&&xe&&mp(Y)&&He(Y.name)&&dP(xe)&&pe?.data){const{classConstructor:pt,superClassReference:qt,facts:fn}=pe.data;if(fn&1)return Qt(Y);if(pt&&qt){const ur=t.createReflectGetCall(qt,t.createStringLiteralFromNode(Y.name),pt);return jr(ur,Y.expression),vt(ur,Y.expression),ur}}return kn(Y,re,e)}function Ia(Y){if(O&&xe&&mp(Y)&&dP(xe)&&pe?.data){const{classConstructor:pt,superClassReference:qt,facts:fn}=pe.data;if(fn&1)return Qt(Y);if(pt&&qt){const ur=t.createReflectGetCall(qt,st(Y.argumentExpression,re,St),pt);return jr(ur,Y.expression),vt(ur,Y.expression),ur}}return kn(Y,re,e)}function Mn(Y,pt){if(Y.operator===46||Y.operator===47){const qt=us(Y.operand);if(FR(qt)){let fn;if(fn=Go(qt.name)){const ur=st(qt.expression,re,St);ri(ur);const{readExpression:si,initializeExpression:Dr}=Ft(ur);let Fn=ai(fn,si);const ro=XT(Y)||pt?void 0:t.createTempVariable(i);return Fn=g4(t,Y,Fn,i,ro),Fn=Ue(fn,Dr||si,Fn,64),jr(Fn,Y),vt(Fn,Y),ro&&(Fn=t.createComma(Fn,ro),vt(Fn,Y)),Fn}}else if(O&&xe&&mp(qt)&&dP(xe)&&pe?.data){const{classConstructor:fn,superClassReference:ur,facts:si}=pe.data;if(si&1){const Dr=Qt(qt);return XT(Y)?t.updatePrefixUnaryExpression(Y,Dr):t.updatePostfixUnaryExpression(Y,Dr)}if(fn&&ur){let Dr,Fn;if(qr(qt)?He(qt.name)&&(Fn=Dr=t.createStringLiteralFromNode(qt.name)):z_(qt.argumentExpression)?Fn=Dr=qt.argumentExpression:(Fn=t.createTempVariable(i),Dr=t.createAssignment(Fn,st(qt.argumentExpression,re,St))),Dr&&Fn){let ro=t.createReflectGetCall(ur,Fn,fn);vt(ro,qt);const So=pt?void 0:t.createTempVariable(i);return ro=g4(t,Y,ro,i,So),ro=t.createReflectSetCall(ur,Dr,ro,fn),jr(ro,Y),vt(ro,Y),So&&(ro=t.createComma(ro,So),vt(ro,Y)),ro}}}}return kn(Y,re,e)}function Uo(Y){return t.updateForStatement(Y,st(Y.initializer,Ne,Of),st(Y.condition,re,St),st(Y.incrementor,Ne,St),Ou(Y.statement,re,e))}function ot(Y){return t.updateExpressionStatement(Y,st(Y.expression,Ne,St))}function Ft(Y){const pt=Os(Y)?Y:t.cloneNode(Y);if(Y.kind===110&&fe.has(Y)&&fe.add(pt),z_(Y))return{readExpression:pt,initializeExpression:void 0};const qt=t.createTempVariable(i),fn=t.createAssignment(qt,pt);return{readExpression:qt,initializeExpression:fn}}function le(Y){var pt;if(FR(Y.expression)&&Go(Y.expression.name)){const{thisArg:qt,target:fn}=t.createCallBinding(Y.expression,i,h);return qE(Y)?t.updateCallChain(Y,t.createPropertyAccessChain(st(fn,re,St),Y.questionDotToken,"call"),void 0,void 0,[st(qt,re,St),...Xn(Y.arguments,re,St)]):t.updateCallExpression(Y,t.createPropertyAccessExpression(st(fn,re,St),"call"),void 0,[st(qt,re,St),...Xn(Y.arguments,re,St)])}if(O&&xe&&mp(Y.expression)&&dP(xe)&&((pt=pe?.data)!=null&&pt.classConstructor)){const qt=t.createFunctionCallCall(st(Y.expression,re,St),pe.data.classConstructor,Xn(Y.arguments,re,St));return jr(qt,Y),vt(qt,Y),qt}return kn(Y,re,e)}function ht(Y){var pt;if(FR(Y.tag)&&Go(Y.tag.name)){const{thisArg:qt,target:fn}=t.createCallBinding(Y.tag,i,h);return t.updateTaggedTemplateExpression(Y,t.createCallExpression(t.createPropertyAccessExpression(st(fn,re,St),"bind"),void 0,[st(qt,re,St)]),void 0,st(Y.template,re,oI))}if(O&&xe&&mp(Y.tag)&&dP(xe)&&((pt=pe?.data)!=null&&pt.classConstructor)){const qt=t.createFunctionBindCall(st(Y.tag,re,St),pe.data.classConstructor,[]);return jr(qt,Y),vt(qt,Y),t.updateTaggedTemplateExpression(Y,qt,void 0,st(Y.template,re,oI))}return kn(Y,re,e)}function ne(Y){if(pe&&de.set(yl(Y),pe),P){if(cP(Y)){const fn=st(Y.body.statements[0].expression,re,St);return id(fn,!0)&&fn.left===fn.right?void 0:fn}if(ox(Y))return st(Y.body.statements[0].expression,re,St);s();let pt=zt(Y,fn=>Xn(fn,re,Vi),Y.body.statements);pt=t.mergeLexicalEnvironment(pt,o());const qt=t.createImmediatelyInvokedArrowFunction(pt);return jr(us(qt.expression),Y),Qh(us(qt.expression),4),jr(qt,Y),vt(qt,Y),qt}}function Fe(Y){if(uc(Y)&&!Y.name){const pt=o3(Y);return yt(pt,ox)?!1:(P||!!Fm(Y))&&yt(pt,fn=>Zl(fn)||tu(fn)||N&&ww(fn))}return!1}function it(Y,pt){if(nv(Y)){const qt=ie;ie=void 0,Y=t.updateBinaryExpression(Y,st(Y.left,lt,St),Y.operatorToken,st(Y.right,re,St));const fn=yt(ie)?t.inlineExpressions(i2([...ie,Y])):Y;return ie=qt,fn}if(id(Y)){Lp(Y,Fe)&&(Y=zp(e,Y),C.assertNode(Y,id));const qt=Hl(Y.left,9);if(FR(qt)){const fn=Go(qt.name);if(fn)return vt(jr(Ue(fn,qt.expression,Y.right,Y.operatorToken.kind),Y),Y)}else if(O&&xe&&mp(Y.left)&&dP(xe)&&pe?.data){const{classConstructor:fn,superClassReference:ur,facts:si}=pe.data;if(si&1)return t.updateBinaryExpression(Y,Qt(Y.left),Y.operatorToken,st(Y.right,re,St));if(fn&&ur){let Dr=Ws(Y.left)?st(Y.left.argumentExpression,re,St):He(Y.left.name)?t.createStringLiteralFromNode(Y.left.name):void 0;if(Dr){let Fn=st(Y.right,re,St);if(aP(Y.operatorToken.kind)){let So=Dr;z_(Dr)||(So=t.createTempVariable(i),Dr=t.createAssignment(So,Dr));const Ns=t.createReflectGetCall(ur,So,fn);jr(Ns,Y.left),vt(Ns,Y.left),Fn=t.createBinaryExpression(Ns,sP(Y.operatorToken.kind),Fn),vt(Fn,Y)}const ro=pt?void 0:t.createTempVariable(i);return ro&&(Fn=t.createAssignment(ro,Fn),vt(ro,Y)),Fn=t.createReflectSetCall(ur,Dr,Fn,fn),jr(Fn,Y),vt(Fn,Y),ro&&(Fn=t.createComma(Fn,ro),vt(Fn,Y)),Fn}}}}return UHe(Y)?Ge(Y):kn(Y,re,e)}function dt(Y,pt){const qt=t3(Y.elements,Ne);return t.updateCommaListExpression(Y,qt)}function Lt(Y,pt){const qt=pt?Ne:re,fn=st(Y.expression,qt,St);return t.updateParenthesizedExpression(Y,fn)}function Ue(Y,pt,qt,fn){if(pt=st(pt,re,St),qt=st(qt,re,St),ri(pt),aP(fn)){const{readExpression:ur,initializeExpression:si}=Ft(pt);pt=si||ur,qt=t.createBinaryExpression(qi(Y,ur),sP(fn),qt)}switch(Dc(pt,jT(pt,-1)),Y.kind){case"a":return r().createClassPrivateFieldSetHelper(pt,Y.brandCheckIdentifier,qt,Y.kind,Y.setterName);case"m":return r().createClassPrivateFieldSetHelper(pt,Y.brandCheckIdentifier,qt,Y.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(pt,Y.brandCheckIdentifier,qt,Y.kind,Y.isStatic?Y.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(Y,"Unknown private element type")}}function Rt(Y){return Un(Y.members,Zoe)}function It(Y){var pt;let qt=0;const fn=yl(Y);ui(fn)&&ev(E,fn)&&(qt|=1),P&&(OU(Y)||l3(Y))&&(qt|=2);let ur=!1,si=!1,Dr=!1,Fn=!1;for(const So of Y.members)ua(So)?((So.name&&(eo(So.name)||Yu(So))&&P||Yu(So)&&k===-1&&!Y.name&&!((pt=Y.emitNode)!=null&&pt.classThis))&&(qt|=2),(Po(So)||Zl(So))&&(W&&So.transformFlags&16384&&(qt|=8,qt&1||(qt|=2)),O&&So.transformFlags&134217728&&(qt&1||(qt|=6)))):MS(yl(So))||(Yu(So)?(Fn=!0,Dr||(Dr=tu(So))):tu(So)?(Dr=!0,d.hasNodeCheckFlag(So,262144)&&(qt|=2)):Po(So)&&(ur=!0,si||(si=!!So.initializer)));return(R&&ur||A&&si||P&&Dr||P&&Fn&&k===-1)&&(qt|=16),qt}function Ot(Y){var pt;if((((pt=pe?.data)==null?void 0:pt.facts)||0)&4){const fn=t.createTempVariable(i,!0);return En().superClassReference=fn,t.updateExpressionWithTypeArguments(Y,t.createAssignment(fn,st(Y.expression,re,St)),void 0)}return kn(Y,re,e)}function nt(Y,pt){var qt;const fn=ve,ur=ie,si=pe;ve=Y,ie=void 0,yn();const Dr=Fm(Y)&32;if(P||Dr){const So=Oo(Y);if(So&&He(So))xn().data.className=So;else if((qt=Y.emitNode)!=null&&qt.assignedName&&ka(Y.emitNode.assignedName)){if(Y.emitNode.assignedName.textSourceNode&&He(Y.emitNode.assignedName.textSourceNode))xn().data.className=Y.emitNode.assignedName.textSourceNode;else if(fp(Y.emitNode.assignedName.text,h)){const Ns=t.createIdentifier(Y.emitNode.assignedName.text);xn().data.className=Ns}}}if(P){const So=Rt(Y);yt(So)&&(xn().data.weakSetName=Ps("instances",So[0].name))}const Fn=It(Y);Fn&&(En().facts=Fn),Fn&8&&Mt();const ro=pt(Y,Fn);return wt(),C.assert(pe===si),ve=fn,ie=ur,ro}function Kt(Y){return nt(Y,Tr)}function Tr(Y,pt){var qt,fn;let ur;if(pt&2)if(P&&((qt=Y.emitNode)!=null&&qt.classThis))En().classConstructor=Y.emitNode.classThis,ur=t.createAssignment(Y.emitNode.classThis,t.getInternalName(Y));else{const Hs=t.createTempVariable(i,!0);En().classConstructor=t.cloneNode(Hs),ur=t.createAssignment(Hs,t.getInternalName(Y))}(fn=Y.emitNode)!=null&&fn.classThis&&(En().classThis=Y.emitNode.classThis);const si=d.hasNodeCheckFlag(Y,262144),Dr=di(Y,32),Fn=di(Y,2048);let ro=Xn(Y.modifiers,Se,Aa);const So=Xn(Y.heritageClauses,Be,Fp),{members:Ns,prologue:Da}=Ae(Y),Qs=[];if(ur&&Ln().unshift(ur),yt(ie)&&Qs.push(t.createExpressionStatement(t.inlineExpressions(ie))),A||P||Fm(Y)&32){const Hs=o3(Y);yt(Hs)&>(Qs,Hs,t.getInternalName(Y))}Qs.length>0&&Dr&&Fn&&(ro=Xn(ro,Hs=>_w(Hs)?void 0:Hs,Aa),Qs.push(t.createExportAssignment(void 0,!1,t.getLocalName(Y,!1,!0))));const Ec=En().classConstructor;si&&Ec&&(ft(),ye[Wu(Y)]=Ec);const mc=t.updateClassDeclaration(Y,ro,Y.name,void 0,So,Ns);return Qs.unshift(mc),Da&&Qs.unshift(t.createExpressionStatement(Da)),Qs}function Oe(Y){return nt(Y,Nt)}function Nt(Y,pt){var qt,fn,ur;const si=!!(pt&1),Dr=o3(Y),Fn=d.hasNodeCheckFlag(Y,262144),ro=d.hasNodeCheckFlag(Y,32768);let So;function Ns(){var Pd;if(P&&((Pd=Y.emitNode)!=null&&Pd.classThis))return En().classConstructor=Y.emitNode.classThis;const nf=t.createTempVariable(ro?u:i,!0);return En().classConstructor=t.cloneNode(nf),nf}(qt=Y.emitNode)!=null&&qt.classThis&&(En().classThis=Y.emitNode.classThis),pt&2&&(So??(So=Ns()));const Da=Xn(Y.modifiers,Se,Aa),Qs=Xn(Y.heritageClauses,Be,Fp),{members:Ec,prologue:mc}=Ae(Y),Hs=t.updateClassExpression(Y,Da,Y.name,void 0,Qs,Ec),Ll=[];if(mc&&Ll.push(mc),(P||Fm(Y)&32)&&yt(Dr,Pd=>Zl(Pd)||tu(Pd)||N&&ww(Pd))||yt(ie))if(si)C.assertIsDefined(K,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),yt(ie)&&Xr(K,Vt(ie,t.createExpressionStatement)),yt(Dr)&>(K,Dr,((fn=Y.emitNode)==null?void 0:fn.classThis)??t.getInternalName(Y)),So?Ll.push(t.createAssignment(So,Hs)):P&&((ur=Y.emitNode)!=null&&ur.classThis)?Ll.push(t.createAssignment(Y.emitNode.classThis,Hs)):Ll.push(Hs);else{if(So??(So=Ns()),Fn){ft();const Pd=t.cloneNode(So);Pd.emitNode.autoGenerate.flags&=-9,ye[Wu(Y)]=Pd}Ll.push(t.createAssignment(So,Hs)),Xr(Ll,ie),Xr(Ll,gr(Dr,So)),Ll.push(t.cloneNode(So))}else Ll.push(Hs);return Ll.length>1&&(Qh(Hs,131072),Ll.forEach(ou)),t.inlineExpressions(Ll)}function he(Y){if(!P)return kn(Y,re,e)}function B(Y){if(W&&xe&&Zl(xe)&&pe?.data){const{classThis:pt,classConstructor:qt}=pe.data;return pt??qt??Y}return Y}function Ae(Y){const pt=!!(Fm(Y)&32);if(P||Z){for(const Dr of Y.members)if(tu(Dr))if(Di(Dr))xl(Dr,Dr.name,ln);else{const Fn=xn();M1(Fn,Dr.name,{kind:"untransformed"})}if(P&&yt(Rt(Y))&&te(),At()){for(const Dr of Y.members)if(Yu(Dr)){const Fn=t.getGeneratedPrivateNameForNode(Dr.name,void 0,"_accessor_storage");if(P||pt&&Oc(Dr))xl(Dr,Fn,Ii);else{const ro=xn();M1(ro,Fn,{kind:"untransformed"})}}}}let qt=Xn(Y.members,ce,Tc),fn;yt(qt,Pl)||(fn=xt(void 0,Y));let ur,si;if(!P&&yt(ie)){let Dr=t.createExpressionStatement(t.inlineExpressions(ie));if(Dr.transformFlags&134234112){const ro=t.createTempVariable(i),So=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Dr]));ur=t.createAssignment(ro,So),Dr=t.createExpressionStatement(t.createCallExpression(ro,void 0,[]))}const Fn=t.createBlock([Dr]);si=t.createClassStaticBlockDeclaration(Fn),ie=void 0}if(fn||si){let Dr;const Fn=hn(qt,cP),ro=hn(qt,ox);Dr=Bn(Dr,Fn),Dr=Bn(Dr,ro),Dr=Bn(Dr,fn),Dr=Bn(Dr,si);const So=Fn||ro?Un(qt,Ns=>Ns!==Fn&&Ns!==ro):qt;Dr=Xr(Dr,So),qt=vt(t.createNodeArray(Dr),Y.members)}return{members:qt,prologue:ur}}function te(){const{weakSetName:Y}=xn().data;C.assert(Y,"weakSetName should be set in private identifier environment"),Ln().push(t.createAssignment(Y,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function xt(Y,pt){if(Y=st(Y,re,Pl),!pe?.data||!(pe.data.facts&16))return Y;const qt=lh(pt),fn=!!(qt&&Hl(qt.expression).kind!==106),ur=zl(Y?Y.parameters:void 0,re,e),si=Pe(pt,Y,fn);return si?Y?(C.assert(ur),t.updateConstructorDeclaration(Y,void 0,ur,si)):ou(jr(vt(t.createConstructorDeclaration(void 0,ur??[],si),Y||pt),Y)):Y}function Xt(Y,pt,qt,fn,ur,si,Dr){const Fn=fn[ur],ro=pt[Fn];if(Xr(Y,Xn(pt,re,Vi,qt,Fn-qt)),qt=Fn+1,T1(ro)){const So=[];Xt(So,ro.tryBlock.statements,0,fn,ur+1,si,Dr);const Ns=t.createNodeArray(So);vt(Ns,ro.tryBlock.statements),Y.push(t.updateTryStatement(ro,t.updateBlock(ro.tryBlock,So),st(ro.catchClause,re,jS),st(ro.finallyBlock,re,ea)))}else{for(Xr(Y,Xn(pt,re,Vi,Fn,1));qt!!mc.initializer||eo(mc.name)||Kh(mc)));const Dr=Rt(Y),Fn=yt(si)||yt(Dr);if(!pt&&!Fn)return gf(void 0,re,e);l();const ro=!pt&&qt;let So=0,Ns=[];const Da=[],Qs=t.createThis();if(jt(Da,Dr,Qs),pt){const mc=Un(ur,Ll=>Np(yl(Ll),pt)),Hs=Un(si,Ll=>!Np(yl(Ll),pt));gt(Da,mc,Qs),gt(Da,Hs,Qs)}else gt(Da,si,Qs);if(pt?.body){So=t.copyPrologue(pt.body.statements,Ns,!1,re);const mc=i3(pt.body.statements,So);if(mc.length)Xt(Ns,pt.body.statements,So,mc,0,Da,pt);else{for(;So=Ns.length?pt.body.multiLine??Ns.length>0:Ns.length>0;return vt(t.createBlock(vt(t.createNodeArray(Ns),((fn=pt?.body)==null?void 0:fn.statements)??Y.members),Ec),pt?.body)}function gt(Y,pt,qt){for(const fn of pt){if(ua(fn)&&!P)continue;const ur=Bt(fn,qt);ur&&Y.push(ur)}}function Bt(Y,pt){const qt=Zl(Y)?zt(Y,ne,Y):tr(Y,pt);if(!qt)return;const fn=t.createExpressionStatement(qt);jr(fn,Y),Qh(fn,Qa(Y)&3072),Dc(fn,Y);const ur=yl(Y);return to(ur)?(Ua(fn,ur),Zk(fn)):Ua(fn,Yh(Y)),qT(qt,void 0),wI(qt,void 0),Kh(ur)&&Qh(fn,3072),fn}function gr(Y,pt){const qt=[];for(const fn of Y){const ur=Zl(fn)?zt(fn,ne,fn):zt(fn,()=>tr(fn,pt),void 0);ur&&(ou(ur),jr(ur,fn),Qh(ur,Qa(fn)&3072),Ua(ur,Yh(fn)),Dc(ur,fn),qt.push(ur))}return qt}function tr(Y,pt){var qt;const fn=xe,ur=Jn(Y,pt);return ur&&Oc(Y)&&((qt=pe?.data)!=null&&qt.facts)&&(jr(ur,Y),Qh(ur,4),Ua(ur,sv(Y.name)),de.set(yl(Y),pe)),xe=fn,ur}function Jn(Y,pt){const qt=!y;Lp(Y,Fe)&&(Y=zp(e,Y));const fn=Kh(Y)?t.getGeneratedPrivateNameForNode(Y.name):va(Y.name)&&!z_(Y.name.expression)?t.updateComputedPropertyName(Y.name,t.getGeneratedNameForNode(Y.name)):Y.name;if(Oc(Y)&&(xe=Y),eo(fn)&&Di(Y)){const Dr=Go(fn);if(Dr)return Dr.kind==="f"?Dr.isStatic?BHe(t,Dr.variableName,st(Y.initializer,re,St)):GHe(t,pt,st(Y.initializer,re,St),Dr.brandCheckIdentifier):void 0;C.fail("Undeclared private name for property declaration.")}if((eo(fn)||Oc(Y))&&!Y.initializer)return;const ur=yl(Y);if(di(ur,64))return;let si=st(Y.initializer,re,St);if(Np(ur,ur.parent)&&He(fn)){const Dr=t.cloneNode(fn);si?(wu(si)&&pw(si.expression)&&kM(si.expression.left,"___runInitializers")&&HI(si.expression.right)&&np(si.expression.right.expression)&&(si=si.expression.left),si=t.inlineExpressions([si,Dr])):si=Dr,Cr(fn,3168),Ua(Dr,ur.name),Cr(Dr,3072)}else si??(si=t.createVoidZero());if(qt||eo(fn)){const Dr=x1(t,pt,fn,fn);return Qh(Dr,1024),t.createAssignment(Dr,si)}else{const Dr=va(fn)?fn.expression:He(fn)?t.createStringLiteral(Gi(fn.escapedText)):fn,Fn=t.createPropertyDescriptor({value:si,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(pt,Dr,Fn)}}function ft(){q&1||(q|=1,e.enableSubstitution(80),ye=[])}function Mt(){q&2||(q|=2,e.enableSubstitution(110),e.enableEmitNotification(263),e.enableEmitNotification(219),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(168))}function jt(Y,pt,qt){if(!P||!yt(pt))return;const{weakSetName:fn}=xn().data;C.assert(fn,"weakSetName should be set in private identifier environment"),Y.push(t.createExpressionStatement(VHe(t,qt,fn)))}function Qt(Y){return qr(Y)?t.updatePropertyAccessExpression(Y,t.createVoidZero(),Y.name):t.updateElementAccessExpression(Y,t.createVoidZero(),st(Y.argumentExpression,re,St))}function In(Y,pt){if(va(Y)){const qt=E4(Y),fn=st(Y.expression,re,St),ur=Wm(fn),si=z_(ur);if(!(!!qt||id(ur)&&pl(ur.left))&&!si&&pt){const Fn=t.getGeneratedNameForNode(Y);return d.hasNodeCheckFlag(Y,32768)?u(Fn):i(Fn),t.createAssignment(Fn,fn)}return si||He(ur)?void 0:fn}}function yn(){pe={previous:pe,data:void 0}}function wt(){pe=pe?.previous}function En(){return C.assert(pe),pe.data??(pe.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function xn(){return C.assert(pe),pe.privateEnv??(pe.privateEnv=tae({className:void 0,weakSetName:void 0}))}function Ln(){return ie??(ie=[])}function ln(Y,pt,qt,fn,ur,si,Dr){Yu(Y)?Gl(Y,pt,qt,fn,ur,si):Po(Y)?Ii(Y,pt,qt,fn,ur,si):Ml(Y)?ra(Y,pt,qt,fn,ur,si):Hf(Y)?sa(Y,pt,qt,fn,ur,si,Dr):gp(Y)&&zo(Y,pt,qt,fn,ur,si,Dr)}function Ii(Y,pt,qt,fn,ur,si,Dr){if(ur){const Fn=C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"),ro=co(pt);M1(fn,pt,{kind:"f",isStatic:!0,brandCheckIdentifier:Fn,variableName:ro,isValid:si})}else{const Fn=co(pt);M1(fn,pt,{kind:"f",isStatic:!1,brandCheckIdentifier:Fn,isValid:si}),Ln().push(t.createAssignment(Fn,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function ra(Y,pt,qt,fn,ur,si,Dr){const Fn=co(pt),ro=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");M1(fn,pt,{kind:"m",methodName:Fn,brandCheckIdentifier:ro,isStatic:ur,isValid:si})}function sa(Y,pt,qt,fn,ur,si,Dr){const Fn=co(pt,"_get"),ro=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");Dr?.kind==="a"&&Dr.isStatic===ur&&!Dr.getterName?Dr.getterName=Fn:M1(fn,pt,{kind:"a",getterName:Fn,setterName:void 0,brandCheckIdentifier:ro,isStatic:ur,isValid:si})}function zo(Y,pt,qt,fn,ur,si,Dr){const Fn=co(pt,"_set"),ro=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");Dr?.kind==="a"&&Dr.isStatic===ur&&!Dr.setterName?Dr.setterName=Fn:M1(fn,pt,{kind:"a",getterName:void 0,setterName:Fn,brandCheckIdentifier:ro,isStatic:ur,isValid:si})}function Gl(Y,pt,qt,fn,ur,si,Dr){const Fn=co(pt,"_get"),ro=co(pt,"_set"),So=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");M1(fn,pt,{kind:"a",getterName:Fn,setterName:ro,brandCheckIdentifier:So,isStatic:ur,isValid:si})}function xl(Y,pt,qt){const fn=En(),ur=xn(),si=wU(ur,pt),Dr=Oc(Y),Fn=!jHe(pt)&&si===void 0;qt(Y,pt,fn,ur,Dr,Fn,si)}function Ps(Y,pt,qt){const{className:fn}=xn().data,ur=fn?{prefix:"_",node:fn,suffix:"_"}:"_",si=typeof Y=="object"?t.getGeneratedNameForNode(Y,24,ur,qt):typeof Y=="string"?t.createUniqueName(Y,16,ur,qt):t.createTempVariable(void 0,!0,ur,qt);return d.hasNodeCheckFlag(pt,32768)?u(si):i(si),si}function co(Y,pt){const qt=GN(Y);return Ps(qt?.substring(1)??Y,Y,pt)}function Go(Y){const pt=nae(pe,Y);return pt?.kind==="untransformed"?void 0:pt}function Sc(Y){const pt=t.getGeneratedNameForNode(Y),qt=Go(Y.name);if(!qt)return kn(Y,re,e);let fn=Y.expression;return(Q2(Y)||mp(Y)||!JS(Y.expression))&&(fn=t.createTempVariable(i,!0),Ln().push(t.createBinaryExpression(fn,64,st(Y.expression,re,St)))),t.createAssignmentTargetWrapper(pt,Ue(qt,fn,pt,64))}function $s(Y){if(Wa(Y)||Cd(Y))return Zt(Y);if(FR(Y))return Sc(Y);if(O&&xe&&mp(Y)&&dP(xe)&&pe?.data){const{classConstructor:pt,superClassReference:qt,facts:fn}=pe.data;if(fn&1)return Qt(Y);if(pt&&qt){const ur=Ws(Y)?st(Y.argumentExpression,re,St):He(Y.name)?t.createStringLiteralFromNode(Y.name):void 0;if(ur){const si=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(si,t.createReflectSetCall(qt,ur,si,pt))}}}return kn(Y,re,e)}function Ra(Y){if(Lp(Y,Fe)&&(Y=zp(e,Y)),id(Y,!0)){const pt=$s(Y.left),qt=st(Y.right,re,St);return t.updateBinaryExpression(Y,pt,Y.operatorToken,qt)}return $s(Y)}function tc(Y){if($u(Y.expression)){const pt=$s(Y.expression);return t.updateSpreadElement(Y,pt)}return kn(Y,re,e)}function bf(Y){if(P2(Y)){if(qf(Y))return tc(Y);if(!Jc(Y))return Ra(Y)}return kn(Y,re,e)}function Lo(Y){const pt=st(Y.name,re,bc);if(id(Y.initializer,!0)){const qt=Ra(Y.initializer);return t.updatePropertyAssignment(Y,pt,qt)}if($u(Y.initializer)){const qt=$s(Y.initializer);return t.updatePropertyAssignment(Y,pt,qt)}return kn(Y,re,e)}function fa(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),kn(Y,re,e)}function is(Y){if($u(Y.expression)){const pt=$s(Y.expression);return t.updateSpreadAssignment(Y,pt)}return kn(Y,re,e)}function qa(Y){return C.assertNode(Y,M2),xg(Y)?is(Y):Ud(Y)?fa(Y):Nc(Y)?Lo(Y):kn(Y,re,e)}function Zt(Y){return Cd(Y)?t.updateArrayLiteralExpression(Y,Xn(Y.elements,bf,St)):t.updateObjectLiteralExpression(Y,Xn(Y.properties,qa,ny))}function As(Y,pt,qt){const fn=yl(pt),ur=de.get(fn);if(ur){const si=pe,Dr=Ce;pe=ur,Ce=X,X=!Zl(fn)||!(Fm(fn)&32),J(Y,pt,qt),X=Ce,Ce=Dr,pe=si;return}switch(pt.kind){case 219:if(Xs(fn)||Qa(pt)&524288)break;case 263:case 177:case 178:case 179:case 175:case 173:{const si=pe,Dr=Ce;pe=void 0,Ce=X,X=!1,J(Y,pt,qt),X=Ce,Ce=Dr,pe=si;return}case 168:{const si=pe,Dr=X;pe=pe?.previous,X=Ce,J(Y,pt,qt),X=Dr,pe=si;return}}J(Y,pt,qt)}function ql(Y,pt){return pt=j(Y,pt),Y===1?lc(pt):pt}function lc(Y){switch(Y.kind){case 80:return Fs(Y);case 110:return vd(Y)}return Y}function vd(Y){if(q&2&&pe?.data&&!fe.has(Y)){const{facts:pt,classConstructor:qt,classThis:fn}=pe.data,ur=X?fn??qt:qt;if(ur)return vt(jr(t.cloneNode(ur),Y),Y);if(pt&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return Y}function Fs(Y){return Ee(Y)||Y}function Ee(Y){if(q&1&&d.hasNodeCheckFlag(Y,536870912)){const pt=d.getReferencedValueDeclaration(Y);if(pt){const qt=ye[pt.id];if(qt){const fn=t.cloneNode(qt);return Ua(fn,Y),Dc(fn,Y),fn}}}}}function BHe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function GHe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function VHe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function jHe(e){return!KE(e)&&e.escapedText==="#constructor"}function UHe(e){return eo(e.left)&&e.operatorToken.kind===103}function HHe(e){return Po(e)&&Oc(e)}function dP(e){return Zl(e)||HHe(e)}function pae(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=Ga(o),l=Vd(o,"strictNullChecks");let u,d;return{serializeTypeNode:(ie,K)=>g(ie,N,K),serializeTypeOfNode:(ie,K,pe)=>g(ie,y,K,pe),serializeParameterTypesOfNode:(ie,K,pe)=>g(ie,E,K,pe),serializeReturnTypeOfNode:(ie,K)=>g(ie,R,K)};function g(ie,K,pe,de){const fe=u,ve=d;u=ie.currentLexicalScope,d=ie.currentNameScope;const xe=de===void 0?K(pe):K(pe,de);return u=fe,d=ve,xe}function h(ie,K){const pe=NS(K.members,ie);return pe.setAccessor&&pne(pe.setAccessor)||pe.getAccessor&&kp(pe.getAccessor)}function y(ie,K){switch(ie.kind){case 173:case 170:return N(ie.type);case 179:case 178:return N(h(ie,K));case 264:case 232:case 175:return t.createIdentifier("Function");default:return t.createVoidZero()}}function E(ie,K){const pe=ui(ie)?yg(ie):Yo(ie)&&fm(ie.body)?ie:void 0,de=[];if(pe){const fe=A(pe,K),ve=fe.length;for(let xe=0;xefe.parent&&FS(fe.parent)&&(fe.parent.trueType===fe||fe.parent.falseType===fe)))return t.createIdentifier("Object");const pe=j(ie.typeName),de=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(de,pe),"function"),void 0,de,void 0,t.createIdentifier("Object"));case 1:return J(ie.typeName);case 2:return t.createVoidZero();case 4:return ye("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 ye("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return C.assertNever(K)}}function G(ie,K){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ie),t.createStringLiteral("undefined")),K)}function j(ie){if(ie.kind===80){const de=J(ie);return G(de,de)}if(ie.left.kind===80)return G(J(ie.left),J(ie));const K=j(ie.left),pe=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(K.left,t.createStrictInequality(t.createAssignment(pe,K.right),t.createVoidZero())),t.createPropertyAccessExpression(pe,ie.right))}function J(ie){switch(ie.kind){case 80:const K=ps(vt(r0.cloneNode(ie),ie),ie.parent);return K.original=void 0,ps(K,jo(u)),K;case 167:return Z(ie)}}function Z(ie){return t.createPropertyAccessExpression(J(ie.left),ie.right)}function q(ie){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ie),"function"),void 0,t.createIdentifier(ie),void 0,t.createIdentifier("Object"))}function ye(ie,K){return s_w(At)||Fc(At)?void 0:At,fl),Kn=Yh(We),_t=Be(We),en=l<2?t.getInternalName(We,!1,!0):t.getLocalName(We,!1,!0),ir=Xn(We.heritageClauses,y,Fp);let Di=Xn(We.members,y,Tc),lo=[];({members:Di,decorationStatements:lo}=P(We,Di));const zt=l>=9&&!!_t&&yt(Di,At=>Po(At)&&di(At,256)||Zl(At));zt&&(Di=vt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(_t,t.createThis()))])),...Di]),Di));const Zr=t.createClassExpression(gn,at&&pl(at)?void 0:at,void 0,ir,Di);jr(Zr,We),vt(Zr,Kn);const Ai=_t&&!zt?t.createAssignment(_t,Zr):Zr,Ni=t.createVariableDeclaration(en,void 0,void 0,Ai);jr(Ni,We);const Pr=t.createVariableDeclarationList([Ni],1),Ci=t.createVariableStatement(void 0,Pr);jr(Ci,We),vt(Ci,Kn),Dc(Ci,We);const $e=[Ci];if(Xr($e,lo),Ce($e,We),Wt)if(cn){const At=t.createExportDefault(en);$e.push(At)}else{const At=t.createExternalModuleExport(t.getDeclarationName(We));$e.push(At)}return $e}function O(We){return t.updateClassExpression(We,Xn(We.modifiers,h,Aa),We.name,void 0,Xn(We.heritageClauses,y,Fp),Xn(We.members,y,Tc))}function G(We){return t.updateConstructorDeclaration(We,Xn(We.modifiers,h,Aa),Xn(We.parameters,y,to),st(We.body,y,ea))}function j(We,at){return We!==at&&(Dc(We,at),Ua(We,Yh(at))),We}function J(We){return j(t.updateMethodDeclaration(We,Xn(We.modifiers,h,Aa),We.asteriskToken,C.checkDefined(st(We.name,y,bc)),void 0,void 0,Xn(We.parameters,y,to),void 0,st(We.body,y,ea)),We)}function Z(We){return j(t.updateGetAccessorDeclaration(We,Xn(We.modifiers,h,Aa),C.checkDefined(st(We.name,y,bc)),Xn(We.parameters,y,to),void 0,st(We.body,y,ea)),We)}function q(We){return j(t.updateSetAccessorDeclaration(We,Xn(We.modifiers,h,Aa),C.checkDefined(st(We.name,y,bc)),Xn(We.parameters,y,to),st(We.body,y,ea)),We)}function ye(We){if(!(We.flags&33554432||di(We,128)))return j(t.updatePropertyDeclaration(We,Xn(We.modifiers,h,Aa),C.checkDefined(st(We.name,y,bc)),void 0,void 0,st(We.initializer,y,St)),We)}function ie(We){const at=t.updateParameterDeclaration(We,Oie(t,We.modifiers),We.dotDotDotToken,C.checkDefined(st(We.name,y,XE)),void 0,void 0,st(We.initializer,y,St));return at!==We&&(Dc(at,We),vt(at,Yh(We)),Ua(at,Yh(We)),Cr(at.name,64)),at}function K(We){return kM(We.expression,"___metadata")}function pe(We){if(!We)return;const{false:at,true:Wt}=DB(We.decorators,K),cn=[];return Xr(cn,Vt(at,Se)),Xr(cn,Ki(We.parameters,re)),Xr(cn,Vt(Wt,Se)),cn}function de(We,at,Wt){Xr(We,Vt(xe(at,Wt),cn=>t.createExpressionStatement(cn)))}function fe(We,at,Wt){return tk(!0,We,Wt)&&at===ua(We)}function ve(We,at){return Un(We.members,Wt=>fe(Wt,at,We))}function xe(We,at){const Wt=ve(We,at);let cn;for(const gn of Wt)cn=Bn(cn,X(We,gn));return cn}function X(We,at){const Wt=a3(at,We,!0),cn=pe(Wt);if(!cn)return;const gn=ce(We,at),Kn=be(at,!di(at,128)),_t=Po(at)&&!Kh(at)?t.createVoidZero():t.createNull(),en=r().createDecorateHelper(cn,gn,Kn,_t);return Cr(en,3072),Ua(en,Yh(at)),en}function Ce(We,at){const Wt=Je(at);Wt&&We.push(jr(t.createExpressionStatement(Wt),at))}function Je(We){const at=kU(We,!0),Wt=pe(at);if(!Wt)return;const cn=d&&d[Wu(We)],gn=l<2?t.getInternalName(We,!1,!0):t.getDeclarationName(We,!1,!0),Kn=r().createDecorateHelper(Wt,gn),_t=t.createAssignment(gn,cn?t.createAssignment(cn,Kn):Kn);return Cr(_t,3072),Ua(_t,Yh(We)),_t}function Se(We){return C.checkDefined(st(We.expression,y,St))}function re(We,at){let Wt;if(We){Wt=[];for(const cn of We){const gn=r().createParamHelper(Se(cn),at);vt(gn,cn.expression),Cr(gn,3072),Wt.push(gn)}}return Wt}function be(We,at){const Wt=We.name;return eo(Wt)?t.createIdentifier(""):va(Wt)?at&&!z_(Wt.expression)?t.getGeneratedNameForNode(Wt):Wt.expression:He(Wt)?t.createStringLiteral(Kr(Wt)):t.cloneNode(Wt)}function Ne(){d||(e.enableSubstitution(80),d=[])}function Be(We){if(o.hasNodeCheckFlag(We,262144)){Ne();const at=t.createUniqueName(We.name&&!pl(We.name)?Kr(We.name):"default");return d[Wu(We)]=at,i(at),at}}function lt(We){return t.createPropertyAccessExpression(t.getDeclarationName(We),"prototype")}function ce(We,at){return ua(at)?t.getDeclarationName(We):lt(We)}function Re(We,at){return at=u(We,at),We===1?_e(at):at}function _e(We){switch(We.kind){case 80:return je(We)}return We}function je(We){return Ge(We)??We}function Ge(We){if(d&&o.hasNodeCheckFlag(We,536870912)){const at=o.getReferencedValueDeclaration(We);if(at){const Wt=d[at.id];if(Wt){const cn=t.cloneNode(Wt);return Ua(cn,We),Dc(cn,We),cn}}}}}function mae(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=Ga(e.getCompilerOptions());let u,d,g,h,y,E;return hh(e,A);function A(B){u=void 0,E=!1;const Ae=kn(B,q,e);return Ag(Ae,e.readEmitHelpers()),E&&(f1(Ae,32),E=!1),Ae}function R(){switch(d=void 0,g=void 0,h=void 0,u?.kind){case"class":d=u.classInfo;break;case"class-element":d=u.next.classInfo,g=u.classThis,h=u.classSuper;break;case"name":const B=u.next.next.next;B?.kind==="class-element"&&(d=B.next.classInfo,g=B.classThis,h=B.classSuper);break}}function N(B){u={kind:"class",next:u,classInfo:B,savedPendingExpressions:y},y=void 0,R()}function P(){C.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,R()}function k(B){var Ae,te;C.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},(Zl(B)||Po(B)&&Oc(B))&&(u.classThis=(Ae=u.next.classInfo)==null?void 0:Ae.classThis,u.classSuper=(te=u.next.classInfo)==null?void 0:te.classSuper),R()}function W(){var B;C.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),C.assert(((B=u.next)==null?void 0:B.kind)==="class","Incorrect value for top.next.kind.",()=>{var Ae;return`Expected top.next.kind to be 'class' but got '${(Ae=u.next)==null?void 0:Ae.kind}' instead.`}),u=u.next,R()}function O(){C.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 G(){C.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 j(){u?.kind==="other"?(C.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,R())}function J(){C.assert(u?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u?.kind}' instead.`),u.depth>0?(C.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,R())}function Z(B){return!!(B.transformFlags&33554432)||!!g&&!!(B.transformFlags&16384)||!!g&&!!h&&!!(B.transformFlags&134217728)}function q(B){if(!Z(B))return B;switch(B.kind){case 171:return C.fail("Use `modifierVisitor` instead.");case 264:return Je(B);case 232:return Se(B);case 177:case 173:case 176:return C.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return Kn(B);case 227:return lo(B,!1);case 304:return Ci(B);case 261:return $e(B);case 209:return At(B);case 278:return ot(B);case 110:return We(B);case 249:return ir(B);case 245:return Di(B);case 357:return Zr(B,!1);case 218:return Ft(B,!1);case 356:return le(B);case 214:return at(B);case 216:return Wt(B);case 225:case 226:return zt(B,!1);case 212:return cn(B);case 213:return gn(B);case 168:return Pr(B);case 175:case 179:case 178:case 219:case 263:{j();const Ae=kn(B,ye,e);return J(),Ae}default:return kn(B,ye,e)}}function ye(B){switch(B.kind){case 171:return;default:return q(B)}}function ie(B){switch(B.kind){case 171:return;default:return B}}function K(B){switch(B.kind){case 177:return Ne(B);case 175:return ce(B);case 178:return Re(B);case 179:return _e(B);case 173:return Ge(B);case 176:return je(B);default:return q(B)}}function pe(B){switch(B.kind){case 225:case 226:return zt(B,!0);case 227:return lo(B,!0);case 357:return Zr(B,!0);case 218:return Ft(B,!0);default:return q(B)}}function de(B){let Ae=B.name&&He(B.name)&&!pl(B.name)?Kr(B.name):B.name&&eo(B.name)&&!pl(B.name)?Kr(B.name).slice(1):B.name&&ka(B.name)&&fp(B.name.text,99)?B.name.text:ui(B)?"class":"member";return ug(B)&&(Ae=`get_${Ae}`),Vh(B)&&(Ae=`set_${Ae}`),B.name&&eo(B.name)&&(Ae=`private_${Ae}`),ua(B)&&(Ae=`static_${Ae}`),"_"+Ae}function fe(B,Ae){return t.createUniqueName(`${de(B)}_${Ae}`,24)}function ve(B,Ae){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(B,void 0,void 0,Ae)],1))}function xe(B){const Ae=t.createUniqueName("_metadata",48);let te,xt,Xt=!1,Pe=!1,gt=!1,Bt,gr,tr;if(XR(!1,B)){const Jn=yt(B.members,ft=>(tu(ft)||Yu(ft))&&Oc(ft));Bt=t.createUniqueName("_classThis",Jn?24:48)}for(const Jn of B.members){if(iI(Jn)&&tk(!1,Jn,B))if(Oc(Jn)){if(!xt){xt=t.createUniqueName("_staticExtraInitializers",48);const ft=r().createRunInitializersHelper(Bt??t.createThis(),xt);Ua(ft,B.name??ly(B)),gr??(gr=[]),gr.push(ft)}}else{if(!te){te=t.createUniqueName("_instanceExtraInitializers",48);const ft=r().createRunInitializersHelper(t.createThis(),te);Ua(ft,B.name??ly(B)),tr??(tr=[]),tr.push(ft)}te??(te=t.createUniqueName("_instanceExtraInitializers",48))}if(Zl(Jn)?ox(Jn)||(Xt=!0):Po(Jn)&&(Oc(Jn)?Xt||(Xt=!!Jn.initializer||pf(Jn)):Pe||(Pe=!sG(Jn))),(tu(Jn)||Yu(Jn))&&Oc(Jn)&&(gt=!0),xt&&te&&Xt&&Pe&>)break}return{class:B,classThis:Bt,metadataReference:Ae,instanceMethodExtraInitializersName:te,staticMethodExtraInitializersName:xt,hasStaticInitializers:Xt,hasNonAmbientInstanceFields:Pe,hasStaticPrivateClassElements:gt,pendingStaticInitializers:gr,pendingInstanceInitializers:tr}}function X(B){i(),!WU(B)&&ev(!1,B)&&(B=c3(e,B,t.createStringLiteral("")));const Ae=t.getLocalName(B,!1,!1,!0),te=xe(B),xt=[];let Xt,Pe,gt,Bt,gr=!1;const tr=it(kU(B,!1));tr&&(te.classDecoratorsName=t.createUniqueName("_classDecorators",48),te.classDescriptorName=t.createUniqueName("_classDescriptor",48),te.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),C.assertIsDefined(te.classThis),xt.push(ve(te.classDecoratorsName,t.createArrayLiteralExpression(tr)),ve(te.classDescriptorName),ve(te.classExtraInitializersName,t.createArrayLiteralExpression()),ve(te.classThis)),te.hasStaticPrivateClassElements&&(gr=!0,E=!0));const Jn=yk(B.heritageClauses,96),ft=Jn&&Ic(Jn.types),Mt=ft&&st(ft.expression,q,St);if(Mt){te.classSuper=t.createUniqueName("_classSuper",48);const xn=Hl(Mt),Ln=uc(xn)&&!xn.name||Us(xn)&&!xn.name||Xs(xn)?t.createComma(t.createNumericLiteral(0),Mt):Mt;xt.push(ve(te.classSuper,Ln));const ln=t.updateExpressionWithTypeArguments(ft,te.classSuper,void 0),Ii=t.updateHeritageClause(Jn,[ln]);Bt=t.createNodeArray([Ii])}const jt=te.classThis??t.createThis();N(te),Xt=Bn(Xt,Oe(te.metadataReference,te.classSuper));let Qt=B.members;if(Qt=Xn(Qt,xn=>Pl(xn)?xn:K(xn),Tc),Qt=Xn(Qt,xn=>Pl(xn)?K(xn):xn,Tc),y){let xn;for(let Ln of y){Ln=st(Ln,function Ii(ra){if(!(ra.transformFlags&16384))return ra;switch(ra.kind){case 110:return xn||(xn=t.createUniqueName("_outerThis",16),xt.unshift(ve(xn,t.createThis()))),xn;default:return kn(ra,Ii,e)}},St);const ln=t.createExpressionStatement(Ln);Xt=Bn(Xt,ln)}y=void 0}if(P(),yt(te.pendingInstanceInitializers)&&!yg(B)){const xn=re(B,te);if(xn){const Ln=lh(B),ln=!!(Ln&&Hl(Ln.expression).kind!==106),Ii=[];if(ln){const sa=t.createSpreadElement(t.createIdentifier("arguments")),zo=t.createCallExpression(t.createSuper(),void 0,[sa]);Ii.push(t.createExpressionStatement(zo))}Xr(Ii,xn);const ra=t.createBlock(Ii,!0);gt=t.createConstructorDeclaration(void 0,[],ra)}}if(te.staticMethodExtraInitializersName&&xt.push(ve(te.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),te.instanceMethodExtraInitializersName&&xt.push(ve(te.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),te.memberInfos&&Hc(te.memberInfos,(xn,Ln)=>{ua(Ln)&&(xt.push(ve(xn.memberDecoratorsName)),xn.memberInitializersName&&xt.push(ve(xn.memberInitializersName,t.createArrayLiteralExpression())),xn.memberExtraInitializersName&&xt.push(ve(xn.memberExtraInitializersName,t.createArrayLiteralExpression())),xn.memberDescriptorName&&xt.push(ve(xn.memberDescriptorName)))}),te.memberInfos&&Hc(te.memberInfos,(xn,Ln)=>{ua(Ln)||(xt.push(ve(xn.memberDecoratorsName)),xn.memberInitializersName&&xt.push(ve(xn.memberInitializersName,t.createArrayLiteralExpression())),xn.memberExtraInitializersName&&xt.push(ve(xn.memberExtraInitializersName,t.createArrayLiteralExpression())),xn.memberDescriptorName&&xt.push(ve(xn.memberDescriptorName)))}),Xt=Xr(Xt,te.staticNonFieldDecorationStatements),Xt=Xr(Xt,te.nonStaticNonFieldDecorationStatements),Xt=Xr(Xt,te.staticFieldDecorationStatements),Xt=Xr(Xt,te.nonStaticFieldDecorationStatements),te.classDescriptorName&&te.classDecoratorsName&&te.classExtraInitializersName&&te.classThis){Xt??(Xt=[]);const xn=t.createPropertyAssignment("value",jt),Ln=t.createObjectLiteralExpression([xn]),ln=t.createAssignment(te.classDescriptorName,Ln),Ii=t.createPropertyAccessExpression(jt,"name"),ra=r().createESDecorateHelper(t.createNull(),ln,te.classDecoratorsName,{kind:"class",name:Ii,metadata:te.metadataReference},t.createNull(),te.classExtraInitializersName),sa=t.createExpressionStatement(ra);Ua(sa,ly(B)),Xt.push(sa);const zo=t.createPropertyAccessExpression(te.classDescriptorName,"value"),Gl=t.createAssignment(te.classThis,zo),xl=t.createAssignment(Ae,Gl);Xt.push(t.createExpressionStatement(xl))}if(Xt.push(Nt(jt,te.metadataReference)),yt(te.pendingStaticInitializers)){for(const xn of te.pendingStaticInitializers){const Ln=t.createExpressionStatement(xn);Ua(Ln,sv(xn)),Pe=Bn(Pe,Ln)}te.pendingStaticInitializers=void 0}if(te.classExtraInitializersName){const xn=r().createRunInitializersHelper(jt,te.classExtraInitializersName),Ln=t.createExpressionStatement(xn);Ua(Ln,B.name??ly(B)),Pe=Bn(Pe,Ln)}Xt&&Pe&&!te.hasStaticInitializers&&(Xr(Xt,Pe),Pe=void 0);const In=Xt&&t.createClassStaticBlockDeclaration(t.createBlock(Xt,!0));In&&gr&&ew(In,32);const yn=Pe&&t.createClassStaticBlockDeclaration(t.createBlock(Pe,!0));if(In||gt||yn){const xn=[],Ln=Qt.findIndex(ox);In?(Xr(xn,Qt,0,Ln+1),xn.push(In),Xr(xn,Qt,Ln+1)):Xr(xn,Qt),gt&&xn.push(gt),yn&&xn.push(yn),Qt=vt(t.createNodeArray(xn),Qt)}const wt=o();let En;if(tr){En=t.createClassExpression(void 0,void 0,void 0,Bt,Qt),te.classThis&&(En=aae(t,En,te.classThis));const xn=t.createVariableDeclaration(Ae,void 0,void 0,En),Ln=t.createVariableDeclarationList([xn]),ln=te.classThis?t.createAssignment(Ae,te.classThis):Ae;xt.push(t.createVariableStatement(void 0,Ln),t.createReturnStatement(ln))}else En=t.createClassExpression(void 0,B.name,void 0,Bt,Qt),xt.push(t.createReturnStatement(En));if(gr){f1(En,32);for(const xn of En.members)(tu(xn)||Yu(xn))&&Oc(xn)&&f1(xn,32)}return jr(En,B),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(xt,wt))}function Ce(B){return ev(!1,B)||HN(!1,B)}function Je(B){if(Ce(B)){const Ae=[],te=yl(B,ui)??B,xt=te.name?t.createStringLiteralFromNode(te.name):t.createStringLiteral("default"),Xt=di(B,32),Pe=di(B,2048);if(B.name||(B=c3(e,B,xt)),Xt&&Pe){const gt=X(B);if(B.name){const Bt=t.createVariableDeclaration(t.getLocalName(B),void 0,void 0,gt);jr(Bt,B);const gr=t.createVariableDeclarationList([Bt],1),tr=t.createVariableStatement(void 0,gr);Ae.push(tr);const Jn=t.createExportDefault(t.getDeclarationName(B));jr(Jn,B),Dc(Jn,Zh(B)),Ua(Jn,ly(B)),Ae.push(Jn)}else{const Bt=t.createExportDefault(gt);jr(Bt,B),Dc(Bt,Zh(B)),Ua(Bt,ly(B)),Ae.push(Bt)}}else{C.assertIsDefined(B.name,"A class declaration that is not a default export must have a name.");const gt=X(B),Bt=Xt?jt=>zI(jt)?void 0:ie(jt):ie,gr=Xn(B.modifiers,Bt,Aa),tr=t.getLocalName(B,!1,!0),Jn=t.createVariableDeclaration(tr,void 0,void 0,gt);jr(Jn,B);const ft=t.createVariableDeclarationList([Jn],1),Mt=t.createVariableStatement(gr,ft);if(jr(Mt,B),Dc(Mt,Zh(B)),Ae.push(Mt),Xt){const jt=t.createExternalModuleExport(tr);jr(jt,B),Ae.push(jt)}}return I_(Ae)}else{const Ae=Xn(B.modifiers,ie,Aa),te=Xn(B.heritageClauses,q,Fp);N(void 0);const xt=Xn(B.members,K,Tc);return P(),t.updateClassDeclaration(B,Ae,B.name,void 0,te,xt)}}function Se(B){if(Ce(B)){const Ae=X(B);return jr(Ae,B),Ae}else{const Ae=Xn(B.modifiers,ie,Aa),te=Xn(B.heritageClauses,q,Fp);N(void 0);const xt=Xn(B.members,K,Tc);return P(),t.updateClassExpression(B,Ae,B.name,void 0,te,xt)}}function re(B,Ae){if(yt(Ae.pendingInstanceInitializers)){const te=[];return te.push(t.createExpressionStatement(t.inlineExpressions(Ae.pendingInstanceInitializers))),Ae.pendingInstanceInitializers=void 0,te}}function be(B,Ae,te,xt,Xt,Pe){const gt=xt[Xt],Bt=Ae[gt];if(Xr(B,Xn(Ae,q,Vi,te,gt-te)),T1(Bt)){const gr=[];be(gr,Bt.tryBlock.statements,0,xt,Xt+1,Pe);const tr=t.createNodeArray(gr);vt(tr,Bt.tryBlock.statements),B.push(t.updateTryStatement(Bt,t.updateBlock(Bt.tryBlock,gr),st(Bt.catchClause,q,jS),st(Bt.finallyBlock,q,ea)))}else Xr(B,Xn(Ae,q,Vi,gt,1)),Xr(B,Pe);Xr(B,Xn(Ae,q,Vi,gt+1))}function Ne(B){k(B);const Ae=Xn(B.modifiers,ie,Aa),te=Xn(B.parameters,q,to);let xt;if(B.body&&d){const Xt=re(d.class,d);if(Xt){const Pe=[],gt=t.copyPrologue(B.body.statements,Pe,!1,q),Bt=i3(B.body.statements,gt);Bt.length>0?be(Pe,B.body.statements,gt,Bt,0,Xt):(Xr(Pe,Xt),Xr(Pe,Xn(B.body.statements,q,Vi))),xt=t.createBlock(Pe,!0),jr(xt,B.body),vt(xt,B.body)}}return xt??(xt=st(B.body,q,ea)),W(),t.updateConstructorDeclaration(B,Ae,te,xt)}function Be(B,Ae){return B!==Ae&&(Dc(B,Ae),Ua(B,ly(Ae))),B}function lt(B,Ae,te){let xt,Xt,Pe,gt,Bt,gr;if(!Ae){const ft=Xn(B.modifiers,ie,Aa);return O(),Xt=Ni(B.name),G(),{modifiers:ft,referencedName:xt,name:Xt,initializersName:Pe,descriptorName:gr,thisArg:Bt}}const tr=it(a3(B,Ae.class,!1)),Jn=Xn(B.modifiers,ie,Aa);if(tr){const ft=fe(B,"decorators"),Mt=t.createArrayLiteralExpression(tr),jt=t.createAssignment(ft,Mt),Qt={memberDecoratorsName:ft};Ae.memberInfos??(Ae.memberInfos=new Map),Ae.memberInfos.set(B,Qt),y??(y=[]),y.push(jt);const In=iI(B)||Yu(B)?ua(B)?Ae.staticNonFieldDecorationStatements??(Ae.staticNonFieldDecorationStatements=[]):Ae.nonStaticNonFieldDecorationStatements??(Ae.nonStaticNonFieldDecorationStatements=[]):Po(B)&&!Yu(B)?ua(B)?Ae.staticFieldDecorationStatements??(Ae.staticFieldDecorationStatements=[]):Ae.nonStaticFieldDecorationStatements??(Ae.nonStaticFieldDecorationStatements=[]):C.fail(),yn=Hf(B)?"getter":gp(B)?"setter":Ml(B)?"method":Yu(B)?"accessor":Po(B)?"field":C.fail();let wt;if(He(B.name)||eo(B.name))wt={computed:!1,name:B.name};else if(qh(B.name))wt={computed:!0,name:t.createStringLiteralFromNode(B.name)};else{const xn=B.name.expression;qh(xn)&&!He(xn)?wt={computed:!0,name:t.createStringLiteralFromNode(xn)}:(O(),{referencedName:xt,name:Xt}=Ai(B.name),wt={computed:!0,name:xt},G())}const En={kind:yn,name:wt,static:ua(B),private:eo(B.name),access:{get:Po(B)||Hf(B)||Ml(B),set:Po(B)||gp(B)},metadata:Ae.metadataReference};if(iI(B)){const xn=ua(B)?Ae.staticMethodExtraInitializersName:Ae.instanceMethodExtraInitializersName;C.assertIsDefined(xn);let Ln;tu(B)&&te&&(Ln=te(B,Xn(Jn,ra=>ni(ra,wM),Aa)),Qt.memberDescriptorName=gr=fe(B,"descriptor"),Ln=t.createAssignment(gr,Ln));const ln=r().createESDecorateHelper(t.createThis(),Ln??t.createNull(),ft,En,t.createNull(),xn),Ii=t.createExpressionStatement(ln);Ua(Ii,ly(B)),In.push(Ii)}else if(Po(B)){Pe=Qt.memberInitializersName??(Qt.memberInitializersName=fe(B,"initializers")),gt=Qt.memberExtraInitializersName??(Qt.memberExtraInitializersName=fe(B,"extraInitializers")),ua(B)&&(Bt=Ae.classThis);let xn;tu(B)&&Kh(B)&&te&&(xn=te(B,void 0),Qt.memberDescriptorName=gr=fe(B,"descriptor"),xn=t.createAssignment(gr,xn));const Ln=r().createESDecorateHelper(Yu(B)?t.createThis():t.createNull(),xn??t.createNull(),ft,En,Pe,gt),ln=t.createExpressionStatement(Ln);Ua(ln,ly(B)),In.push(ln)}}return Xt===void 0&&(O(),Xt=Ni(B.name),G()),!yt(Jn)&&(Ml(B)||Po(B))&&Cr(Xt,1024),{modifiers:Jn,referencedName:xt,name:Xt,initializersName:Pe,extraInitializersName:gt,descriptorName:gr,thisArg:Bt}}function ce(B){k(B);const{modifiers:Ae,name:te,descriptorName:xt}=lt(B,d,Ue);if(xt)return W(),Be(nt(Ae,te,xt),B);{const Xt=Xn(B.parameters,q,to),Pe=st(B.body,q,ea);return W(),Be(t.updateMethodDeclaration(B,Ae,B.asteriskToken,te,void 0,void 0,Xt,void 0,Pe),B)}}function Re(B){k(B);const{modifiers:Ae,name:te,descriptorName:xt}=lt(B,d,Rt);if(xt)return W(),Be(Kt(Ae,te,xt),B);{const Xt=Xn(B.parameters,q,to),Pe=st(B.body,q,ea);return W(),Be(t.updateGetAccessorDeclaration(B,Ae,te,Xt,void 0,Pe),B)}}function _e(B){k(B);const{modifiers:Ae,name:te,descriptorName:xt}=lt(B,d,It);if(xt)return W(),Be(Tr(Ae,te,xt),B);{const Xt=Xn(B.parameters,q,to),Pe=st(B.body,q,ea);return W(),Be(t.updateSetAccessorDeclaration(B,Ae,te,Xt,Pe),B)}}function je(B){k(B);let Ae;if(ox(B))Ae=kn(B,q,e);else if(cP(B)){const te=g;g=void 0,Ae=kn(B,q,e),g=te}else if(B=kn(B,q,e),Ae=B,d&&(d.hasStaticInitializers=!0,yt(d.pendingStaticInitializers))){const te=[];for(const Pe of d.pendingStaticInitializers){const gt=t.createExpressionStatement(Pe);Ua(gt,sv(Pe)),te.push(gt)}const xt=t.createBlock(te,!0);Ae=[t.createClassStaticBlockDeclaration(xt),Ae],d.pendingStaticInitializers=void 0}return W(),Ae}function Ge(B){Lp(B,_t)&&(B=zp(e,B,en(B.initializer))),k(B),C.assert(!sG(B),"Not yet implemented.");const{modifiers:Ae,name:te,initializersName:xt,extraInitializersName:Xt,descriptorName:Pe,thisArg:gt}=lt(B,d,Kh(B)?Ot:void 0);i();let Bt=st(B.initializer,q,St);xt&&(Bt=r().createRunInitializersHelper(gt??t.createThis(),xt,Bt??t.createVoidZero())),ua(B)&&d&&Bt&&(d.hasStaticInitializers=!0);const gr=o();if(yt(gr)&&(Bt=t.createImmediatelyInvokedArrowFunction([...gr,t.createReturnStatement(Bt)])),d&&(ua(B)?(Bt=Fe(d,!0,Bt),Xt&&(d.pendingStaticInitializers??(d.pendingStaticInitializers=[]),d.pendingStaticInitializers.push(r().createRunInitializersHelper(d.classThis??t.createThis(),Xt)))):(Bt=Fe(d,!1,Bt),Xt&&(d.pendingInstanceInitializers??(d.pendingInstanceInitializers=[]),d.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Xt))))),W(),Kh(B)&&Pe){const tr=Zh(B),Jn=sv(B),ft=B.name;let Mt=ft,jt=ft;if(va(ft)&&!z_(ft.expression)){const En=E4(ft);if(En)Mt=t.updateComputedPropertyName(ft,st(ft.expression,q,St)),jt=t.updateComputedPropertyName(ft,En.left);else{const xn=t.createTempVariable(s);Ua(xn,ft.expression);const Ln=st(ft.expression,q,St),ln=t.createAssignment(xn,Ln);Ua(ln,ft.expression),Mt=t.updateComputedPropertyName(ft,ln),jt=t.updateComputedPropertyName(ft,xn)}}const Qt=Xn(Ae,En=>En.kind!==129?En:void 0,Aa),In=Pj(t,B,Qt,Bt);jr(In,B),Cr(In,3072),Ua(In,Jn),Ua(In.name,B.name);const yn=Kt(Qt,Mt,Pe);jr(yn,B),Dc(yn,tr),Ua(yn,Jn);const wt=Tr(Qt,jt,Pe);return jr(wt,B),Cr(wt,3072),Ua(wt,Jn),[In,yn,wt]}return Be(t.updatePropertyDeclaration(B,Ae,te,void 0,void 0,Bt),B)}function We(B){return g??B}function at(B){if(mp(B.expression)&&g){const Ae=st(B.expression,q,St),te=Xn(B.arguments,q,St),xt=t.createFunctionCallCall(Ae,g,te);return jr(xt,B),vt(xt,B),xt}return kn(B,q,e)}function Wt(B){if(mp(B.tag)&&g){const Ae=st(B.tag,q,St),te=t.createFunctionBindCall(Ae,g,[]);jr(te,B),vt(te,B);const xt=st(B.template,q,oI);return t.updateTaggedTemplateExpression(B,te,void 0,xt)}return kn(B,q,e)}function cn(B){if(mp(B)&&He(B.name)&&g&&h){const Ae=t.createStringLiteralFromNode(B.name),te=t.createReflectGetCall(h,Ae,g);return jr(te,B.expression),vt(te,B.expression),te}return kn(B,q,e)}function gn(B){if(mp(B)&&g&&h){const Ae=st(B.argumentExpression,q,St),te=t.createReflectGetCall(h,Ae,g);return jr(te,B.expression),vt(te,B.expression),te}return kn(B,q,e)}function Kn(B){Lp(B,_t)&&(B=zp(e,B,en(B.initializer)));const Ae=t.updateParameterDeclaration(B,void 0,B.dotDotDotToken,st(B.name,q,XE),void 0,void 0,st(B.initializer,q,St));return Ae!==B&&(Dc(Ae,B),vt(Ae,Yh(B)),Ua(Ae,Yh(B)),Cr(Ae.name,64)),Ae}function _t(B){return uc(B)&&!B.name&&Ce(B)}function en(B){const Ae=Hl(B);return uc(Ae)&&!Ae.name&&!ev(!1,Ae)}function ir(B){return t.updateForStatement(B,st(B.initializer,pe,Of),st(B.condition,q,St),st(B.incrementor,pe,St),Ou(B.statement,q,e))}function Di(B){return kn(B,pe,e)}function lo(B,Ae){if(nv(B)){const te=Uo(B.left),xt=st(B.right,q,St);return t.updateBinaryExpression(B,te,B.operatorToken,xt)}if(id(B)){if(Lp(B,_t))return B=zp(e,B,en(B.right)),kn(B,q,e);if(mp(B.left)&&g&&h){let te=Ws(B.left)?st(B.left.argumentExpression,q,St):He(B.left.name)?t.createStringLiteralFromNode(B.left.name):void 0;if(te){let xt=st(B.right,q,St);if(aP(B.operatorToken.kind)){let Pe=te;z_(te)||(Pe=t.createTempVariable(s),te=t.createAssignment(Pe,te));const gt=t.createReflectGetCall(h,Pe,g);jr(gt,B.left),vt(gt,B.left),xt=t.createBinaryExpression(gt,sP(B.operatorToken.kind),xt),vt(xt,B)}const Xt=Ae?void 0:t.createTempVariable(s);return Xt&&(xt=t.createAssignment(Xt,xt),vt(Xt,B)),xt=t.createReflectSetCall(h,te,xt,g),jr(xt,B),vt(xt,B),Xt&&(xt=t.createComma(xt,Xt),vt(xt,B)),xt}}}if(B.operatorToken.kind===28){const te=st(B.left,pe,St),xt=st(B.right,Ae?pe:q,St);return t.updateBinaryExpression(B,te,B.operatorToken,xt)}return kn(B,q,e)}function zt(B,Ae){if(B.operator===46||B.operator===47){const te=us(B.operand);if(mp(te)&&g&&h){let xt=Ws(te)?st(te.argumentExpression,q,St):He(te.name)?t.createStringLiteralFromNode(te.name):void 0;if(xt){let Xt=xt;z_(xt)||(Xt=t.createTempVariable(s),xt=t.createAssignment(Xt,xt));let Pe=t.createReflectGetCall(h,Xt,g);jr(Pe,B),vt(Pe,B);const gt=Ae?void 0:t.createTempVariable(s);return Pe=g4(t,B,Pe,s,gt),Pe=t.createReflectSetCall(h,xt,Pe,g),jr(Pe,B),vt(Pe,B),gt&&(Pe=t.createComma(Pe,gt),vt(Pe,B)),Pe}}}return kn(B,q,e)}function Zr(B,Ae){const te=Ae?t3(B.elements,pe):t3(B.elements,q,pe);return t.updateCommaListExpression(B,te)}function Ai(B){if(qh(B)||eo(B)){const Pe=t.createStringLiteralFromNode(B),gt=st(B,q,bc);return{referencedName:Pe,name:gt}}if(qh(B.expression)&&!He(B.expression)){const Pe=t.createStringLiteralFromNode(B.expression),gt=st(B,q,bc);return{referencedName:Pe,name:gt}}const Ae=t.getGeneratedNameForNode(B);s(Ae);const te=r().createPropKeyHelper(st(B.expression,q,St)),xt=t.createAssignment(Ae,te),Xt=t.updateComputedPropertyName(B,ne(xt));return{referencedName:Ae,name:Xt}}function Ni(B){return va(B)?Pr(B):st(B,q,bc)}function Pr(B){let Ae=st(B.expression,q,St);return z_(Ae)||(Ae=ne(Ae)),t.updateComputedPropertyName(B,Ae)}function Ci(B){return Lp(B,_t)&&(B=zp(e,B,en(B.initializer))),kn(B,q,e)}function $e(B){return Lp(B,_t)&&(B=zp(e,B,en(B.initializer))),kn(B,q,e)}function At(B){return Lp(B,_t)&&(B=zp(e,B,en(B.initializer))),kn(B,q,e)}function mn(B){if(Wa(B)||Cd(B))return Uo(B);if(mp(B)&&g&&h){const Ae=Ws(B)?st(B.argumentExpression,q,St):He(B.name)?t.createStringLiteralFromNode(B.name):void 0;if(Ae){const te=t.createTempVariable(void 0),xt=t.createAssignmentTargetWrapper(te,t.createReflectSetCall(h,Ae,te,g));return jr(xt,B),vt(xt,B),xt}}return kn(B,q,e)}function dr(B){if(id(B,!0)){Lp(B,_t)&&(B=zp(e,B,en(B.right)));const Ae=mn(B.left),te=st(B.right,q,St);return t.updateBinaryExpression(B,Ae,B.operatorToken,te)}else return mn(B)}function ri(B){if($u(B.expression)){const Ae=mn(B.expression);return t.updateSpreadElement(B,Ae)}return kn(B,q,e)}function ai(B){return C.assertNode(B,P2),qf(B)?ri(B):Jc(B)?kn(B,q,e):dr(B)}function qi(B){const Ae=st(B.name,q,bc);if(id(B.initializer,!0)){const te=dr(B.initializer);return t.updatePropertyAssignment(B,Ae,te)}if($u(B.initializer)){const te=mn(B.initializer);return t.updatePropertyAssignment(B,Ae,te)}return kn(B,q,e)}function $o(B){return Lp(B,_t)&&(B=zp(e,B,en(B.objectAssignmentInitializer))),kn(B,q,e)}function Ia(B){if($u(B.expression)){const Ae=mn(B.expression);return t.updateSpreadAssignment(B,Ae)}return kn(B,q,e)}function Mn(B){return C.assertNode(B,M2),xg(B)?Ia(B):Ud(B)?$o(B):Nc(B)?qi(B):kn(B,q,e)}function Uo(B){if(Cd(B)){const Ae=Xn(B.elements,ai,St);return t.updateArrayLiteralExpression(B,Ae)}else{const Ae=Xn(B.properties,Mn,ny);return t.updateObjectLiteralExpression(B,Ae)}}function ot(B){return Lp(B,_t)&&(B=zp(e,B,en(B.expression))),kn(B,q,e)}function Ft(B,Ae){const te=Ae?pe:q,xt=st(B.expression,te,St);return t.updateParenthesizedExpression(B,xt)}function le(B,Ae){const te=q,xt=st(B.expression,te,St);return t.updatePartiallyEmittedExpression(B,xt)}function ht(B,Ae){return yt(B)&&(Ae?wu(Ae)?(B.push(Ae.expression),Ae=t.updateParenthesizedExpression(Ae,t.inlineExpressions(B))):(B.push(Ae),Ae=t.inlineExpressions(B)):Ae=t.inlineExpressions(B)),Ae}function ne(B){const Ae=ht(y,B);return C.assertIsDefined(Ae),Ae!==B&&(y=void 0),Ae}function Fe(B,Ae,te){const xt=ht(Ae?B.pendingStaticInitializers:B.pendingInstanceInitializers,te);return xt!==te&&(Ae?B.pendingStaticInitializers=void 0:B.pendingInstanceInitializers=void 0),xt}function it(B){if(!B)return;const Ae=[];return Xr(Ae,Vt(B.decorators,dt)),Ae}function dt(B){const Ae=st(B.expression,q,St);Cr(Ae,3072);const te=Hl(Ae);if(Ks(te)){const{target:xt,thisArg:Xt}=t.createCallBinding(Ae,s,l,!0);return t.restoreOuterExpressions(Ae,t.createFunctionBindCall(xt,Xt,[]))}return Ae}function Lt(B,Ae,te,xt,Xt,Pe,gt){const Bt=t.createFunctionExpression(te,xt,void 0,void 0,Pe,void 0,gt??t.createBlock([]));jr(Bt,B),Ua(Bt,ly(B)),Cr(Bt,3072);const gr=Xt==="get"||Xt==="set"?Xt:void 0,tr=t.createStringLiteralFromNode(Ae,void 0),Jn=r().createSetFunctionNameHelper(Bt,tr,gr),ft=t.createPropertyAssignment(t.createIdentifier(Xt),Jn);return jr(ft,B),Ua(ft,ly(B)),Cr(ft,3072),ft}function Ue(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,B.asteriskToken,"value",Xn(B.parameters,q,to),st(B.body,q,ea))])}function Rt(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,void 0,"get",[],st(B.body,q,ea))])}function It(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,void 0,"set",Xn(B.parameters,q,to),st(B.body,q,ea))])}function Ot(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)))])),Lt(B,B.name,Ae,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)),t.createIdentifier("value")))]))])}function nt(B,Ae,te){return B=Xn(B,xt=>BI(xt)?xt:void 0,Aa),t.createGetAccessorDeclaration(B,Ae,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(te,t.createIdentifier("value")))]))}function Kt(B,Ae,te){return B=Xn(B,xt=>BI(xt)?xt:void 0,Aa),t.createGetAccessorDeclaration(B,Ae,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(te,t.createIdentifier("get")),t.createThis(),[]))]))}function Tr(B,Ae,te){return B=Xn(B,xt=>BI(xt)?xt:void 0,Aa),t.createSetAccessorDeclaration(B,Ae,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(te,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Oe(B,Ae){const te=t.createVariableDeclaration(B,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[Ae?he(Ae):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([te],2))}function Nt(B,Ae){const te=t.createObjectDefinePropertyCall(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:Ae},!0));return Cr(t.createIfStatement(Ae,t.createExpressionStatement(te)),1)}function he(B){return t.createBinaryExpression(t.createElementAccessExpression(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function hae(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),d=Ga(u);let g=0,h=0,y,E,A,R;const N=[];let P=0;const k=e.onEmitNode,W=e.onSubstituteNode;return e.onEmitNode=Di,e.onSubstituteNode=lo,hh(e,O);function O($e){if($e.isDeclarationFile)return $e;G(1,!1),G(2,!aG($e,u));const At=kn($e,K,e);return Ag(At,e.readEmitHelpers()),At}function G($e,At){P=At?P|$e:P&~$e}function j($e){return(P&$e)!==0}function J(){return!j(1)}function Z(){return j(2)}function q($e,At,mn){const dr=$e&~P;if(dr){G(dr,!0);const ri=At(mn);return G(dr,!1),ri}return At(mn)}function ye($e){return kn($e,K,e)}function ie($e){switch($e.kind){case 219:case 263:case 175:case 178:case 179:case 177:return $e;case 170:case 209:case 261:break;case 80:if(R&&l.isArgumentsLocalBinding($e))return R;break}return kn($e,ie,e)}function K($e){if(!($e.transformFlags&256))return R?ie($e):$e;switch($e.kind){case 134:return;case 224:return Ce($e);case 175:return q(3,Se,$e);case 263:return q(3,Ne,$e);case 219:return q(3,Be,$e);case 220:return q(1,lt,$e);case 212:return E&&qr($e)&&$e.expression.kind===108&&E.add($e.name.escapedText),kn($e,K,e);case 213:return E&&$e.expression.kind===108&&(A=!0),kn($e,K,e);case 178:return q(3,re,$e);case 179:return q(3,be,$e);case 177:return q(3,Je,$e);case 264:case 232:return q(3,ye,$e);default:return kn($e,K,e)}}function pe($e){if(Zte($e))switch($e.kind){case 244:return fe($e);case 249:return X($e);case 250:return ve($e);case 251:return xe($e);case 300:return de($e);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return kn($e,pe,e);default:return C.assertNever($e,"Unhandled node.")}return K($e)}function de($e){const At=new Set;ce($e.variableDeclaration,At);let mn;if(At.forEach((dr,ri)=>{y.has(ri)&&(mn||(mn=new Set(y)),mn.delete(ri))}),mn){const dr=y;y=mn;const ri=kn($e,pe,e);return y=dr,ri}else return kn($e,pe,e)}function fe($e){if(Re($e.declarationList)){const At=_e($e.declarationList,!1);return At?t.createExpressionStatement(At):void 0}return kn($e,K,e)}function ve($e){return t.updateForInStatement($e,Re($e.initializer)?_e($e.initializer,!0):C.checkDefined(st($e.initializer,K,Of)),C.checkDefined(st($e.expression,K,St)),Ou($e.statement,pe,e))}function xe($e){return t.updateForOfStatement($e,st($e.awaitModifier,K,ij),Re($e.initializer)?_e($e.initializer,!0):C.checkDefined(st($e.initializer,K,Of)),C.checkDefined(st($e.expression,K,St)),Ou($e.statement,pe,e))}function X($e){const At=$e.initializer;return t.updateForStatement($e,Re(At)?_e(At,!1):st($e.initializer,K,Of),st($e.condition,K,St),st($e.incrementor,K,St),Ou($e.statement,pe,e))}function Ce($e){return J()?kn($e,K,e):jr(vt(t.createYieldExpression(void 0,st($e.expression,K,St)),$e),$e)}function Je($e){const At=R;R=void 0;const mn=t.updateConstructorDeclaration($e,Xn($e.modifiers,K,Aa),zl($e.parameters,K,e),Wt($e));return R=At,mn}function Se($e){let At;const mn=dc($e),dr=R;R=void 0;const ri=t.updateMethodDeclaration($e,Xn($e.modifiers,K,fl),$e.asteriskToken,$e.name,void 0,void 0,At=mn&2?gn($e):zl($e.parameters,K,e),void 0,mn&2?Kn($e,At):Wt($e));return R=dr,ri}function re($e){const At=R;R=void 0;const mn=t.updateGetAccessorDeclaration($e,Xn($e.modifiers,K,fl),$e.name,zl($e.parameters,K,e),void 0,Wt($e));return R=At,mn}function be($e){const At=R;R=void 0;const mn=t.updateSetAccessorDeclaration($e,Xn($e.modifiers,K,fl),$e.name,zl($e.parameters,K,e),Wt($e));return R=At,mn}function Ne($e){let At;const mn=R;R=void 0;const dr=dc($e),ri=t.updateFunctionDeclaration($e,Xn($e.modifiers,K,fl),$e.asteriskToken,$e.name,void 0,At=dr&2?gn($e):zl($e.parameters,K,e),void 0,dr&2?Kn($e,At):gf($e.body,K,e));return R=mn,ri}function Be($e){let At;const mn=R;R=void 0;const dr=dc($e),ri=t.updateFunctionExpression($e,Xn($e.modifiers,K,Aa),$e.asteriskToken,$e.name,void 0,At=dr&2?gn($e):zl($e.parameters,K,e),void 0,dr&2?Kn($e,At):gf($e.body,K,e));return R=mn,ri}function lt($e){let At;const mn=dc($e);return t.updateArrowFunction($e,Xn($e.modifiers,K,Aa),void 0,At=mn&2?gn($e):zl($e.parameters,K,e),void 0,$e.equalsGreaterThanToken,mn&2?Kn($e,At):gf($e.body,K,e))}function ce({name:$e},At){if(He($e))At.add($e.escapedText);else for(const mn of $e.elements)Jc(mn)||ce(mn,At)}function Re($e){return!!$e&&_d($e)&&!($e.flags&7)&&$e.declarations.some(at)}function _e($e,At){je($e);const mn=fM($e);return mn.length===0?At?st(t.converters.convertToAssignmentElementTarget($e.declarations[0].name),K,St):void 0:t.inlineExpressions(Vt(mn,We))}function je($e){Ye($e.declarations,Ge)}function Ge({name:$e}){if(He($e))s($e);else for(const At of $e.elements)Jc(At)||Ge(At)}function We($e){const At=Ua(t.createAssignment(t.converters.convertToAssignmentElementTarget($e.name),$e.initializer),$e);return C.checkDefined(st(At,K,St))}function at({name:$e}){if(He($e))return y.has($e.escapedText);for(const At of $e.elements)if(!Jc(At)&&at(At))return!0;return!1}function Wt($e){C.assertIsDefined($e.body);const At=E,mn=A;E=new Set,A=!1;let dr=gf($e.body,K,e);const ri=yl($e,Ms);if(d>=2&&(l.hasNodeCheckFlag($e,256)||l.hasNodeCheckFlag($e,128))&&(dc(ri)&3)!==3){if(ir(),E.size){const qi=d3(t,l,$e,E);N[ls(qi)]=!0;const $o=dr.statements.slice();mg($o,[qi]),dr=t.updateBlock(dr,$o)}A&&(l.hasNodeCheckFlag($e,256)?OI(dr,e4):l.hasNodeCheckFlag($e,128)&&OI(dr,Z6))}return E=At,A=mn,dr}function cn(){C.assert(R);const $e=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),At=t.createVariableStatement(void 0,[$e]);return ou(At),Qh(At,2097152),At}function gn($e){if(Ow($e.parameters))return zl($e.parameters,K,e);const At=[];for(const dr of $e.parameters){if(dr.initializer||dr.dotDotDotToken){if($e.kind===220){const ai=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));At.push(ai)}break}const ri=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(dr.name,8));At.push(ri)}const mn=t.createNodeArray(At);return vt(mn,$e.parameters),mn}function Kn($e,At){const mn=Ow($e.parameters)?void 0:zl($e.parameters,K,e);i();const ri=yl($e,Yo).type,ai=d<2?en(ri):void 0,qi=$e.kind===220,$o=R,Mn=l.hasNodeCheckFlag($e,512)&&!R;Mn&&(R=t.createUniqueName("arguments"));let Uo;if(mn)if(qi){const it=[];C.assert(At.length<=$e.parameters.length);for(let dt=0;dt<$e.parameters.length;dt++){C.assert(dt=2&&(l.hasNodeCheckFlag($e,256)||l.hasNodeCheckFlag($e,128));if(dt&&(ir(),E.size)){const Ue=d3(t,l,$e,E);N[ls(Ue)]=!0,mg(it,[Ue])}Mn&&mg(it,[cn()]);const Lt=t.createBlock(it,!0);vt(Lt,$e.body),dt&&A&&(l.hasNodeCheckFlag($e,256)?OI(Lt,e4):l.hasNodeCheckFlag($e,128)&&OI(Lt,Z6)),Fe=Lt}return y=ot,qi||(E=Ft,A=le,R=$o),Fe}function _t($e,At){return ea($e)?t.updateBlock($e,Xn($e.statements,pe,Vi,At)):t.converters.convertToFunctionBlock(C.checkDefined(st($e,pe,dF)))}function en($e){const At=$e&&Z2($e);if(At&&Nu(At)){const mn=l.getTypeReferenceSerializationKind(At);if(mn===1||mn===0)return At}}function ir(){g&1||(g|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function Di($e,At,mn){if(g&1&&Pr(At)){const dr=(l.hasNodeCheckFlag(At,128)?128:0)|(l.hasNodeCheckFlag(At,256)?256:0);if(dr!==h){const ri=h;h=dr,k($e,At,mn),h=ri;return}}else if(g&&N[ls(At)]){const dr=h;h=0,k($e,At,mn),h=dr;return}k($e,At,mn)}function lo($e,At){return At=W($e,At),$e===1&&h?zt(At):At}function zt($e){switch($e.kind){case 212:return Zr($e);case 213:return Ai($e);case 214:return Ni($e)}return $e}function Zr($e){return $e.expression.kind===108?vt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),$e.name),$e):$e}function Ai($e){return $e.expression.kind===108?Ci($e.argumentExpression,$e):$e}function Ni($e){const At=$e.expression;if(mp(At)){const mn=qr(At)?Zr(At):Ai(At);return t.createCallExpression(t.createPropertyAccessExpression(mn,"call"),void 0,[t.createThis(),...$e.arguments])}return $e}function Pr($e){const At=$e.kind;return At===264||At===177||At===175||At===178||At===179}function Ci($e,At){return h&256?vt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),"value"),At):vt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),At)}}function d3(e,t,r,i){const o=t.hasNodeCheckFlag(r,256),s=[];return i.forEach((l,u)=>{const d=Gi(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Cr(e.createPropertyAccessExpression(Cr(e.createSuper(),8),d),8)))),o&&g.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(Cr(e.createPropertyAccessExpression(Cr(e.createSuper(),8),d),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(d,e.createObjectLiteralExpression(g)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}function _ae(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),d=Ga(u),g=e.onEmitNode;e.onEmitNode=$o;const h=e.onSubstituteNode;e.onSubstituteNode=Ia;let y=!1,E=0,A,R,N=0,P=0,k,W,O,G;const j=[];return hh(e,ie);function J(ne,Fe){return P!==(P&~ne|Fe)}function Z(ne,Fe){const it=P;return P=(P&~ne|Fe)&3,it}function q(ne){P=ne}function ye(ne){W=Bn(W,t.createVariableDeclaration(ne))}function ie(ne){if(ne.isDeclarationFile)return ne;k=ne;const Fe=lt(ne);return Ag(Fe,e.readEmitHelpers()),k=void 0,W=void 0,Fe}function K(ne){return xe(ne,!1)}function pe(ne){return xe(ne,!0)}function de(ne){if(ne.kind!==134)return ne}function fe(ne,Fe,it,dt){if(J(it,dt)){const Lt=Z(it,dt),Ue=ne(Fe);return q(Lt),Ue}return ne(Fe)}function ve(ne){return kn(ne,K,e)}function xe(ne,Fe){if(!(ne.transformFlags&128))return ne;switch(ne.kind){case 224:return X(ne);case 230:return Ce(ne);case 254:return Je(ne);case 257:return Se(ne);case 211:return be(ne);case 227:return Re(ne,Fe);case 357:return _e(ne,Fe);case 300:return je(ne);case 244:return Ge(ne);case 261:return We(ne);case 247:case 248:case 250:return fe(ve,ne,0,2);case 251:return gn(ne,void 0);case 249:return fe(Wt,ne,0,2);case 223:return cn(ne);case 177:return fe(Zr,ne,2,1);case 175:return fe(Pr,ne,2,1);case 178:return fe(Ai,ne,2,1);case 179:return fe(Ni,ne,2,1);case 263:return fe(Ci,ne,2,1);case 219:return fe(At,ne,2,1);case 220:return fe($e,ne,2,0);case 170:return lo(ne);case 245:return Ne(ne);case 218:return Be(ne,Fe);case 216:return ce(ne);case 212:return O&&qr(ne)&&ne.expression.kind===108&&O.add(ne.name.escapedText),kn(ne,K,e);case 213:return O&&ne.expression.kind===108&&(G=!0),kn(ne,K,e);case 264:case 232:return fe(ve,ne,2,1);default:return kn(ne,K,e)}}function X(ne){return A&2&&A&1?jr(vt(t.createYieldExpression(void 0,r().createAwaitHelper(st(ne.expression,K,St))),ne),ne):kn(ne,K,e)}function Ce(ne){if(A&2&&A&1){if(ne.asteriskToken){const Fe=st(C.checkDefined(ne.expression),K,St);return jr(vt(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(ne,ne.asteriskToken,vt(r().createAsyncDelegatorHelper(vt(r().createAsyncValuesHelper(Fe),Fe)),Fe)))),ne),ne)}return jr(vt(t.createYieldExpression(void 0,en(ne.expression?st(ne.expression,K,St):t.createVoidZero())),ne),ne)}return kn(ne,K,e)}function Je(ne){return A&2&&A&1?t.updateReturnStatement(ne,en(ne.expression?st(ne.expression,K,St):t.createVoidZero())):kn(ne,K,e)}function Se(ne){if(A&2){const Fe=hG(ne);return Fe.kind===251&&Fe.awaitModifier?gn(Fe,ne):t.restoreEnclosingLabel(st(Fe,K,Vi,t.liftToBlock),ne)}return kn(ne,K,e)}function re(ne){let Fe;const it=[];for(const dt of ne)if(dt.kind===306){Fe&&(it.push(t.createObjectLiteralExpression(Fe)),Fe=void 0);const Lt=dt.expression;it.push(st(Lt,K,St))}else Fe=Bn(Fe,dt.kind===304?t.createPropertyAssignment(dt.name,st(dt.initializer,K,St)):st(dt,K,ny));return Fe&&it.push(t.createObjectLiteralExpression(Fe)),it}function be(ne){if(ne.transformFlags&65536){const Fe=re(ne.properties);Fe.length&&Fe[0].kind!==211&&Fe.unshift(t.createObjectLiteralExpression());let it=Fe[0];if(Fe.length>1){for(let dt=1;dt=2&&(l.hasNodeCheckFlag(ne,256)||l.hasNodeCheckFlag(ne,128));if(It){qi();const nt=d3(t,l,ne,O);j[ls(nt)]=!0,mg(Lt,[nt])}Lt.push(Rt);const Ot=t.updateBlock(ne.body,Lt);return It&&G&&(l.hasNodeCheckFlag(ne,256)?OI(Ot,e4):l.hasNodeCheckFlag(ne,128)&&OI(Ot,Z6)),O=it,G=dt,Ot}function ri(ne){i();let Fe=0;const it=[],dt=st(ne.body,K,dF)??t.createBlock([]);ea(dt)&&(Fe=t.copyPrologue(dt.statements,it,!1,K)),Xr(it,ai(void 0,ne));const Lt=o();if(Fe>0||yt(it)||yt(Lt)){const Ue=t.converters.convertToFunctionBlock(dt,!0);return mg(it,Lt),Xr(it,Ue.statements.slice(Fe)),t.updateBlock(Ue,vt(t.createNodeArray(it),Ue.statements))}return dt}function ai(ne,Fe){let it=!1;for(const dt of Fe.parameters)if(it){if(Qo(dt.name)){if(dt.name.elements.length>0){const Lt=KS(dt,K,e,0,t.getGeneratedNameForNode(dt));if(yt(Lt)){const Ue=t.createVariableDeclarationList(Lt),Rt=t.createVariableStatement(void 0,Ue);Cr(Rt,2097152),ne=Bn(ne,Rt)}}else if(dt.initializer){const Lt=t.getGeneratedNameForNode(dt),Ue=st(dt.initializer,K,St),Rt=t.createAssignment(Lt,Ue),It=t.createExpressionStatement(Rt);Cr(It,2097152),ne=Bn(ne,It)}}else if(dt.initializer){const Lt=t.cloneNode(dt.name);vt(Lt,dt.name),Cr(Lt,96);const Ue=st(dt.initializer,K,St);Qh(Ue,3168);const Rt=t.createAssignment(Lt,Ue);vt(Rt,dt),Cr(Rt,3072);const It=t.createBlock([t.createExpressionStatement(Rt)]);vt(It,dt),Cr(It,3905);const Ot=t.createTypeCheck(t.cloneNode(dt.name),"undefined"),nt=t.createIfStatement(Ot,It);ou(nt),vt(nt,dt),Cr(nt,2101056),ne=Bn(ne,nt)}}else if(dt.transformFlags&65536){it=!0;const Lt=KS(dt,K,e,1,t.getGeneratedNameForNode(dt),!1,!0);if(yt(Lt)){const Ue=t.createVariableDeclarationList(Lt),Rt=t.createVariableStatement(void 0,Ue);Cr(Rt,2097152),ne=Bn(ne,Rt)}}return ne}function qi(){E&1||(E|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function $o(ne,Fe,it){if(E&1&&le(Fe)){const dt=(l.hasNodeCheckFlag(Fe,128)?128:0)|(l.hasNodeCheckFlag(Fe,256)?256:0);if(dt!==N){const Lt=N;N=dt,g(ne,Fe,it),N=Lt;return}}else if(E&&j[ls(Fe)]){const dt=N;N=0,g(ne,Fe,it),N=dt;return}g(ne,Fe,it)}function Ia(ne,Fe){return Fe=h(ne,Fe),ne===1&&N?Mn(Fe):Fe}function Mn(ne){switch(ne.kind){case 212:return Uo(ne);case 213:return ot(ne);case 214:return Ft(ne)}return ne}function Uo(ne){return ne.expression.kind===108?vt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ne.name),ne):ne}function ot(ne){return ne.expression.kind===108?ht(ne.argumentExpression,ne):ne}function Ft(ne){const Fe=ne.expression;if(mp(Fe)){const it=qr(Fe)?Uo(Fe):ot(Fe);return t.createCallExpression(t.createPropertyAccessExpression(it,"call"),void 0,[t.createThis(),...ne.arguments])}return ne}function le(ne){const Fe=ne.kind;return Fe===264||Fe===177||Fe===175||Fe===178||Fe===179}function ht(ne,Fe){return N&256?vt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),"value"),Fe):vt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),Fe)}}function gae(e){const t=e.factory;return hh(e,r);function r(s){return s.isDeclarationFile?s:kn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 300:return o(s);default:return kn(s,i,e)}}function o(s){return s.variableDeclaration?kn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),st(s.block,i,ea))}}function yae(e){const{factory:t,hoistVariableDeclaration:r}=e;return hh(e,i);function i(R){return R.isDeclarationFile?R:kn(R,o,e)}function o(R){if(!(R.transformFlags&32))return R;switch(R.kind){case 214:{const N=d(R,!1);return C.assertNotNode(N,JI),N}case 212:case 213:if(eu(R)){const N=h(R,!1,!1);return C.assertNotNode(N,JI),N}return kn(R,o,e);case 227:return R.operatorToken.kind===61?E(R):kn(R,o,e);case 221:return A(R);default:return kn(R,o,e)}}function s(R){C.assertNotNode(R,iF);const N=[R];for(;!R.questionDotToken&&!KT(R);)R=ma(Wm(R.expression),eu),C.assertNotNode(R,iF),N.unshift(R);return{expression:R.expression,chain:N}}function l(R,N,P){const k=g(R.expression,N,P);return JI(k)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,k.expression),k.thisArg):t.updateParenthesizedExpression(R,k)}function u(R,N,P){if(eu(R))return h(R,N,P);let k=st(R.expression,o,St);C.assertNotNode(k,JI);let W;return N&&(JS(k)?W=k:(W=t.createTempVariable(r),k=t.createAssignment(W,k))),k=R.kind===212?t.updatePropertyAccessExpression(R,k,st(R.name,o,He)):t.updateElementAccessExpression(R,k,st(R.argumentExpression,o,St)),W?t.createSyntheticReferenceExpression(k,W):k}function d(R,N){if(eu(R))return h(R,N,!1);if(wu(R.expression)&&eu(us(R.expression))){const P=l(R.expression,!0,!1),k=Xn(R.arguments,o,St);return JI(P)?vt(t.createFunctionCallCall(P.expression,P.thisArg,k),R):t.updateCallExpression(R,P,void 0,k)}return kn(R,o,e)}function g(R,N,P){switch(R.kind){case 218:return l(R,N,P);case 212:case 213:return u(R,N,P);case 214:return d(R,N);default:return st(R,o,St)}}function h(R,N,P){const{expression:k,chain:W}=s(R),O=g(Wm(k),qE(W[0]),!1);let G=JI(O)?O.thisArg:void 0,j=JI(O)?O.expression:O,J=t.restoreOuterExpressions(k,j,8);JS(j)||(j=t.createTempVariable(r),J=t.createAssignment(j,J));let Z=j,q;for(let ie=0;iexe&&Xr(X,Xn(fe.statements,y,Vi,xe,Ce-xe));break}Ce++}C.assert(CeP(X,xe))))],xe,ve===2)}return kn(fe,y,e)}function W(fe,ve,xe,X,Ce){const Je=[];for(let be=ve;bet&&(t=i)}return t}function JHe(e){let t=0;for(const r of e){const i=zU(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}function Eae(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return hh(e,y);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const ce=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=ce,s.filenameDeclaration.name}function u(ce){return i.jsx===5?"jsxDEV":ce?"jsxs":"jsx"}function d(ce){const Re=u(ce);return h(Re)}function g(){return h("Fragment")}function h(ce){var Re,_e;const je=ce==="createElement"?s.importSpecifier:D6(s.importSpecifier,i),Ge=(_e=(Re=s.utilizedImplicitRuntimeImports)==null?void 0:Re.get(je))==null?void 0:_e.get(ce);if(Ge)return Ge.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let We=s.utilizedImplicitRuntimeImports.get(je);We||(We=new Map,s.utilizedImplicitRuntimeImports.set(je,We));const at=t.createUniqueName(`_${ce}`,112),Wt=t.createImportSpecifier(!1,t.createIdentifier(ce),at);return Vre(at,Wt),We.set(ce,Wt),at}function y(ce){if(ce.isDeclarationFile)return ce;o=ce,s={},s.importSpecifier=zk(i,ce);let Re=kn(ce,E,e);Ag(Re,e.readEmitHelpers());let _e=Re.statements;if(s.filenameDeclaration&&(_e=QE(_e.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[je,Ge]of Co(s.utilizedImplicitRuntimeImports.entries()))if(Bc(ce)){const We=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports(Co(Ge.values()))),t.createStringLiteral(je),void 0);HT(We,!1),_e=QE(_e.slice(),We)}else if(Pp(ce)){const We=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Co(Ge.values(),at=>t.createBindingElement(void 0,at.propertyName,at.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(je)]))],2));HT(We,!1),_e=QE(_e.slice(),We)}}return _e!==Re.statements&&(Re=t.updateSourceFile(Re,_e)),s=void 0,Re}function E(ce){return ce.transformFlags&2?A(ce):ce}function A(ce){switch(ce.kind){case 285:return W(ce,!1);case 286:return O(ce,!1);case 289:return G(ce,!1);case 295:return lt(ce);default:return kn(ce,E,e)}}function R(ce){switch(ce.kind){case 12:return Ce(ce);case 295:return lt(ce);case 285:return W(ce,!0);case 286:return O(ce,!0);case 289:return G(ce,!0);default:return C.failBadSyntaxKind(ce)}}function N(ce){return ce.properties.some(Re=>Nc(Re)&&(He(Re.name)&&Kr(Re.name)==="__proto__"||ka(Re.name)&&Re.name.text==="__proto__"))}function P(ce){let Re=!1;for(const _e of ce.attributes.properties)if(KI(_e)&&(!Wa(_e.expression)||_e.expression.properties.some(xg)))Re=!0;else if(Re&&i_(_e)&&He(_e.name)&&_e.name.escapedText==="key")return!0;return!1}function k(ce){return s.importSpecifier===void 0||P(ce)}function W(ce,Re){return(k(ce.openingElement)?ye:Z)(ce.openingElement,ce.children,Re,ce)}function O(ce,Re){return(k(ce)?ye:Z)(ce,void 0,Re,ce)}function G(ce,Re){return(s.importSpecifier===void 0?K:ie)(ce.openingFragment,ce.children,Re,ce)}function j(ce){const Re=J(ce);return Re&&t.createObjectLiteralExpression([Re])}function J(ce){const Re=rD(ce);if(et(Re)===1&&!Re[0].dotDotDotToken){const je=R(Re[0]);return je&&t.createPropertyAssignment("children",je)}const _e=Ui(ce,R);return et(_e)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(_e)):void 0}function Z(ce,Re,_e,je){const Ge=Ne(ce),We=Re&&Re.length?J(Re):void 0,at=hn(ce.attributes.properties,gn=>!!gn.name&&He(gn.name)&&gn.name.escapedText==="key"),Wt=at?Un(ce.attributes.properties,gn=>gn!==at):ce.attributes.properties,cn=et(Wt)?de(Wt,We):t.createObjectLiteralExpression(We?[We]:ae);return q(Ge,cn,at,Re||ae,_e,je)}function q(ce,Re,_e,je,Ge,We){var at;const Wt=rD(je),cn=et(Wt)>1||!!((at=Wt[0])!=null&&at.dotDotDotToken),gn=[ce,Re];if(_e&&gn.push(X(_e.initializer)),i.jsx===5){const _t=yl(o);if(_t&&Yi(_t)){_e===void 0&&gn.push(t.createVoidZero()),gn.push(cn?t.createTrue():t.createFalse());const en=ca(_t,We.pos);gn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(en.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(en.character+1))])),gn.push(t.createThis())}}const Kn=vt(t.createCallExpression(d(cn),void 0,gn),We);return Ge&&ou(Kn),Kn}function ye(ce,Re,_e,je){const Ge=Ne(ce),We=ce.attributes.properties,at=et(We)?de(We):t.createNull(),Wt=s.importSpecifier===void 0?Tj(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,ce):h("createElement"),cn=Sie(t,Wt,Ge,at,Ui(Re,R),je);return _e&&ou(cn),cn}function ie(ce,Re,_e,je){let Ge;if(Re&&Re.length){const We=j(Re);We&&(Ge=We)}return q(g(),Ge||t.createObjectLiteralExpression([]),void 0,Re,_e,je)}function K(ce,Re,_e,je){const Ge=Eie(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Ui(Re,R),ce,je);return _e&&ou(Ge),Ge}function pe(ce){return Wa(ce.expression)&&!N(ce.expression)?Zi(ce.expression.properties,Re=>C.checkDefined(st(Re,E,ny))):t.createSpreadAssignment(C.checkDefined(st(ce.expression,E,St)))}function de(ce,Re){const _e=Ga(i);return _e&&_e>=5?t.createObjectLiteralExpression(fe(ce,Re)):ve(ce,Re)}function fe(ce,Re){const _e=la(r2(ce,KI,(je,Ge)=>la(Vt(je,We=>Ge?pe(We):xe(We)))));return Re&&_e.push(Re),_e}function ve(ce,Re){const _e=[];let je=[];for(const We of ce){if(KI(We)){if(Wa(We.expression)&&!N(We.expression)){for(const at of We.expression.properties){if(xg(at)){Ge(),_e.push(C.checkDefined(st(at.expression,E,St)));continue}je.push(C.checkDefined(st(at,E)))}continue}Ge(),_e.push(C.checkDefined(st(We.expression,E,St)));continue}je.push(xe(We))}return Re&&je.push(Re),Ge(),_e.length&&!Wa(_e[0])&&_e.unshift(t.createObjectLiteralExpression()),og(_e)||r().createAssignHelper(_e);function Ge(){je.length&&(_e.push(t.createObjectLiteralExpression(je)),je=[])}}function xe(ce){const Re=Be(ce),_e=X(ce.initializer);return t.createPropertyAssignment(Re,_e)}function X(ce){if(ce===void 0)return t.createTrue();if(ce.kind===11){const Re=ce.singleQuote!==void 0?ce.singleQuote:!HF(ce,o),_e=t.createStringLiteral(be(ce.text)||ce.text,Re);return vt(_e,ce)}return ce.kind===295?ce.expression===void 0?t.createTrue():C.checkDefined(st(ce.expression,E,St)):r_(ce)?W(ce,!1):E1(ce)?O(ce,!1):ZT(ce)?G(ce,!1):C.failBadSyntaxKind(ce)}function Ce(ce){const Re=Je(ce.text);return Re===void 0?void 0:t.createStringLiteral(Re)}function Je(ce){let Re,_e=0,je=-1;for(let Ge=0;Ge{if(We)return xN(parseInt(We,10));if(at)return xN(parseInt(at,16));{const cn=KHe.get(Wt);return cn?xN(cn):Re}})}function be(ce){const Re=re(ce);return Re===ce?void 0:Re}function Ne(ce){if(ce.kind===285)return Ne(ce.openingElement);{const Re=ce.tagName;return He(Re)&&iD(Re.escapedText)?t.createStringLiteral(Kr(Re)):fh(Re)?t.createStringLiteral(Kr(Re.namespace)+":"+Kr(Re.name)):uw(t,Re)}}function Be(ce){const Re=ce.name;if(He(Re)){const _e=Kr(Re);return/^[A-Z_]\w*$/i.test(_e)?Re:t.createStringLiteral(_e)}return t.createStringLiteral(Kr(Re.namespace)+":"+Kr(Re.name))}function lt(ce){const Re=st(ce.expression,E,St);return ce.dotDotDotToken?t.createSpreadElement(Re):Re}}var KHe=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 Aae(e){const{factory:t,hoistVariableDeclaration:r}=e;return hh(e,i);function i(d){return d.isDeclarationFile?d:kn(d,o,e)}function o(d){if(!(d.transformFlags&512))return d;switch(d.kind){case 227:return s(d);default:return kn(d,o,e)}}function s(d){switch(d.operatorToken.kind){case 68:return l(d);case 43:return u(d);default:return kn(d,o,e)}}function l(d){let g,h;const y=st(d.left,o,St),E=st(d.right,o,St);if(Ws(y)){const A=t.createTempVariable(r),R=t.createTempVariable(r);g=vt(t.createElementAccessExpression(vt(t.createAssignment(A,y.expression),y.expression),vt(t.createAssignment(R,y.argumentExpression),y.argumentExpression)),y),h=vt(t.createElementAccessExpression(A,R),y)}else if(qr(y)){const A=t.createTempVariable(r);g=vt(t.createPropertyAccessExpression(vt(t.createAssignment(A,y.expression),y.expression),y.name),y),h=vt(t.createPropertyAccessExpression(A,y.name),y)}else g=y,h=y;return vt(t.createAssignment(g,vt(t.createGlobalMethodCall("Math","pow",[h,E]),d)),d)}function u(d){const g=st(d.left,o,St),h=st(d.right,o,St);return vt(t.createGlobalMethodCall("Math","pow",[g,h]),d)}}function k1e(e,t){return{kind:e,expression:t}}function Iae(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),d=e.getEmitResolver(),g=e.onSubstituteNode,h=e.onEmitNode;e.onEmitNode=ld,e.onSubstituteNode=Xf;let y,E,A,R;function N(oe){R=Bn(R,t.createVariableDeclaration(oe))}let P,k=0;return hh(e,W);function W(oe){if(oe.isDeclarationFile)return oe;y=oe,E=oe.text;const ut=de(oe);return Ag(ut,e.readEmitHelpers()),y=void 0,E=void 0,R=void 0,A=0,ut}function O(oe,ut){const tn=A;return A=(A&~oe|ut)&32767,tn}function G(oe,ut,tn){A=(A&~ut|tn)&-32768|oe}function j(oe){return(A&8192)!==0&&oe.kind===254&&!oe.expression}function J(oe){return oe.transformFlags&4194304&&(tf(oe)||YT(oe)||aie(oe)||GM(oe)||VM(oe)||ID(oe)||jM(oe)||T1(oe)||jS(oe)||Mb(oe)||pb(oe,!1)||ea(oe))}function Z(oe){return(oe.transformFlags&1024)!==0||P!==void 0||A&8192&&J(oe)||pb(oe,!1)&&co(oe)||(Fm(oe)&1)!==0}function q(oe){return Z(oe)?pe(oe,!1):oe}function ye(oe){return Z(oe)?pe(oe,!0):oe}function ie(oe){if(Z(oe)){const ut=yl(oe);if(Po(ut)&&Oc(ut)){const tn=O(32670,16449),an=pe(oe,!1);return G(tn,229376,0),an}return pe(oe,!1)}return oe}function K(oe){return oe.kind===108?rf(oe,!0):q(oe)}function pe(oe,ut){switch(oe.kind){case 126:return;case 264:return Ne(oe);case 232:return Be(oe);case 170:return Ia(oe);case 263:return Kt(oe);case 220:return Ot(oe);case 219:return nt(oe);case 261:return tr(oe);case 80:return re(oe);case 262:return Pe(oe);case 256:return fe(oe);case 270:return ve(oe);case 242:return Nt(oe);case 253:case 252:return be(oe);case 257:return Mt(oe);case 247:case 248:return In(oe,void 0);case 249:return yn(oe,void 0);case 250:return En(oe,void 0);case 251:return xn(oe,void 0);case 245:return he(oe);case 211:return sa(oe);case 300:return ro(oe);case 305:return Qs(oe);case 168:return Ec(oe);case 210:return Hs(oe);case 214:return Ll(oe);case 215:return nf(oe);case 218:return B(oe,ut);case 227:return Ae(oe,ut);case 357:return te(oe,ut);case 15:case 16:case 17:case 18:return es(oe);case 11:return Va(oe);case 9:return Pc(oe);case 216:return tl(oe);case 229:return kl(oe);case 230:return mc(oe);case 231:return Za(oe);case 108:return rf(oe,!1);case 110:return Je(oe);case 237:return bd(oe);case 175:return Ns(oe);case 178:case 179:return Da(oe);case 244:return Xt(oe);case 254:return Ce(oe);case 223:return Se(oe);default:return kn(oe,q,e)}}function de(oe){const ut=O(8064,64),tn=[],an=[];i();const wn=t.copyPrologue(oe.statements,tn,!1,q);return Xr(an,Xn(oe.statements,q,Vi,wn)),R&&an.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(tn,s()),ne(tn,oe),G(ut,0,0),t.updateSourceFile(oe,vt(t.createNodeArray(so(tn,an)),oe.statements))}function fe(oe){if(P!==void 0){const ut=P.allowedNonLabeledJumps;P.allowedNonLabeledJumps|=2;const tn=kn(oe,q,e);return P.allowedNonLabeledJumps=ut,tn}return kn(oe,q,e)}function ve(oe){const ut=O(7104,0),tn=kn(oe,q,e);return G(ut,0,0),tn}function xe(oe){return jr(t.createReturnStatement(X()),oe)}function X(){return t.createUniqueName("_this",48)}function Ce(oe){return P?(P.nonLocalJumps|=8,j(oe)&&(oe=xe(oe)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),oe.expression?C.checkDefined(st(oe.expression,q,St)):t.createVoidZero())]))):j(oe)?xe(oe):kn(oe,q,e)}function Je(oe){return A|=65536,A&2&&!(A&16384)&&(A|=131072),P?A&2?(P.containsLexicalThis=!0,oe):P.thisName||(P.thisName=t.createUniqueName("this")):oe}function Se(oe){return kn(oe,ye,e)}function re(oe){return P&&d.isArgumentsLocalBinding(oe)?P.argumentsName||(P.argumentsName=t.createUniqueName("arguments")):oe.flags&256?jr(vt(t.createIdentifier(Gi(oe.escapedText)),oe),oe):oe}function be(oe){if(P){const ut=oe.kind===253?2:4;if(!(oe.label&&P.labels&&P.labels.get(Kr(oe.label))||!oe.label&&P.allowedNonLabeledJumps&ut)){let an;const wn=oe.label;wn?oe.kind===253?(an=`break-${wn.escapedText}`,pt(P,!0,Kr(wn),an)):(an=`continue-${wn.escapedText}`,pt(P,!1,Kr(wn),an)):oe.kind===253?(P.nonLocalJumps|=2,an="break"):(P.nonLocalJumps|=4,an="continue");let or=t.createStringLiteral(an);if(P.loopOutParameters.length){const ti=P.loopOutParameters;let Ti;for(let $i=0;$iHe(ut.name)&&!ut.initializer)}function at(oe){if(e1(oe))return!0;if(!(oe.transformFlags&134217728))return!1;switch(oe.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{const ut=oe;return va(ut.name)?!!Jo(ut.name,at):!1}}return!!Jo(oe,at)}function Wt(oe,ut,tn,an){const wn=!!tn&&Hl(tn.expression).kind!==106;if(!oe)return Ge(ut,wn);const or=[],ti=[];o();const Ti=t.copyStandardPrologue(oe.body.statements,or,0);(an||at(oe.body))&&(A|=8192),Xr(ti,Xn(oe.body.statements,q,Vi,Ti));const $i=wn||A&8192;Uo(or,oe),ht(or,oe,an),it(or,oe),$i?Fe(or,oe,qi()):ne(or,oe),t.mergeLexicalEnvironment(or,s()),$i&&!ai(oe.body)&&ti.push(t.createReturnStatement(X()));const z=t.createBlock(vt(t.createNodeArray([...or,...ti]),oe.body.statements),!0);return vt(z,oe.body),ri(z,oe.body,an)}function cn(oe){return pl(oe)&&Kr(oe)==="_this"}function gn(oe){return pl(oe)&&Kr(oe)==="_super"}function Kn(oe){return sc(oe)&&oe.declarationList.declarations.length===1&&_t(oe.declarationList.declarations[0])}function _t(oe){return yi(oe)&&cn(oe.name)&&!!oe.initializer}function en(oe){return id(oe,!0)&&cn(oe.left)}function ir(oe){return Zo(oe)&&qr(oe.expression)&&gn(oe.expression.expression)&&He(oe.expression.name)&&(Kr(oe.expression.name)==="call"||Kr(oe.expression.name)==="apply")&&oe.arguments.length>=1&&oe.arguments[0].kind===110}function Di(oe){return Nr(oe)&&oe.operatorToken.kind===57&&oe.right.kind===110&&ir(oe.left)}function lo(oe){return Nr(oe)&&oe.operatorToken.kind===56&&Nr(oe.left)&&oe.left.operatorToken.kind===38&&gn(oe.left.left)&&oe.left.right.kind===106&&ir(oe.right)&&Kr(oe.right.expression.name)==="apply"}function zt(oe){return Nr(oe)&&oe.operatorToken.kind===57&&oe.right.kind===110&&lo(oe.left)}function Zr(oe){return en(oe)&&Di(oe.right)}function Ai(oe){return en(oe)&&zt(oe.right)}function Ni(oe){return ir(oe)||Di(oe)||Zr(oe)||lo(oe)||zt(oe)||Ai(oe)}function Pr(oe){for(let ut=0;ut0;an--){const wn=oe.statements[an];if(tf(wn)&&wn.expression&&cn(wn.expression)){const or=oe.statements[an-1];let ti;if(od(or)&&Zr(Hl(or.expression)))ti=or.expression;else if(tn&&Kn(or)){const z=or.declarationList.declarations[0];Ni(Hl(z.initializer))&&(ti=t.createAssignment(X(),z.initializer))}if(!ti)break;const Ti=t.createReturnStatement(ti);jr(Ti,or),vt(Ti,or);const $i=t.createNodeArray([...oe.statements.slice(0,an-1),Ti,...oe.statements.slice(an+1)]);return vt($i,oe.statements),t.updateBlock(oe,$i)}}return oe}function $e(oe){if(Kn(oe)){if(oe.declarationList.declarations[0].initializer.kind===110)return}else if(en(oe))return t.createPartiallyEmittedExpression(oe.right,oe);switch(oe.kind){case 220:case 219:case 263:case 177:case 176:return oe;case 178:case 179:case 175:case 173:{const ut=oe;return va(ut.name)?t.replacePropertyName(ut,kn(ut.name,$e,void 0)):oe}}return kn(oe,$e,void 0)}function At(oe,ut){if(ut.transformFlags&16384||A&65536||A&131072)return oe;for(const tn of ut.statements)if(tn.transformFlags&134217728&&!r3(tn))return oe;return t.updateBlock(oe,Xn(oe.statements,$e,Vi))}function mn(oe){if(ir(oe)&&oe.arguments.length===2&&He(oe.arguments[1])&&Kr(oe.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Jl(),t.createNull()),oe);switch(oe.kind){case 220:case 219:case 263:case 177:case 176:return oe;case 178:case 179:case 175:case 173:{const ut=oe;return va(ut.name)?t.replacePropertyName(ut,kn(ut.name,mn,void 0)):oe}}return kn(oe,mn,void 0)}function dr(oe){return t.updateBlock(oe,Xn(oe.statements,mn,Vi))}function ri(oe,ut,tn){const an=oe;return oe=Pr(oe),oe=Ci(oe,ut),oe!==an&&(oe=At(oe,ut)),tn&&(oe=dr(oe)),oe}function ai(oe){if(oe.kind===254)return!0;if(oe.kind===246){const ut=oe;if(ut.elseStatement)return ai(ut.thenStatement)&&ai(ut.elseStatement)}else if(oe.kind===242){const ut=Zs(oe.statements);if(ut&&ai(ut))return!0}return!1}function qi(){return Cr(t.createThis(),8)}function $o(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Jl(),t.createNull()),t.createFunctionApplyCall(Jl(),qi(),t.createIdentifier("arguments"))),qi())}function Ia(oe){if(!oe.dotDotDotToken)return Qo(oe.name)?jr(vt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(oe),void 0,void 0,void 0),oe),oe):oe.initializer?jr(vt(t.createParameterDeclaration(void 0,void 0,oe.name,void 0,void 0,void 0),oe),oe):oe}function Mn(oe){return oe.initializer!==void 0||Qo(oe.name)}function Uo(oe,ut){if(!yt(ut.parameters,Mn))return!1;let tn=!1;for(const an of ut.parameters){const{name:wn,initializer:or,dotDotDotToken:ti}=an;ti||(Qo(wn)?tn=ot(oe,an,wn,or)||tn:or&&(Ft(oe,an,wn,or),tn=!0))}return tn}function ot(oe,ut,tn,an){return tn.elements.length>0?(QE(oe,Cr(t.createVariableStatement(void 0,t.createVariableDeclarationList(KS(ut,q,e,0,t.getGeneratedNameForNode(ut)))),2097152)),!0):an?(QE(oe,Cr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ut),C.checkDefined(st(an,q,St)))),2097152)),!0):!1}function Ft(oe,ut,tn,an){an=C.checkDefined(st(an,q,St));const wn=t.createIfStatement(t.createTypeCheck(t.cloneNode(tn),"undefined"),Cr(vt(t.createBlock([t.createExpressionStatement(Cr(vt(t.createAssignment(Cr(ps(vt(t.cloneNode(tn),tn),tn.parent),96),Cr(an,96|Qa(an)|3072)),ut),3072))]),ut),3905));ou(wn),vt(wn,ut),Cr(wn,2101056),QE(oe,wn)}function le(oe,ut){return!!(oe&&oe.dotDotDotToken&&!ut)}function ht(oe,ut,tn){const an=[],wn=Zs(ut.parameters);if(!le(wn,tn))return!1;const or=wn.name.kind===80?ps(vt(t.cloneNode(wn.name),wn.name),wn.name.parent):t.createTempVariable(void 0);Cr(or,96);const ti=wn.name.kind===80?t.cloneNode(wn.name):or,Ti=ut.parameters.length-1,$i=t.createLoopVariable();an.push(Cr(vt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(or,void 0,void 0,t.createArrayLiteralExpression([]))])),wn),2097152));const z=t.createForStatement(vt(t.createVariableDeclarationList([t.createVariableDeclaration($i,void 0,void 0,t.createNumericLiteral(Ti))]),wn),vt(t.createLessThan($i,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),wn),vt(t.createPostfixIncrement($i),wn),t.createBlock([ou(vt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ti,Ti===0?$i:t.createSubtract($i,t.createNumericLiteral(Ti))),t.createElementAccessExpression(t.createIdentifier("arguments"),$i))),wn))]));return Cr(z,2097152),ou(z),an.push(z),wn.name.kind!==80&&an.push(Cr(vt(t.createVariableStatement(void 0,t.createVariableDeclarationList(KS(wn,q,e,0,ti))),wn),2097152)),$9(oe,an),!0}function ne(oe,ut){return A&131072&&ut.kind!==220?(Fe(oe,ut,t.createThis()),!0):!1}function Fe(oe,ut,tn){Eu();const an=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(X(),void 0,void 0,tn)]));Cr(an,2100224),Ua(an,ut),QE(oe,an)}function it(oe,ut){if(A&32768){let tn;switch(ut.kind){case 220:return oe;case 175:case 178:case 179:tn=t.createVoidZero();break;case 177:tn=t.createPropertyAccessExpression(Cr(t.createThis(),8),"constructor");break;case 263:case 219:tn=t.createConditionalExpression(t.createLogicalAnd(Cr(t.createThis(),8),t.createBinaryExpression(Cr(t.createThis(),8),104,t.getLocalName(ut))),void 0,t.createPropertyAccessExpression(Cr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return C.failBadSyntaxKind(ut)}const an=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,tn)]));Cr(an,2100224),QE(oe,an)}return oe}function dt(oe,ut){for(const tn of ut.members)switch(tn.kind){case 241:oe.push(Lt(tn));break;case 175:oe.push(Ue(Tf(ut,tn),tn,ut));break;case 178:case 179:const an=NS(ut.members,tn);tn===an.firstAccessor&&oe.push(Rt(Tf(ut,tn),an,ut));break;case 177:case 176:break;default:C.failBadSyntaxKind(tn,y&&y.fileName);break}}function Lt(oe){return vt(t.createEmptyStatement(),oe)}function Ue(oe,ut,tn){const an=Zh(ut),wn=sv(ut),or=Tr(ut,ut,void 0,tn),ti=st(ut.name,q,bc);C.assert(ti);let Ti;if(!eo(ti)&&Wk(e.getCompilerOptions())){const z=va(ti)?ti.expression:He(ti)?t.createStringLiteral(Gi(ti.escapedText)):ti;Ti=t.createObjectDefinePropertyCall(oe,z,t.createPropertyDescriptor({value:or,enumerable:!1,writable:!0,configurable:!0}))}else{const z=x1(t,oe,ti,ut.name);Ti=t.createAssignment(z,or)}Cr(or,3072),Ua(or,wn);const $i=vt(t.createExpressionStatement(Ti),ut);return jr($i,ut),Dc($i,an),Cr($i,96),$i}function Rt(oe,ut,tn){const an=t.createExpressionStatement(It(oe,ut,tn,!1));return Cr(an,3072),Ua(an,sv(ut.firstAccessor)),an}function It(oe,{firstAccessor:ut,getAccessor:tn,setAccessor:an},wn,or){const ti=ps(vt(t.cloneNode(oe),oe),oe.parent);Cr(ti,3136),Ua(ti,ut.name);const Ti=st(ut.name,q,bc);if(C.assert(Ti),eo(Ti))return C.failBadSyntaxKind(Ti,"Encountered unhandled private identifier while transforming ES2015.");const $i=Ej(t,Ti);Cr($i,3104),Ua($i,ut.name);const z=[];if(tn){const kt=Tr(tn,void 0,void 0,wn);Ua(kt,sv(tn)),Cr(kt,1024);const On=t.createPropertyAssignment("get",kt);Dc(On,Zh(tn)),z.push(On)}if(an){const kt=Tr(an,void 0,void 0,wn);Ua(kt,sv(an)),Cr(kt,1024);const On=t.createPropertyAssignment("set",kt);Dc(On,Zh(an)),z.push(On)}z.push(t.createPropertyAssignment("enumerable",tn||an?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Ve=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[ti,$i,t.createObjectLiteralExpression(z,!0)]);return or&&ou(Ve),Ve}function Ot(oe){oe.transformFlags&16384&&!(A&16384)&&(A|=131072);const ut=P;P=void 0;const tn=O(15232,66),an=t.createFunctionExpression(void 0,void 0,void 0,void 0,zl(oe.parameters,q,e),void 0,Oe(oe));return vt(an,oe),jr(an,oe),Cr(an,16),G(tn,0,0),P=ut,an}function nt(oe){const ut=Qa(oe)&524288?O(32662,69):O(32670,65),tn=P;P=void 0;const an=zl(oe.parameters,q,e),wn=Oe(oe),or=A&32768?t.getLocalName(oe):oe.name;return G(ut,229376,0),P=tn,t.updateFunctionExpression(oe,void 0,oe.asteriskToken,or,void 0,an,void 0,wn)}function Kt(oe){const ut=P;P=void 0;const tn=O(32670,65),an=zl(oe.parameters,q,e),wn=Oe(oe),or=A&32768?t.getLocalName(oe):oe.name;return G(tn,229376,0),P=ut,t.updateFunctionDeclaration(oe,Xn(oe.modifiers,q,Aa),oe.asteriskToken,or,void 0,an,void 0,wn)}function Tr(oe,ut,tn,an){const wn=P;P=void 0;const or=an&&ui(an)&&!ua(oe)?O(32670,73):O(32670,65),ti=zl(oe.parameters,q,e),Ti=Oe(oe);return A&32768&&!tn&&(oe.kind===263||oe.kind===219)&&(tn=t.getGeneratedNameForNode(oe)),G(or,229376,0),P=wn,jr(vt(t.createFunctionExpression(void 0,oe.asteriskToken,tn,void 0,ti,void 0,Ti),ut),oe)}function Oe(oe){let ut=!1,tn=!1,an,wn;const or=[],ti=[],Ti=oe.body;let $i;if(o(),ea(Ti)&&($i=t.copyStandardPrologue(Ti.statements,or,0,!1),$i=t.copyCustomPrologue(Ti.statements,ti,$i,q,NF),$i=t.copyCustomPrologue(Ti.statements,ti,$i,q,MF)),ut=Uo(ti,oe)||ut,ut=ht(ti,oe,!1)||ut,ea(Ti))$i=t.copyCustomPrologue(Ti.statements,ti,$i,q),an=Ti.statements,Xr(ti,Xn(Ti.statements,q,Vi,$i)),!ut&&Ti.multiLine&&(ut=!0);else{C.assert(oe.kind===220),an=h6(Ti,-1);const Ve=oe.equalsGreaterThanToken;!Os(Ve)&&!Os(Ti)&&(Mk(Ve,Ti,y)?tn=!0:ut=!0);const kt=st(Ti,q,St),On=t.createReturnStatement(kt);vt(On,Ti),Ore(On,Ti),Cr(On,2880),ti.push(On),wn=Ti}if(t.mergeLexicalEnvironment(or,s()),it(or,oe),ne(or,oe),yt(or)&&(ut=!0),ti.unshift(...or),ea(Ti)&&Qp(ti,Ti.statements))return Ti;const z=t.createBlock(vt(t.createNodeArray(ti),an),ut);return vt(z,oe.body),!ut&&tn&&Cr(z,1),wn&&wre(z,20,wn),jr(z,oe.body),z}function Nt(oe,ut){const tn=A&256?O(7104,512):O(6976,128),an=kn(oe,q,e);return G(tn,0,0),an}function he(oe){return kn(oe,ye,e)}function B(oe,ut){return kn(oe,ut?ye:q,e)}function Ae(oe,ut){return nv(oe)?P1(oe,q,e,0,!ut):oe.operatorToken.kind===28?t.updateBinaryExpression(oe,C.checkDefined(st(oe.left,ye,St)),oe.operatorToken,C.checkDefined(st(oe.right,ut?ye:q,St))):kn(oe,q,e)}function te(oe,ut){if(ut)return kn(oe,ye,e);let tn;for(let wn=0;wn$i.name)),Ti=an?t.createYieldExpression(t.createToken(42),Cr(ti,8388608)):ti;if(or)wn.push(t.createExpressionStatement(Ti)),Fs(ut.loopOutParameters,1,0,wn);else{const $i=t.createUniqueName("state"),z=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration($i,void 0,void 0,Ti)]));if(wn.push(z),Fs(ut.loopOutParameters,1,0,wn),ut.nonLocalJumps&8){let Ve;tn?(tn.nonLocalJumps|=8,Ve=t.createReturnStatement($i)):Ve=t.createReturnStatement(t.createPropertyAccessExpression($i,"value")),wn.push(t.createIfStatement(t.createTypeCheck($i,"object"),Ve))}if(ut.nonLocalJumps&2&&wn.push(t.createIfStatement(t.createStrictEquality($i,t.createStringLiteral("break")),t.createBreakStatement())),ut.labeledNonLocalBreaks||ut.labeledNonLocalContinues){const Ve=[];qt(ut.labeledNonLocalBreaks,!0,$i,tn,Ve),qt(ut.labeledNonLocalContinues,!1,$i,tn,Ve),wn.push(t.createSwitchStatement($i,t.createCaseBlock(Ve)))}}return wn}function pt(oe,ut,tn,an){ut?(oe.labeledNonLocalBreaks||(oe.labeledNonLocalBreaks=new Map),oe.labeledNonLocalBreaks.set(tn,an)):(oe.labeledNonLocalContinues||(oe.labeledNonLocalContinues=new Map),oe.labeledNonLocalContinues.set(tn,an))}function qt(oe,ut,tn,an,wn){oe&&oe.forEach((or,ti)=>{const Ti=[];if(!an||an.labels&&an.labels.get(ti)){const $i=t.createIdentifier(ti);Ti.push(ut?t.createBreakStatement($i):t.createContinueStatement($i))}else pt(an,ut,ti,or),Ti.push(t.createReturnStatement(tn));wn.push(t.createCaseClause(t.createStringLiteral(or),Ti))})}function fn(oe,ut,tn,an,wn){const or=ut.name;if(Qo(or))for(const ti of or.elements)Jc(ti)||fn(oe,ti,tn,an,wn);else{tn.push(t.createParameterDeclaration(void 0,void 0,or));const ti=d.hasNodeCheckFlag(ut,65536);if(ti||wn){const Ti=t.createUniqueName("out_"+Kr(or));let $i=0;ti&&($i|=1),$T(oe)&&(oe.initializer&&d.isBindingCapturedByNode(oe.initializer,ut)&&($i|=2),(oe.condition&&d.isBindingCapturedByNode(oe.condition,ut)||oe.incrementor&&d.isBindingCapturedByNode(oe.incrementor,ut))&&($i|=1)),an.push({flags:$i,originalName:or,outParamName:Ti})}}}function ur(oe,ut,tn,an){const wn=ut.properties,or=wn.length;for(let ti=an;tisc(Ca)&&!!$a(Ca.declarationList.declarations).initializer,an=P;P=void 0;const wn=Xn(ut.statements,ie,Vi);P=an;const or=Un(wn,tn),ti=Un(wn,Ca=>!tn(Ca)),$i=ma($a(or),sc).declarationList.declarations[0],z=Hl($i.initializer);let Ve=ni(z,id);!Ve&&Nr(z)&&z.operatorToken.kind===28&&(Ve=ni(z.left,id));const kt=ma(Ve?Hl(Ve.right):z,Zo),On=ma(Hl(kt.expression),Us),yo=On.body.statements;let ta=0,Eo=-1;const Vo=[];if(Ve){const Ca=ni(yo[ta],od);Ca&&(Vo.push(Ca),ta++),Vo.push(yo[ta]),ta++,Vo.push(t.createExpressionStatement(t.createAssignment(Ve.left,ma($i.name,He))))}for(;!tf(Yv(yo,Eo));)Eo--;Xr(Vo,yo,ta,Eo),Eo<-1&&Xr(Vo,yo,Eo+1);const ml=ni(Yv(yo,Eo),tf);for(const Ca of ti)tf(Ca)&&ml?.expression&&!He(ml.expression)?Vo.push(ml):Vo.push(Ca);return Xr(Vo,or,1),t.restoreOuterExpressions(oe.expression,t.restoreOuterExpressions($i.initializer,t.restoreOuterExpressions(Ve&&Ve.right,t.updateCallExpression(kt,t.restoreOuterExpressions(kt.expression,t.updateFunctionExpression(On,void 0,void 0,void 0,void 0,On.parameters,void 0,t.updateBlock(On.body,Vo))),void 0,kt.arguments))))}function Pd(oe,ut){if(oe.transformFlags&32768||oe.expression.kind===108||mp(Hl(oe.expression))){const{target:tn,thisArg:an}=t.createCallBinding(oe.expression,l);oe.expression.kind===108&&Cr(an,8);let wn;if(oe.transformFlags&32768?wn=t.createFunctionApplyCall(C.checkDefined(st(tn,K,St)),oe.expression.kind===108?an:C.checkDefined(st(an,q,St)),op(oe.arguments,!0,!1,!1)):wn=vt(t.createFunctionCallCall(C.checkDefined(st(tn,K,St)),oe.expression.kind===108?an:C.checkDefined(st(an,q,St)),Xn(oe.arguments,q,St)),oe),oe.expression.kind===108){const or=t.createLogicalOr(wn,qi());wn=t.createAssignment(X(),or)}return jr(wn,oe)}return e1(oe)&&(A|=131072),kn(oe,q,e)}function nf(oe){if(yt(oe.arguments,qf)){const{target:ut,thisArg:tn}=t.createCallBinding(t.createPropertyAccessExpression(oe.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(C.checkDefined(st(ut,q,St)),tn,op(t.createNodeArray([t.createVoidZero(),...oe.arguments]),!0,!1,!1)),void 0,[])}return kn(oe,q,e)}function op(oe,ut,tn,an){const wn=oe.length,or=la(r2(oe,ze,(z,Ve,kt,On)=>Ve(z,tn,an&&On===wn)));if(or.length===1){const z=or[0];if(ut&&!u.downlevelIteration||PV(z.expression)||kM(z.expression,"___spreadArray"))return z.expression}const ti=r(),Ti=or[0].kind!==0;let $i=Ti?t.createArrayLiteralExpression():or[0].expression;for(let z=Ti?0:1;z0&&an.push(t.createStringLiteral(tn.literal.text)),ut=t.createCallExpression(t.createPropertyAccessExpression(ut,"concat"),void 0,an)}return vt(ut,oe)}function Jl(){return t.createUniqueName("_super",48)}function rf(oe,ut){const tn=A&8&&!ut?t.createPropertyAccessExpression(jr(Jl(),oe),"prototype"):Jl();return jr(tn,oe),Dc(tn,oe),Ua(tn,oe),tn}function bd(oe){return oe.keywordToken===105&&oe.name.escapedText==="target"?(A|=32768,t.createUniqueName("_newTarget",48)):oe}function ld(oe,ut,tn){if(k&1&&Yo(ut)){const an=O(32670,Qa(ut)&16?81:65);h(oe,ut,tn),G(an,0,0);return}h(oe,ut,tn)}function jp(){k&2||(k|=2,e.enableSubstitution(80))}function Eu(){k&1||(k|=1,e.enableSubstitution(110),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(220),e.enableEmitNotification(219),e.enableEmitNotification(263))}function Xf(oe,ut){return ut=g(oe,ut),oe===1?Ng(ut):He(ut)?G_(ut):ut}function G_(oe){if(k&2&&!Aj(oe)){const ut=jo(oe,He);if(ut&&Cg(ut))return vt(t.getGeneratedNameForNode(ut),oe)}return oe}function Cg(oe){switch(oe.parent.kind){case 209:case 264:case 267:case 261:return oe.parent.name===oe&&d.isDeclarationWithCollidingName(oe.parent)}return!1}function Ng(oe){switch(oe.kind){case 80:return ap(oe);case 110:return bh(oe)}return oe}function ap(oe){if(k&2&&!Aj(oe)){const ut=d.getReferencedDeclarationWithCollidingName(oe);if(ut&&!(ui(ut)&&Xc(ut,oe)))return vt(t.getGeneratedNameForNode(Oo(ut)),oe)}return oe}function Xc(oe,ut){let tn=jo(ut);if(!tn||tn===oe||tn.end<=oe.pos||tn.pos>=oe.end)return!1;const an=sh(oe);for(;tn;){if(tn===an||tn===oe)return!1;if(Tc(tn)&&tn.parent===oe)return!0;tn=tn.parent}return!1}function bh(oe){return k&1&&A&16?vt(X(),oe):oe}function Tf(oe,ut){return ua(ut)?t.getInternalName(oe):t.createPropertyAccessExpression(t.getInternalName(oe),"prototype")}function p_(oe,ut){if(!oe||!ut||yt(oe.parameters))return!1;const tn=Ic(oe.body.statements);if(!tn||!Os(tn)||tn.kind!==245)return!1;const an=tn.expression;if(!Os(an)||an.kind!==214)return!1;const wn=an.expression;if(!Os(wn)||wn.kind!==108)return!1;const or=og(an.arguments);if(!or||!Os(or)||or.kind!==231)return!1;const ti=or.expression;return He(ti)&&ti.escapedText==="arguments"}}function XHe(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 xae(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),d=Ga(u),g=e.getEmitResolver(),h=e.onSubstituteNode;e.onSubstituteNode=he;let y,E,A,R,N,P,k,W,O,G,j=1,J,Z,q,ye,ie=0,K=0,pe,de,fe,ve,xe,X,Ce,Je;return hh(e,Se);function Se(ze){if(ze.isDeclarationFile||!(ze.transformFlags&2048))return ze;const Jt=kn(ze,re,e);return Ag(Jt,e.readEmitHelpers()),Jt}function re(ze){const Jt=ze.transformFlags;return R?be(ze):A?Ne(ze):Ms(ze)&&ze.asteriskToken?lt(ze):Jt&2048?kn(ze,re,e):ze}function be(ze){switch(ze.kind){case 247:return $o(ze);case 248:return Mn(ze);case 256:return It(ze);case 257:return nt(ze);default:return Ne(ze)}}function Ne(ze){switch(ze.kind){case 263:return ce(ze);case 219:return Re(ze);case 178:case 179:return _e(ze);case 244:return Ge(ze);case 249:return ot(ze);case 250:return le(ze);case 253:return it(ze);case 252:return ne(ze);case 254:return Lt(ze);default:return ze.transformFlags&1048576?Be(ze):ze.transformFlags&4196352?kn(ze,re,e):ze}}function Be(ze){switch(ze.kind){case 227:return We(ze);case 357:return gn(ze);case 228:return _t(ze);case 230:return en(ze);case 210:return ir(ze);case 211:return lo(ze);case 213:return zt(ze);case 214:return Zr(ze);case 215:return Ai(ze);default:return kn(ze,re,e)}}function lt(ze){switch(ze.kind){case 263:return ce(ze);case 219:return Re(ze);default:return C.failBadSyntaxKind(ze)}}function ce(ze){if(ze.asteriskToken)ze=jr(vt(t.createFunctionDeclaration(ze.modifiers,void 0,ze.name,void 0,zl(ze.parameters,re,e),void 0,je(ze.body)),ze),ze);else{const Jt=A,er=R;A=!1,R=!1,ze=kn(ze,re,e),A=Jt,R=er}if(A){s(ze);return}else return ze}function Re(ze){if(ze.asteriskToken)ze=jr(vt(t.createFunctionExpression(void 0,void 0,ze.name,void 0,zl(ze.parameters,re,e),void 0,je(ze.body)),ze),ze);else{const Jt=A,er=R;A=!1,R=!1,ze=kn(ze,re,e),A=Jt,R=er}return ze}function _e(ze){const Jt=A,er=R;return A=!1,R=!1,ze=kn(ze,re,e),A=Jt,R=er,ze}function je(ze){const Jt=[],er=A,go=R,Za=N,es=P,Va=k,Pc=W,tl=O,kl=G,Jl=j,rf=J,bd=Z,ld=q,jp=ye;A=!0,R=!1,N=void 0,P=void 0,k=void 0,W=void 0,O=void 0,G=void 0,j=1,J=void 0,Z=void 0,q=void 0,ye=t.createTempVariable(void 0),i();const Eu=t.copyPrologue(ze.statements,Jt,!1,re);Ni(ze.statements,Eu);const Xf=pt();return mg(Jt,o()),Jt.push(t.createReturnStatement(Xf)),A=er,R=go,N=Za,P=es,k=Va,W=Pc,O=tl,G=kl,j=Jl,J=rf,Z=bd,q=ld,ye=jp,vt(t.createBlock(Jt,ze.multiLine),ze)}function Ge(ze){if(ze.transformFlags&1048576){dr(ze.declarationList);return}else{if(Qa(ze)&2097152)return ze;for(const er of ze.declarationList.declarations)l(er.name);const Jt=fM(ze.declarationList);return Jt.length===0?void 0:Ua(t.createExpressionStatement(t.inlineExpressions(Vt(Jt,ri))),ze)}}function We(ze){const Jt=OG(ze);switch(Jt){case 0:return Wt(ze);case 1:return at(ze);default:return C.assertNever(Jt)}}function at(ze){const{left:Jt,right:er}=ze;if(Oe(er)){let go;switch(Jt.kind){case 212:go=t.updatePropertyAccessExpression(Jt,te(C.checkDefined(st(Jt.expression,re,$u))),Jt.name);break;case 213:go=t.updateElementAccessExpression(Jt,te(C.checkDefined(st(Jt.expression,re,$u))),te(C.checkDefined(st(Jt.argumentExpression,re,St))));break;default:go=C.checkDefined(st(Jt,re,St));break}const Za=ze.operatorToken.kind;return aP(Za)?vt(t.createAssignment(go,vt(t.createBinaryExpression(te(go),sP(Za),C.checkDefined(st(er,re,St))),ze)),ze):t.updateBinaryExpression(ze,go,ze.operatorToken,C.checkDefined(st(er,re,St)))}return kn(ze,re,e)}function Wt(ze){return Oe(ze.right)?Tne(ze.operatorToken.kind)?Kn(ze):ze.operatorToken.kind===28?cn(ze):t.updateBinaryExpression(ze,te(C.checkDefined(st(ze.left,re,St))),ze.operatorToken,C.checkDefined(st(ze.right,re,St))):kn(ze,re,e)}function cn(ze){let Jt=[];return er(ze.left),er(ze.right),t.inlineExpressions(Jt);function er(go){Nr(go)&&go.operatorToken.kind===28?(er(go.left),er(go.right)):(Oe(go)&&Jt.length>0&&(Y(1,[t.createExpressionStatement(t.inlineExpressions(Jt))]),Jt=[]),Jt.push(C.checkDefined(st(go,re,St))))}}function gn(ze){let Jt=[];for(const er of ze.elements)Nr(er)&&er.operatorToken.kind===28?Jt.push(cn(er)):(Oe(er)&&Jt.length>0&&(Y(1,[t.createExpressionStatement(t.inlineExpressions(Jt))]),Jt=[]),Jt.push(C.checkDefined(st(er,re,St))));return t.inlineExpressions(Jt)}function Kn(ze){const Jt=Xt(),er=xt();return is(er,C.checkDefined(st(ze.left,re,St)),ze.left),ze.operatorToken.kind===56?As(Jt,er,ze.left):Zt(Jt,er,ze.left),is(er,C.checkDefined(st(ze.right,re,St)),ze.right),Pe(Jt),er}function _t(ze){if(Oe(ze.whenTrue)||Oe(ze.whenFalse)){const Jt=Xt(),er=Xt(),go=xt();return As(Jt,C.checkDefined(st(ze.condition,re,St)),ze.condition),is(go,C.checkDefined(st(ze.whenTrue,re,St)),ze.whenTrue),qa(er),Pe(Jt),is(go,C.checkDefined(st(ze.whenFalse,re,St)),ze.whenFalse),Pe(er),go}return kn(ze,re,e)}function en(ze){const Jt=Xt(),er=st(ze.expression,re,St);if(ze.asteriskToken){const go=Qa(ze.expression)&8388608?er:vt(r().createValuesHelper(er),ze);ql(go,ze)}else lc(er,ze);return Pe(Jt),bf(ze)}function ir(ze){return Di(ze.elements,void 0,void 0,ze.multiLine)}function Di(ze,Jt,er,go){const Za=Nt(ze);let es;if(Za>0){es=xt();const tl=Xn(ze,re,St,0,Za);is(es,t.createArrayLiteralExpression(Jt?[Jt,...tl]:tl)),Jt=void 0}const Va=_u(ze,Pc,[],Za);return es?t.createArrayConcatCall(es,[t.createArrayLiteralExpression(Va,go)]):vt(t.createArrayLiteralExpression(Jt?[Jt,...Va]:Va,go),er);function Pc(tl,kl){if(Oe(kl)&&tl.length>0){const Jl=es!==void 0;es||(es=xt()),is(es,Jl?t.createArrayConcatCall(es,[t.createArrayLiteralExpression(tl,go)]):t.createArrayLiteralExpression(Jt?[Jt,...tl]:tl,go)),Jt=void 0,tl=[]}return tl.push(C.checkDefined(st(kl,re,St))),tl}}function lo(ze){const Jt=ze.properties,er=ze.multiLine,go=Nt(Jt),Za=xt();is(Za,t.createObjectLiteralExpression(Xn(Jt,re,ny,0,go),er));const es=_u(Jt,Va,[],go);return es.push(er?ou(ps(vt(t.cloneNode(Za),Za),Za.parent)):Za),t.inlineExpressions(es);function Va(Pc,tl){Oe(tl)&&Pc.length>0&&(fa(t.createExpressionStatement(t.inlineExpressions(Pc))),Pc=[]);const kl=Aie(t,ze,tl,Za),Jl=st(kl,re,St);return Jl&&(er&&ou(Jl),Pc.push(Jl)),Pc}}function zt(ze){return Oe(ze.argumentExpression)?t.updateElementAccessExpression(ze,te(C.checkDefined(st(ze.expression,re,$u))),C.checkDefined(st(ze.argumentExpression,re,St))):kn(ze,re,e)}function Zr(ze){if(!Qu(ze)&&Ye(ze.arguments,Oe)){const{target:Jt,thisArg:er}=t.createCallBinding(ze.expression,l,d,!0);return jr(vt(t.createFunctionApplyCall(te(C.checkDefined(st(Jt,re,$u))),er,Di(ze.arguments)),ze),ze)}return kn(ze,re,e)}function Ai(ze){if(Ye(ze.arguments,Oe)){const{target:Jt,thisArg:er}=t.createCallBinding(t.createPropertyAccessExpression(ze.expression,"bind"),l);return jr(vt(t.createNewExpression(t.createFunctionApplyCall(te(C.checkDefined(st(Jt,re,St))),er,Di(ze.arguments,t.createVoidZero())),void 0,[]),ze),ze)}return kn(ze,re,e)}function Ni(ze,Jt=0){const er=ze.length;for(let go=Jt;go0)break;Za.push(ri(Va))}Za.length&&(fa(t.createExpressionStatement(t.inlineExpressions(Za))),go+=Za.length,Za=[])}}function ri(ze){return Ua(t.createAssignment(Ua(t.cloneNode(ze.name),ze.name),C.checkDefined(st(ze.initializer,re,St))),ze)}function ai(ze){if(Oe(ze))if(Oe(ze.thenStatement)||Oe(ze.elseStatement)){const Jt=Xt(),er=ze.elseStatement?Xt():void 0;As(ze.elseStatement?er:Jt,C.checkDefined(st(ze.expression,re,St)),ze.expression),Pr(ze.thenStatement),ze.elseStatement&&(qa(Jt),Pe(er),Pr(ze.elseStatement)),Pe(Jt)}else fa(st(ze,re,Vi));else fa(st(ze,re,Vi))}function qi(ze){if(Oe(ze)){const Jt=Xt(),er=Xt();wt(Jt),Pe(er),Pr(ze.statement),Pe(Jt),Zt(er,C.checkDefined(st(ze.expression,re,St))),En()}else fa(st(ze,re,Vi))}function $o(ze){return R?(yn(),ze=kn(ze,re,e),En(),ze):kn(ze,re,e)}function Ia(ze){if(Oe(ze)){const Jt=Xt(),er=wt(Jt);Pe(Jt),As(er,C.checkDefined(st(ze.expression,re,St))),Pr(ze.statement),qa(Jt),En()}else fa(st(ze,re,Vi))}function Mn(ze){return R?(yn(),ze=kn(ze,re,e),En(),ze):kn(ze,re,e)}function Uo(ze){if(Oe(ze)){const Jt=Xt(),er=Xt(),go=wt(er);if(ze.initializer){const Za=ze.initializer;_d(Za)?dr(Za):fa(vt(t.createExpressionStatement(C.checkDefined(st(Za,re,St))),Za))}Pe(Jt),ze.condition&&As(go,C.checkDefined(st(ze.condition,re,St))),Pr(ze.statement),Pe(er),ze.incrementor&&fa(vt(t.createExpressionStatement(C.checkDefined(st(ze.incrementor,re,St))),ze.incrementor)),qa(Jt),En()}else fa(st(ze,re,Vi))}function ot(ze){R&&yn();const Jt=ze.initializer;if(Jt&&_d(Jt)){for(const go of Jt.declarations)l(go.name);const er=fM(Jt);ze=t.updateForStatement(ze,er.length>0?t.inlineExpressions(Vt(er,ri)):void 0,st(ze.condition,re,St),st(ze.incrementor,re,St),Ou(ze.statement,re,e))}else ze=kn(ze,re,e);return R&&En(),ze}function Ft(ze){if(Oe(ze)){const Jt=xt(),er=xt(),go=xt(),Za=t.createLoopVariable(),es=ze.initializer;l(Za),is(Jt,C.checkDefined(st(ze.expression,re,St))),is(er,t.createArrayLiteralExpression()),fa(t.createForInStatement(go,Jt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(er,"push"),void 0,[go])))),is(Za,t.createNumericLiteral(0));const Va=Xt(),Pc=Xt(),tl=wt(Pc);Pe(Va),As(tl,t.createLessThan(Za,t.createPropertyAccessExpression(er,"length"))),is(go,t.createElementAccessExpression(er,Za)),As(Pc,t.createBinaryExpression(go,103,Jt));let kl;if(_d(es)){for(const Jl of es.declarations)l(Jl.name);kl=t.cloneNode(es.declarations[0].name)}else kl=C.checkDefined(st(es,re,St)),C.assert($u(kl));is(kl,go),Pr(ze.statement),Pe(Pc),fa(t.createExpressionStatement(t.createPostfixIncrement(Za))),qa(Va),En()}else fa(st(ze,re,Vi))}function le(ze){R&&yn();const Jt=ze.initializer;if(_d(Jt)){for(const er of Jt.declarations)l(er.name);ze=t.updateForInStatement(ze,Jt.declarations[0].name,C.checkDefined(st(ze.expression,re,St)),C.checkDefined(st(ze.statement,re,Vi,t.liftToBlock)))}else ze=kn(ze,re,e);return R&&En(),ze}function ht(ze){const Jt=Go(ze.label?Kr(ze.label):void 0);Jt>0?qa(Jt,ze):fa(ze)}function ne(ze){if(R){const Jt=Go(ze.label&&Kr(ze.label));if(Jt>0)return Ra(Jt,ze)}return kn(ze,re,e)}function Fe(ze){const Jt=co(ze.label?Kr(ze.label):void 0);Jt>0?qa(Jt,ze):fa(ze)}function it(ze){if(R){const Jt=co(ze.label&&Kr(ze.label));if(Jt>0)return Ra(Jt,ze)}return kn(ze,re,e)}function dt(ze){vd(st(ze.expression,re,St),ze)}function Lt(ze){return tc(st(ze.expression,re,St),ze)}function Ue(ze){Oe(ze)?(Jn(te(C.checkDefined(st(ze.expression,re,St)))),Pr(ze.statement),ft()):fa(st(ze,re,Vi))}function Rt(ze){if(Oe(ze.caseBlock)){const Jt=ze.caseBlock,er=Jt.clauses.length,go=Ln(),Za=te(C.checkDefined(st(ze.expression,re,St))),es=[];let Va=-1;for(let kl=0;kl0)break;tl.push(t.createCaseClause(C.checkDefined(st(rf.expression,re,St)),[Ra(es[Jl],rf.expression)]))}else kl++}tl.length&&(fa(t.createSwitchStatement(Za,t.createCaseBlock(tl))),Pc+=tl.length,tl=[]),kl>0&&(Pc+=kl,kl=0)}Va>=0?qa(es[Va]):qa(go);for(let kl=0;kl=0;er--){const go=W[er];if(Gl(go)){if(go.labelText===ze)return!0}else break}return!1}function co(ze){if(W)if(ze)for(let Jt=W.length-1;Jt>=0;Jt--){const er=W[Jt];if(Gl(er)&&er.labelText===ze)return er.breakLabel;if(zo(er)&&Ps(ze,Jt-1))return er.breakLabel}else for(let Jt=W.length-1;Jt>=0;Jt--){const er=W[Jt];if(zo(er))return er.breakLabel}return 0}function Go(ze){if(W)if(ze)for(let Jt=W.length-1;Jt>=0;Jt--){const er=W[Jt];if(xl(er)&&Ps(ze,Jt-1))return er.continueLabel}else for(let Jt=W.length-1;Jt>=0;Jt--){const er=W[Jt];if(xl(er))return er.continueLabel}return 0}function Sc(ze){if(ze!==void 0&&ze>0){G===void 0&&(G=[]);const Jt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return G[ze]===void 0?G[ze]=[Jt]:G[ze].push(Jt),Jt}return t.createOmittedExpression()}function $s(ze){const Jt=t.createNumericLiteral(ze);return LM(Jt,3,XHe(ze)),Jt}function Ra(ze,Jt){return C.assertLessThan(0,ze,"Invalid label"),vt(t.createReturnStatement(t.createArrayLiteralExpression([$s(3),Sc(ze)])),Jt)}function tc(ze,Jt){return vt(t.createReturnStatement(t.createArrayLiteralExpression(ze?[$s(2),ze]:[$s(2)])),Jt)}function bf(ze){return vt(t.createCallExpression(t.createPropertyAccessExpression(ye,"sent"),void 0,[]),ze)}function Lo(){Y(0)}function fa(ze){ze?Y(1,[ze]):Lo()}function is(ze,Jt,er){Y(2,[ze,Jt],er)}function qa(ze,Jt){Y(3,[ze],Jt)}function Zt(ze,Jt,er){Y(4,[ze,Jt],er)}function As(ze,Jt,er){Y(5,[ze,Jt],er)}function ql(ze,Jt){Y(7,[ze],Jt)}function lc(ze,Jt){Y(6,[ze],Jt)}function vd(ze,Jt){Y(8,[ze],Jt)}function Fs(ze,Jt){Y(9,[ze],Jt)}function Ee(){Y(10)}function Y(ze,Jt,er){J===void 0&&(J=[],Z=[],q=[]),O===void 0&&Pe(Xt());const go=J.length;J[go]=ze,Z[go]=Jt,q[go]=er}function pt(){ie=0,K=0,pe=void 0,de=!1,fe=!1,ve=void 0,xe=void 0,X=void 0,Ce=void 0,Je=void 0;const ze=qt();return r().createGeneratorHelper(Cr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ye)],void 0,t.createBlock(ze,ze.length>0)),1048576))}function qt(){if(J){for(let ze=0;ze=0;Jt--){const er=Je[Jt];xe=[t.createWithStatement(er.expression,t.createBlock(xe))]}if(Ce){const{startLabel:Jt,catchLabel:er,finallyLabel:go,endLabel:Za}=Ce;xe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ye,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Sc(Jt),Sc(er),Sc(go),Sc(Za)])]))),Ce=void 0}ze&&xe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ye,"label"),t.createNumericLiteral(K+1))))}ve.push(t.createCaseClause(t.createNumericLiteral(K),xe||[])),xe=void 0}function Fn(ze){if(O)for(let Jt=0;Jt{(!ds(te.arguments[0])||uk(te.arguments[0].text,u))&&(k=Bn(k,te))});const Ae=t(y)(he);return N=void 0,P=void 0,O=!1,Ae}function j(){return Tg(N.fileName)&&N.commonJsModuleIndicator&&(!N.externalModuleIndicator||N.externalModuleIndicator===!0)?!1:!!(!P.exportEquals&&Bc(N))}function J(he){o();const B=[],Ae=Vd(u,"alwaysStrict")||Bc(N),te=r.copyPrologue(he.statements,B,Ae&&!Ff(he),de);if(j()&&Bn(B,Fe()),yt(P.exportedNames))for(let Pe=0;PeBt.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(Bt.text)),gt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Kr(Bt))),gt),r.createVoidZero())));for(const Xt of P.exportedFunctions)le(B,Xt);Bn(B,st(P.externalHelpersImportDeclaration,de,Vi)),Xr(B,Xn(he.statements,de,Vi,te)),pe(B,!1),mg(B,s());const xt=r.updateSourceFile(he,vt(r.createNodeArray(B),he.statements));return Ag(xt,e.readEmitHelpers()),xt}function Z(he){const B=r.createIdentifier("define"),Ae=mw(r,he,g,u),te=Ff(he)&&he,{aliasedModuleNames:xt,unaliasedModuleNames:Xt,importAliasNames:Pe}=ye(he,!0),gt=r.updateSourceFile(he,vt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(B,void 0,[...Ae?[Ae]:[],r.createArrayLiteralExpression(te?ae:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...xt,...Xt]),te?te.statements.length?te.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"),...Pe],void 0,K(he))]))]),he.statements));return Ag(gt,e.readEmitHelpers()),gt}function q(he){const{aliasedModuleNames:B,unaliasedModuleNames:Ae,importAliasNames:te}=ye(he,!1),xt=mw(r,he,g,u),Xt=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,vt(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),Cr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...xt?[xt]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...B,...Ae]),r.createIdentifier("factory")]))])))],!0),void 0)),Pe=r.updateSourceFile(he,vt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Xt,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"),...te],void 0,K(he))]))]),he.statements));return Ag(Pe,e.readEmitHelpers()),Pe}function ye(he,B){const Ae=[],te=[],xt=[];for(const Xt of he.amdDependencies)Xt.name?(Ae.push(r.createStringLiteral(Xt.path)),xt.push(r.createParameterDeclaration(void 0,void 0,Xt.name))):te.push(r.createStringLiteral(Xt.path));for(const Xt of P.externalImports){const Pe=YI(r,Xt,N,g,d,u),gt=MD(r,Xt,N);Pe&&(B&>?(Cr(gt,8),Ae.push(Pe),xt.push(r.createParameterDeclaration(void 0,void 0,gt))):te.push(Pe))}return{aliasedModuleNames:Ae,unaliasedModuleNames:te,importAliasNames:xt}}function ie(he){if(zc(he)||fc(he)||!YI(r,he,N,g,d,u))return;const B=MD(r,he,N),Ae=Ni(he,B);if(Ae!==B)return r.createExpressionStatement(r.createAssignment(B,Ae))}function K(he){o();const B=[],Ae=r.copyPrologue(he.statements,B,!0,de);j()&&Bn(B,Fe()),yt(P.exportedNames)&&Bn(B,r.createExpressionStatement(_u(P.exportedNames,(xt,Xt)=>Xt.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(Xt.text)),xt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Kr(Xt))),xt),r.createVoidZero())));for(const xt of P.exportedFunctions)le(B,xt);Bn(B,st(P.externalHelpersImportDeclaration,de,Vi)),y===2&&Xr(B,Ui(P.externalImports,ie)),Xr(B,Xn(he.statements,de,Vi,Ae)),pe(B,!0),mg(B,s());const te=r.createBlock(B,!0);return O&&OI(te,YHe),te}function pe(he,B){if(P.exportEquals){const Ae=st(P.exportEquals.expression,xe,St);if(Ae)if(B){const te=r.createReturnStatement(Ae);vt(te,P.exportEquals),Cr(te,3840),he.push(te)}else{const te=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Ae));vt(te,P.exportEquals),Cr(te,3072),he.push(te)}}}function de(he){switch(he.kind){case 273:return Pr(he);case 272:return $e(he);case 279:return At(he);case 278:return mn(he);default:return fe(he)}}function fe(he){switch(he.kind){case 244:return ai(he);case 263:return dr(he);case 264:return ri(he);case 249:return Se(he,!0);case 250:return re(he);case 251:return be(he);case 247:return Ne(he);case 248:return Be(he);case 257:return lt(he);case 255:return ce(he);case 246:return Re(he);case 256:return _e(he);case 270:return je(he);case 297:return Ge(he);case 298:return We(he);case 259:return at(he);case 300:return Wt(he);case 242:return cn(he);default:return xe(he)}}function ve(he,B){if(!(he.transformFlags&276828160)&&!k?.length)return he;switch(he.kind){case 249:return Se(he,!1);case 245:return gn(he);case 218:return Kn(he,B);case 356:return _t(he,B);case 214:const Ae=he===Ic(k);if(Ae&&k.shift(),Qu(he)&&g.shouldTransformImportCall(N))return Di(he,Ae);if(Ae)return ir(he);break;case 227:if(nv(he))return Je(he,B);break;case 225:case 226:return en(he,B)}return kn(he,xe,e)}function xe(he){return ve(he,!1)}function X(he){return ve(he,!0)}function Ce(he){if(Wa(he))for(const B of he.properties)switch(B.kind){case 304:if(Ce(B.initializer))return!0;break;case 305:if(Ce(B.name))return!0;break;case 306:if(Ce(B.expression))return!0;break;case 175:case 178:case 179:return!1;default:C.assertNever(B,"Unhandled object member kind")}else if(Cd(he)){for(const B of he.elements)if(qf(B)){if(Ce(B.expression))return!0}else if(Ce(B))return!0}else if(He(he))return et(Nt(he))>(y4(he)?1:0);return!1}function Je(he,B){return Ce(he.left)?P1(he,xe,e,0,!B,qi):kn(he,xe,e)}function Se(he,B){if(B&&he.initializer&&_d(he.initializer)&&!(he.initializer.flags&7)){const Ae=ot(void 0,he.initializer,!1);if(Ae){const te=[],xt=st(he.initializer,X,_d),Xt=r.createVariableStatement(void 0,xt);te.push(Xt),Xr(te,Ae);const Pe=st(he.condition,xe,St),gt=st(he.incrementor,X,St),Bt=Ou(he.statement,B?fe:xe,e);return te.push(r.updateForStatement(he,void 0,Pe,gt,Bt)),te}}return r.updateForStatement(he,st(he.initializer,X,Of),st(he.condition,xe,St),st(he.incrementor,X,St),Ou(he.statement,B?fe:xe,e))}function re(he){if(_d(he.initializer)&&!(he.initializer.flags&7)){const B=ot(void 0,he.initializer,!0);if(yt(B)){const Ae=st(he.initializer,X,Of),te=st(he.expression,xe,St),xt=Ou(he.statement,fe,e),Xt=ea(xt)?r.updateBlock(xt,[...B,...xt.statements]):r.createBlock([...B,xt],!0);return r.updateForInStatement(he,Ae,te,Xt)}}return r.updateForInStatement(he,st(he.initializer,X,Of),st(he.expression,xe,St),Ou(he.statement,fe,e))}function be(he){if(_d(he.initializer)&&!(he.initializer.flags&7)){const B=ot(void 0,he.initializer,!0),Ae=st(he.initializer,X,Of),te=st(he.expression,xe,St);let xt=Ou(he.statement,fe,e);return yt(B)&&(xt=ea(xt)?r.updateBlock(xt,[...B,...xt.statements]):r.createBlock([...B,xt],!0)),r.updateForOfStatement(he,he.awaitModifier,Ae,te,xt)}return r.updateForOfStatement(he,he.awaitModifier,st(he.initializer,X,Of),st(he.expression,xe,St),Ou(he.statement,fe,e))}function Ne(he){return r.updateDoStatement(he,Ou(he.statement,fe,e),st(he.expression,xe,St))}function Be(he){return r.updateWhileStatement(he,st(he.expression,xe,St),Ou(he.statement,fe,e))}function lt(he){return r.updateLabeledStatement(he,he.label,st(he.statement,fe,Vi,r.liftToBlock)??vt(r.createEmptyStatement(),he.statement))}function ce(he){return r.updateWithStatement(he,st(he.expression,xe,St),C.checkDefined(st(he.statement,fe,Vi,r.liftToBlock)))}function Re(he){return r.updateIfStatement(he,st(he.expression,xe,St),st(he.thenStatement,fe,Vi,r.liftToBlock)??r.createBlock([]),st(he.elseStatement,fe,Vi,r.liftToBlock))}function _e(he){return r.updateSwitchStatement(he,st(he.expression,xe,St),C.checkDefined(st(he.caseBlock,fe,VM)))}function je(he){return r.updateCaseBlock(he,Xn(he.clauses,fe,pF))}function Ge(he){return r.updateCaseClause(he,st(he.expression,xe,St),Xn(he.statements,fe,Vi))}function We(he){return kn(he,fe,e)}function at(he){return kn(he,fe,e)}function Wt(he){return r.updateCatchClause(he,he.variableDeclaration,C.checkDefined(st(he.block,fe,ea)))}function cn(he){return he=kn(he,fe,e),he}function gn(he){return r.updateExpressionStatement(he,st(he.expression,X,St))}function Kn(he,B){return r.updateParenthesizedExpression(he,st(he.expression,B?X:xe,St))}function _t(he,B){return r.updatePartiallyEmittedExpression(he,st(he.expression,B?X:xe,St))}function en(he,B){if((he.operator===46||he.operator===47)&&He(he.operand)&&!pl(he.operand)&&!fy(he.operand)&&!sV(he.operand)){const Ae=Nt(he.operand);if(Ae){let te,xt=st(he.operand,xe,St);XT(he)?xt=r.updatePrefixUnaryExpression(he,xt):(xt=r.updatePostfixUnaryExpression(he,xt),B||(te=r.createTempVariable(l),xt=r.createAssignment(te,xt),vt(xt,he)),xt=r.createComma(xt,r.cloneNode(he.operand)),vt(xt,he));for(const Xt of Ae)W[ls(xt)]=!0,xt=dt(Xt,xt),vt(xt,he);return te&&(W[ls(xt)]=!0,xt=r.createComma(xt,te),vt(xt,he)),xt}}return kn(he,xe,e)}function ir(he){return r.updateCallExpression(he,he.expression,void 0,Xn(he.arguments,B=>B===he.arguments[0]?ds(B)?rx(B,u):i().createRewriteRelativeImportExtensionsHelper(B):xe(B),St))}function Di(he,B){if(y===0&&h>=7)return kn(he,xe,e);const Ae=YI(r,he,N,g,d,u),te=st(Ic(he.arguments),xe,St),xt=Ae&&(!te||!ka(te)||te.text!==Ae.text)?Ae:te&&B?ka(te)?rx(te,u):i().createRewriteRelativeImportExtensionsHelper(te):te,Xt=!!(he.transformFlags&16384);switch(u.module){case 2:return zt(xt,Xt);case 3:return lo(xt??r.createVoidZero(),Xt);case 1:default:return Zr(xt)}}function lo(he,B){if(O=!0,JS(he)){const Ae=pl(he)?he:ka(he)?r.createStringLiteralFromNode(he):Cr(vt(r.cloneNode(he),he),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Zr(he),void 0,zt(Ae,B))}else{const Ae=r.createTempVariable(l);return r.createComma(r.createAssignment(Ae,he),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Zr(Ae,!0),void 0,zt(Ae,B)))}}function zt(he,B){const Ae=r.createUniqueName("resolve"),te=r.createUniqueName("reject"),xt=[r.createParameterDeclaration(void 0,void 0,Ae),r.createParameterDeclaration(void 0,void 0,te)],Xt=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([he||r.createOmittedExpression()]),Ae,te]))]);let Pe;h>=2?Pe=r.createArrowFunction(void 0,void 0,xt,void 0,void 0,Xt):(Pe=r.createFunctionExpression(void 0,void 0,void 0,void 0,xt,void 0,Xt),B&&Cr(Pe,16));const gt=r.createNewExpression(r.createIdentifier("Promise"),void 0,[Pe]);return $h(u)?r.createCallExpression(r.createPropertyAccessExpression(gt,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):gt}function Zr(he,B){const Ae=he&&!z_(he)&&!B,te=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Ae?h>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(he,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[he])]:[]);let xt=r.createCallExpression(r.createIdentifier("require"),void 0,Ae?[r.createIdentifier("s")]:he?[he]:[]);$h(u)&&(xt=i().createImportStarHelper(xt));const Xt=Ae?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let Pe;return h>=2?Pe=r.createArrowFunction(void 0,void 0,Xt,void 0,void 0,xt):Pe=r.createFunctionExpression(void 0,void 0,void 0,void 0,Xt,void 0,r.createBlock([r.createReturnStatement(xt)])),r.createCallExpression(r.createPropertyAccessExpression(te,"then"),void 0,[Pe])}function Ai(he,B){return!$h(u)||Fm(he)&2?B:Qoe(he)?i().createImportStarHelper(B):B}function Ni(he,B){return!$h(u)||Fm(he)&2?B:n3(he)?i().createImportStarHelper(B):MU(he)?i().createImportDefaultHelper(B):B}function Pr(he){let B;const Ae=QR(he);if(y!==2)if(he.importClause){const te=[];Ae&&!o1(he)?te.push(r.createVariableDeclaration(r.cloneNode(Ae.name),void 0,void 0,Ni(he,Ci(he)))):(te.push(r.createVariableDeclaration(r.getGeneratedNameForNode(he),void 0,void 0,Ni(he,Ci(he)))),Ae&&o1(he)&&te.push(r.createVariableDeclaration(r.cloneNode(Ae.name),void 0,void 0,r.getGeneratedNameForNode(he)))),B=Bn(B,jr(vt(r.createVariableStatement(void 0,r.createVariableDeclarationList(te,h>=2?2:0)),he),he))}else return jr(vt(r.createExpressionStatement(Ci(he)),he),he);else Ae&&o1(he)&&(B=Bn(B,r.createVariableStatement(void 0,r.createVariableDeclarationList([jr(vt(r.createVariableDeclaration(r.cloneNode(Ae.name),void 0,void 0,r.getGeneratedNameForNode(he)),he),he)],h>=2?2:0))));return B=Ia(B,he),I_(B)}function Ci(he){const B=YI(r,he,N,g,d,u),Ae=[];return B&&Ae.push(rx(B,u)),r.createCallExpression(r.createIdentifier("require"),void 0,Ae)}function $e(he){C.assert(WT(he),"import= for internal module references should be handled in an earlier transformer.");let B;return y!==2?di(he,32)?B=Bn(B,jr(vt(r.createExpressionStatement(dt(he.name,Ci(he))),he),he)):B=Bn(B,jr(vt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(he.name),void 0,void 0,Ci(he))],h>=2?2:0)),he),he)):di(he,32)&&(B=Bn(B,jr(vt(r.createExpressionStatement(dt(r.getExportName(he),r.getLocalName(he))),he),he))),B=Mn(B,he),I_(B)}function At(he){if(!he.moduleSpecifier)return;const B=r.getGeneratedNameForNode(he);if(he.exportClause&&Jf(he.exportClause)){const Ae=[];y!==2&&Ae.push(jr(vt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(B,void 0,void 0,Ci(he))])),he),he));for(const te of he.exportClause.elements){const xt=te.propertyName||te.name,Pe=!!$h(u)&&!(Fm(he)&2)&&N_(xt)?i().createImportDefaultHelper(B):B,gt=xt.kind===11?r.createElementAccessExpression(Pe,xt):r.createPropertyAccessExpression(Pe,xt);Ae.push(jr(vt(r.createExpressionStatement(dt(te.name.kind===11?r.cloneNode(te.name):r.getExportName(te),gt,void 0,!0)),te),te))}return I_(Ae)}else if(he.exportClause){const Ae=[];return Ae.push(jr(vt(r.createExpressionStatement(dt(r.cloneNode(he.exportClause.name),Ai(he,y!==2?Ci(he):AF(he)||he.exportClause.name.kind===11?B:r.createIdentifier(Kr(he.exportClause.name))))),he),he)),I_(Ae)}else return jr(vt(r.createExpressionStatement(i().createExportStarHelper(y!==2?Ci(he):B)),he),he)}function mn(he){if(!he.isExportEquals)return it(r.createIdentifier("default"),st(he.expression,xe,St),he,!0)}function dr(he){let B;return di(he,32)?B=Bn(B,jr(vt(r.createFunctionDeclaration(Xn(he.modifiers,Lt,Aa),he.asteriskToken,r.getDeclarationName(he,!0,!0),void 0,Xn(he.parameters,xe,to),void 0,kn(he.body,xe,e)),he),he)):B=Bn(B,kn(he,xe,e)),I_(B)}function ri(he){let B;return di(he,32)?B=Bn(B,jr(vt(r.createClassDeclaration(Xn(he.modifiers,Lt,fl),r.getDeclarationName(he,!0,!0),void 0,Xn(he.heritageClauses,xe,Fp),Xn(he.members,xe,Tc)),he),he)):B=Bn(B,kn(he,xe,e)),B=le(B,he),I_(B)}function ai(he){let B,Ae,te;if(di(he,32)){let xt,Xt=!1;for(const Pe of he.declarationList.declarations)if(He(Pe.name)&&fy(Pe.name))if(xt||(xt=Xn(he.modifiers,Lt,Aa)),Pe.initializer){const gt=r.updateVariableDeclaration(Pe,Pe.name,void 0,void 0,dt(Pe.name,st(Pe.initializer,xe,St)));Ae=Bn(Ae,gt)}else Ae=Bn(Ae,Pe);else if(Pe.initializer)if(!Qo(Pe.name)&&(Xs(Pe.initializer)||Us(Pe.initializer)||uc(Pe.initializer))){const gt=r.createAssignment(vt(r.createPropertyAccessExpression(r.createIdentifier("exports"),Pe.name),Pe.name),r.createIdentifier(zf(Pe.name))),Bt=r.createVariableDeclaration(Pe.name,Pe.exclamationToken,Pe.type,st(Pe.initializer,xe,St));Ae=Bn(Ae,Bt),te=Bn(te,gt),Xt=!0}else te=Bn(te,$o(Pe));if(Ae&&(B=Bn(B,r.updateVariableStatement(he,xt,r.updateVariableDeclarationList(he.declarationList,Ae)))),te){const Pe=jr(vt(r.createExpressionStatement(r.inlineExpressions(te)),he),he);Xt&&Zk(Pe),B=Bn(B,Pe)}}else B=Bn(B,kn(he,xe,e));return B=Uo(B,he),I_(B)}function qi(he,B,Ae){const te=Nt(he);if(te){let xt=y4(he)?B:r.createAssignment(he,B);for(const Xt of te)Cr(xt,8),xt=dt(Xt,xt,Ae);return xt}return r.createAssignment(he,B)}function $o(he){return Qo(he.name)?P1(st(he,xe,Pk),xe,e,0,!1,qi):r.createAssignment(vt(r.createPropertyAccessExpression(r.createIdentifier("exports"),he.name),he.name),he.initializer?st(he.initializer,xe,St):r.createVoidZero())}function Ia(he,B){if(P.exportEquals)return he;const Ae=B.importClause;if(!Ae)return he;const te=new VD;Ae.name&&(he=ht(he,te,Ae));const xt=Ae.namedBindings;if(xt)switch(xt.kind){case 275:he=ht(he,te,xt);break;case 276:for(const Xt of xt.elements)he=ht(he,te,Xt,!0);break}return he}function Mn(he,B){return P.exportEquals?he:ht(he,new VD,B)}function Uo(he,B){return ot(he,B.declarationList,!1)}function ot(he,B,Ae){if(P.exportEquals)return he;for(const te of B.declarations)he=Ft(he,te,Ae);return he}function Ft(he,B,Ae){if(P.exportEquals)return he;if(Qo(B.name))for(const te of B.name.elements)Jc(te)||(he=Ft(he,te,Ae));else!pl(B.name)&&(!yi(B)||B.initializer||Ae)&&(he=ht(he,new VD,B));return he}function le(he,B){if(P.exportEquals)return he;const Ae=new VD;if(di(B,32)){const te=di(B,2048)?r.createIdentifier("default"):r.getDeclarationName(B);he=ne(he,Ae,te,r.getLocalName(B),B)}return B.name&&(he=ht(he,Ae,B)),he}function ht(he,B,Ae,te){const xt=r.getDeclarationName(Ae),Xt=P.exportSpecifiers.get(xt);if(Xt)for(const Pe of Xt)he=ne(he,B,Pe.name,xt,Pe.name,void 0,te);return he}function ne(he,B,Ae,te,xt,Xt,Pe){if(Ae.kind!==11){if(B.has(Ae))return he;B.set(Ae,!0)}return he=Bn(he,it(Ae,te,xt,Xt,Pe)),he}function Fe(){const he=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())])]));return Cr(he,2097152),he}function it(he,B,Ae,te,xt){const Xt=vt(r.createExpressionStatement(dt(he,B,void 0,xt)),Ae);return ou(Xt),te||Cr(Xt,3072),Xt}function dt(he,B,Ae,te){return vt(te?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(he),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(B)])))])]):r.createAssignment(he.kind===11?r.createElementAccessExpression(r.createIdentifier("exports"),r.cloneNode(he)):r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(he)),B),Ae)}function Lt(he){switch(he.kind){case 95:case 90:return}return he}function Ue(he,B,Ae){B.kind===308?(N=B,P=R[Wu(N)],A(he,B,Ae),N=void 0,P=void 0):A(he,B,Ae)}function Rt(he,B){return B=E(he,B),B.id&&W[B.id]?B:he===1?Ot(B):Ud(B)?It(B):B}function It(he){const B=he.name,Ae=Tr(B);if(Ae!==B){if(he.objectAssignmentInitializer){const te=r.createAssignment(Ae,he.objectAssignmentInitializer);return vt(r.createPropertyAssignment(B,te),he)}return vt(r.createPropertyAssignment(B,Ae),he)}return he}function Ot(he){switch(he.kind){case 80:return Tr(he);case 214:return nt(he);case 216:return Kt(he);case 227:return Oe(he)}return he}function nt(he){if(He(he.expression)){const B=Tr(he.expression);if(W[ls(B)]=!0,!He(B)&&!(Qa(he.expression)&8192))return f1(r.updateCallExpression(he,B,void 0,he.arguments),16)}return he}function Kt(he){if(He(he.tag)){const B=Tr(he.tag);if(W[ls(B)]=!0,!He(B)&&!(Qa(he.tag)&8192))return f1(r.updateTaggedTemplateExpression(he,B,void 0,he.template),16)}return he}function Tr(he){var B,Ae;if(Qa(he)&8192){const te=fw(N);return te?r.createPropertyAccessExpression(te,he):he}else if(!(pl(he)&&!(he.emitNode.autoGenerate.flags&64))&&!fy(he)){const te=d.getReferencedExportContainer(he,y4(he));if(te&&te.kind===308)return vt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(he)),he);const xt=d.getReferencedImportDeclaration(he);if(xt){if(Vm(xt))return vt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(xt.parent),r.createIdentifier("default")),he);if(Su(xt)){const Xt=xt.propertyName||xt.name,Pe=r.getGeneratedNameForNode(((Ae=(B=xt.parent)==null?void 0:B.parent)==null?void 0:Ae.parent)||xt);return vt(Xt.kind===11?r.createElementAccessExpression(Pe,r.cloneNode(Xt)):r.createPropertyAccessExpression(Pe,r.cloneNode(Xt)),he)}}}return he}function Oe(he){if(sy(he.operatorToken.kind)&&He(he.left)&&(!pl(he.left)||D2(he.left))&&!fy(he.left)){const B=Nt(he.left);if(B){let Ae=he;for(const te of B)W[ls(Ae)]=!0,Ae=dt(te,Ae,he);return Ae}}return he}function Nt(he){if(pl(he)){if(D2(he)){const B=P?.exportSpecifiers.get(he);if(B){const Ae=[];for(const te of B)Ae.push(te.name);return Ae}}}else{const B=d.getReferencedImportDeclaration(he);if(B)return P?.exportedBindings[Wu(B)];const Ae=new Set,te=d.getReferencedValueDeclarations(he);if(te){for(const xt of te){const Xt=P?.exportedBindings[Wu(xt)];if(Xt)for(const Pe of Xt)Ae.add(Pe)}if(Ae.size)return Co(Ae)}}}}var YHe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function Rae(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),d=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=Fe,e.onEmitNode=ne,e.enableSubstitution(80),e.enableSubstitution(305),e.enableSubstitution(227),e.enableSubstitution(237),e.enableEmitNotification(308);const h=[],y=[],E=[],A=[];let R,N,P,k,W,O,G;return hh(e,j);function j(Oe){if(Oe.isDeclarationFile||!(UR(Oe,s)||Oe.transformFlags&8388608))return Oe;const Nt=Wu(Oe);R=Oe,O=Oe,N=h[Nt]=PU(e,Oe),P=t.createUniqueName("exports"),y[Nt]=P,k=A[Nt]=t.createUniqueName("context");const he=J(N.externalImports),B=Z(Oe,he),Ae=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,P),t.createParameterDeclaration(void 0,void 0,k)],void 0,B),te=mw(t,Oe,u,s),xt=t.createArrayLiteralExpression(Vt(he,Pe=>Pe.name)),Xt=Cr(t.updateSourceFile(Oe,vt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,te?[te,xt,Ae]:[xt,Ae]))]),Oe.statements)),2048);return s.outFile||zre(Xt,B,Pe=>!Pe.scoped),G&&(E[Nt]=G,G=void 0),R=void 0,N=void 0,P=void 0,k=void 0,W=void 0,O=void 0,Xt}function J(Oe){const Nt=new Map,he=[];for(const B of Oe){const Ae=YI(t,B,R,u,l,s);if(Ae){const te=Ae.text,xt=Nt.get(te);xt!==void 0?he[xt].externalImports.push(B):(Nt.set(te,he.length),he.push({name:Ae,externalImports:[B]}))}}return he}function Z(Oe,Nt){const he=[];r();const B=Vd(s,"alwaysStrict")||Bc(R),Ae=t.copyPrologue(Oe.statements,he,B,K);he.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(k,t.createPropertyAccessExpression(k,"id")))]))),st(N.externalHelpersImportDeclaration,K,Vi);const te=Xn(Oe.statements,K,Vi,Ae);Xr(he,W),mg(he,i());const xt=q(he),Xt=Oe.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Pe=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ie(xt,Nt)),t.createPropertyAssignment("execute",t.createFunctionExpression(Xt,void 0,void 0,void 0,[],void 0,t.createBlock(te,!0)))],!0);return he.push(t.createReturnStatement(Pe)),t.createBlock(he,!0)}function q(Oe){if(!N.hasExportStarsToExportValues)return;if(!yt(N.exportedNames)&&N.exportedFunctions.size===0&&N.exportSpecifiers.size===0){let Ae=!1;for(const te of N.externalImports)if(te.kind===279&&te.exportClause){Ae=!0;break}if(!Ae){const te=ye(void 0);return Oe.push(te),te.name}}const Nt=[];if(N.exportedNames)for(const Ae of N.exportedNames)N_(Ae)||Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ae),t.createTrue()));for(const Ae of N.exportedFunctions)di(Ae,2048)||(C.assert(!!Ae.name),Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ae.name),t.createTrue())));const he=t.createUniqueName("exportedNames");Oe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(he,void 0,void 0,t.createObjectLiteralExpression(Nt,!0))])));const B=ye(he);return Oe.push(B),B.name}function ye(Oe){const Nt=t.createUniqueName("exportStar"),he=t.createIdentifier("m"),B=t.createIdentifier("n"),Ae=t.createIdentifier("exports");let te=t.createStrictInequality(B,t.createStringLiteral("default"));return Oe&&(te=t.createLogicalAnd(te,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(Oe,"hasOwnProperty"),void 0,[B])))),t.createFunctionDeclaration(void 0,void 0,Nt,void 0,[t.createParameterDeclaration(void 0,void 0,he)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ae,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(B)]),he,t.createBlock([Cr(t.createIfStatement(te,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Ae,B),t.createElementAccessExpression(he,B)))),1)])),t.createExpressionStatement(t.createCallExpression(P,void 0,[Ae]))],!0))}function ie(Oe,Nt){const he=[];for(const B of Nt){const Ae=Ye(B.externalImports,Xt=>MD(t,Xt,R)),te=Ae?t.getGeneratedNameForNode(Ae):t.createUniqueName(""),xt=[];for(const Xt of B.externalImports){const Pe=MD(t,Xt,R);switch(Xt.kind){case 273:if(!Xt.importClause)break;case 272:C.assert(Pe!==void 0),xt.push(t.createExpressionStatement(t.createAssignment(Pe,te))),di(Xt,32)&&xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(Kr(Pe)),te])));break;case 279:if(C.assert(Pe!==void 0),Xt.exportClause)if(Jf(Xt.exportClause)){const gt=[];for(const Bt of Xt.exportClause.elements)gt.push(t.createPropertyAssignment(t.createStringLiteral(_b(Bt.name)),t.createElementAccessExpression(te,t.createStringLiteral(_b(Bt.propertyName||Bt.name)))));xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createObjectLiteralExpression(gt,!0)])))}else xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(_b(Xt.exportClause.name)),te])));else xt.push(t.createExpressionStatement(t.createCallExpression(Oe,void 0,[te])));break}}he.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,te)],void 0,t.createBlock(xt,!0)))}return t.createArrayLiteralExpression(he,!0)}function K(Oe){switch(Oe.kind){case 273:return pe(Oe);case 272:return fe(Oe);case 279:return de(Oe);case 278:return ve(Oe);default:return cn(Oe)}}function pe(Oe){let Nt;return Oe.importClause&&o(MD(t,Oe,R)),I_(lt(Nt,Oe))}function de(Oe){C.assertIsDefined(Oe)}function fe(Oe){C.assert(WT(Oe),"import= for internal module references should be handled in an earlier transformer.");let Nt;return o(MD(t,Oe,R)),I_(ce(Nt,Oe))}function ve(Oe){if(Oe.isExportEquals)return;const Nt=st(Oe.expression,ai,St);return at(t.createIdentifier("default"),Nt,!0)}function xe(Oe){di(Oe,32)?W=Bn(W,t.updateFunctionDeclaration(Oe,Xn(Oe.modifiers,ht,fl),Oe.asteriskToken,t.getDeclarationName(Oe,!0,!0),void 0,Xn(Oe.parameters,ai,to),void 0,st(Oe.body,ai,ea))):W=Bn(W,kn(Oe,ai,e)),W=je(W,Oe)}function X(Oe){let Nt;const he=t.getLocalName(Oe);return o(he),Nt=Bn(Nt,vt(t.createExpressionStatement(t.createAssignment(he,vt(t.createClassExpression(Xn(Oe.modifiers,ht,fl),Oe.name,void 0,Xn(Oe.heritageClauses,ai,Fp),Xn(Oe.members,ai,Tc)),Oe))),Oe)),Nt=je(Nt,Oe),I_(Nt)}function Ce(Oe){if(!Se(Oe.declarationList))return st(Oe,ai,Vi);let Nt;if(K2(Oe.declarationList)||J2(Oe.declarationList)){const he=Xn(Oe.modifiers,ht,fl),B=[];for(const te of Oe.declarationList.declarations)B.push(t.updateVariableDeclaration(te,t.getGeneratedNameForNode(te.name),void 0,void 0,re(te,!1)));const Ae=t.updateVariableDeclarationList(Oe.declarationList,B);Nt=Bn(Nt,t.updateVariableStatement(Oe,he,Ae))}else{let he;const B=di(Oe,32);for(const Ae of Oe.declarationList.declarations)Ae.initializer?he=Bn(he,re(Ae,B)):Je(Ae);he&&(Nt=Bn(Nt,vt(t.createExpressionStatement(t.inlineExpressions(he)),Oe)))}return Nt=Re(Nt,Oe,!1),I_(Nt)}function Je(Oe){if(Qo(Oe.name))for(const Nt of Oe.name.elements)Jc(Nt)||Je(Nt);else o(t.cloneNode(Oe.name))}function Se(Oe){return(Qa(Oe)&4194304)===0&&(O.kind===308||(yl(Oe).flags&7)===0)}function re(Oe,Nt){const he=Nt?be:Ne;return Qo(Oe.name)?P1(Oe,ai,e,0,!1,he):Oe.initializer?he(Oe.name,st(Oe.initializer,ai,St)):Oe.name}function be(Oe,Nt,he){return Be(Oe,Nt,he,!0)}function Ne(Oe,Nt,he){return Be(Oe,Nt,he,!1)}function Be(Oe,Nt,he,B){return o(t.cloneNode(Oe)),B?Wt(Oe,Kt(vt(t.createAssignment(Oe,Nt),he))):Kt(vt(t.createAssignment(Oe,Nt),he))}function lt(Oe,Nt){if(N.exportEquals)return Oe;const he=Nt.importClause;if(!he)return Oe;he.name&&(Oe=Ge(Oe,he));const B=he.namedBindings;if(B)switch(B.kind){case 275:Oe=Ge(Oe,B);break;case 276:for(const Ae of B.elements)Oe=Ge(Oe,Ae);break}return Oe}function ce(Oe,Nt){return N.exportEquals?Oe:Ge(Oe,Nt)}function Re(Oe,Nt,he){if(N.exportEquals)return Oe;for(const B of Nt.declarationList.declarations)(B.initializer||he)&&(Oe=_e(Oe,B));return Oe}function _e(Oe,Nt,he){if(N.exportEquals)return Oe;if(Qo(Nt.name))for(const B of Nt.name.elements)Jc(B)||(Oe=_e(Oe,B));else pl(Nt.name)||(Oe=Ge(Oe,Nt,void 0));return Oe}function je(Oe,Nt){if(N.exportEquals)return Oe;let he;if(di(Nt,32)){const B=di(Nt,2048)?t.createStringLiteral("default"):Nt.name;Oe=We(Oe,B,t.getLocalName(Nt)),he=zf(B)}return Nt.name&&(Oe=Ge(Oe,Nt,he)),Oe}function Ge(Oe,Nt,he){if(N.exportEquals)return Oe;const B=t.getDeclarationName(Nt),Ae=N.exportSpecifiers.get(B);if(Ae)for(const te of Ae)_b(te.name)!==he&&(Oe=We(Oe,te.name,B));return Oe}function We(Oe,Nt,he,B){return Oe=Bn(Oe,at(Nt,he,B)),Oe}function at(Oe,Nt,he){const B=t.createExpressionStatement(Wt(Oe,Nt));return ou(B),he||Cr(B,3072),B}function Wt(Oe,Nt){const he=He(Oe)?t.createStringLiteralFromNode(Oe):Oe;return Cr(Nt,Qa(Nt)|3072),Dc(t.createCallExpression(P,void 0,[he,Nt]),Nt)}function cn(Oe){switch(Oe.kind){case 244:return Ce(Oe);case 263:return xe(Oe);case 264:return X(Oe);case 249:return gn(Oe,!0);case 250:return Kn(Oe);case 251:return _t(Oe);case 247:return Di(Oe);case 248:return lo(Oe);case 257:return zt(Oe);case 255:return Zr(Oe);case 246:return Ai(Oe);case 256:return Ni(Oe);case 270:return Pr(Oe);case 297:return Ci(Oe);case 298:return $e(Oe);case 259:return At(Oe);case 300:return mn(Oe);case 242:return dr(Oe);default:return ai(Oe)}}function gn(Oe,Nt){const he=O;return O=Oe,Oe=t.updateForStatement(Oe,st(Oe.initializer,Nt?ir:qi,Of),st(Oe.condition,ai,St),st(Oe.incrementor,qi,St),Ou(Oe.statement,Nt?cn:ai,e)),O=he,Oe}function Kn(Oe){const Nt=O;return O=Oe,Oe=t.updateForInStatement(Oe,ir(Oe.initializer),st(Oe.expression,ai,St),Ou(Oe.statement,cn,e)),O=Nt,Oe}function _t(Oe){const Nt=O;return O=Oe,Oe=t.updateForOfStatement(Oe,Oe.awaitModifier,ir(Oe.initializer),st(Oe.expression,ai,St),Ou(Oe.statement,cn,e)),O=Nt,Oe}function en(Oe){return _d(Oe)&&Se(Oe)}function ir(Oe){if(en(Oe)){let Nt;for(const he of Oe.declarations)Nt=Bn(Nt,re(he,!1)),he.initializer||Je(he);return Nt?t.inlineExpressions(Nt):t.createOmittedExpression()}else return st(Oe,qi,Of)}function Di(Oe){return t.updateDoStatement(Oe,Ou(Oe.statement,cn,e),st(Oe.expression,ai,St))}function lo(Oe){return t.updateWhileStatement(Oe,st(Oe.expression,ai,St),Ou(Oe.statement,cn,e))}function zt(Oe){return t.updateLabeledStatement(Oe,Oe.label,st(Oe.statement,cn,Vi,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}function Zr(Oe){return t.updateWithStatement(Oe,st(Oe.expression,ai,St),C.checkDefined(st(Oe.statement,cn,Vi,t.liftToBlock)))}function Ai(Oe){return t.updateIfStatement(Oe,st(Oe.expression,ai,St),st(Oe.thenStatement,cn,Vi,t.liftToBlock)??t.createBlock([]),st(Oe.elseStatement,cn,Vi,t.liftToBlock))}function Ni(Oe){return t.updateSwitchStatement(Oe,st(Oe.expression,ai,St),C.checkDefined(st(Oe.caseBlock,cn,VM)))}function Pr(Oe){const Nt=O;return O=Oe,Oe=t.updateCaseBlock(Oe,Xn(Oe.clauses,cn,pF)),O=Nt,Oe}function Ci(Oe){return t.updateCaseClause(Oe,st(Oe.expression,ai,St),Xn(Oe.statements,cn,Vi))}function $e(Oe){return kn(Oe,cn,e)}function At(Oe){return kn(Oe,cn,e)}function mn(Oe){const Nt=O;return O=Oe,Oe=t.updateCatchClause(Oe,Oe.variableDeclaration,C.checkDefined(st(Oe.block,cn,ea))),O=Nt,Oe}function dr(Oe){const Nt=O;return O=Oe,Oe=kn(Oe,cn,e),O=Nt,Oe}function ri(Oe,Nt){if(!(Oe.transformFlags&276828160))return Oe;switch(Oe.kind){case 249:return gn(Oe,!1);case 245:return $o(Oe);case 218:return Ia(Oe,Nt);case 356:return Mn(Oe,Nt);case 227:if(nv(Oe))return ot(Oe,Nt);break;case 214:if(Qu(Oe))return Uo(Oe);break;case 225:case 226:return le(Oe,Nt)}return kn(Oe,ai,e)}function ai(Oe){return ri(Oe,!1)}function qi(Oe){return ri(Oe,!0)}function $o(Oe){return t.updateExpressionStatement(Oe,st(Oe.expression,qi,St))}function Ia(Oe,Nt){return t.updateParenthesizedExpression(Oe,st(Oe.expression,Nt?qi:ai,St))}function Mn(Oe,Nt){return t.updatePartiallyEmittedExpression(Oe,st(Oe.expression,Nt?qi:ai,St))}function Uo(Oe){const Nt=YI(t,Oe,R,u,l,s),he=st(Ic(Oe.arguments),ai,St),B=Nt&&(!he||!ka(he)||he.text!==Nt.text)?Nt:he;return t.createCallExpression(t.createPropertyAccessExpression(k,t.createIdentifier("import")),void 0,B?[B]:[])}function ot(Oe,Nt){return Ft(Oe.left)?P1(Oe,ai,e,0,!Nt):kn(Oe,ai,e)}function Ft(Oe){if(id(Oe,!0))return Ft(Oe.left);if(qf(Oe))return Ft(Oe.expression);if(Wa(Oe))return yt(Oe.properties,Ft);if(Cd(Oe))return yt(Oe.elements,Ft);if(Ud(Oe))return Ft(Oe.name);if(Nc(Oe))return Ft(Oe.initializer);if(He(Oe)){const Nt=l.getReferencedExportContainer(Oe);return Nt!==void 0&&Nt.kind===308}else return!1}function le(Oe,Nt){if((Oe.operator===46||Oe.operator===47)&&He(Oe.operand)&&!pl(Oe.operand)&&!fy(Oe.operand)&&!sV(Oe.operand)){const he=Ot(Oe.operand);if(he){let B,Ae=st(Oe.operand,ai,St);XT(Oe)?Ae=t.updatePrefixUnaryExpression(Oe,Ae):(Ae=t.updatePostfixUnaryExpression(Oe,Ae),Nt||(B=t.createTempVariable(o),Ae=t.createAssignment(B,Ae),vt(Ae,Oe)),Ae=t.createComma(Ae,t.cloneNode(Oe.operand)),vt(Ae,Oe));for(const te of he)Ae=Wt(te,Kt(Ae));return B&&(Ae=t.createComma(Ae,B),vt(Ae,Oe)),Ae}}return kn(Oe,ai,e)}function ht(Oe){switch(Oe.kind){case 95:case 90:return}return Oe}function ne(Oe,Nt,he){if(Nt.kind===308){const B=Wu(Nt);R=Nt,N=h[B],P=y[B],G=E[B],k=A[B],G&&delete E[B],g(Oe,Nt,he),R=void 0,N=void 0,P=void 0,k=void 0,G=void 0}else g(Oe,Nt,he)}function Fe(Oe,Nt){return Nt=d(Oe,Nt),Tr(Nt)?Nt:Oe===1?Lt(Nt):Oe===4?it(Nt):Nt}function it(Oe){switch(Oe.kind){case 305:return dt(Oe)}return Oe}function dt(Oe){var Nt,he;const B=Oe.name;if(!pl(B)&&!fy(B)){const Ae=l.getReferencedImportDeclaration(B);if(Ae){if(Vm(Ae))return vt(t.createPropertyAssignment(t.cloneNode(B),t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ae.parent),t.createIdentifier("default"))),Oe);if(Su(Ae)){const te=Ae.propertyName||Ae.name,xt=t.getGeneratedNameForNode(((he=(Nt=Ae.parent)==null?void 0:Nt.parent)==null?void 0:he.parent)||Ae);return vt(t.createPropertyAssignment(t.cloneNode(B),te.kind===11?t.createElementAccessExpression(xt,t.cloneNode(te)):t.createPropertyAccessExpression(xt,t.cloneNode(te))),Oe)}}}return Oe}function Lt(Oe){switch(Oe.kind){case 80:return Ue(Oe);case 227:return Rt(Oe);case 237:return It(Oe)}return Oe}function Ue(Oe){var Nt,he;if(Qa(Oe)&8192){const B=fw(R);return B?t.createPropertyAccessExpression(B,Oe):Oe}if(!pl(Oe)&&!fy(Oe)){const B=l.getReferencedImportDeclaration(Oe);if(B){if(Vm(B))return vt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(B.parent),t.createIdentifier("default")),Oe);if(Su(B)){const Ae=B.propertyName||B.name,te=t.getGeneratedNameForNode(((he=(Nt=B.parent)==null?void 0:Nt.parent)==null?void 0:he.parent)||B);return vt(Ae.kind===11?t.createElementAccessExpression(te,t.cloneNode(Ae)):t.createPropertyAccessExpression(te,t.cloneNode(Ae)),Oe)}}}return Oe}function Rt(Oe){if(sy(Oe.operatorToken.kind)&&He(Oe.left)&&(!pl(Oe.left)||D2(Oe.left))&&!fy(Oe.left)){const Nt=Ot(Oe.left);if(Nt){let he=Oe;for(const B of Nt)he=Wt(B,Kt(he));return he}}return Oe}function It(Oe){return JR(Oe)?t.createPropertyAccessExpression(k,t.createIdentifier("meta")):Oe}function Ot(Oe){let Nt;const he=nt(Oe);if(he){const B=l.getReferencedExportContainer(Oe,!1);B&&B.kind===308&&(Nt=Bn(Nt,t.getDeclarationName(he))),Nt=Xr(Nt,N?.exportedBindings[Wu(he)])}else if(pl(Oe)&&D2(Oe)){const B=N?.exportSpecifiers.get(Oe);if(B){const Ae=[];for(const te of B)Ae.push(te.name);return Ae}}return Nt}function nt(Oe){if(!pl(Oe)){const Nt=l.getReferencedImportDeclaration(Oe);if(Nt)return Nt;const he=l.getReferencedValueDeclaration(Oe);if(he&&N?.exportedBindings[Wu(he)])return he;const B=l.getReferencedValueDeclarations(Oe);if(B){for(const Ae of B)if(Ae!==he&&N?.exportedBindings[Wu(Ae)])return Ae}return he}}function Kt(Oe){return G===void 0&&(G=[]),G[ls(Oe)]=!0,Oe}function Tr(Oe){return G&&Oe.id&&G[Oe.id]}}function GU(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=Ga(s),u=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=q,e.onSubstituteNode=ye,e.enableEmitNotification(308),e.enableSubstitution(80);const g=new Set;let h,y,E,A;return hh(e,R);function R(K){if(K.isDeclarationFile)return K;if(Bc(K)||ym(s)){E=K,A=void 0,s.rewriteRelativeImportExtensions&&(E.flags&4194304||Ir(K))&&K6(K,!1,!1,de=>{(!ds(de.arguments[0])||uk(de.arguments[0].text,s))&&(h=Bn(h,de))});let pe=N(K);return Ag(pe,e.readEmitHelpers()),E=void 0,A&&(pe=t.updateSourceFile(pe,vt(t.createNodeArray($9(pe.statements.slice(),A)),pe.statements))),!Bc(K)||vu(s)===200||yt(pe.statements,k2)?pe:t.updateSourceFile(pe,vt(t.createNodeArray([...pe.statements,dw(t)]),pe.statements))}return K}function N(K){const pe=xj(t,r(),K,s);if(pe){const de=[],fe=t.copyPrologue(K.statements,de);return Xr(de,iP([pe],P,Vi)),Xr(de,Xn(K.statements,P,Vi,fe)),t.updateSourceFile(K,vt(t.createNodeArray(de),K.statements))}else return kn(K,P,e)}function P(K){switch(K.kind){case 272:return vu(s)>=100?G(K):void 0;case 278:return J(K);case 279:return Z(K);case 273:return k(K);case 214:if(K===h?.[0])return W(h.shift());default:if(h?.length&&tp(K,h[0]))return kn(K,P,e)}return K}function k(K){if(!s.rewriteRelativeImportExtensions)return K;const pe=rx(K.moduleSpecifier,s);return pe===K.moduleSpecifier?K:t.updateImportDeclaration(K,K.modifiers,K.importClause,pe,K.attributes)}function W(K){return t.updateCallExpression(K,K.expression,K.typeArguments,[ds(K.arguments[0])?rx(K.arguments[0],s):r().createRewriteRelativeImportExtensionsHelper(K.arguments[0]),...K.arguments.slice(1)])}function O(K){const pe=YI(t,K,C.checkDefined(E),i,o,s),de=[];if(pe&&de.push(rx(pe,s)),vu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,de);if(!A){const ve=t.createUniqueName("_createRequire",48),xe=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),ve)])),t.createStringLiteral("module"),void 0),X=t.createUniqueName("__require",48),Ce=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(X,void 0,void 0,t.createCallExpression(t.cloneNode(ve),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));A=[xe,Ce]}const fe=A[1].declarationList.declarations[0].name;return C.assertNode(fe,He),t.createCallExpression(t.cloneNode(fe),void 0,de)}function G(K){C.assert(WT(K),"import= for internal module references should be handled in an earlier transformer.");let pe;return pe=Bn(pe,jr(vt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(K.name),void 0,void 0,O(K))],l>=2?2:0)),K),K)),pe=j(pe,K),I_(pe)}function j(K,pe){return di(pe,32)&&(K=Bn(K,t.createExportDeclaration(void 0,pe.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Kr(pe.name))])))),K}function J(K){return K.isExportEquals?vu(s)===200?jr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),K.expression)),K):void 0:K}function Z(K){const pe=rx(K.moduleSpecifier,s);if(s.module!==void 0&&s.module>5||!K.exportClause||!O_(K.exportClause)||!K.moduleSpecifier)return!K.moduleSpecifier||pe===K.moduleSpecifier?K:t.updateExportDeclaration(K,K.modifiers,K.isTypeOnly,K.exportClause,pe,K.attributes);const de=K.exportClause.name,fe=t.getGeneratedNameForNode(de),ve=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamespaceImport(fe)),pe,K.attributes);jr(ve,K.exportClause);const xe=AF(K)?t.createExportDefault(fe):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,fe,de)]));return jr(xe,K),[ve,xe]}function q(K,pe,de){Yi(pe)?((Bc(pe)||ym(s))&&s.importHelpers&&(y=new Map),E=pe,u(K,pe,de),E=void 0,y=void 0):u(K,pe,de)}function ye(K,pe){return pe=d(K,pe),pe.id&&g.has(pe.id)?pe:He(pe)&&Qa(pe)&8192?ie(pe):pe}function ie(K){const pe=E&&fw(E);if(pe)return g.add(ls(K)),t.createPropertyAccessExpression(pe,K);if(y){const de=Kr(K);let fe=y.get(de);return fe||y.set(de,fe=t.createUniqueName(de,48)),fe}return K}}function Dae(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=GU(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=BU(e),u=e.onSubstituteNode,d=e.onEmitNode,g=k=>e.getEmitHost().getEmitModuleFormatOfFile(k);e.onSubstituteNode=y,e.onEmitNode=E,e.enableSubstitution(308),e.enableEmitNotification(308);let h;return N;function y(k,W){return Yi(W)?(h=W,t(k,W)):h?g(h)>=5?o(k,W):u(k,W):t(k,W)}function E(k,W,O){return Yi(W)&&(h=W),h?g(h)>=5?s(k,W,O):d(k,W,O):r(k,W,O)}function A(k){return g(k)>=5?i:l}function R(k){if(k.isDeclarationFile)return k;h=k;const W=A(k)(k);return h=void 0,C.assert(Yi(W)),W}function N(k){return k.kind===308?R(k):P(k)}function P(k){return e.factory.createBundle(Vt(k.sourceFiles,R))}}function Ww(e){return yi(e)||Po(e)||Tu(e)||Ha(e)||Vh(e)||ug(e)||FM(e)||GI(e)||Ml(e)||Gm(e)||ec(e)||to(e)||sl(e)||dy(e)||zc(e)||vm(e)||Pl(e)||Cb(e)||qr(e)||Ws(e)||Nr(e)||hm(e)}function Cae(e){if(Vh(e)||ug(e))return t;return Gm(e)||Ml(e)?i:s0(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 ua(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===264?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 ua(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===264?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 s0(e){if(yi(e)||Po(e)||Tu(e)||qr(e)||Ws(e)||Nr(e)||Ha(e)||Pl(e))return r;return Vh(e)||ug(e)?i:FM(e)||GI(e)||Ml(e)||Gm(e)||ec(e)||Cb(e)?o:to(e)?Np(e,e.parent)&&di(e.parent,2)?r:s:sl(e)?u:dy(e)?d:zc(e)?g:vm(e)||hm(e)?h:C.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${C.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===261||e.kind===209)return y.errorModuleName?y.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===173||e.kind===212||e.kind===213||e.kind===227||e.kind===172||e.kind===170&&di(e.parent,2))return ua(e)?y.errorModuleName?y.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264||e.kind===170?y.errorModuleName?y.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(y){const E=t(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function i(y){let E;return e.kind===179?ua(e)?E=y.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ua(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:e.name,typeName:e.name}}function o(y){let E;switch(e.kind){case 181:E=y.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:E=y.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:E=y.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:ua(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===264?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=y.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return C.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:E,errorNode:e.name||e}}function s(y){const E=l(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 177:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return y.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return y.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return y.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return ua(e.parent)?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return C.fail(`Unknown parent for parameter: ${C.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 264:y=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:y=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:y=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:y=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:y=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:ua(e.parent)?y=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?y=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:y=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:y=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:y=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return C.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function d(){let y;return Cc(e.parent.parent)?y=Fp(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:Oo(e.parent.parent)}}function g(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function h(y){return{diagnosticMessage:y.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:hm(e)?C.checkDefined(e.typeExpression):e.type,typeName:hm(e)?Oo(e):e.name}}}function Nae(e){const t={220:f.Add_a_return_type_to_the_function_expression,219:f.Add_a_return_type_to_the_function_expression,175:f.Add_a_return_type_to_the_method,178:f.Add_a_return_type_to_the_get_accessor_declaration,179:f.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:f.Add_a_return_type_to_the_function_declaration,181:f.Add_a_return_type_to_the_function_declaration,170:f.Add_a_type_annotation_to_the_parameter_0,261:f.Add_a_type_annotation_to_the_variable_0,173:f.Add_a_type_annotation_to_the_property_0,172:f.Add_a_type_annotation_to_the_property_0,278:f.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},r={219:f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:f.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:f.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:f.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:f.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:f.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:f.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:f.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return i;function i(P){if(Dn(P,Fp))return Ar(P,f.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Hh(P)||WS(P.parent))&&(Nu(P)||Ds(P)))return R(P);switch(C.type(P),P.kind){case 178:case 179:return s(P);case 168:case 305:case 306:return u(P);case 210:case 231:return d(P);case 175:case 181:case 219:case 220:case 263:return g(P);case 209:return h(P);case 173:case 261:return y(P);case 170:return E(P);case 304:return N(P.initializer);case 232:return A(P);default:return N(P)}}function o(P){const k=Dn(P,W=>ll(W)||Vi(W)||yi(W)||Po(W)||to(W));if(k)return ll(k)?k:tf(k)?Dn(k,W=>Ms(W)&&!Pl(W)):Vi(k)?void 0:k}function s(P){const{getAccessor:k,setAccessor:W}=NS(P.symbol.declarations,P),O=(Vh(P)?P.parameters[0]:P)??P,G=Ar(O,r[P.kind]);return W&&pa(G,Ar(W,t[W.kind])),k&&pa(G,Ar(k,t[k.kind])),G}function l(P,k){const W=o(P);if(W){const O=ll(W)||!W.name?"":Al(W.name,!1);pa(k,Ar(W,t[W.kind],O))}return k}function u(P){const k=Ar(P,r[P.kind]);return l(P,k),k}function d(P){const k=Ar(P,r[P.kind]);return l(P,k),k}function g(P){const k=Ar(P,r[P.kind]);return l(P,k),pa(k,Ar(P,t[P.kind])),k}function h(P){return Ar(P,f.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function y(P){const k=Ar(P,r[P.kind]),W=Al(P.name,!1);return pa(k,Ar(P,t[P.kind],W)),k}function E(P){if(Vh(P.parent))return s(P.parent);const k=e.requiresAddingImplicitUndefined(P,P.parent);if(!k&&P.initializer)return N(P.initializer);const W=k?f.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:r[P.kind],O=Ar(P,W),G=Al(P.name,!1);return pa(O,Ar(P,t[P.kind],G)),O}function A(P){return N(P,f.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function R(P){const k=Ar(P,f.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Al(P,!1));return l(P,k),k}function N(P,k){const W=o(P);let O;if(W){const G=ll(W)||!W.name?"":Al(W.name,!1),j=Dn(P.parent,J=>ll(J)||(Vi(J)?"quit":!wu(J)&&!s4(J)&&!TD(J)));W===j?(O=Ar(P,k??r[W.kind]),pa(O,Ar(W,t[W.kind],G))):(O=Ar(P,k??f.Expression_type_can_t_be_inferred_with_isolatedDeclarations),pa(O,Ar(W,t[W.kind],G)),pa(O,Ar(P,f.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else O=Ar(P,k??f.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return O}}function Mae(e,t,r){const i=e.getCompilerOptions(),o=Un(a6(e,r),jF);return jn(o,r)?Gw(t,e,L,i,[r],[VU],!1).diagnostics:void 0}var Fw=531469,zw=8;function VU(e){const t=()=>C.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,l=!1,u=!1,d,g,h,y;const{factory:E}=e,A=e.getEmitHost();let R=()=>{};const N={trackSymbol:fe,reportInaccessibleThisError:Je,reportInaccessibleUniqueSymbolError:X,reportCyclicStructureError:Ce,reportPrivateInBaseOfClassExpression:ve,reportLikelyUnsafeImportRequiredError:Se,reportTruncationError:re,moduleResolverHost:A,reportNonlocalAugmentation:be,reportNonSerializableProperty:Ne,reportInferenceFallback:pe,pushErrorFallbackNode(le){const ht=k,ne=R;R=()=>{R=ne,k=ht},k=le},popErrorFallbackNode(){R()}};let P,k,W,O,G,j;const J=e.getEmitResolver(),Z=e.getCompilerOptions(),q=Nae(J),{stripInternal:ye,isolatedDeclarations:ie}=Z;return lt;function K(le){J.getPropertiesOfContainerFunction(le).forEach(ht=>{if(kI(ht.valueDeclaration)){const ne=Nr(ht.valueDeclaration)?ht.valueDeclaration.left:ht.valueDeclaration;e.addDiagnostic(Ar(ne,f.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function pe(le){!ie||Mu(W)||Wn(le)===W&&(yi(le)&&J.isExpandoFunctionDeclaration(le)?K(le):e.addDiagnostic(q(le)))}function de(le){if(le.accessibility===0){if(le.aliasesToMakeVisible)if(!g)g=le.aliasesToMakeVisible;else for(const ht of le.aliasesToMakeVisible)kf(g,ht)}else if(le.accessibility!==3){const ht=r(le);if(ht)return ht.typeName?e.addDiagnostic(Ar(le.errorNode||ht.errorNode,ht.diagnosticMessage,Al(ht.typeName),le.errorSymbolName,le.errorModuleName)):e.addDiagnostic(Ar(le.errorNode||ht.errorNode,ht.diagnosticMessage,le.errorSymbolName,le.errorModuleName)),!0}return!1}function fe(le,ht,ne){return le.flags&262144?!1:de(J.isSymbolAccessible(le,ht,ne,!0))}function ve(le){(P||k)&&e.addDiagnostic(pa(Ar(P||k,f.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,le),...yi((P||k).parent)?[Ar(P||k,f.Add_a_type_annotation_to_the_variable_0,xe())]:[]))}function xe(){return P?ws(P):k&&Oo(k)?ws(Oo(k)):k&&ll(k)?k.isExportEquals?"export=":"default":"(Missing)"}function X(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,xe(),"unique symbol"))}function Ce(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,xe()))}function Je(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,xe(),"this"))}function Se(le){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,xe(),le))}function re(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function be(le,ht,ne){var Fe;const it=(Fe=ht.declarations)==null?void 0:Fe.find(Lt=>Wn(Lt)===le),dt=Un(ne.declarations,Lt=>Wn(Lt)!==le);if(it&&dt)for(const Lt of dt)e.addDiagnostic(pa(Ar(Lt,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Ar(it,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Ne(le){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,le))}function Be(le){const ht=r;r=Fe=>Fe.errorNode&&Ww(Fe.errorNode)?s0(Fe.errorNode)(Fe):{diagnosticMessage:Fe.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:Fe.errorNode||le};const ne=J.getDeclarationStatementsForSourceFile(le,Fw,zw,N);return r=ht,ne}function lt(le){if(le.kind===308&&le.isDeclarationFile)return le;if(le.kind===309){o=!0,O=[],G=[],j=[];let Rt=!1;const It=E.createBundle(Vt(le.sourceFiles,nt=>{if(nt.isDeclarationFile)return;if(Rt=Rt||nt.hasNoDefaultLib,W=nt,d=nt,g=void 0,y=!1,h=new Map,r=t,l=!1,u=!1,Fe(nt),Pp(nt)||Ff(nt)){s=!1,i=!1;const Tr=Mu(nt)?E.createNodeArray(Be(nt)):Xn(nt.statements,Ci,Vi);return E.updateSourceFile(nt,[E.createModuleDeclaration([E.createModifier(138)],E.createStringLiteral(VG(e.getEmitHost(),nt)),E.createModuleBlock(vt(E.createNodeArray(Ai(Tr)),nt.statements)))],!0,[],[],!1,[])}i=!0;const Kt=Mu(nt)?E.createNodeArray(Be(nt)):Xn(nt.statements,Ci,Vi);return E.updateSourceFile(nt,Ai(Kt),!0,[],[],!1,[])})),Ot=ci(Bd(pP(le,A,!0).declarationFilePath));return It.syntheticFileReferences=Ue(Ot),It.syntheticTypeReferences=dt(),It.syntheticLibReferences=Lt(),It.hasNoDefaultLib=Rt,It}i=!0,l=!1,u=!1,d=le,W=le,r=t,o=!1,s=!1,y=!1,g=void 0,h=new Map,O=[],G=[],j=[],Fe(W);let ht;if(Mu(W))ht=E.createNodeArray(Be(le));else{const Rt=Xn(le.statements,Ci,Vi);ht=vt(E.createNodeArray(Ai(Rt)),le.statements),Bc(le)&&(!s||l&&!u)&&(ht=vt(E.createNodeArray([...ht,dw(E)]),ht))}const ne=ci(Bd(pP(le,A,!0).declarationFilePath));return E.updateSourceFile(le,ht,!0,Ue(ne),dt(),le.hasNoDefaultLib,Lt());function Fe(Rt){O=so(O,Vt(Rt.referencedFiles,It=>[Rt,It])),G=so(G,Rt.typeReferenceDirectives),j=so(j,Rt.libReferenceDirectives)}function it(Rt){const It={...Rt};return It.pos=-1,It.end=-1,It}function dt(){return Ui(G,Rt=>{if(Rt.preserve)return it(Rt)})}function Lt(){return Ui(j,Rt=>{if(Rt.preserve)return it(Rt)})}function Ue(Rt){return Ui(O,([It,Ot])=>{if(!Ot.preserve)return;const nt=A.getSourceFileFromReference(It,Ot);if(!nt)return;let Kt;if(nt.isDeclarationFile)Kt=nt.fileName;else{if(o&&jn(le.sourceFiles,nt))return;const Nt=pP(nt,A,!0);Kt=Nt.declarationFilePath||Nt.jsFilePath||nt.fileName}if(!Kt)return;const Tr=MR(Rt,Kt,A.getCurrentDirectory(),A.getCanonicalFileName,!1),Oe=it(Ot);return Oe.fileName=Tr,Oe})}}function ce(le){if(le.kind===80)return le;return le.kind===208?E.updateArrayBindingPattern(le,Xn(le.elements,ht,lF)):E.updateObjectBindingPattern(le,Xn(le.elements,ht,Ha));function ht(ne){return ne.kind===233?ne:(ne.propertyName&&va(ne.propertyName)&&Ds(ne.propertyName.expression)&&en(ne.propertyName.expression,d),E.updateBindingElement(ne,ne.dotDotDotToken,ne.propertyName,ce(ne.name),void 0))}}function Re(le,ht){let ne;y||(ne=r,r=s0(le));const Fe=E.updateParameterDeclaration(le,QHe(E,le,ht),le.dotDotDotToken,ce(le.name),J.isOptionalParameter(le)?le.questionToken||E.createToken(58):void 0,Ge(le,!0),je(le));return y||(r=ne),Fe}function _e(le){return O1e(le)&&!!le.initializer&&J.isLiteralConstDeclaration(jo(le))}function je(le){if(_e(le)){const ht=Sre(le.initializer);return H6(ht)||pe(le),J.createLiteralConstValue(jo(le,O1e),N)}}function Ge(le,ht){if(!ht&&wp(le,2)||_e(le))return;if(!ll(le)&&!Ha(le)&&le.type&&(!to(le)||!J.requiresAddingImplicitUndefined(le,d)))return st(le.type,Ni,Ri);const ne=P;P=le.name;let Fe;y||(Fe=r,Ww(le)&&(r=s0(le)));let it;return q6(le)?it=J.createTypeOfDeclaration(le,d,Fw,zw,N):Yo(le)?it=J.createReturnTypeOfSignatureDeclaration(le,d,Fw,zw,N):C.assertNever(le),P=ne,y||(r=Fe),it??E.createKeywordTypeNode(133)}function We(le){switch(le=jo(le),le.kind){case 263:case 268:case 265:case 264:case 266:case 267:return!J.isDeclarationVisible(le);case 261:return!Wt(le);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function at(le){var ht;if(le.body)return!0;const ne=(ht=le.symbol.declarations)==null?void 0:ht.filter(Fe=>ec(Fe)&&!Fe.body);return!ne||ne.indexOf(le)===ne.length-1}function Wt(le){return Jc(le)?!1:Qo(le.name)?yt(le.name.elements,Wt):J.isDeclarationVisible(le)}function cn(le,ht,ne){if(wp(le,2))return E.createNodeArray();const Fe=Vt(ht,it=>Re(it,ne));return Fe?E.createNodeArray(Fe,ht.hasTrailingComma):E.createNodeArray()}function gn(le,ht){let ne;if(!ht){const Fe=DS(le);Fe&&(ne=[Re(Fe)])}if(gp(le)){let Fe;if(!ht){const it=lM(le);it&&(Fe=Re(it))}Fe||(Fe=E.createParameterDeclaration(void 0,void 0,"value")),ne=Bn(ne,Fe)}return E.createNodeArray(ne||ae)}function Kn(le,ht){return wp(le,2)?void 0:Xn(ht,Ni,sl)}function _t(le){return Yi(le)||vm(le)||pc(le)||Cc(le)||gd(le)||Yo(le)||Cb(le)||y1(le)}function en(le,ht){const ne=J.isEntityNameVisible(le,ht);de(ne)}function ir(le,ht){return ef(le)&&ef(ht)&&(le.jsDoc=ht.jsDoc),Dc(le,Zh(ht))}function Di(le,ht){if(ht){if(s=s||le.kind!==268&&le.kind!==206,ds(ht)&&o){const ne=lne(e.getEmitHost(),J,le);if(ne)return E.createStringLiteral(ne)}return ht}}function lo(le){if(J.isDeclarationVisible(le))if(le.moduleReference.kind===284){const ht=qN(le);return E.updateImportEqualsDeclaration(le,le.modifiers,le.isTypeOnly,le.name,E.updateExternalModuleReference(le.moduleReference,Di(le,ht)))}else{const ht=r;return r=s0(le),en(le.moduleReference,d),r=ht,le}}function zt(le){if(!le.importClause)return E.updateImportDeclaration(le,le.modifiers,le.importClause,Di(le,le.moduleSpecifier),Zr(le.attributes));const ht=le.importClause.phaseModifier===166?void 0:le.importClause.phaseModifier,ne=le.importClause&&le.importClause.name&&J.isDeclarationVisible(le.importClause)?le.importClause.name:void 0;if(!le.importClause.namedBindings)return ne&&E.updateImportDeclaration(le,le.modifiers,E.updateImportClause(le.importClause,ht,ne,void 0),Di(le,le.moduleSpecifier),Zr(le.attributes));if(le.importClause.namedBindings.kind===275){const it=J.isDeclarationVisible(le.importClause.namedBindings)?le.importClause.namedBindings:void 0;return ne||it?E.updateImportDeclaration(le,le.modifiers,E.updateImportClause(le.importClause,ht,ne,it),Di(le,le.moduleSpecifier),Zr(le.attributes)):void 0}const Fe=Ui(le.importClause.namedBindings.elements,it=>J.isDeclarationVisible(it)?it:void 0);if(Fe&&Fe.length||ne)return E.updateImportDeclaration(le,le.modifiers,E.updateImportClause(le.importClause,ht,ne,Fe&&Fe.length?E.updateNamedImports(le.importClause.namedBindings,Fe):void 0),Di(le,le.moduleSpecifier),Zr(le.attributes));if(J.isImportRequiredByAugmentation(le))return ie&&e.addDiagnostic(Ar(le,f.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),E.updateImportDeclaration(le,le.modifiers,void 0,Di(le,le.moduleSpecifier),Zr(le.attributes))}function Zr(le){const ht=UD(le);return le&&ht!==void 0?le:void 0}function Ai(le){for(;et(g);){const ne=g.shift();if(!xF(ne))return C.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${C.formatSyntaxKind(ne.kind)}`);const Fe=i;i=ne.parent&&Yi(ne.parent)&&!(Bc(ne.parent)&&o);const it=mn(ne);i=Fe,h.set(Wu(ne),it)}return Xn(le,ht,Vi);function ht(ne){if(xF(ne)){const Fe=Wu(ne);if(h.has(Fe)){const it=h.get(Fe);return h.delete(Fe),it&&((Mo(it)?yt(it,cF):cF(it))&&(l=!0),Yi(ne.parent)&&(Mo(it)?yt(it,k2):k2(it))&&(s=!0)),it}}return ne}}function Ni(le){if($o(le))return;if(rd(le)){if(We(le))return;if(oy(le)){if(ie){if(!J.isDefinitelyReferenceToGlobalSymbolObject(le.name.expression)){if(Cc(le.parent)||Wa(le.parent)){e.addDiagnostic(Ar(le,f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((gd(le.parent)||ku(le.parent))&&!Ds(le.name.expression)){e.addDiagnostic(Ar(le,f.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!J.isLateBound(jo(le))||!Ds(le.name.expression))return}}if(Yo(le)&&J.isImplementationOfOverload(le)||oie(le))return;let ht;_t(le)&&(ht=d,d=le);const ne=r,Fe=Ww(le),it=y;let dt=(le.kind===188||le.kind===201)&&le.parent.kind!==266;if((Ml(le)||Gm(le))&&wp(le,2))return le.symbol&&le.symbol.declarations&&le.symbol.declarations[0]!==le?void 0:Lt(E.createPropertyDeclaration(Uo(le),le.name,void 0,void 0,void 0));if(Fe&&!y&&(r=s0(le)),WS(le)&&en(le.exprName,d),dt&&(y=!0),eqe(le))switch(le.kind){case 234:{(Nu(le.expression)||Ds(le.expression))&&en(le.expression,d);const Ue=kn(le,Ni,e);return Lt(E.updateExpressionWithTypeArguments(Ue,Ue.expression,Ue.typeArguments))}case 184:{en(le.typeName,d);const Ue=kn(le,Ni,e);return Lt(E.updateTypeReferenceNode(Ue,Ue.typeName,Ue.typeArguments))}case 181:return Lt(E.updateConstructSignature(le,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 177:{const Ue=E.createConstructorDeclaration(Uo(le),cn(le,le.parameters,0),void 0);return Lt(Ue)}case 175:{if(eo(le.name))return Lt(void 0);const Ue=E.createMethodDeclaration(Uo(le),void 0,le.name,le.questionToken,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le),void 0);return Lt(Ue)}case 178:return eo(le.name)?Lt(void 0):Lt(E.updateGetAccessorDeclaration(le,Uo(le),le.name,gn(le,wp(le,2)),Ge(le),void 0));case 179:return eo(le.name)?Lt(void 0):Lt(E.updateSetAccessorDeclaration(le,Uo(le),le.name,gn(le,wp(le,2)),void 0));case 173:return eo(le.name)?Lt(void 0):Lt(E.updatePropertyDeclaration(le,Uo(le),le.name,le.questionToken,Ge(le),je(le)));case 172:return eo(le.name)?Lt(void 0):Lt(E.updatePropertySignature(le,Uo(le),le.name,le.questionToken,Ge(le)));case 174:return eo(le.name)?Lt(void 0):Lt(E.updateMethodSignature(le,Uo(le),le.name,le.questionToken,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 180:return Lt(E.updateCallSignature(le,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 182:return Lt(E.updateIndexSignature(le,Uo(le),cn(le,le.parameters),st(le.type,Ni,Ri)||E.createKeywordTypeNode(133)));case 261:return Qo(le.name)?ri(le.name):(dt=!0,y=!0,Lt(E.updateVariableDeclaration(le,le.name,void 0,Ge(le),je(le))));case 169:return Pr(le)&&(le.default||le.constraint)?Lt(E.updateTypeParameterDeclaration(le,le.modifiers,le.name,void 0,void 0)):Lt(kn(le,Ni,e));case 195:{const Ue=st(le.checkType,Ni,Ri),Rt=st(le.extendsType,Ni,Ri),It=d;d=le.trueType;const Ot=st(le.trueType,Ni,Ri);d=It;const nt=st(le.falseType,Ni,Ri);return C.assert(Ue),C.assert(Rt),C.assert(Ot),C.assert(nt),Lt(E.updateConditionalTypeNode(le,Ue,Rt,Ot,nt))}case 185:return Lt(E.updateFunctionTypeNode(le,Xn(le.typeParameters,Ni,sl),cn(le,le.parameters),C.checkDefined(st(le.type,Ni,Ri))));case 186:return Lt(E.updateConstructorTypeNode(le,Uo(le),Xn(le.typeParameters,Ni,sl),cn(le,le.parameters),C.checkDefined(st(le.type,Ni,Ri))));case 206:return ry(le)?Lt(E.updateImportTypeNode(le,E.updateLiteralTypeNode(le.argument,Di(le,le.argument.literal)),le.attributes,le.qualifier,Xn(le.typeArguments,Ni,Ri),le.isTypeOf)):Lt(le);default:C.assertNever(le,`Attempted to process unhandled node kind: ${C.formatSyntaxKind(le.kind)}`)}return jI(le)&&ca(W,le.pos).line===ca(W,le.end).line&&Cr(le,1),Lt(kn(le,Ni,e));function Lt(Ue){return Ue&&Fe&&oy(le)&&qi(le),_t(le)&&(d=ht),Fe&&!y&&(r=ne),dt&&(y=it),Ue===le?Ue:Ue&&jr(ir(Ue,le),le)}}function Pr(le){return le.parent.kind===175&&wp(le.parent,2)}function Ci(le){if(!ZHe(le)||$o(le))return;switch(le.kind){case 279:return Yi(le.parent)&&(s=!0),u=!0,E.updateExportDeclaration(le,le.modifiers,le.isTypeOnly,le.exportClause,Di(le,le.moduleSpecifier),Zr(le.attributes));case 278:{if(Yi(le.parent)&&(s=!0),u=!0,le.expression.kind===80)return le;{const ne=E.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:le}),k=le;const Fe=Ge(le),it=E.createVariableDeclaration(ne,void 0,Fe,void 0);k=void 0;const dt=E.createVariableStatement(i?[E.createModifier(138)]:[],E.createVariableDeclarationList([it],2));return ir(dt,le),Zk(le),[dt,E.updateExportAssignment(le,le.modifiers,ne)]}}}const ht=mn(le);return h.set(Wu(le),ht),le}function $e(le){if(zc(le)||wp(le,2048)||!Tm(le))return le;const ht=E.createModifiersFromModifierFlags(Gd(le)&131039);return E.replaceModifiers(le,ht)}function At(le,ht,ne,Fe){const it=E.updateModuleDeclaration(le,ht,ne,Fe);if(gu(it)||it.flags&32)return it;const dt=E.createModuleDeclaration(it.modifiers,it.name,it.body,it.flags|32);return jr(dt,it),vt(dt,it),dt}function mn(le){if(g)for(;uN(g,le););if($o(le))return;switch(le.kind){case 272:return lo(le);case 273:return zt(le)}if(rd(le)&&We(le)||o_(le)||Yo(le)&&J.isImplementationOfOverload(le))return;let ht;_t(le)&&(ht=d,d=le);const ne=Ww(le),Fe=r;ne&&(r=s0(le));const it=i;switch(le.kind){case 266:{i=!1;const Lt=dt(E.updateTypeAliasDeclaration(le,Uo(le),le.name,Xn(le.typeParameters,Ni,sl),C.checkDefined(st(le.type,Ni,Ri))));return i=it,Lt}case 265:return dt(E.updateInterfaceDeclaration(le,Uo(le),le.name,Kn(le,le.typeParameters),Ft(le.heritageClauses),Xn(le.members,Ni,hS)));case 263:{const Lt=dt(E.updateFunctionDeclaration(le,Uo(le),void 0,le.name,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le),void 0));if(Lt&&J.isExpandoFunctionDeclaration(le)&&at(le)){const Ue=J.getPropertiesOfContainerFunction(le);ie&&K(le);const Rt=r0.createModuleDeclaration(void 0,Lt.name||E.createIdentifier("_default"),E.createModuleBlock([]),32);ps(Rt,d),Rt.locals=da(Ue),Rt.symbol=Ue[0].parent;const It=[];let Ot=Ui(Ue,he=>{if(!kI(he.valueDeclaration))return;const B=Gi(he.escapedName);if(!fp(B,99))return;r=s0(he.valueDeclaration);const Ae=J.createTypeOfDeclaration(he.valueDeclaration,Rt,Fw,zw|2,N);r=Fe;const te=vI(B),xt=te?E.getGeneratedNameForNode(he.valueDeclaration):E.createIdentifier(B);te&&It.push([xt,B]);const Xt=E.createVariableDeclaration(xt,void 0,Ae,void 0);return E.createVariableStatement(te?void 0:[E.createToken(95)],E.createVariableDeclarationList([Xt]))});It.length?Ot.push(E.createExportDeclaration(void 0,!1,E.createNamedExports(Vt(It,([he,B])=>E.createExportSpecifier(!1,he,B))))):Ot=Ui(Ot,he=>E.replaceModifiers(he,0));const nt=E.createModuleDeclaration(Uo(le),le.name,E.createModuleBlock(Ot),32);if(!wp(Lt,2048))return[Lt,nt];const Kt=E.createModifiersFromModifierFlags(Gd(Lt)&-2081|128),Tr=E.updateFunctionDeclaration(Lt,Kt,void 0,Lt.name,Lt.typeParameters,Lt.parameters,Lt.type,void 0),Oe=E.updateModuleDeclaration(nt,Kt,nt.name,nt.body),Nt=E.createExportAssignment(void 0,!1,nt.name);return Yi(le.parent)&&(s=!0),u=!0,[Tr,Oe,Nt]}else return Lt}case 268:{i=!1;const Lt=le.body;if(Lt&&Lt.kind===269){const Ue=l,Rt=u;u=!1,l=!1;const It=Xn(Lt.statements,Ci,Vi);let Ot=Ai(It);le.flags&33554432&&(l=!1),!M_(le)&&!Mn(Ot)&&!u&&(l?Ot=E.createNodeArray([...Ot,dw(E)]):Ot=Xn(Ot,$e,Vi));const nt=E.updateModuleBlock(Lt,Ot);i=it,l=Ue,u=Rt;const Kt=Uo(le);return dt(At(le,Kt,bS(le)?Di(le,le.name):le.name,nt))}else{i=it;const Ue=Uo(le);i=!1,st(Lt,Ci);const Rt=Wu(Lt),It=h.get(Rt);return h.delete(Rt),dt(At(le,Ue,le.name,It))}}case 264:{P=le.name,k=le;const Lt=E.createNodeArray(Uo(le)),Ue=Kn(le,le.typeParameters),Rt=yg(le);let It;if(Rt){const he=r;It=i2(Ki(Rt.parameters,B=>{if(!di(B,31)||$o(B))return;if(r=s0(B),B.name.kind===80)return ir(E.createPropertyDeclaration(Uo(B),B.name,B.questionToken,Ge(B),je(B)),B);return Ae(B.name);function Ae(te){let xt;for(const Xt of te.elements)Jc(Xt)||(Qo(Xt.name)&&(xt=so(xt,Ae(Xt.name))),xt=xt||[],xt.push(E.createPropertyDeclaration(Uo(B),Xt.name,void 0,Ge(Xt),void 0)));return xt}})),r=he}const nt=yt(le.members,he=>!!he.name&&eo(he.name))?[E.createPropertyDeclaration(void 0,E.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Kt=J.createLateBoundIndexSignatures(le,d,Fw,zw,N),Tr=so(so(so(nt,Kt),It),Xn(le.members,Ni,Tc)),Oe=E.createNodeArray(Tr),Nt=lh(le);if(Nt&&!Ds(Nt.expression)&&Nt.expression.kind!==106){const he=le.name?Gi(le.name.escapedText):"default",B=E.createUniqueName(`${he}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Nt,typeName:le.name});const Ae=E.createVariableDeclaration(B,void 0,J.createTypeOfExpression(Nt.expression,le,Fw,zw,N),void 0),te=E.createVariableStatement(i?[E.createModifier(138)]:[],E.createVariableDeclarationList([Ae],2)),xt=E.createNodeArray(Vt(le.heritageClauses,Xt=>{if(Xt.token===96){const Pe=r;r=s0(Xt.types[0]);const gt=E.updateHeritageClause(Xt,Vt(Xt.types,Bt=>E.updateExpressionWithTypeArguments(Bt,B,Xn(Bt.typeArguments,Ni,Ri))));return r=Pe,gt}return E.updateHeritageClause(Xt,Xn(E.createNodeArray(Un(Xt.types,Pe=>Ds(Pe.expression)||Pe.expression.kind===106)),Ni,dy))}));return[te,dt(E.updateClassDeclaration(le,Lt,le.name,Ue,xt,Oe))]}else{const he=Ft(le.heritageClauses);return dt(E.updateClassDeclaration(le,Lt,le.name,Ue,he,Oe))}}case 244:return dt(dr(le));case 267:return dt(E.updateEnumDeclaration(le,E.createNodeArray(Uo(le)),le.name,E.createNodeArray(Ui(le.members,Lt=>{if($o(Lt))return;const Ue=J.getEnumMemberValue(Lt),Rt=Ue?.value;ie&&Lt.initializer&&Ue?.hasExternalReferences&&!va(Lt.name)&&e.addDiagnostic(Ar(Lt,f.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const It=Rt===void 0?void 0:typeof Rt=="string"?E.createStringLiteral(Rt):Rt<0?E.createPrefixUnaryExpression(41,E.createNumericLiteral(-Rt)):E.createNumericLiteral(Rt);return ir(E.updateEnumMember(Lt,Lt.name,It),Lt)}))))}return C.assertNever(le,`Unhandled top-level node in declaration emit: ${C.formatSyntaxKind(le.kind)}`);function dt(Lt){return _t(le)&&(d=ht),ne&&(r=Fe),le.kind===268&&(i=it),Lt===le?Lt:(k=void 0,P=void 0,Lt&&jr(ir(Lt,le),le))}}function dr(le){if(!Ye(le.declarationList.declarations,Wt))return;const ht=Xn(le.declarationList.declarations,Ni,yi);if(!et(ht))return;const ne=E.createNodeArray(Uo(le));let Fe;return K2(le.declarationList)||J2(le.declarationList)?(Fe=E.createVariableDeclarationList(ht,2),jr(Fe,le.declarationList),vt(Fe,le.declarationList),Dc(Fe,le.declarationList)):Fe=E.updateVariableDeclarationList(le.declarationList,ht),E.updateVariableStatement(le,ne,Fe)}function ri(le){return la(Ui(le.elements,ht=>ai(ht)))}function ai(le){if(le.kind!==233&&le.name)return Wt(le)?Qo(le.name)?ri(le.name):E.createVariableDeclaration(le.name,void 0,Ge(le),void 0):void 0}function qi(le){let ht;y||(ht=r,r=Cae(le)),P=le.name,C.assert(oy(le));const Fe=le.name.expression;en(Fe,d),y||(r=ht),P=void 0}function $o(le){return!!ye&&!!le&&rte(le,W)}function Ia(le){return ll(le)||fc(le)}function Mn(le){return yt(le,Ia)}function Uo(le){const ht=Gd(le),ne=ot(le);return ht===ne?iP(le.modifiers,Fe=>ni(Fe,Aa),Aa):E.createModifiersFromModifierFlags(ne)}function ot(le){let ht=130030,ne=i&&!$He(le)?128:0;const Fe=le.parent.kind===308;return(!Fe||o&&Fe&&Bc(le.parent))&&(ht^=128,ne=0),w1e(le,ht,ne)}function Ft(le){return E.createNodeArray(Un(Vt(le,ht=>E.updateHeritageClause(ht,Xn(E.createNodeArray(Un(ht.types,ne=>Ds(ne.expression)||ht.token===96&&ne.expression.kind===106)),Ni,dy))),ht=>ht.types&&!!ht.types.length))}}function $He(e){return e.kind===265}function QHe(e,t,r,i){return e.createModifiersFromModifierFlags(w1e(t,r,i))}function w1e(e,t=131070,r=0){let i=Gd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function O1e(e){switch(e.kind){case 173:case 172:return!wp(e,2);case 170:case 261:return!0}return!1}function ZHe(e){switch(e.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}function eqe(e){switch(e.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}function tqe(e){switch(e){case 200:return GU;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return Dae;case 4:return Rae;default:return BU}}var Pae={scriptTransformers:ae,declarationTransformers:ae};function Lae(e,t,r){return{scriptTransformers:nqe(e,t,r),declarationTransformers:rqe(t)}}function nqe(e,t,r){if(r)return ae;const i=Ga(e),o=vu(e),s=Wk(e),l=[];return Xr(l,t&&Vt(t.before,F1e)),l.push(dae),e.experimentalDecorators&&l.push(fae),R6(e)&&l.push(Eae),i<99&&l.push(bae),!e.experimentalDecorators&&(i<99||!s)&&l.push(mae),l.push(uae),i<8&&l.push(vae),i<7&&l.push(yae),i<6&&l.push(gae),i<5&&l.push(_ae),i<4&&l.push(hae),i<3&&l.push(Aae),i<2&&(l.push(Iae),l.push(xae)),l.push(tqe(o)),Xr(l,t&&Vt(t.after,F1e)),l}function rqe(e){const t=[];return t.push(VU),Xr(t,e&&Vt(e.afterDeclarations,oqe)),t}function iqe(e){return t=>uie(t)?e.transformBundle(t):e.transformSourceFile(t)}function W1e(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):iqe(i)}}function F1e(e){return W1e(e,hh)}function oqe(e){return W1e(e,(t,r)=>r)}function uP(e,t){return t}function Bw(e,t,r){r(e,t)}function Gw(e,t,r,i,o,s,l){var u,d;const g=new Array(359);let h,y,E,A=0,R=[],N=[],P=[],k=[],W=0,O=!1,G=[],j=0,J,Z,q=uP,ye=Bw,ie=0;const K=[],pe={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Cu(()=>Hre(pe)),startLexicalEnvironment:ce,suspendLexicalEnvironment:Re,resumeLexicalEnvironment:_e,endLexicalEnvironment:je,setLexicalEnvironmentFlags:Ge,getLexicalEnvironmentFlags:We,hoistVariableDeclaration:Ne,hoistFunctionDeclaration:Be,addInitializationStatement:lt,startBlockScope:at,endBlockScope:Wt,addBlockScopedVariable:cn,requestEmitHelper:gn,readEmitHelpers:Kn,enableSubstitution:X,enableEmitNotification:Se,isSubstitutionEnabled:Ce,isEmitNotificationEnabled:re,get onSubstituteNode(){return q},set onSubstituteNode(en){C.assert(ie<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(en!==void 0,"Value must not be 'undefined'"),q=en},get onEmitNode(){return ye},set onEmitNode(en){C.assert(ie<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(en!==void 0,"Value must not be 'undefined'"),ye=en},addDiagnostic(en){K.push(en)}};for(const en of o)XV(Wn(jo(en)));Dl("beforeTransform");const de=s.map(en=>en(pe)),fe=en=>{for(const ir of de)en=ir(en);return en};ie=1;const ve=[];for(const en of o)(u=xr)==null||u.push(xr.Phase.Emit,"transformNodes",en.kind===308?{path:en.path}:{kind:en.kind,pos:en.pos,end:en.end}),ve.push((l?fe:xe)(en)),(d=xr)==null||d.pop();return ie=2,Dl("afterTransform"),wf("transformTime","beforeTransform","afterTransform"),{transformed:ve,substituteNode:Je,emitNodeWithNotification:be,isEmitNotificationEnabled:re,dispose:_t,diagnostics:K};function xe(en){return en&&(!Yi(en)||!en.isDeclarationFile)?fe(en):en}function X(en){C.assert(ie<2,"Cannot modify the transformation context after transformation has completed."),g[en]|=1}function Ce(en){return(g[en.kind]&1)!==0&&(Qa(en)&8)===0}function Je(en,ir){return C.assert(ie<3,"Cannot substitute a node after the result is disposed."),ir&&Ce(ir)&&q(en,ir)||ir}function Se(en){C.assert(ie<2,"Cannot modify the transformation context after transformation has completed."),g[en]|=2}function re(en){return(g[en.kind]&2)!==0||(Qa(en)&4)!==0}function be(en,ir,Di){C.assert(ie<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),ir&&(re(ir)?ye(en,ir,Di):Di(en,ir))}function Ne(en){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed.");const ir=Cr(r.createVariableDeclaration(en),128);h?h.push(ir):h=[ir],A&1&&(A|=2)}function Be(en){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),Cr(en,2097152),y?y.push(en):y=[en]}function lt(en){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),Cr(en,2097152),E?E.push(en):E=[en]}function ce(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!O,"Lexical environment is suspended."),R[W]=h,N[W]=y,P[W]=E,k[W]=A,W++,h=void 0,y=void 0,E=void 0,A=0}function Re(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!O,"Lexical environment is already suspended."),O=!0}function _e(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(O,"Lexical environment is not suspended."),O=!1}function je(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!O,"Lexical environment is suspended.");let en;if(h||y||E){if(y&&(en=[...y]),h){const ir=r.createVariableStatement(void 0,r.createVariableDeclarationList(h));Cr(ir,2097152),en?en.push(ir):en=[ir]}E&&(en?en=[...en,...E]:en=[...E])}return W--,h=R[W],y=N[W],E=P[W],A=k[W],W===0&&(R=[],N=[],P=[],k=[]),en}function Ge(en,ir){A=ir?A|en:A&~en}function We(){return A}function at(){C.assert(ie>0,"Cannot start a block scope during initialization."),C.assert(ie<2,"Cannot start a block scope after transformation has completed."),G[j]=J,j++,J=void 0}function Wt(){C.assert(ie>0,"Cannot end a block scope during initialization."),C.assert(ie<2,"Cannot end a block scope after transformation has completed.");const en=yt(J)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(J.map(ir=>r.createVariableDeclaration(ir)),1))]:void 0;return j--,J=G[j],j===0&&(G=[]),en}function cn(en){C.assert(j>0,"Cannot add a block scoped variable outside of an iteration body."),(J||(J=[])).push(en)}function gn(en){if(C.assert(ie>0,"Cannot modify the transformation context during initialization."),C.assert(ie<2,"Cannot modify the transformation context after transformation has completed."),C.assert(!en.scoped,"Cannot request a scoped emit helper."),en.dependencies)for(const ir of en.dependencies)gn(ir);Z=Bn(Z,en)}function Kn(){C.assert(ie>0,"Cannot modify the transformation context during initialization."),C.assert(ie<2,"Cannot modify the transformation context after transformation has completed.");const en=Z;return Z=void 0,en}function _t(){if(ie<3){for(const en of o)XV(Wn(jo(en)));h=void 0,R=void 0,y=void 0,N=void 0,q=void 0,ye=void 0,Z=void 0,ie=3}}}var Vw={factory:L,getCompilerOptions:()=>({}),getEmitResolver:ha,getEmitHost:ha,getEmitHelperFactory:ha,startLexicalEnvironment:gs,resumeLexicalEnvironment:gs,suspendLexicalEnvironment:gs,endLexicalEnvironment:dS,setLexicalEnvironmentFlags:gs,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:gs,hoistFunctionDeclaration:gs,addInitializationStatement:gs,startBlockScope:gs,endBlockScope:dS,addBlockScopedVariable:gs,requestEmitHelper:gs,readEmitHelpers:ha,enableSubstitution:gs,enableEmitNotification:gs,isSubstitutionEnabled:ha,isEmitNotificationEnabled:ha,onSubstituteNode:uP,onEmitNode:Bw,addDiagnostic:gs},z1e=sqe();function kae(e){return El(e,".tsbuildinfo")}function jU(e,t,r,i=!1,o,s){const l=Mo(r)?r:a6(e,r,i),u=e.getCompilerOptions();if(!o)if(u.outFile){if(l.length){const d=L.createBundle(l),g=t(pP(d,e,i),d);if(g)return g}}else for(const d of l){const g=t(pP(d,e,i),d);if(g)return g}if(s){const d=l0(u);if(d)return t({buildInfoPath:d},void 0)}}function l0(e){const t=e.configFilePath;if(!aqe(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=e.outFile;let i;if(r)i=bu(r);else{if(!t)return;const o=bu(t);i=e.outDir?e.rootDir?ib(e.outDir,cf(e.rootDir,o,!0)):Qr(e.outDir,xc(o)):o}return i+".tsbuildinfo"}function aqe(e){return LS(e)||!!e.tscBuild}function wae(e,t){const r=e.outFile,i=e.emitDeclarationOnly?void 0:r,o=i&&B1e(i,e),s=t||_p(e)?bu(r)+".d.ts":void 0,l=s&&E6(e)?s+".map":void 0;return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l}}function pP(e,t,r){const i=t.getCompilerOptions();if(e.kind===309)return wae(i,r);{const o=cne(e.fileName,t,jw(e.fileName,i)),s=Ff(e),l=s&&Zg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,d=!u||Ff(e)?void 0:B1e(u,i),g=r||_p(i)&&!s?dne(e.fileName,t):void 0,h=g&&E6(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:d,declarationFilePath:g,declarationMapPath:h}}}function B1e(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function jw(e,t){return El(e,".json")?".json":t.jsx===1&&Ql(e,[".jsx",".tsx"])?".jsx":Ql(e,[".mts",".mjs"])?".mjs":Ql(e,[".cts",".cjs"])?".cjs":".js"}function G1e(e,t,r,i){return r?ib(r,cf(i(),e,t)):e}function fP(e,t,r,i=()=>L1(t,r)){return UU(e,t.options,r,i)}function UU(e,t,r,i){return ov(G1e(e,r,t.declarationDir||t.outDir,i),i6(e))}function V1e(e,t,r,i=()=>L1(t,r)){if(t.options.emitDeclarationOnly)return;const o=El(e,".json"),s=HU(e,t.options,r,i);return!o||Zg(e,s,C.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function HU(e,t,r,i){return ov(G1e(e,r,t.outDir,i),jw(e,t))}function j1e(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||ae}}function U1e(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s}=wae(e.options,!1);t(r),t(i),t(o),t(s)}function H1e(e,t,r,i,o){if(ad(t))return;const s=V1e(t,e,r,o);if(i(s),!El(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),_p(e.options))){const l=fP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function mP(e,t,r,i,o){let s;return e.rootDir?(s=To(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=ci(Bd(e.configFilePath)),o?.(s)):s=jae(t(),r,i),s&&s[s.length-1]!==Js&&(s+=Js),s}function L1({options:e,fileNames:t},r){return mP(e,()=>Un(t,i=>!(e.noEmitForJsFiles&&Ql(i,pD))&&!ad(i)),ci(Bd(C.checkDefined(e.configFilePath))),Fd(!r))}function u3(e,t){const{addOutput:r,getOutputs:i}=j1e();if(e.options.outFile)U1e(e,r);else{const o=Cu(()=>L1(e,t));for(const s of e.fileNames)H1e(e,s,t,r,o)}return r(l0(e.options)),i()}function q1e(e,t,r){t=ya(t),C.assert(jn(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=j1e();return e.options.outFile?U1e(e,i):H1e(e,t,r,i),o()}function qU(e,t){if(e.options.outFile){const{jsFilePath:o,declarationFilePath:s}=wae(e.options,!1);return C.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Cu(()=>L1(e,t));for(const o of e.fileNames){if(ad(o))continue;const s=V1e(o,e,t,r);if(s)return s;if(!El(o,".json")&&_p(e.options))return fP(o,e,t,r)}const i=l0(e.options);return i||C.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function JU(e,t){return!!t&&!!e}function KU(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u,d){var g=t.getCompilerOptions(),h=g.sourceMap||g.inlineSourceMap||E6(g)?[]:void 0,y=g.listEmittedFiles?[]:void 0,E=aM(),A=rv(g),R=Ak(A),{enter:N,exit:P}=GB("printTime","beforePrint","afterPrint"),k=!1;return N(),jU(t,W,a6(t,r,u),u,l,!r&&!d),P(),{emitSkipped:k,diagnostics:E.getDiagnostics(),emittedFiles:y,sourceMaps:h};function W({jsFilePath:de,sourceMapFilePath:fe,declarationFilePath:ve,declarationMapPath:xe,buildInfoPath:X},Ce){var Je,Se,re,be,Ne,Be;(Je=xr)==null||Je.push(xr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:de}),G(Ce,de,fe),(Se=xr)==null||Se.pop(),(re=xr)==null||re.push(xr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:ve}),j(Ce,ve,xe),(be=xr)==null||be.pop(),(Ne=xr)==null||Ne.push(xr.Phase.Emit,"emitBuildInfo",{buildInfoPath:X}),O(X),(Be=xr)==null||Be.pop()}function O(de){if(!de||r)return;if(t.isEmitBlocked(de)){k=!0;return}const fe=t.getBuildInfo()||{version:Le};l6(t,E,de,Oae(fe),!1,void 0,{buildInfo:fe}),y?.push(de)}function G(de,fe,ve){if(!de||s||!fe)return;if(t.isEmitBlocked(fe)||g.noEmit){k=!0;return}(Yi(de)?[de]:Un(de.sourceFiles,jF)).forEach(Je=>{(g.noCheck||!EM(Je,g))&&Z(Je)});const xe=Gw(e,t,L,g,[de],i,!1),X={removeComments:g.removeComments,newLine:g.newLine,noEmitHelpers:g.noEmitHelpers,module:vu(g),moduleResolution:ru(g),target:Ga(g),sourceMap:g.sourceMap,inlineSourceMap:g.inlineSourceMap,inlineSources:g.inlineSources,extendedDiagnostics:g.extendedDiagnostics},Ce=Wb(X,{hasGlobalName:e.hasGlobalName,onEmitNode:xe.emitNodeWithNotification,isEmitNotificationEnabled:xe.isEmitNotificationEnabled,substituteNode:xe.substituteNode});C.assert(xe.transformed.length===1,"Should only see one output from the transform"),q(fe,ve,xe,Ce,g),xe.dispose(),y&&(y.push(fe),ve&&y.push(ve))}function j(de,fe,ve){if(!de||s===0)return;if(!fe){(s||g.emitDeclarationOnly)&&(k=!0);return}const xe=Yi(de)?[de]:de.sourceFiles,X=u?xe:Un(xe,jF),Ce=g.outFile?[L.createBundle(X)]:X;X.forEach(re=>{(s&&!_p(g)||g.noCheck||JU(s,u)||!EM(re,g))&&J(re)});const Je=Gw(e,t,L,g,Ce,o,!1);if(et(Je.diagnostics))for(const re of Je.diagnostics)E.add(re);const Se=!!Je.diagnostics&&!!Je.diagnostics.length||!!t.isEmitBlocked(fe)||!!g.noEmit;if(k=k||Se,!Se||u){C.assert(Je.transformed.length===1,"Should only see one output from the decl transform");const re={removeComments:g.removeComments,newLine:g.newLine,noEmitHelpers:!0,module:g.module,moduleResolution:g.moduleResolution,target:g.target,sourceMap:s!==2&&g.declarationMap,inlineSourceMap:g.inlineSourceMap,extendedDiagnostics:g.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},be=Wb(re,{hasGlobalName:e.hasGlobalName,onEmitNode:Je.emitNodeWithNotification,isEmitNotificationEnabled:Je.isEmitNotificationEnabled,substituteNode:Je.substituteNode}),Ne=q(fe,ve,Je,be,{sourceMap:re.sourceMap,sourceRoot:g.sourceRoot,mapRoot:g.mapRoot,extendedDiagnostics:g.extendedDiagnostics});y&&(Ne&&y.push(fe),ve&&y.push(ve))}Je.dispose()}function J(de){if(ll(de)){de.expression.kind===80&&e.collectLinkedAliases(de.expression,!0);return}else if(iu(de)){e.collectLinkedAliases(de.propertyName||de.name,!0);return}Jo(de,J)}function Z(de){Mu(de)||$I(de,fe=>{if(zc(fe)&&!(tv(fe)&32)||vl(fe))return"skip";e.markLinkedReferences(fe)})}function q(de,fe,ve,xe,X){const Ce=ve.transformed[0],Je=Ce.kind===309?Ce:void 0,Se=Ce.kind===308?Ce:void 0,re=Je?Je.sourceFiles:[Se];let be;ye(X,Ce)&&(be=qoe(t,xc(Bd(de)),ie(X),K(X,de,Se),X)),Je?xe.writeBundle(Je,R,be):xe.writeFile(Se,R,be);let Ne;if(be){h&&h.push({inputSourceFileNames:be.getSources(),sourceMap:be.toJSON()});const ce=pe(X,be,de,fe,Se);if(ce&&(R.isAtStartOfLine()||R.rawWrite(A),Ne=R.getTextPos(),R.writeComment(`//# sourceMappingURL=${ce}`)),fe){const Re=be.toString();l6(t,E,fe,Re,!1,re)}}else R.writeLine();const Be=R.getText(),lt={sourceMapUrlPos:Ne,diagnostics:ve.diagnostics};return l6(t,E,de,Be,!!g.emitBOM,re,lt),R.clear(),!lt.skippedDtsWrite}function ye(de,fe){return(de.sourceMap||de.inlineSourceMap)&&(fe.kind!==308||!El(fe.fileName,".json"))}function ie(de){const fe=Bd(de.sourceRoot||"");return fe&&Uc(fe)}function K(de,fe,ve){if(de.sourceRoot)return t.getCommonSourceDirectory();if(de.mapRoot){let xe=Bd(de.mapRoot);return ve&&(xe=ci(s6(ve.fileName,t,xe))),zh(xe)===0&&(xe=Qr(t.getCommonSourceDirectory(),xe)),xe}return ci(ya(fe))}function pe(de,fe,ve,xe,X){if(de.inlineSourceMap){const Je=fe.toString();return`data:application/json;base64,${xne(jc,Je)}`}const Ce=xc(Bd(C.checkDefined(xe)));if(de.mapRoot){let Je=Bd(de.mapRoot);return X&&(Je=ci(s6(X.fileName,t,Je))),zh(Je)===0?(Je=Qr(t.getCommonSourceDirectory(),Je),encodeURI(MR(ci(ya(ve)),Qr(Je,Ce),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Qr(Je,Ce))}return encodeURI(Ce)}}function Oae(e){return JSON.stringify(e)}function XU(e,t){return rV(e,t)}var Wae={hasGlobalName:ha,getReferencedExportContainer:ha,getReferencedImportDeclaration:ha,getReferencedDeclarationWithCollidingName:ha,isDeclarationWithCollidingName:ha,isValueAliasDeclaration:ha,isReferencedAliasDeclaration:ha,isTopLevelValueImportEqualsWithEntityName:ha,hasNodeCheckFlag:ha,isDeclarationVisible:ha,isLateBound:e=>!1,collectLinkedAliases:ha,markLinkedReferences:ha,isImplementationOfOverload:ha,requiresAddingImplicitUndefined:ha,isExpandoFunctionDeclaration:ha,getPropertiesOfContainerFunction:ha,createTypeOfDeclaration:ha,createReturnTypeOfSignatureDeclaration:ha,createTypeOfExpression:ha,createLiteralConstValue:ha,isSymbolAccessible:ha,isEntityNameVisible:ha,getConstantValue:ha,getEnumMemberValue:ha,getReferencedValueDeclaration:ha,getReferencedValueDeclarations:ha,getTypeReferenceSerializationKind:ha,isOptionalParameter:ha,isArgumentsLocalBinding:ha,getExternalModuleFileFromDeclaration:ha,isLiteralConstDeclaration:ha,getJsxFactoryEntity:ha,getJsxFragmentFactoryEntity:ha,isBindingCapturedByNode:ha,getDeclarationStatementsForSourceFile:ha,isImportRequiredByAugmentation:ha,isDefinitelyReferenceToGlobalSymbolObject:ha,createLateBoundIndexSignatures:ha,symbolToDeclarations:ha},Fae=Cu(()=>Wb({})),XS=Cu(()=>Wb({removeComments:!0})),zae=Cu(()=>Wb({removeComments:!0,neverAsciiEscape:!0})),YU=Cu(()=>Wb({removeComments:!0,omitTrailingSemicolon:!0}));function Wb(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Bw,isEmitNotificationEnabled:o,substituteNode:s=uP,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:g,onBeforeEmitToken:h,onAfterEmitToken:y}=t,E=!!e.extendedDiagnostics,A=!!e.omitBraceSourceMapPositions,R=rv(e),N=vu(e),P=new Map,k,W,O,G,j,J,Z,q,ye,ie,K,pe,de,fe,ve,xe=e.preserveSourceNewlines,X,Ce,Je,Se=IC,re,be=!0,Ne,Be,lt=-1,ce,Re=-1,_e=-1,je=-1,Ge=-1,We,at,Wt=!1,cn=!!e.removeComments,gn,Kn,{enter:_t,exit:en}=Ybe(E,"commentTime","beforeComment","afterComment"),ir=L.parenthesizer,Di={select:D=>D===0?ir.parenthesizeLeadingTypeArgument:void 0},lo=Pc();return $o(),{printNode:zt,printList:Zr,printFile:Ni,printBundle:Ai,writeNode:Pr,writeList:Ci,writeFile:At,writeBundle:$e};function zt(D,me,Et){switch(D){case 0:C.assert(Yi(me),"Expected a SourceFile node.");break;case 2:C.assert(He(me),"Expected an Identifier node.");break;case 1:C.assert(St(me),"Expected an Expression node.");break}switch(me.kind){case 308:return Ni(me);case 309:return Ai(me)}return Pr(D,me,Et,mn()),dr()}function Zr(D,me,Et){return Ci(D,me,Et,mn()),dr()}function Ai(D){return $e(D,mn(),void 0),dr()}function Ni(D){return At(D,mn(),void 0),dr()}function Pr(D,me,Et,An){const vi=Ce;qi(An,void 0),ri(D,me,Et),$o(),Ce=vi}function Ci(D,me,Et,An){const vi=Ce;qi(An,void 0),Et&&ai(Et),Jr(void 0,me,D),$o(),Ce=vi}function $e(D,me,Et){re=!1;const An=Ce;qi(me,Et),Av(D),Jm(D),Kt(D),eL(D);for(const vi of D.sourceFiles)ri(0,vi,vi);$o(),Ce=An}function At(D,me,Et){re=!0;const An=Ce;qi(me,Et),Av(D),Jm(D),ri(0,D,D),$o(),Ce=An}function mn(){return Je||(Je=Ak(R))}function dr(){const D=Je.getText();return Je.clear(),D}function ri(D,me,Et){Et&&ai(Et),ne(D,me,void 0)}function ai(D){k=D,We=void 0,at=void 0,D&&_E(D)}function qi(D,me){D&&e.omitTrailingSemicolon&&(D=GG(D)),Ce=D,Ne=me,be=!Ce||!Ne}function $o(){W=[],O=[],G=[],j=new Set,J=[],Z=new Map,q=[],ye=0,ie=[],K=0,pe=[],de=void 0,fe=[],ve=void 0,k=void 0,We=void 0,at=void 0,qi(void 0,void 0)}function Ia(){return We||(We=ag(C.checkDefined(k)))}function Mn(D,me){D!==void 0&&ne(4,D,me)}function Uo(D){D!==void 0&&ne(2,D,void 0)}function ot(D,me){D!==void 0&&ne(1,D,me)}function Ft(D){ne(ka(D)?6:4,D)}function le(D){xe&&Fm(D)&4&&(xe=!1)}function ht(D){xe=D}function ne(D,me,Et){Kn=Et,dt(0,D,me)(D,me),Kn=void 0}function Fe(D){return!cn&&!Yi(D)}function it(D){return!be&&!Yi(D)&&!VF(D)}function dt(D,me,Et){switch(D){case 0:if(i!==Bw&&(!o||o(Et)))return Ue;case 1:if(s!==uP&&(gn=s(me,Et)||Et)!==Et)return Kn&&(gn=Kn(gn)),nt;case 2:if(Fe(Et))return mE;case 3:if(it(Et))return cA;case 4:return Rt;default:return C.assertNever(D)}}function Lt(D,me,Et){return dt(D+1,me,Et)}function Ue(D,me){const Et=Lt(0,D,me);i(D,me,Et)}function Rt(D,me){if(l?.(me),xe){const Et=xe;le(me),It(D,me),ht(Et)}else It(D,me);u?.(me),Kn=void 0}function It(D,me,Et=!0){if(Et){const An=$V(me);if(An)return he(D,me,An)}if(D===0)return R0(ma(me,Yi));if(D===2)return te(ma(me,He));if(D===6)return Nt(ma(me,ka),!0);if(D===3)return Ot(ma(me,sl));if(D===7)return f_(ma(me,S1));if(D===5)return C.assertNode(me,lj),bh(!0);if(D===4){switch(me.kind){case 16:case 17:case 18:return Nt(me,!1);case 80:return te(me);case 81:return xt(me);case 167:return Xt(me);case 168:return gt(me);case 169:return Bt(me);case 170:return gr(me);case 171:return tr(me);case 172:return Jn(me);case 173:return ft(me);case 174:return Mt(me);case 175:return jt(me);case 176:return Qt(me);case 177:return In(me);case 178:case 179:return yn(me);case 180:return wt(me);case 181:return En(me);case 182:return xn(me);case 183:return Ii(me);case 184:return ra(me);case 185:return sa(me);case 186:return Sc(me);case 187:return $s(me);case 188:return Ra(me);case 189:return tc(me);case 190:return Lo(me);case 191:return is(me);case 193:return qa(me);case 194:return Zt(me);case 195:return As(me);case 196:return ql(me);case 197:return lc(me);case 234:return ld(me);case 198:return vd();case 199:return Fs(me);case 200:return Ee(me);case 201:return Y(me);case 202:return pt(me);case 203:return fa(me);case 204:return qt(me);case 205:return Ln(me);case 206:return fn(me);case 207:return ur(me);case 208:return si(me);case 209:return Dr(me);case 240:return Cg(me);case 241:return ln();case 242:return Ng(me);case 244:return Xc(me);case 243:return bh(!1);case 245:return Tf(me);case 246:return p_(me);case 247:return ut(me);case 248:return tn(me);case 249:return an(me);case 250:return wn(me);case 251:return or(me);case 252:return Ti(me);case 253:return $i(me);case 254:return ta(me);case 255:return Eo(me);case 256:return Vo(me);case 257:return ml(me);case 258:return Ca(me);case 259:return cd(me);case 260:return Up(me);case 261:return Sf(me);case 262:return Yf(me);case 263:return Ty(me);case 264:return Rn(me);case 265:return Lr(me);case 266:return Yn(me);case 267:return lr(me);case 268:return Oi(me);case 269:return Ro(me);case 270:return _i(me);case 271:return U_(me);case 272:return Do(me);case 273:return hl(me);case 274:return sp(me);case 275:return xm(me);case 281:return bC(me);case 276:return Td(me);case 277:return Rm(me);case 278:return Hp(me);case 279:return v0(me);case 280:return QP(me);case 282:return TC(me);case 301:return j_(me);case 302:return b0(me);case 283:return;case 284:return U1(me);case 12:return q1(me);case 287:case 290:return ZP(me);case 288:case 291:return xx(me);case 292:return SC(me);case 293:return S0(me);case 294:return J1(me);case 295:return Dx(me);case 296:return Cx(me);case 297:return Hb(me);case 298:return Sv(me);case 299:return Ey(me);case 300:return Ay(me);case 304:return qb(me);case 305:return E0(me);case 306:return K1(me);case 307:return A0(me);case 308:return R0(me);case 309:return C.fail("Bundles should be printed using printBundle");case 310:return x0(me);case 311:return xy(me);case 313:return zr("*");case 314:return zr("?");case 315:return Ps(me);case 316:return co(me);case 317:return Go(me);case 318:return xl(me);case 192:case 319:return bf(me);case 320:return;case 321:return ns(me);case 323:return Au(me);case 324:return q_(me);case 328:case 333:case 338:return I0(me);case 329:case 330:return H_(me);case 331:case 332:return;case 334:case 335:case 336:case 337:return;case 339:return lp(me);case 340:return Jd(me);case 342:case 349:return Bu(me);case 341:case 343:case 344:case 345:case 350:case 351:return X1(me);case 346:return cl(me);case 347:return qd(me);case 348:return EC(me);case 352:return Iy(me);case 354:case 355:return}if(St(me)&&(D=1,s!==uP)){const An=s(D,me)||me;An!==me&&(me=An,Kn&&(me=Kn(me)))}}if(D===1)switch(me.kind){case 9:case 10:return Oe(me);case 11:case 14:case 15:return Nt(me,!1);case 80:return te(me);case 81:return xt(me);case 210:return Fn(me);case 211:return ro(me);case 212:return So(me);case 213:return Da(me);case 214:return Qs(me);case 215:return Ec(me);case 216:return mc(me);case 217:return Hs(me);case 218:return Ll(me);case 219:return vh(me);case 220:return Pd(me);case 221:return ze(me);case 222:return Jt(me);case 223:return er(me);case 224:return go(me);case 225:return Za(me);case 226:return Va(me);case 227:return lo(me);case 228:return tl(me);case 229:return kl(me);case 230:return Jl(me);case 231:return rf(me);case 232:return bd(me);case 233:return;case 235:return jp(me);case 236:return Eu(me);case 234:return ld(me);case 239:return Xf(me);case 237:return G_(me);case 238:return C.fail("SyntheticExpression should never be printed.");case 283:return;case 285:return Tv(me);case 286:return H1(me);case 289:return Ix(me);case 353:return C.fail("SyntaxList should not be printed");case 354:return;case 356:return Qe(me);case 357:return Y1(me);case 358:return C.fail("SyntheticReferenceExpression should not be printed")}if(ep(me.kind))return eA(me,Wo);if(L9(me.kind))return eA(me,zr);C.fail(`Unhandled SyntaxKind: ${C.formatSyntaxKind(me.kind)}.`)}function Ot(D){Mn(D.name),Mr(),Wo("in"),Mr(),Mn(D.constraint)}function nt(D,me){const Et=Lt(1,D,me);C.assertIsDefined(gn),me=gn,gn=void 0,Et(D,me)}function Kt(D){let me=!1;const Et=D.kind===309?D:void 0;if(Et&&N===0)return;const An=Et?Et.sourceFiles.length:1;for(let vi=0;vi")}function Gl(D){Mr(),Mn(D.type)}function xl(D){Wo("function"),C0(D,D.parameters),zr(":"),Mn(D.type)}function Ps(D){zr("?"),Mn(D.type)}function co(D){zr("!"),Mn(D.type)}function Go(D){Mn(D.type),zr("=")}function Sc(D){Sh(D,D.modifiers),Wo("new"),Mr(),zu(D,zo,Gl)}function $s(D){Wo("typeof"),Mr(),Mn(D.exprName),$f(D,D.typeArguments)}function Ra(D){Xm(D),Ye(D.members,fE),zr("{");const me=Qa(D)&1?768:32897;Jr(D,D.members,me|524288),zr("}"),Ny(D)}function tc(D){Mn(D.elementType,ir.parenthesizeNonArrayTypeOfPostfixType),zr("["),zr("]")}function bf(D){zr("..."),Mn(D.type)}function Lo(D){z(23,D.pos,zr,D);const me=Qa(D)&1?528:657;Jr(D,D.elements,me|524288,ir.parenthesizeElementTypeOfTupleType),z(24,D.elements.end,zr,D)}function fa(D){Mn(D.dotDotDotToken),Mn(D.name),Mn(D.questionToken),z(59,D.name.end,zr,D),Mr(),Mn(D.type)}function is(D){Mn(D.type,ir.parenthesizeTypeOfOptionalType),zr("?")}function qa(D){Jr(D,D.types,516,ir.parenthesizeConstituentTypeOfUnionType)}function Zt(D){Jr(D,D.types,520,ir.parenthesizeConstituentTypeOfIntersectionType)}function As(D){Mn(D.checkType,ir.parenthesizeCheckTypeOfConditionalType),Mr(),Wo("extends"),Mr(),Mn(D.extendsType,ir.parenthesizeExtendsTypeOfConditionalType),Mr(),zr("?"),Mr(),Mn(D.trueType),Mr(),zr(":"),Mr(),Mn(D.falseType)}function ql(D){Wo("infer"),Mr(),Mn(D.typeParameter)}function lc(D){zr("("),Mn(D.type),zr(")")}function vd(){Wo("this")}function Fs(D){Yb(D.operator,Wo),Mr();const me=D.operator===148?ir.parenthesizeOperandOfReadonlyTypeOperator:ir.parenthesizeOperandOfTypeOperator;Mn(D.type,me)}function Ee(D){Mn(D.objectType,ir.parenthesizeNonArrayTypeOfPostfixType),zr("["),Mn(D.indexType),zr("]")}function Y(D){const me=Qa(D);zr("{"),me&1?Mr():(cu(),J_()),D.readonlyToken&&(Mn(D.readonlyToken),D.readonlyToken.kind!==148&&Wo("readonly"),Mr()),zr("["),ne(3,D.typeParameter),D.nameType&&(Mr(),Wo("as"),Mr(),Mn(D.nameType)),zr("]"),D.questionToken&&(Mn(D.questionToken),D.questionToken.kind!==58&&zr("?")),zr(":"),Mr(),Mn(D.type),xu(),me&1?Mr():(cu(),Eh()),Jr(D,D.members,2),zr("}")}function pt(D){ot(D.literal)}function qt(D){Mn(D.head),Jr(D,D.templateSpans,262144)}function fn(D){D.isTypeOf&&(Wo("typeof"),Mr()),Wo("import"),zr("("),Mn(D.argument),D.attributes&&(zr(","),Mr(),ne(7,D.attributes)),zr(")"),D.qualifier&&(zr("."),Mn(D.qualifier)),$f(D,D.typeArguments)}function ur(D){zr("{"),Jr(D,D.elements,525136),zr("}")}function si(D){zr("["),Jr(D,D.elements,524880),zr("]")}function Dr(D){Mn(D.dotDotDotToken),D.propertyName&&(Mn(D.propertyName),zr(":"),Mr()),Mn(D.name),D0(D.initializer,D.name.end,D,ir.parenthesizeExpressionForDisallowedComma)}function Fn(D){const me=D.elements,Et=D.multiLine?65536:0;Vr(D,me,8914|Et,ir.parenthesizeExpressionForDisallowedComma)}function ro(D){Xm(D),Ye(D.properties,fE);const me=Qa(D)&131072;me&&J_();const Et=D.multiLine?65536:0,An=k&&k.languageVersion>=1&&!Ff(k)?64:0;Jr(D,D.properties,526226|An|Et),me&&Eh(),Ny(D)}function So(D){ot(D.expression,ir.parenthesizeLeftSideOfAccess);const me=D.questionDotToken||uh(L.createToken(25),D.expression.end,D.name.pos),Et=h_(D,D.expression,me),An=h_(D,me,D.name);Qf(Et,!1),me.kind!==29&&Ns(D.expression)&&!Ce.hasTrailingComment()&&!Ce.hasTrailingWhitespace()&&zr("."),D.questionDotToken?Mn(me):z(me.kind,D.expression.end,zr,D),Qf(An,!1),Mn(D.name),cp(Et,An)}function Ns(D){if(D=Wm(D),np(D)){const me=Zb(D,void 0,!0,!1);return!(D.numericLiteralFlags&448)&&!me.includes(_a(25))&&!me.includes("E")&&!me.includes("e")}else if(Ks(D)){const me=Wre(D);return typeof me=="number"&&isFinite(me)&&me>=0&&Math.floor(me)===me}}function Da(D){ot(D.expression,ir.parenthesizeLeftSideOfAccess),Mn(D.questionDotToken),z(23,D.expression.end,zr,D),ot(D.argumentExpression),z(24,D.argumentExpression.end,zr,D)}function Qs(D){const me=Fm(D)&16;me&&(zr("("),Dy("0"),zr(","),Mr()),ot(D.expression,ir.parenthesizeLeftSideOfAccess),me&&zr(")"),Mn(D.questionDotToken),$f(D,D.typeArguments),Vr(D,D.arguments,2576,ir.parenthesizeExpressionForDisallowedComma)}function Ec(D){z(105,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeExpressionOfNew),$f(D,D.typeArguments),Vr(D,D.arguments,18960,ir.parenthesizeExpressionForDisallowedComma)}function mc(D){const me=Fm(D)&16;me&&(zr("("),Dy("0"),zr(","),Mr()),ot(D.tag,ir.parenthesizeLeftSideOfAccess),me&&zr(")"),$f(D,D.typeArguments),Mr(),ot(D.template)}function Hs(D){zr("<"),Mn(D.type),zr(">"),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function Ll(D){const me=z(21,D.pos,zr,D),Et=$b(D.expression,D);ot(D.expression,void 0),Px(D.expression,D),cp(Et),z(22,D.expression?D.expression.end:me,zr,D)}function vh(D){wg(D.name),bv(D)}function Pd(D){Sh(D,D.modifiers),zu(D,nf,op)}function nf(D){Lg(D,D.typeParameters),m_(D,D.parameters),Cm(D.type),Mr(),Mn(D.equalsGreaterThanToken)}function op(D){ea(D.body)?Xe(D.body):(Mr(),ot(D.body,ir.parenthesizeConciseBodyOfArrowFunction))}function ze(D){z(91,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function Jt(D){z(114,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function er(D){z(116,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function go(D){z(135,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeOperandOfPrefixUnary)}function Za(D){Yb(D.operator,vp),es(D)&&Mr(),ot(D.operand,ir.parenthesizeOperandOfPrefixUnary)}function es(D){const me=D.operand;return me.kind===225&&(D.operator===40&&(me.operator===40||me.operator===46)||D.operator===41&&(me.operator===41||me.operator===47))}function Va(D){ot(D.operand,ir.parenthesizeOperandOfPostfixUnary),Yb(D.operator,vp)}function Pc(){return S4(D,me,Et,An,vi,void 0);function D(Ao,Li){if(Li){Li.stackIndex++,Li.preserveSourceNewlinesStack[Li.stackIndex]=xe,Li.containerPosStack[Li.stackIndex]=_e,Li.containerEndStack[Li.stackIndex]=je,Li.declarationListContainerEndStack[Li.stackIndex]=Ge;const Ja=Li.shouldEmitCommentsStack[Li.stackIndex]=Fe(Ao),_c=Li.shouldEmitSourceMapsStack[Li.stackIndex]=it(Ao);l?.(Ao),Ja&&Ah(Ao),_c&&os(Ao),le(Ao)}else Li={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Li}function me(Ao,Li,Ja){return wi(Ao,Ja,"left")}function Et(Ao,Li,Ja){const _c=Ao.kind!==28,Kd=h_(Ja,Ja.left,Ao),Gu=h_(Ja,Ao,Ja.right);Qf(Kd,_c),Wg(Ao.pos),eA(Ao,Ao.kind===103?Wo:vp),Ym(Ao.end,!0),Qf(Gu,!0)}function An(Ao,Li,Ja){return wi(Ao,Ja,"right")}function vi(Ao,Li){const Ja=h_(Ao,Ao.left,Ao.operatorToken),_c=h_(Ao,Ao.operatorToken,Ao.right);if(cp(Ja,_c),Li.stackIndex>0){const Kd=Li.preserveSourceNewlinesStack[Li.stackIndex],Gu=Li.containerPosStack[Li.stackIndex],B0=Li.containerEndStack[Li.stackIndex],Vu=Li.declarationListContainerEndStack[Li.stackIndex],nT=Li.shouldEmitCommentsStack[Li.stackIndex],jx=Li.shouldEmitSourceMapsStack[Li.stackIndex];ht(Kd),jx&&Wr(Ao),nT&&tT(Ao,Gu,B0,Vu),u?.(Ao),Li.stackIndex--}}function wi(Ao,Li,Ja){const _c=Ja==="left"?ir.getParenthesizeLeftSideOfBinaryForOperator(Li.operatorToken.kind):ir.getParenthesizeRightSideOfBinaryForOperator(Li.operatorToken.kind);let Kd=dt(0,1,Ao);if(Kd===nt&&(C.assertIsDefined(gn),Ao=_c(ma(gn,St)),Kd=Lt(1,1,Ao),gn=void 0),(Kd===mE||Kd===cA||Kd===Rt)&&Nr(Ao))return Ao;Kn=_c,Kd(1,Ao)}}function tl(D){const me=h_(D,D.condition,D.questionToken),Et=h_(D,D.questionToken,D.whenTrue),An=h_(D,D.whenTrue,D.colonToken),vi=h_(D,D.colonToken,D.whenFalse);ot(D.condition,ir.parenthesizeConditionOfConditionalExpression),Qf(me,!0),Mn(D.questionToken),Qf(Et,!0),ot(D.whenTrue,ir.parenthesizeBranchOfConditionalExpression),cp(me,Et),Qf(An,!0),Mn(D.colonToken),Qf(vi,!0),ot(D.whenFalse,ir.parenthesizeBranchOfConditionalExpression),cp(An,vi)}function kl(D){Mn(D.head),Jr(D,D.templateSpans,262144)}function Jl(D){z(127,D.pos,Wo,D),Mn(D.asteriskToken),Iv(D.expression&&On(D.expression),yo)}function rf(D){z(26,D.pos,zr,D),ot(D.expression,ir.parenthesizeExpressionForDisallowedComma)}function bd(D){wg(D.name),Qn(D)}function ld(D){ot(D.expression,ir.parenthesizeLeftSideOfAccess),$f(D,D.typeArguments)}function jp(D){ot(D.expression,void 0),D.type&&(Mr(),Wo("as"),Mr(),Mn(D.type))}function Eu(D){ot(D.expression,ir.parenthesizeLeftSideOfAccess),vp("!")}function Xf(D){ot(D.expression,void 0),D.type&&(Mr(),Wo("satisfies"),Mr(),Mn(D.type))}function G_(D){Xb(D.keywordToken,D.pos,zr),zr("."),Mn(D.name)}function Cg(D){ot(D.expression),Mn(D.literal)}function Ng(D){ap(D,!D.multiLine&&Qb(D))}function ap(D,me){z(19,D.pos,zr,D);const Et=me||Qa(D)&1?768:129;Jr(D,D.statements,Et),z(20,D.statements.end,zr,D,!!(Et&1))}function Xc(D){Iu(D,D.modifiers,!1),Mn(D.declarationList),xu()}function bh(D){D?zr(";"):xu()}function Tf(D){ot(D.expression,ir.parenthesizeExpressionOfExpressionStatement),(!k||!Ff(k)||Os(D.expression))&&xu()}function p_(D){const me=z(101,D.pos,Wo,D);Mr(),z(21,me,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Ry(D,D.thenStatement),D.elseStatement&&(Af(D,D.thenStatement,D.elseStatement),z(93,D.thenStatement.end,Wo,D),D.elseStatement.kind===246?(Mr(),Mn(D.elseStatement)):Ry(D,D.elseStatement))}function oe(D,me){const Et=z(117,me,Wo,D);Mr(),z(21,Et,zr,D),ot(D.expression),z(22,D.expression.end,zr,D)}function ut(D){z(92,D.pos,Wo,D),Ry(D,D.statement),ea(D.statement)&&!xe?Mr():Af(D,D.statement,D.expression),oe(D,D.statement.end),xu()}function tn(D){oe(D,D.pos),Ry(D,D.statement)}function an(D){const me=z(99,D.pos,Wo,D);Mr();let Et=z(21,me,zr,D);ti(D.initializer),Et=z(27,D.initializer?D.initializer.end:Et,zr,D),Iv(D.condition),Et=z(27,D.condition?D.condition.end:Et,zr,D),Iv(D.incrementor),z(22,D.incrementor?D.incrementor.end:Et,zr,D),Ry(D,D.statement)}function wn(D){const me=z(99,D.pos,Wo,D);Mr(),z(21,me,zr,D),ti(D.initializer),Mr(),z(103,D.initializer.end,Wo,D),Mr(),ot(D.expression),z(22,D.expression.end,zr,D),Ry(D,D.statement)}function or(D){const me=z(99,D.pos,Wo,D);Mr(),$1(D.awaitModifier),z(21,me,zr,D),ti(D.initializer),Mr(),z(165,D.initializer.end,Wo,D),Mr(),ot(D.expression),z(22,D.expression.end,zr,D),Ry(D,D.statement)}function ti(D){D!==void 0&&(D.kind===262?Mn(D):ot(D))}function Ti(D){z(88,D.pos,Wo,D),Ef(D.label),xu()}function $i(D){z(83,D.pos,Wo,D),Ef(D.label),xu()}function z(D,me,Et,An,vi){const wi=jo(An),Ao=wi&&wi.kind===An.kind,Li=me;if(Ao&&k&&(me=La(k.text,me)),Ao&&An.pos!==Li){const Ja=vi&&k&&!Gf(Li,me,k);Ja&&J_(),Wg(Li),Ja&&Eh()}if(!A&&(D===19||D===20)?me=Xb(D,me,Et,An):me=Yb(D,Et,me),Ao&&An.end!==me){const Ja=An.kind===295;Ym(me,!Ja,Ja)}return me}function Ve(D){return D.kind===2||!!D.hasTrailingNewLine}function kt(D){if(!k)return!1;const me=lg(k.text,D.pos);if(me){const Et=jo(D);if(Et&&wu(Et.parent))return!0}return yt(me,Ve)||yt(_D(D),Ve)?!0:iie(D)?D.pos!==D.expression.pos&&yt(ob(k.text,D.expression.pos),Ve)?!0:kt(D.expression):!1}function On(D){if(!cn)switch(D.kind){case 356:if(kt(D)){const me=jo(D);if(me&&wu(me)){const Et=L.createParenthesizedExpression(D.expression);return jr(Et,D),vt(Et,me),Et}return L.createParenthesizedExpression(D)}return L.updatePartiallyEmittedExpression(D,On(D.expression));case 212:return L.updatePropertyAccessExpression(D,On(D.expression),D.name);case 213:return L.updateElementAccessExpression(D,On(D.expression),D.argumentExpression);case 214:return L.updateCallExpression(D,On(D.expression),D.typeArguments,D.arguments);case 216:return L.updateTaggedTemplateExpression(D,On(D.tag),D.typeArguments,D.template);case 226:return L.updatePostfixUnaryExpression(D,On(D.operand));case 227:return L.updateBinaryExpression(D,On(D.left),D.operatorToken,D.right);case 228:return L.updateConditionalExpression(D,On(D.condition),D.questionToken,D.whenTrue,D.colonToken,D.whenFalse);case 235:return L.updateAsExpression(D,On(D.expression),D.type);case 239:return L.updateSatisfiesExpression(D,On(D.expression),D.type);case 236:return L.updateNonNullExpression(D,On(D.expression))}return D}function yo(D){return On(ir.parenthesizeExpressionForDisallowedComma(D))}function ta(D){z(107,D.pos,Wo,D),Iv(D.expression&&On(D.expression),On),xu()}function Eo(D){const me=z(118,D.pos,Wo,D);Mr(),z(21,me,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Ry(D,D.statement)}function Vo(D){const me=z(109,D.pos,Wo,D);Mr(),z(21,me,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Mr(),Mn(D.caseBlock)}function ml(D){Mn(D.label),z(59,D.label.end,zr,D),Mr(),Mn(D.statement)}function Ca(D){z(111,D.pos,Wo,D),Iv(On(D.expression),On),xu()}function cd(D){z(113,D.pos,Wo,D),Mr(),Mn(D.tryBlock),D.catchClause&&(Af(D,D.tryBlock,D.catchClause),Mn(D.catchClause)),D.finallyBlock&&(Af(D,D.catchClause||D.tryBlock,D.finallyBlock),z(98,(D.catchClause||D.tryBlock).end,Wo,D),Mr(),Mn(D.finallyBlock))}function Up(D){Xb(89,D.pos,Wo),xu()}function Sf(D){var me,Et,An;Mn(D.name),Mn(D.exclamationToken),Cm(D.type),D0(D.initializer,((me=D.type)==null?void 0:me.end)??((An=(Et=D.name.emitNode)==null?void 0:Et.typeNode)==null?void 0:An.end)??D.name.end,D,ir.parenthesizeExpressionForDisallowedComma)}function Yf(D){if(J2(D))Wo("await"),Mr(),Wo("using");else{const me=CF(D)?"let":qR(D)?"const":K2(D)?"using":"var";Wo(me)}Mr(),Jr(D,D.declarations,528)}function Ty(D){bv(D)}function bv(D){Iu(D,D.modifiers,!1),Wo("function"),Mn(D.asteriskToken),Mr(),Uo(D.name),zu(D,Im,V_)}function zu(D,me,Et){const An=Qa(D)&131072;An&&J_(),Xm(D),Ye(D.parameters,dd),me(D),Et(D),Ny(D),An&&Eh()}function V_(D){const me=D.body;me?Xe(me):xu()}function Th(D){xu()}function Im(D){Lg(D,D.typeParameters),C0(D,D.parameters),Cm(D.type)}function jb(D){if(Qa(D)&1)return!0;if(D.multiLine||!Os(D)&&k&&!d1(D,k)||Rv(D,Ic(D.statements),2)||Mx(D,Zs(D.statements),2,D.statements))return!1;let me;for(const Et of D.statements){if(M0(me,Et,2)>0)return!1;me=Et}return!0}function Xe(D){dd(D),l?.(D),Mr(),zr("{"),J_();const me=jb(D)?mt:Yt;hE(D,D.statements,me),Eh(),Xb(20,D.statements.end,zr,D),u?.(D)}function mt(D){Yt(D,!0)}function Yt(D,me){const Et=Pg(D.statements),An=Ce.getTextPos();Kt(D),Et===0&&An===Ce.getTextPos()&&me?(Eh(),Jr(D,D.statements,768),J_()):Jr(D,D.statements,1,void 0,Et)}function Rn(D){Qn(D)}function Qn(D){Iu(D,D.modifiers,!0),z(86,Yh(D).pos,Wo,D),D.name&&(Mr(),Uo(D.name));const me=Qa(D)&131072;me&&J_(),Lg(D,D.typeParameters),Jr(D,D.heritageClauses,0),Mr(),zr("{"),Xm(D),Ye(D.members,fE),Jr(D,D.members,129),Ny(D),zr("}"),me&&Eh()}function Lr(D){Iu(D,D.modifiers,!1),Wo("interface"),Mr(),Mn(D.name),Lg(D,D.typeParameters),Jr(D,D.heritageClauses,512),Mr(),zr("{"),Xm(D),Ye(D.members,fE),Jr(D,D.members,129),Ny(D),zr("}")}function Yn(D){Iu(D,D.modifiers,!1),Wo("type"),Mr(),Mn(D.name),Lg(D,D.typeParameters),Mr(),zr("="),Mr(),Mn(D.type),xu()}function lr(D){Iu(D,D.modifiers,!1),Wo("enum"),Mr(),Mn(D.name),Mr(),zr("{"),Jr(D,D.members,145),zr("}")}function Oi(D){Iu(D,D.modifiers,!1),~D.flags&2048&&(Wo(D.flags&32?"namespace":"module"),Mr()),Mn(D.name);let me=D.body;if(!me)return xu();for(;me&&pc(me);)zr("."),Mn(me.name),me=me.body;Mr(),Mn(me)}function Ro(D){Xm(D),Ye(D.statements,dd),ap(D,Qb(D)),Ny(D)}function _i(D){z(19,D.pos,zr,D),Jr(D,D.clauses,129),z(20,D.clauses.end,zr,D,!0)}function Do(D){Iu(D,D.modifiers,!1),z(102,D.modifiers?D.modifiers.end:D.pos,Wo,D),Mr(),D.isTypeOnly&&(z(156,D.pos,Wo,D),Mr()),Mn(D.name),Mr(),z(64,D.name.end,zr,D),Mr(),Qi(D.moduleReference),xu()}function Qi(D){D.kind===80?ot(D):Mn(D)}function hl(D){Iu(D,D.modifiers,!1),z(102,D.modifiers?D.modifiers.end:D.pos,Wo,D),Mr(),D.importClause&&(Mn(D.importClause),Mr(),z(161,D.importClause.end,Wo,D),Mr()),ot(D.moduleSpecifier),D.attributes&&Ef(D.attributes),xu()}function sp(D){D.phaseModifier!==void 0&&(z(D.phaseModifier,D.pos,Wo,D),Mr()),Mn(D.name),D.name&&D.namedBindings&&(z(28,D.name.end,zr,D),Mr()),Mn(D.namedBindings)}function xm(D){const me=z(42,D.pos,zr,D);Mr(),z(130,me,Wo,D),Mr(),Mn(D.name)}function Td(D){Mg(D)}function Rm(D){T0(D)}function Hp(D){const me=z(95,D.pos,Wo,D);Mr(),D.isExportEquals?z(64,me,vp,D):z(90,me,Wo,D),Mr(),ot(D.expression,D.isExportEquals?ir.getParenthesizeRightSideOfBinaryForOperator(64):ir.parenthesizeExpressionOfExportDefault),xu()}function v0(D){Iu(D,D.modifiers,!1);let me=z(95,D.pos,Wo,D);if(Mr(),D.isTypeOnly&&(me=z(156,me,Wo,D),Mr()),D.exportClause?Mn(D.exportClause):me=z(42,me,zr,D),D.moduleSpecifier){Mr();const Et=D.exportClause?D.exportClause.end:me;z(161,Et,Wo,D),Mr(),ot(D.moduleSpecifier)}D.attributes&&Ef(D.attributes),xu()}function f_(D){zr("{"),Mr(),Wo(D.token===132?"assert":"with"),zr(":"),Mr();const me=D.elements;Jr(D,me,526226),Mr(),zr("}")}function j_(D){z(D.token,D.pos,Wo,D),Mr();const me=D.elements;Jr(D,me,526226)}function b0(D){Mn(D.name),zr(":"),Mr();const me=D.value;if(!(Qa(me)&1024)){const Et=Zh(me);Ym(Et.pos)}Mn(me)}function U_(D){let me=z(95,D.pos,Wo,D);Mr(),me=z(130,me,Wo,D),Mr(),me=z(145,me,Wo,D),Mr(),Mn(D.name),xu()}function bC(D){const me=z(42,D.pos,zr,D);Mr(),z(130,me,Wo,D),Mr(),Mn(D.name)}function QP(D){Mg(D)}function TC(D){T0(D)}function Mg(D){zr("{"),Jr(D,D.elements,525136),zr("}")}function T0(D){D.isTypeOnly&&(Wo("type"),Mr()),D.propertyName&&(Mn(D.propertyName),Mr(),z(130,D.propertyName.end,Wo,D),Mr()),Mn(D.name)}function U1(D){Wo("require"),zr("("),ot(D.expression),zr(")")}function Tv(D){Mn(D.openingElement),Jr(D,D.children,262144),Mn(D.closingElement)}function H1(D){zr("<"),lE(D.tagName),$f(D,D.typeArguments),Mr(),Mn(D.attributes),zr("/>")}function Ix(D){Mn(D.openingFragment),Jr(D,D.children,262144),Mn(D.closingFragment)}function ZP(D){if(zr("<"),ph(D)){const me=$b(D.tagName,D);lE(D.tagName),$f(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&Mr(),Mn(D.attributes),Px(D.attributes,D),cp(me)}zr(">")}function q1(D){Ce.writeLiteral(D.text)}function xx(D){zr("")}function S0(D){Jr(D,D.properties,262656)}function SC(D){Mn(D.name),ja("=",zr,D.initializer,Ft)}function J1(D){zr("{..."),ot(D.expression),zr("}")}function Rx(D){let me=!1;return g2(k?.text||"",D+1,()=>me=!0),me}function sE(D){let me=!1;return _2(k?.text||"",D+1,()=>me=!0),me}function Ub(D){return Rx(D)||sE(D)}function Dx(D){var me;if(D.expression||!cn&&!Os(D)&&Ub(D.pos)){const Et=k&&!Os(D)&&ca(k,D.pos).line!==ca(k,D.end).line;Et&&Ce.increaseIndent();const An=z(19,D.pos,zr,D);Mn(D.dotDotDotToken),ot(D.expression),z(20,((me=D.expression)==null?void 0:me.end)||An,zr,D),Et&&Ce.decreaseIndent()}}function Cx(D){Uo(D.namespace),zr(":"),Uo(D.name)}function lE(D){D.kind===80?ot(D):Mn(D)}function Hb(D){z(84,D.pos,Wo,D),Mr(),ot(D.expression,ir.parenthesizeExpressionForDisallowedComma),Sy(D,D.statements,D.expression.end)}function Sv(D){const me=z(90,D.pos,Wo,D);Sy(D,D.statements,me)}function Sy(D,me,Et){const An=me.length===1&&(!k||Os(D)||Os(me[0])||_6(D,me[0],k));let vi=163969;An?(Xb(59,Et,zr,D),Mr(),vi&=-130):z(59,Et,zr,D),Jr(D,me,vi)}function Ey(D){Mr(),Yb(D.token,Wo),Mr(),Jr(D,D.types,528)}function Ay(D){const me=z(85,D.pos,Wo,D);Mr(),D.variableDeclaration&&(z(21,me,zr,D),Mn(D.variableDeclaration),z(22,D.variableDeclaration.end,zr,D),Mr()),Mn(D.block)}function qb(D){Mn(D.name),zr(":"),Mr();const me=D.initializer;if(!(Qa(me)&1024)){const Et=Zh(me);Ym(Et.pos)}ot(me,ir.parenthesizeExpressionForDisallowedComma)}function E0(D){Mn(D.name),D.objectAssignmentInitializer&&(Mr(),zr("="),Mr(),ot(D.objectAssignmentInitializer,ir.parenthesizeExpressionForDisallowedComma))}function K1(D){D.expression&&(z(26,D.pos,zr,D),ot(D.expression,ir.parenthesizeExpressionForDisallowedComma))}function A0(D){Mn(D.name),D0(D.initializer,D.name.end,D,ir.parenthesizeExpressionForDisallowedComma)}function ns(D){if(Se("/**"),D.comment){const me=x2(D.comment);if(me){const Et=me.split(/\r\n?|\n/);for(const An of Et)cu(),Mr(),zr("*"),Mr(),Se(An)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===345&&!D.comment?(Mr(),Mn(D.tags[0])):Jr(D,D.tags,33)),Mr(),Se("*/")}function X1(D){Dm(D.tagName),x0(D.typeExpression),qm(D.comment)}function EC(D){Dm(D.tagName),Mn(D.name),qm(D.comment)}function Iy(D){Dm(D.tagName),Mr(),D.importClause&&(Mn(D.importClause),Mr(),z(161,D.importClause.end,Wo,D),Mr()),ot(D.moduleSpecifier),D.attributes&&Ef(D.attributes),qm(D.comment)}function xy(D){Mr(),zr("{"),Mn(D.name),zr("}")}function H_(D){Dm(D.tagName),Mr(),zr("{"),Mn(D.class),zr("}"),qm(D.comment)}function cl(D){Dm(D.tagName),x0(D.constraint),Mr(),Jr(D,D.typeParameters,528),qm(D.comment)}function qd(D){Dm(D.tagName),D.typeExpression&&(D.typeExpression.kind===310?x0(D.typeExpression):(Mr(),zr("{"),Se("Object"),D.typeExpression.isArrayType&&(zr("["),zr("]")),zr("}"))),D.fullName&&(Mr(),Mn(D.fullName)),qm(D.comment),D.typeExpression&&D.typeExpression.kind===323&&Au(D.typeExpression)}function lp(D){Dm(D.tagName),D.name&&(Mr(),Mn(D.name)),qm(D.comment),q_(D.typeExpression)}function Jd(D){qm(D.comment),q_(D.typeExpression)}function I0(D){Dm(D.tagName),qm(D.comment)}function Au(D){Jr(D,L.createNodeArray(D.jsDocPropertyTags),33)}function q_(D){D.typeParameters&&Jr(D,L.createNodeArray(D.typeParameters),33),D.parameters&&Jr(D,L.createNodeArray(D.parameters),33),D.type&&(cu(),Mr(),zr("*"),Mr(),Mn(D.type))}function Bu(D){Dm(D.tagName),x0(D.typeExpression),Mr(),D.isBracketed&&zr("["),Mn(D.name),D.isBracketed&&zr("]"),qm(D.comment)}function Dm(D){zr("@"),Mn(D)}function qm(D){const me=x2(D);me&&(Mr(),Se(me))}function x0(D){D&&(Mr(),zr("{"),Mn(D.type),zr("}"))}function R0(D){cu();const me=D.statements;if(me.length===0||!Uh(me[0])||Os(me[0])){hE(D,me,cE);return}cE(D)}function eL(D){Ev(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[])}function AC(D){D.isDeclarationFile&&Ev(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function Ev(D,me,Et,An){if(D&&(Kb('/// '),cu()),k&&k.moduleName&&(Kb(`/// `),cu()),k&&k.amdDependencies)for(const wi of k.amdDependencies)wi.name?Kb(`/// `):Kb(`/// `),cu();function vi(wi,Ao){for(const Li of Ao){const Ja=Li.resolutionMode?`resolution-mode="${Li.resolutionMode===99?"import":"require"}" `:"",_c=Li.preserve?'preserve="true" ':"";Kb(`/// `),cu()}}vi("path",me),vi("types",Et),vi("lib",An)}function cE(D){const me=D.statements;Xm(D),Ye(D.statements,dd),Kt(D);const Et=ho(me,An=>!Uh(An));AC(D),Jr(D,me,1,void 0,Et===-1?me.length:Et),Ny(D)}function Qe(D){const me=Qa(D);!(me&1024)&&D.pos!==D.expression.pos&&Ym(D.expression.pos),ot(D.expression),!(me&2048)&&D.end!==D.expression.end&&Wg(D.expression.end)}function Y1(D){Vr(D,D.elements,528,void 0)}function Pg(D,me,Et){let An=!!me;for(let vi=0;vi=Et.length||Ao===0;if(Ja&&An&32768){d?.(Et),g?.(Et);return}An&15360&&(zr(lqe(An)),Ja&&Et&&Ym(Et.pos,!0)),d?.(Et),Ja?An&1&&!(xe&&(!me||k&&d1(me,k)))?cu():An&256&&!(An&524288)&&Mr():Q1(D,me,Et,An,vi,wi,Ao,Et.hasTrailingComma,Et),g?.(Et),An&15360&&(Ja&&Et&&Wg(Et.end),zr(cqe(An)))}function Q1(D,me,Et,An,vi,wi,Ao,Li,Ja){const _c=(An&262144)===0;let Kd=_c;const Gu=Rv(me,Et[wi],An);Gu?(cu(Gu),Kd=!1):An&256&&Mr(),An&128&&J_();const B0=fqe(D,vi);let Vu,nT=!1;for(let Mv=0;Mv0){if(An&131||(J_(),nT=!0),Kd&&An&60&&!dh($m.pos)){const gE=Zh($m);Ym(gE.pos,!!(An&512),!0)}cu(Pv),Kd=!1}else Vu&&An&512&&Mr()}if(Kd){const Pv=Zh($m);Ym(Pv.pos)}else Kd=_c;X=$m.pos,B0($m,D,vi,Mv),nT&&(Eh(),nT=!1),Vu=$m}const jx=Vu?Qa(Vu):0,Nm=cn||!!(jx&2048),bl=Li&&An&64&&An&16;bl&&(Vu&&!Nm?z(28,Vu.end,zr,Vu):zr(",")),Vu&&(me?me.end:-1)!==Vu.end&&An&60&&!Nm&&Wg(bl&&Ja?.end?Ja.end:Vu.end),An&128&&Eh();const pA=Mx(me,Et[wi+Ao-1],An,Ja);pA?cu(pA):An&2097408&&Mr()}function Dy(D){Ce.writeLiteral(D)}function pE(D){Ce.writeStringLiteral(D)}function IC(D){Ce.write(D)}function tL(D,me){Ce.writeSymbol(D,me)}function zr(D){Ce.writePunctuation(D)}function xu(){Ce.writeTrailingSemicolon(";")}function Wo(D){Ce.writeKeyword(D)}function vp(D){Ce.writeOperator(D)}function Z1(D){Ce.writeParameter(D)}function Kb(D){Ce.writeComment(D)}function Mr(){Ce.writeSpace(" ")}function xC(D){Ce.writeProperty(D)}function Nx(D){Ce.nonEscapingWrite?Ce.nonEscapingWrite(D):Ce.write(D)}function cu(D=1){for(let me=0;me0)}function J_(){Ce.increaseIndent()}function Eh(){Ce.decreaseIndent()}function Xb(D,me,Et,An){return be?Yb(D,Et,me):dA(An,D,Et,me,Yb)}function eA(D,me){h&&h(D),me(_a(D.kind)),y&&y(D)}function Yb(D,me,Et){const An=_a(D);return me(An),Et<0?Et:Et+An.length}function Af(D,me,Et){if(Qa(D)&1)Mr();else if(xe){const An=h_(D,me,Et);An?cu(An):Mr()}else cu()}function Km(D){const me=D.split(/\r\n?|\n/),Et=nte(me);for(const An of me){const vi=Et?An.slice(Et):An;vi.length&&(cu(),Se(vi))}}function Qf(D,me){D?(J_(),cu(D)):me&&Mr()}function cp(D,me){D&&Eh(),me&&Eh()}function Rv(D,me,Et){if(Et&2||xe){if(Et&65536)return 1;if(me===void 0)return!D||k&&d1(D,k)?0:1;if(me.pos===X||me.kind===12)return 0;if(k&&D&&!dh(D.pos)&&!Os(me)&&(!me.parent||yl(me.parent)===yl(D)))return xe?P0(An=>Mne(me.pos,D.pos,k,An)):_6(D,me,k)?0:1;if(Cy(me,Et))return 1}return Et&1?1:0}function M0(D,me,Et){if(Et&2||xe){if(D===void 0||me===void 0||me.kind===12)return 0;if(k&&!Os(D)&&!Os(me))return xe&&du(D,me)?P0(An=>oV(D,me,k,An)):!xe&&Fx(D,me)?Mk(D,me,k)?0:1:Et&65536?1:0;if(Cy(D,Et)||Cy(me,Et))return 1}else if(PM(me))return 1;return Et&1?1:0}function Mx(D,me,Et,An){if(Et&2||xe){if(Et&65536)return 1;if(me===void 0)return!D||k&&d1(D,k)?0:1;if(k&&D&&!dh(D.pos)&&!Os(me)&&(!me.parent||me.parent===D)){if(xe){const vi=An&&!dh(An.end)?An.end:me.end;return P0(wi=>Pne(vi,D.end,k,wi))}return Dne(D,me,k)?0:1}if(Cy(me,Et))return 1}return Et&1&&!(Et&131072)?1:0}function P0(D){C.assert(!!xe);const me=D(!0);return me===0?D(!1):me}function $b(D,me){const Et=xe&&Rv(me,D,0);return Et&&Qf(Et,!1),!!Et}function Px(D,me){const Et=xe&&Mx(me,D,0,void 0);Et&&cu(Et)}function Cy(D,me){if(Os(D)){const Et=PM(D);return Et===void 0?(me&65536)!==0:Et}return(me&65536)!==0}function h_(D,me,Et){return Qa(D)&262144?0:(D=L0(D),me=L0(me),Et=L0(Et),PM(Et)?1:k&&!Os(D)&&!Os(me)&&!Os(Et)?xe?P0(An=>oV(me,Et,k,An)):Mk(me,Et,k)?0:1:0)}function Qb(D){return D.statements.length===0&&(!k||Mk(D,D,k))}function L0(D){for(;D.kind===218&&Os(D);)D=D.expression;return D}function Dv(D,me){if(pl(D)||KE(D))return k0(D);if(ka(D)&&D.textSourceNode)return Dv(D.textSourceNode,me);const Et=k,An=!!Et&&!!D.parent&&!Os(D);if(dg(D)){if(!An||Wn(D)!==yl(Et))return Kr(D)}else if(fh(D)){if(!An||Wn(D)!==yl(Et))return NM(D)}else if(C.assertNode(D,JE),!An)return D.text;return yS(Et,D,me)}function Zb(D,me=k,Et,An){if(D.kind===11&&D.textSourceNode){const wi=D.textSourceNode;if(He(wi)||eo(wi)||np(wi)||fh(wi)){const Ao=np(wi)?wi.text:Dv(wi);return An?`"${BG(Ao)}"`:Et||Qa(D)&16777216?`"${k_(Ao)}"`:`"${t6(Ao)}"`}else return Zb(wi,Wn(wi),Et,An)}const vi=(Et?1:0)|(An?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return hte(D,me,vi)}function Xm(D){q.push(ye),ye=0,fe.push(ve),!(D&&Qa(D)&1048576)&&(ie.push(K),K=0,J.push(Z),Z=void 0,pe.push(de))}function Ny(D){ye=q.pop(),ve=fe.pop(),!(D&&Qa(D)&1048576)&&(K=ie.pop(),Z=J.pop(),de=pe.pop())}function kg(D){(!de||de===Zs(pe))&&(de=new Set),de.add(D)}function eT(D){(!ve||ve===Zs(fe))&&(ve=new Set),ve.add(D)}function dd(D){if(D)switch(D.kind){case 242:Ye(D.statements,dd);break;case 257:case 255:case 247:case 248:dd(D.statement);break;case 246:dd(D.thenStatement),dd(D.elseStatement);break;case 249:case 251:case 250:dd(D.initializer),dd(D.statement);break;case 256:dd(D.caseBlock);break;case 270:Ye(D.clauses,dd);break;case 297:case 298:Ye(D.statements,dd);break;case 259:dd(D.tryBlock),dd(D.catchClause),dd(D.finallyBlock);break;case 300:dd(D.variableDeclaration),dd(D.block);break;case 244:dd(D.declarationList);break;case 262:Ye(D.declarations,dd);break;case 261:case 170:case 209:case 264:wg(D.name);break;case 263:wg(D.name),Qa(D)&1048576&&(Ye(D.parameters,dd),dd(D.body));break;case 207:case 208:Ye(D.elements,dd);break;case 273:dd(D.importClause);break;case 274:wg(D.name),dd(D.namedBindings);break;case 275:wg(D.name);break;case 281:wg(D.name);break;case 276:Ye(D.elements,dd);break;case 277:wg(D.propertyName||D.name);break}}function fE(D){if(D)switch(D.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:wg(D.name);break}}function wg(D){D&&(pl(D)||KE(D)?k0(D):Qo(D)&&dd(D))}function k0(D){const me=D.emitNode.autoGenerate;if((me.flags&7)===4)return tA(gw(D),eo(D),me.flags,me.prefix,me.suffix);{const Et=me.id;return G[Et]||(G[Et]=Zf(D))}}function tA(D,me,Et,An,vi){const wi=ls(D),Ao=me?O:W;return Ao[wi]||(Ao[wi]=dp(D,me,Et??0,LD(An,k0),LD(vi)))}function Og(D,me){return Lx(D)&&!RC(D,me)&&!j.has(D)}function RC(D,me){let Et,An;if(me?(Et=ve,An=fe):(Et=de,An=pe),Et?.has(D))return!0;for(let vi=An.length-1;vi>=0;vi--)if(Et!==An[vi]&&(Et=An[vi],Et?.has(D)))return!0;return!1}function Lx(D,me){return k?SF(k,D,r):!0}function kx(D,me){for(let Et=me;Et&&IS(Et,me);Et=Et.nextContainer)if(D_(Et)&&Et.locals){const An=Et.locals.get(Nl(D));if(An&&An.flags&3257279)return!1}return!0}function nL(D){switch(D){case"":return K;case"#":return ye;default:return Z?.get(D)??0}}function wx(D,me){switch(D){case"":K=me;break;case"#":ye=me;break;default:Z??(Z=new Map),Z.set(D,me);break}}function w0(D,me,Et,An,vi){An.length>0&&An.charCodeAt(0)===35&&(An=An.slice(1));const wi=n0(Et,An,"",vi);let Ao=nL(wi);if(D&&!(Ao&D)){const Ja=n0(Et,An,D===268435456?"_i":"_n",vi);if(Og(Ja,Et))return Ao|=D,Et?eT(Ja):me&&kg(Ja),wx(wi,Ao),Ja}for(;;){const Li=Ao&268435455;if(Ao++,Li!==8&&Li!==13){const Ja=Li<26?"_"+String.fromCharCode(97+Li):"_"+(Li-26),_c=n0(Et,An,Ja,vi);if(Og(_c,Et))return Et?eT(_c):me&&kg(_c),wx(wi,Ao),_c}}}function My(D,me=Og,Et,An,vi,wi,Ao){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),Et){const Ja=n0(vi,wi,D,Ao);if(me(Ja,vi))return vi?eT(Ja):An?kg(Ja):j.add(Ja),Ja}D.charCodeAt(D.length-1)!==95&&(D+="_");let Li=1;for(;;){const Ja=n0(vi,wi,D+Li,Ao);if(me(Ja,vi))return vi?eT(Ja):An?kg(Ja):j.add(Ja),Ja;Li++}}function DC(D){return My(D,Lx,!0,!1,!1,"","")}function O0(D){const me=Dv(D.name);return kx(me,ni(D,D_))?me:My(me,Og,!1,!1,!1,"","")}function nA(D){const me=hI(D),Et=ka(me)?gte(me.text):"module";return My(Et,Og,!1,!1,!1,"","")}function hc(){return My("default",Og,!1,!1,!1,"","")}function ud(){return My("class",Og,!1,!1,!1,"","")}function Ox(D,me,Et,An){return He(D.name)?tA(D.name,me):w0(0,!1,me,Et,An)}function dp(D,me,Et,An,vi){switch(D.kind){case 80:case 81:return My(Dv(D),Og,!!(Et&16),!!(Et&8),me,An,vi);case 268:case 267:return C.assert(!An&&!vi&&!me),O0(D);case 273:case 279:return C.assert(!An&&!vi&&!me),nA(D);case 263:case 264:{C.assert(!An&&!vi&&!me);const wi=D.name;return wi&&!pl(wi)?dp(wi,!1,Et,An,vi):hc()}case 278:return C.assert(!An&&!vi&&!me),hc();case 232:return C.assert(!An&&!vi&&!me),ud();case 175:case 178:case 179:return Ox(D,me,An,vi);case 168:return w0(0,!0,me,An,vi);default:return w0(0,!1,me,An,vi)}}function Zf(D){const me=D.emitNode.autoGenerate,Et=LD(me.prefix,k0),An=LD(me.suffix);switch(me.flags&7){case 1:return w0(0,!!(me.flags&8),eo(D),Et,An);case 2:return C.assertNode(D,He),w0(268435456,!!(me.flags&8),!1,Et,An);case 3:return My(Kr(D),me.flags&32?Lx:Og,!!(me.flags&16),!!(me.flags&8),eo(D),Et,An)}return C.fail(`Unsupported GeneratedIdentifierKind: ${C.formatEnum(me.flags&7,KB,!0)}.`)}function mE(D,me){const Et=Lt(2,D,me),An=_e,vi=je,wi=Ge;Ah(me),Et(D,me),tT(me,An,vi,wi)}function Ah(D){const me=Qa(D),Et=Zh(D);Cv(D,me,Et.pos,Et.end),me&4096&&(cn=!0)}function tT(D,me,Et,An){const vi=Qa(D),wi=Zh(D);vi&4096&&(cn=!1),Wx(D,vi,wi.pos,wi.end,me,Et,An);const Ao=Gre(D);Ao&&Wx(D,vi,Ao.pos,Ao.end,me,Et,An)}function Cv(D,me,Et,An){_t(),Wt=!1;const vi=Et<0||(me&1024)!==0||D.kind===12,wi=An<0||(me&2048)!==0||D.kind===12;(Et>0||An>0)&&Et!==An&&(vi||bp(Et,D.kind!==354),(!vi||Et>=0&&me&1024)&&(_e=Et),(!wi||An>=0&&me&2048)&&(je=An,D.kind===262&&(Ge=An))),Ye(_D(D),rL),en()}function Wx(D,me,Et,An,vi,wi,Ao){_t();const Li=An<0||(me&2048)!==0||D.kind===12;Ye(tw(D),Vl),(Et>0||An>0)&&Et!==An&&(_e=vi,je=wi,Ge=Ao,!Li&&D.kind!==354&&zx(An)),en()}function rL(D){(D.hasLeadingNewline||D.kind===2)&&Ce.writeLine(),CC(D),D.hasTrailingNewLine||D.kind===2?Ce.writeLine():Ce.writeSpace(" ")}function Vl(D){Ce.isAtStartOfLine()||Ce.writeSpace(" "),CC(D),D.hasTrailingNewLine&&Ce.writeLine()}function CC(D){const me=rA(D),Et=D.kind===3?tI(me):void 0;aD(me,Et,Ce,0,me.length,R)}function rA(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function hE(D,me,Et){_t();const{pos:An,end:vi}=me,wi=Qa(D),Ao=An<0||(wi&1024)!==0,Li=cn||vi<0||(wi&2048)!==0;Ao||qp(me),en(),wi&4096&&!cn?(cn=!0,Et(D),cn=!1):Et(D),_t(),Li||(bp(me.end,!0),Wt&&!Ce.isAtStartOfLine()&&Ce.writeLine()),en()}function Fx(D,me){return D=yl(D),D.parent&&D.parent===yl(me).parent}function du(D,me){if(me.pos-1&&An.indexOf(me)===vi+1}function bp(D,me){Wt=!1,me?D===0&&k?.isDeclarationFile?Gx(D,W0):Gx(D,oA):D===0&&Gx(D,iA)}function iA(D,me,Et,An,vi){lA(D,me)&&oA(D,me,Et,An,vi)}function W0(D,me,Et,An,vi){lA(D,me)||oA(D,me,Et,An,vi)}function Tp(D,me){return e.onlyPrintJsDocStyle?Lj(D,me)||EF(D,me):!0}function oA(D,me,Et,An,vi){!k||!Tp(k.text,D)||(Wt||(mne(Ia(),Ce,vi,D),Wt=!0),Yc(D),aD(k.text,Ia(),Ce,D,me,R),Yc(me),An?Ce.writeLine():Et===3&&Ce.writeSpace(" "))}function Wg(D){cn||D===-1||bp(D,!0)}function zx(D){sA(D,aA)}function aA(D,me,Et,An){!k||!Tp(k.text,D)||(Ce.isAtStartOfLine()||Ce.writeSpace(" "),Yc(D),aD(k.text,Ia(),Ce,D,me,R),Yc(me),An&&Ce.writeLine())}function Ym(D,me,Et){cn||(_t(),sA(D,me?aA:Et?Bx:NC),en())}function Bx(D,me,Et){k&&(Yc(D),aD(k.text,Ia(),Ce,D,me,R),Yc(me),Et===2&&Ce.writeLine())}function NC(D,me,Et,An){k&&(Yc(D),aD(k.text,Ia(),Ce,D,me,R),Yc(me),An?Ce.writeLine():Ce.writeSpace(" "))}function Gx(D,me){k&&(_e===-1||D!==_e)&&(Vx(D)?Nv(me):_2(k.text,D,me,D))}function sA(D,me){k&&(je===-1||D!==je&&D!==Ge)&&g2(k.text,D,me)}function Vx(D){return at!==void 0&&Ba(at).nodePos===D}function Nv(D){if(!k)return;const me=Ba(at).detachedCommentEndPos;at.length-1?at.pop():at=void 0,_2(k.text,me,D,me)}function qp(D){const me=k&&hne(k.text,Ia(),Ce,__,D,R,cn);me&&(at?at.push(me):at=[me])}function __(D,me,Et,An,vi,wi){!k||!Tp(k.text,An)||(Yc(An),aD(D,me,Et,An,vi,wi),Yc(vi))}function lA(D,me){return!!k&&Q9(k.text,D,me)}function cA(D,me){const Et=Lt(3,D,me);os(me),Et(D,me),Wr(me)}function os(D){const me=Qa(D),Et=sv(D),An=Et.source||Be;D.kind!==354&&!(me&32)&&Et.pos>=0&&F0(Et.source||Be,If(An,Et.pos)),me&128&&(be=!0)}function Wr(D){const me=Qa(D),Et=sv(D);me&128&&(be=!1),D.kind!==354&&!(me&64)&&Et.end>=0&&F0(Et.source||Be,Et.end)}function If(D,me){return D.skipTrivia?D.skipTrivia(me):La(D.text,me)}function Yc(D){if(be||dh(D)||uA(Be))return;const{line:me,character:Et}=ca(Be,D);Ne.addMapping(Ce.getLine(),Ce.getColumn(),lt,me,Et,void 0)}function F0(D,me){if(D!==Be){const Et=Be,An=lt;_E(D),Yc(me),z0(Et,An)}else Yc(me)}function dA(D,me,Et,An,vi){if(be||D&&VF(D))return vi(me,Et,An);const wi=D&&D.emitNode,Ao=wi&&wi.flags||0,Li=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[me],Ja=Li&&Li.source||Be;return An=If(Ja,Li?Li.pos:An),!(Ao&256)&&An>=0&&F0(Ja,An),An=vi(me,Et,An),Li&&(An=Li.end),!(Ao&512)&&An>=0&&F0(Ja,An),An}function _E(D){if(!be){if(Be=D,D===ce){lt=Re;return}uA(D)||(lt=Ne.addSource(D.fileName),e.inlineSources&&Ne.setSourceContent(lt,D.text),ce=D,Re=lt)}}function z0(D,me){Be=D,lt=me}function uA(D){return El(D.fileName,".json")}}function sqe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function lqe(e){return z1e[e&15360][0]}function cqe(e){return z1e[e&15360][1]}function dqe(e,t,r,i){t(e)}function uqe(e,t,r,i){t(e,r.select(i))}function pqe(e,t,r,i){t(e,r)}function fqe(e,t){return e.length===1?dqe:typeof t=="object"?uqe:pqe}function p3(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=Fd(r);return{useCaseSensitiveFileNames:r,fileExists:A,readFile:(q,ye)=>e.readFile(q,ye),directoryExists:e.directoryExists&&R,getDirectories:P,readDirectory:k,createDirectory:e.createDirectory&&N,writeFile:e.writeFile&&E,addOrDeleteFileOrDirectory:G,addOrDeleteFile:j,clearCache:Z,realpath:e.realpath&&W};function s(q){return ks(q,t,o)}function l(q){return i.get(Uc(q))}function u(q){const ye=l(ci(q));return ye&&(ye.sortedAndCanonicalizedFiles||(ye.sortedAndCanonicalizedFiles=ye.files.map(o).sort(),ye.sortedAndCanonicalizedDirectories=ye.directories.map(o).sort()),ye)}function d(q){return xc(ya(q))}function g(q,ye){var ie;if(!e.realpath||Uc(s(e.realpath(q)))===ye){const K={files:Vt(e.readDirectory(q,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(q)||[]};return i.set(Uc(ye),K),K}if((ie=e.directoryExists)!=null&&ie.call(e,q))return i.set(ye,!1),!1}function h(q,ye){ye=Uc(ye);const ie=l(ye);if(ie)return ie;try{return g(q,ye)}catch{C.assert(!i.has(Uc(ye)));return}}function y(q,ye){return $v(q,ye,Vs,Wd)>=0}function E(q,ye,ie){const K=s(q),pe=u(K);return pe&&J(pe,d(q),!0),e.writeFile(q,ye,ie)}function A(q){const ye=s(q),ie=u(ye);return ie&&y(ie.sortedAndCanonicalizedFiles,o(d(q)))||e.fileExists(q)}function R(q){const ye=s(q);return i.has(Uc(ye))||e.directoryExists(q)}function N(q){const ye=s(q),ie=u(ye);if(ie){const K=d(q),pe=o(K),de=ie.sortedAndCanonicalizedDirectories;Xv(de,pe,Wd)&&ie.directories.push(K)}e.createDirectory(q)}function P(q){const ye=s(q),ie=h(q,ye);return ie?ie.directories.slice():e.getDirectories(q)}function k(q,ye,ie,K,pe){const de=s(q),fe=h(q,de);let ve;if(fe!==void 0)return ere(q,ye,ie,K,r,t,pe,xe,W);return e.readDirectory(q,ye,ie,K,pe);function xe(Ce){const Je=s(Ce);if(Je===de)return fe||X(Ce,Je);const Se=h(Ce,Je);return Se!==void 0?Se||X(Ce,Je):are}function X(Ce,Je){if(ve&&Je===de)return ve;const Se={files:Vt(e.readDirectory(Ce,void 0,void 0,["*.*"]),d)||ae,directories:e.getDirectories(Ce)||ae};return Je===de&&(ve=Se),Se}}function W(q){return e.realpath?e.realpath(q):q}function O(q){TN(ci(q),ye=>i.delete(Uc(ye))?!0:void 0)}function G(q,ye){if(l(ye)!==void 0){Z();return}const K=u(ye);if(!K){O(ye);return}if(!e.directoryExists){Z();return}const pe=d(q),de={fileExists:e.fileExists(q),directoryExists:e.directoryExists(q)};return de.directoryExists||y(K.sortedAndCanonicalizedDirectories,o(pe))?Z():J(K,pe,de.fileExists),de}function j(q,ye,ie){if(ie===1)return;const K=u(ye);K?J(K,d(q),ie===0):O(ye)}function J(q,ye,ie){const K=q.sortedAndCanonicalizedFiles,pe=o(ye);if(ie)Xv(K,pe,Wd)&&q.files.push(ye);else{const de=$v(K,pe,Vs,Wd);if(de>=0){K.splice(de,1);const fe=q.files.findIndex(ve=>o(ve)===pe);q.files.splice(fe,1)}}}function Z(){i.clear()}}var Bae=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(Bae||{});function f3(e,t,r,i,o){var s;const l=ER(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||ae,o);r.forEach((u,d)=>{l.has(d)||(u.projects.delete(e),u.close())}),l.forEach((u,d)=>{const g=r.get(d);g?g.projects.add(e):r.set(d,{projects:new Set([e]),watcher:i(u,d),close:()=>{const h=r.get(d);!h||h.projects.size!==0||(h.watcher.close(),r.delete(d))}})})}function $U(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function m3(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&m3(e,o,r)})}function QU(e,t,r){hM(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Bm})}function Uw(e,t,r){t?hM(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Kf,onExistingValue:o}):hp(e,Kf);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 Hw({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:d,writeLog:g,toPath:h,getScriptKind:y}){const E=R3(r);if(!E)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(CR(r)&&!(IV(t,o,l)||k()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(doe(t,o.configFile.configFileSpecs,To(ci(i),u),d,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||o.outFile||o.outDir)return!1;if(ad(r)){if(o.declarationDir)return!1}else if(!Ql(r,pD))return!1;const A=bu(r),R=Mo(s)?void 0:DH(s)?s.getProgramOrUndefined():s,N=!R&&!Mo(s)?s:void 0;if(P(A+".ts")||P(A+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function P(W){return R?!!R.getSourceFileByPath(W):N?N.state.fileInfos.has(W):!!hn(s,O=>h(O)===W)}function k(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Ab(o);case 6:return PS(o);case 0:return!1}}}function Gae(e,t){return e?e.isEmittedFile(t):!1}var Vae=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Vae||{});function ZU(e,t,r,i){YZ(t===2?r:gs);const o={watchFile:(N,P,k,W)=>e.watchFile(N,P,k,W),watchDirectory:(N,P,k,W)=>e.watchDirectory(N,P,(k&1)!==0,W)},s=t!==0?{watchFile:A("watchFile"),watchDirectory:A("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:E}:s||o,u=t===2?h:vP;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(N){return(P,k,W,O,G,j)=>{var J;return z4(P,N==="watchFile"?O?.excludeFiles:O?.excludeDirectories,g(),((J=e.getCurrentDirectory)==null?void 0:J.call(e))||"")?u(P,W,O,G,j):l[N].call(void 0,P,k,W,O,G,j)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function h(N,P,k,W,O){return r(`ExcludeWatcher:: Added:: ${R(N,P,k,W,O,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(N,P,k,W,O,i)}`)}}function y(N,P,k,W,O,G){r(`FileWatcher:: Added:: ${R(N,k,W,O,G,i)}`);const j=s.watchFile(N,P,k,W,O,G);return{close:()=>{r(`FileWatcher:: Close:: ${R(N,k,W,O,G,i)}`),j.close()}}}function E(N,P,k,W,O,G){const j=`DirectoryWatcher:: Added:: ${R(N,k,W,O,G,i)}`;r(j);const J=Ls(),Z=s.watchDirectory(N,P,k,W,O,G),q=Ls()-J;return r(`Elapsed:: ${q}ms ${j}`),{close:()=>{const ye=`DirectoryWatcher:: Close:: ${R(N,k,W,O,G,i)}`;r(ye);const ie=Ls();Z.close();const K=Ls()-ie;r(`Elapsed:: ${K}ms ${ye}`)}}}function A(N){return(P,k,W,O,G,j)=>o[N].call(void 0,P,(...J)=>{const Z=`${N==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${J[0]} ${J[1]!==void 0?J[1]:""}:: ${R(P,W,O,G,j,i)}`;r(Z);const q=Ls();k.call(void 0,...J);const ye=Ls()-q;r(`Elapsed:: ${ye}ms ${Z}`)},W,O,G,j)}function R(N,P,k,W,O,G){return`WatchInfo: ${N} ${P} ${JSON.stringify(k)} ${G?G(W,O):O===void 0?W:`${W} ${O}`}`}}function qw(e){const t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Kf(e){e.watcher.close()}function eH(e,t,r="tsconfig.json"){return TN(e,i=>{const o=Qr(i,r);return t(o)?o:void 0})}function tH(e,t){const r=ci(t),i=Cp(e)?e:Qr(r,e);return ya(i)}function jae(e,t,r){let i;return Ye(e,s=>{const l=j8(s,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let d=0;d{let s;try{Dl("beforeIORead"),s=e(r),Dl("afterIORead"),wf("I/O Read","beforeIORead","afterIORead")}catch(l){o&&o(l.message),s=""}return s!==void 0?QI(r,s,i,t):void 0}}function rH(e,t,r){return(i,o,s,l)=>{try{Dl("beforeIOWrite"),qG(i,o,s,e,t,r),Dl("afterIOWrite"),wf("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function h3(e,t,r=jc){const i=new Map,o=Fd(r.useCaseSensitiveFileNames);function s(h){return i.has(h)?!0:(g.directoryExists||r.directoryExists)(h)?(i.set(h,!0),!0):!1}function l(){return ci(ya(r.getExecutingFilePath()))}const u=rv(e),d=r.realpath&&(h=>r.realpath(h)),g={getSourceFile:nH(h=>g.readFile(h),t),getDefaultLibLocation:l,getDefaultLibFileName:h=>Qr(l(),v2(h)),writeFile:rH((h,y,E)=>r.writeFile(h,y,E),h=>(g.createDirectory||r.createDirectory)(h),h=>s(h)),getCurrentDirectory:Cu(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:h=>r.fileExists(h),readFile:h=>r.readFile(h),trace:h=>r.write(h+u),directoryExists:h=>r.directoryExists(h),getEnvironmentVariable:h=>r.getEnvironmentVariable?r.getEnvironmentVariable(h):"",getDirectories:h=>r.getDirectories(h),realpath:d,readDirectory:(h,y,E,A,R)=>r.readDirectory(h,y,E,A,R),createDirectory:h=>r.createDirectory(h),createHash:ia(r,r.createHash)};return g}function hP(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,d=new Map,g=new Map,h=new Map,y=new Map,E=N=>{const P=t(N),k=d.get(P);return k!==void 0?k!==!1?k:void 0:A(P,N)},A=(N,P)=>{const k=i.call(e,P);return d.set(N,k!==void 0?k:!1),k};e.readFile=N=>{const P=t(N),k=d.get(P);return k!==void 0?k!==!1?k:void 0:!El(N,".json")&&!kae(N)?i.call(e,N):A(P,N)};const R=r?(N,P,k,W)=>{const O=t(N),G=typeof P=="object"?P.impliedNodeFormat:void 0,j=y.get(G),J=j?.get(O);if(J)return J;const Z=r(N,P,k,W);return Z&&(ad(N)||El(N,".json"))&&y.set(G,(j||new Map).set(O,Z)),Z}:void 0;return e.fileExists=N=>{const P=t(N),k=g.get(P);if(k!==void 0)return k;const W=o.call(e,N);return g.set(P,!!W),W},u&&(e.writeFile=(N,P,...k)=>{const W=t(N);g.delete(W);const O=d.get(W);O!==void 0&&O!==P?(d.delete(W),y.forEach(G=>G.delete(W))):R&&y.forEach(G=>{const j=G.get(W);j&&j.text!==P&&G.delete(W)}),u.call(e,N,P,...k)}),s&&(e.directoryExists=N=>{const P=t(N),k=h.get(P);if(k!==void 0)return k;const W=s.call(e,N);return h.set(P,!!W),W},l&&(e.createDirectory=N=>{const P=t(N);h.delete(P),l.call(e,N)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:E}}function J1e(e,t,r){let i;return i=Xr(i,e.getConfigFileParsingDiagnostics()),i=Xr(i,e.getOptionsDiagnostics(r)),i=Xr(i,e.getSyntacticDiagnostics(t,r)),i=Xr(i,e.getGlobalDiagnostics(r)),i=Xr(i,e.getSemanticDiagnostics(t,r)),_p(e.getCompilerOptions())&&(i=Xr(i,e.getDeclarationDiagnostics(t,r))),kR(i||ae)}function K1e(e,t){let r="";for(const i of e)r+=iH(i,t);return r}function iH(e,t){const r=`${GE(e)} TS${e.code}: ${a_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=ca(e.file,e.start),s=e.file.fileName;return`${bN(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}var Hae=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(Hae||{}),qae="\x1B[7m",Jae=" ",X1e="\x1B[0m",Y1e="...",mqe=" ",$1e=" ";function Q1e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return C.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function YS(e,t){return t+e+X1e}function Z1e(e,t,r,i,o,s){const{line:l,character:u}=ca(e,t),{line:d,character:g}=ca(e,t+r),h=ca(e,e.text.length).line,y=d-l>=4;let E=(d+1+"").length;y&&(E=Math.max(Y1e.length,E));let A="";for(let R=l;R<=d;R++){A+=s.getNewLine(),y&&l+1r.getCanonicalFileName(d)):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 Kae(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=oH(o,s,t),r+=" - "}if(r+=YS(GE(i),Q1e(i.category)),r+=YS(` TS${i.code}: `,"\x1B[90m"),r+=a_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=Z1e(i.file,i.start,i.length,"",Q1e(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+=mqe+oH(o,s,t),r+=Z1e(o,s,l,$1e,"\x1B[96m",t)),r+=t.getNewLine(),r+=$1e+a_(u,t.getNewLine())}r+=t.getNewLine()}return r}function a_(e,t,r=0){if(Bo(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;osH(t,e,r)};function lH(e,t,r,i,o){return{nameAndMode:g3,resolve:(s,l)=>C1(s,e,r,i,o,t,l)}}function $ae(e){return Bo(e)?e:e.fileName}var rAe={getName:$ae,getMode:(e,t,r)=>Xae(e,t&&T3(t,r))};function y3(e,t,r,i,o){return{nameAndMode:rAe,resolve:(s,l)=>voe(s,e,r,i,t,o,l)}}function Jw(e,t,r,i,o,s,l,u){if(e.length===0)return ae;const d=[],g=new Map,h=u(t,r,i,s,l);for(const y of e){const E=h.nameAndMode.getName(y),A=h.nameAndMode.getMode(y,o,r?.commandLine.options||i),R=eP(E,A);let N=g.get(R);N||g.set(R,N=h.resolve(E,A)),d.push(N)}return d}var _P="__inferred type names__.ts";function v3(e,t,r){const i=e.configFilePath?ci(e.configFilePath):t;return Qr(i,`__lib_node_modules_lookup_${r}__.ts`)}function cH(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 c0(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 gP(e,t){var r,i,o,s;const l=C.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:d}=t;let g,h,y;switch(u){case 3:const E=Yw(l,d);if(y=(i=(r=e.getResolvedModuleFromModuleSpecifier(E,l))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,E.pos===-1)return{file:l,packageId:y,text:E.text};g=La(l.text,E.pos),h=E.end;break;case 4:({pos:g,end:h}=l.referencedFiles[d]);break;case 5:({pos:g,end:h}=l.typeReferenceDirectives[d]),y=(s=(o=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(l.typeReferenceDirectives[d],l))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:g,end:h}=l.libReferenceDirectives[d]);break;default:return C.assertNever(u)}return{file:l,pos:g,end:h,packageId:y}}function dH(e,t,r,i,o,s,l,u,d,g){if(!e||u?.()||!Qp(e.getRootFileNames(),t))return!1;let h;if(!Qp(e.getProjectReferences(),g,N)||e.getSourceFiles().some(A))return!1;const y=e.getMissingFilePaths();if(y&&Hc(y,o))return!1;const E=e.getCompilerOptions();if(!cV(E,r)||e.resolvedLibReferences&&Hc(e.resolvedLibReferences,(k,W)=>l(W)))return!1;if(E.configFile&&r.configFile)return E.configFile.text===r.configFile.text;return!0;function A(k){return!R(k)||s(k.path)}function R(k){return k.version===i(k.resolvedPath,k.fileName)}function N(k,W,O){return K9(k,W)&&P(e.getResolvedProjectReferences()[O],k)}function P(k,W){if(k){if(jn(h,k))return!0;const G=ax(W),j=d(G);return!j||k.commandLine.options.configFile!==j.options.configFile||!Qp(k.commandLine.fileNames,j.fileNames)?!1:((h||(h=[])).push(k),!Ye(k.references,(J,Z)=>!P(J,k.commandLine.projectReferences[Z])))}const O=ax(W);return!d(O)}}function $S(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Kw(e,t,r,i){const o=b3(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function b3(e,t,r,i){const o=ru(i),s=3<=o&&o<=99||wb(e);return Ql(e,[".d.mts",".mts",".mjs"])?99:Ql(e,[".d.cts",".cts",".cjs"])?1:s&&Ql(e,[".d.ts",".ts",".tsx",".js",".jsx"])?l():void 0;function l(){const u=tP(t,r,i),d=[];u.failedLookupLocations=d,u.affectingLocations=d;const g=nP(ci(e),u);return{impliedNodeFormat:g?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:d,packageJsonScope:g}}}var iAe=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]);function hqe(e,t){return e?lI(e.getCompilerOptions(),t,Gj):!1}function _qe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function Xw(e,t,r,i,o){var s,l,u,d,g,h,y,E,A,R,N,P,k,W,O,G;let j=Mo(e)?_qe(e,t,r,i,o):e;const{rootNames:J,options:Z,configFileParsingDiagnostics:q,projectReferences:ye,typeScriptVersion:ie,host:K}=j;let{oldProgram:pe}=j;j=void 0,e=void 0;for(const Xe of Qie)if(Rs(Z,Xe.name)&&typeof Z[Xe.name]=="string")throw new Error(`${Xe.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const de=Cu(()=>kt("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations));let fe,ve,xe,X,Ce,Je,Se,re,be;const Ne=Qae(Eo);let Be,lt,ce,Re,_e,je,Ge,We,at;const Wt=typeof Z.maxNodeModuleJsDepth=="number"?Z.maxNodeModuleJsDepth:0;let cn=0;const gn=new Map,Kn=new Map;(s=xr)==null||s.push(xr.Phase.Program,"createProgram",{configFilePath:Z.configFilePath,rootDir:Z.rootDir},!0),Dl("beforeProgram");const _t=K||Uae(Z),en=E3(_t);let ir=Z.noLib;const Di=Cu(()=>_t.getDefaultLibFileName(Z)),lo=_t.getDefaultLibLocation?_t.getDefaultLibLocation():ci(Di());let zt=!1;const Zr=_t.getCurrentDirectory(),Ai=vM(Z),Ni=Gk(Z,Ai),Pr=new Map;let Ci,$e,At,mn;const dr=_t.hasInvalidatedResolutions||Qg;_t.resolveModuleNameLiterals?(mn=_t.resolveModuleNameLiterals.bind(_t),At=(l=_t.getModuleResolutionCache)==null?void 0:l.call(_t)):_t.resolveModuleNames?(mn=(Xe,mt,Yt,Rn,Qn,Lr)=>_t.resolveModuleNames(Xe.map(Yae),mt,Lr?.map(Yae),Yt,Rn,Qn).map(Yn=>Yn?Yn.extension!==void 0?{resolvedModule:Yn}:{resolvedModule:{...Yn,extension:TM(Yn.resolvedFileName)}}:nAe),At=(u=_t.getModuleResolutionCache)==null?void 0:u.call(_t)):(At=FD(Zr,Xc,Z),mn=(Xe,mt,Yt,Rn,Qn)=>Jw(Xe,mt,Yt,Rn,Qn,_t,At,lH));let ri;if(_t.resolveTypeReferenceDirectiveReferences)ri=_t.resolveTypeReferenceDirectiveReferences.bind(_t);else if(_t.resolveTypeReferenceDirectives)ri=(Xe,mt,Yt,Rn,Qn)=>_t.resolveTypeReferenceDirectives(Xe.map($ae),mt,Yt,Rn,Qn?.impliedNodeFormat).map(Lr=>({resolvedTypeReferenceDirective:Lr}));else{const Xe=H4(Zr,Xc,void 0,At?.getPackageJsonInfoCache(),At?.optionsToRedirectsKey);ri=(mt,Yt,Rn,Qn,Lr)=>Jw(mt,Yt,Rn,Qn,Lr,_t,Xe,y3)}const ai=_t.hasInvalidatedLibResolutions||Qg;let qi;if(_t.resolveLibrary)qi=_t.resolveLibrary.bind(_t);else{const Xe=FD(Zr,Xc,Z,At?.getPackageJsonInfoCache());qi=(mt,Yt,Rn)=>q4(mt,Yt,Rn,_t,Xe)}const $o=new Map;let Ia=new Map,Mn=cm(),Uo;const ot=new Map;let Ft=new Map;const le=_t.useCaseSensitiveFileNames()?new Map:void 0;let ht,ne,Fe,it;const dt=!!((d=_t.useSourceOfProjectReferenceRedirect)!=null&&d.call(_t))&&!Z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Lt,fileExists:Ue,directoryExists:Rt}=gqe({compilerHost:_t,getSymlinkCache:Sf,useSourceOfProjectReferenceRedirect:dt,toPath:jt,getResolvedProjectReferences:sa,getRedirectFromOutput:Jl,forEachResolvedProjectReference:kl}),It=_t.readFile.bind(_t);(g=xr)==null||g.push(xr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!pe});const Ot=hqe(pe,Z);(h=xr)==null||h.pop();let nt;if((y=xr)==null||y.push(xr.Phase.Program,"tryReuseStructureFromOldProgram",{}),nt=Ln(),(E=xr)==null||E.pop(),nt!==2){if(fe=[],ve=[],ye&&(ht||(ht=ye.map(p_)),J.length&&ht?.forEach((Xe,mt)=>{if(!Xe)return;const Yt=Xe.commandLine.options.outFile;if(dt){if(Yt||vu(Xe.commandLine.options)===0)for(const Rn of Xe.commandLine.fileNames)op(Rn,{kind:1,index:mt})}else if(Yt)op(ov(Yt,".d.ts"),{kind:2,index:mt});else if(vu(Xe.commandLine.options)===0){const Rn=Cu(()=>L1(Xe.commandLine,!_t.useCaseSensitiveFileNames()));for(const Qn of Xe.commandLine.fileNames)!ad(Qn)&&!El(Qn,".json")&&op(fP(Qn,Xe.commandLine,!_t.useCaseSensitiveFileNames(),Rn),{kind:2,index:mt})}})),(A=xr)==null||A.push(xr.Phase.Program,"processRootFiles",{count:J.length}),Ye(J,(Xe,mt)=>Da(Xe,!1,!1,{kind:0,index:mt})),(R=xr)==null||R.pop(),Be??(Be=J.length?j4(Z,_t):ae),lt=WD(),Be.length){(N=xr)==null||N.push(xr.Phase.Program,"processTypeReferences",{count:Be.length});const Xe=Z.configFilePath?ci(Z.configFilePath):Zr,mt=Qr(Xe,_P),Yt=wt(Be,mt);for(let Rn=0;Rn{Da(Cg(mt),!0,!1,{kind:6,index:Yt})})}xe=xp(fe,ft).concat(ve),fe=void 0,ve=void 0,Se=void 0}if(pe&&_t.onReleaseOldSourceFile){const Xe=pe.getSourceFiles();for(const mt of Xe){const Yt=Ra(mt.resolvedPath);(Ot||!Yt||Yt.impliedNodeFormat!==mt.impliedNodeFormat||mt.resolvedPath===mt.path&&Yt.resolvedPath!==mt.path)&&_t.onReleaseOldSourceFile(mt,pe.getCompilerOptions(),!!Ra(mt.path),Yt)}_t.getParsedCommandLine||pe.forEachResolvedProjectReference(mt=>{bd(mt.sourceFile.path)||_t.onReleaseOldSourceFile(mt.sourceFile,pe.getCompilerOptions(),!1,void 0)})}pe&&_t.onReleaseParsedCommandLine&&MM(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Xe,mt,Yt)=>{const Rn=mt?.commandLine.projectReferences[Yt]||pe.getProjectReferences()[Yt],Qn=ax(Rn);ne?.has(jt(Qn))||_t.onReleaseParsedCommandLine(Qn,Xe,pe.getCompilerOptions())}),pe=void 0,Re=void 0,je=void 0,We=void 0;const Kt={getRootFileNames:()=>J,getSourceFile:$s,getSourceFileByPath:Ra,getSourceFiles:()=>xe,getMissingFilePaths:()=>Ft,getModuleResolutionCache:()=>At,getFilesByNameMap:()=>ot,getCompilerOptions:()=>Z,getSyntacticDiagnostics:bf,getOptionsDiagnostics:Fn,getGlobalDiagnostics:So,getSemanticDiagnostics:Lo,getCachedSemanticDiagnostics:fa,getSuggestionDiagnostics:pt,getDeclarationDiagnostics:Zt,getBindAndCheckDiagnostics:is,getProgramDiagnostics:qa,getTypeChecker:Ps,getClassifiableNames:In,getCommonSourceDirectory:Qt,emit:co,getCurrentDirectory:()=>Zr,getNodeCount:()=>Ps().getNodeCount(),getIdentifierCount:()=>Ps().getIdentifierCount(),getSymbolCount:()=>Ps().getSymbolCount(),getTypeCount:()=>Ps().getTypeCount(),getInstantiationCount:()=>Ps().getInstantiationCount(),getRelationCacheSizes:()=>Ps().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Ne.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>Be,getAutomaticTypeDirectiveResolutions:()=>lt,isSourceFileFromExternalLibrary:Gl,isSourceFileDefaultLibrary:xl,getModeForUsageLocation:Yf,getEmitSyntaxForUsageLocation:Ty,getModeForResolutionAtIndex:bv,getSourceFileFromReference:vh,getLibFileFromReference:Ll,sourceFileToPackageName:Ia,redirectTargetsMap:Mn,usesUriStyleNodeCoreModules:Uo,resolvedModules:_e,resolvedTypeReferenceDirectiveNames:Ge,resolvedLibReferences:ce,getProgramDiagnosticsContainer:()=>Ne,getResolvedModule:Tr,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Nt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:he,forEachResolvedModule:B,forEachResolvedTypeReferenceDirective:Ae,getCurrentPackagesMap:()=>at,typesPackageExists:Xt,packageBundlesTypes:Pe,isEmittedFile:cd,getConfigFileParsingDiagnostics:Ns,getProjectReferences:zo,getResolvedProjectReferences:sa,getRedirectFromSourceFile:tl,getResolvedProjectReferenceByPath:bd,forEachResolvedProjectReference:kl,isSourceOfProjectReferenceRedirect:rf,getRedirectFromOutput:Jl,getCompilerOptionsForFile:Eu,getDefaultResolutionModeForFile:zu,getEmitModuleFormatOfFile:Th,getImpliedNodeFormatForEmit:V_,shouldTransformImportCall:Im,emitBuildInfo:ra,fileExists:Ue,readFile:It,directoryExists:Rt,getSymlinkCache:Sf,realpath:(O=_t.realpath)==null?void 0:O.bind(_t),useCaseSensitiveFileNames:()=>_t.useCaseSensitiveFileNames(),getCanonicalFileName:Xc,getFileIncludeReasons:()=>Ne.getFileReasons(),structureIsReused:nt,writeFile:Ii,getGlobalTypingsCacheLocation:ia(_t,_t.getGlobalTypingsCacheLocation)};return Lt(),zt||oe(),Dl("afterProgram"),wf("Program","beforeProgram","afterProgram"),(G=xr)==null||G.pop(),Kt;function Tr(Xe,mt,Yt){var Rn;return(Rn=_e?.get(Xe.path))==null?void 0:Rn.get(mt,Yt)}function Oe(Xe,mt){return mt??(mt=Wn(Xe)),C.assertIsDefined(mt,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),Tr(mt,Xe.text,Yf(mt,Xe))}function Nt(Xe,mt,Yt){var Rn;return(Rn=Ge?.get(Xe.path))==null?void 0:Rn.get(mt,Yt)}function he(Xe,mt){return Nt(mt,Xe.fileName,jb(Xe,mt))}function B(Xe,mt){te(_e,Xe,mt)}function Ae(Xe,mt){te(Ge,Xe,mt)}function te(Xe,mt,Yt){var Rn;Yt?(Rn=Xe?.get(Yt.path))==null||Rn.forEach((Qn,Lr,Yn)=>mt(Qn,Lr,Yn,Yt.path)):Xe?.forEach((Qn,Lr)=>Qn.forEach((Yn,lr,Oi)=>mt(Yn,lr,Oi,Lr)))}function xt(){return at||(at=new Map,B(({resolvedModule:Xe})=>{Xe?.packageId&&at.set(Xe.packageId.name,Xe.extension===".d.ts"||!!at.get(Xe.packageId.name))}),at)}function Xt(Xe){return xt().has(X4(Xe))}function Pe(Xe){return!!xt().get(Xe)}function gt(Xe){var mt;(mt=Xe.resolutionDiagnostics)!=null&&mt.length&&Ne.addFileProcessingDiagnostic({kind:2,diagnostics:Xe.resolutionDiagnostics})}function Bt(Xe,mt,Yt,Rn){if(_t.resolveModuleNameLiterals||!_t.resolveModuleNames)return gt(Yt);if(!At||td(mt))return;const Qn=To(Xe.originalFileName,Zr),Lr=ci(Qn),Yn=Jn(Xe),lr=At.getFromNonRelativeNameCache(mt,Rn,Lr,Yn);lr&>(lr)}function gr(Xe,mt,Yt){var Rn,Qn;const Lr=To(mt.originalFileName,Zr),Yn=Jn(mt);(Rn=xr)==null||Rn.push(xr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Lr}),Dl("beforeResolveModule");const lr=mn(Xe,Lr,Yn,Z,mt,Yt);return Dl("afterResolveModule"),wf("ResolveModule","beforeResolveModule","afterResolveModule"),(Qn=xr)==null||Qn.pop(),lr}function tr(Xe,mt,Yt){var Rn,Qn;const Lr=Bo(mt)?void 0:mt,Yn=Bo(mt)?mt:To(mt.originalFileName,Zr),lr=Lr&&Jn(Lr);(Rn=xr)==null||Rn.push(xr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Yn}),Dl("beforeResolveTypeReference");const Oi=ri(Xe,Yn,lr,Z,Lr,Yt);return Dl("afterResolveTypeReference"),wf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Qn=xr)==null||Qn.pop(),Oi}function Jn(Xe){var mt,Yt;const Rn=tl(Xe.originalFileName);if(Rn||!ad(Xe.originalFileName))return Rn?.resolvedRef;const Qn=(mt=Jl(Xe.path))==null?void 0:mt.resolvedRef;if(Qn)return Qn;if(!_t.realpath||!Z.preserveSymlinks||!Xe.originalFileName.includes(Rg))return;const Lr=jt(_t.realpath(Xe.originalFileName));return Lr===Xe.path||(Yt=Jl(Lr))==null?void 0:Yt.resolvedRef}function ft(Xe,mt){return js(Mt(Xe),Mt(mt))}function Mt(Xe){if(um(lo,Xe.fileName,!1)){const mt=xc(Xe.fileName);if(mt==="lib.d.ts"||mt==="lib.es6.d.ts")return 0;const Yt=xR(pN(mt,"lib."),".d.ts"),Rn=x4.indexOf(Yt);if(Rn!==-1)return Rn+1}return x4.length+2}function jt(Xe){return ks(Xe,Zr,Xc)}function Qt(){let Xe=Ne.getCommonSourceDirectory();if(Xe!==void 0)return Xe;const mt=Un(xe,Yt=>RS(Yt,Kt));return Xe=mP(Z,()=>Ui(mt,Yt=>Yt.isDeclarationFile?void 0:Yt.fileName),Zr,Xc,Yt=>Tf(mt,Yt)),Ne.setCommonSourceDirectory(Xe),Xe}function In(){var Xe;if(!Je){Ps(),Je=new Set;for(const mt of xe)(Xe=mt.classifiableNames)==null||Xe.forEach(Yt=>Je.add(Yt))}return Je}function yn(Xe,mt){return En({entries:Xe,containingFile:mt,containingSourceFile:mt,redirectedReference:Jn(mt),nameAndModeGetter:g3,resolutionWorker:gr,getResolutionFromOldProgram:(Yt,Rn)=>pe?.getResolvedModule(mt,Yt,Rn),getResolved:cI,canReuseResolutionsInFile:()=>mt===pe?.getSourceFile(mt.fileName)&&!dr(mt.path),resolveToOwnAmbientModule:!0})}function wt(Xe,mt){const Yt=Bo(mt)?void 0:mt;return En({entries:Xe,containingFile:mt,containingSourceFile:Yt,redirectedReference:Yt&&Jn(Yt),nameAndModeGetter:rAe,resolutionWorker:tr,getResolutionFromOldProgram:(Rn,Qn)=>{var Lr;return Yt?pe?.getResolvedTypeReferenceDirective(Yt,Rn,Qn):(Lr=pe?.getAutomaticTypeDirectiveResolutions())==null?void 0:Lr.get(Rn,Qn)},getResolved:vF,canReuseResolutionsInFile:()=>Yt?Yt===pe?.getSourceFile(Yt.fileName)&&!dr(Yt.path):!dr(jt(mt))})}function En({entries:Xe,containingFile:mt,containingSourceFile:Yt,redirectedReference:Rn,nameAndModeGetter:Qn,resolutionWorker:Lr,getResolutionFromOldProgram:Yn,getResolved:lr,canReuseResolutionsInFile:Oi,resolveToOwnAmbientModule:Ro}){if(!Xe.length)return ae;if(nt===0&&(!Ro||!Yt.ambientModuleNames.length))return Lr(Xe,mt,void 0);let _i,Do,Qi,hl;const sp=Oi();for(let Td=0;TdQi[Do[Rm]]=Td),Qi):xm}function xn(){return!MM(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Xe,mt,Yt)=>{const Rn=(mt?mt.commandLine.projectReferences:ye)[Yt],Qn=p_(Rn);return Xe?!Qn||Qn.sourceFile!==Xe.sourceFile||!Qp(Xe.commandLine.fileNames,Qn.commandLine.fileNames):Qn!==void 0},(Xe,mt)=>{const Yt=mt?bd(mt.sourceFile.path).commandLine.projectReferences:ye;return!Qp(Xe,Yt,K9)})}function Ln(){var Xe;if(!pe)return 0;const mt=pe.getCompilerOptions();if(gF(mt,Z))return 0;const Yt=pe.getRootFileNames();if(!Qp(Yt,J)||!xn())return 0;ye&&(ht=ye.map(p_));const Rn=[],Qn=[];if(nt=2,Hc(pe.getMissingFilePaths(),_i=>_t.fileExists(_i)))return 0;const Lr=pe.getSourceFiles();let Yn;(_i=>{_i[_i.Exists=0]="Exists",_i[_i.Modified=1]="Modified"})(Yn||(Yn={}));const lr=new Map;for(const _i of Lr){const Do=go(_i.fileName,At,_t,Z);let Qi=_t.getSourceFileByPath?_t.getSourceFileByPath(_i.fileName,_i.resolvedPath,Do,void 0,Ot):_t.getSourceFile(_i.fileName,Do,void 0,Ot);if(!Qi)return 0;Qi.packageJsonLocations=(Xe=Do.packageJsonLocations)!=null&&Xe.length?Do.packageJsonLocations:void 0,Qi.packageJsonScope=Do.packageJsonScope,C.assert(!Qi.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let hl;if(_i.redirectInfo){if(Qi!==_i.redirectInfo.unredirected)return 0;hl=!1,Qi=_i}else if(pe.redirectTargetsMap.has(_i.path)){if(Qi!==_i)return 0;hl=!1}else hl=Qi!==_i;Qi.path=_i.path,Qi.originalFileName=_i.originalFileName,Qi.resolvedPath=_i.resolvedPath,Qi.fileName=_i.fileName;const sp=pe.sourceFileToPackageName.get(_i.path);if(sp!==void 0){const xm=lr.get(sp),Td=hl?1:0;if(xm!==void 0&&Td===1||xm===1)return 0;lr.set(sp,Td)}hl?(_i.impliedNodeFormat!==Qi.impliedNodeFormat?nt=1:Qp(_i.libReferenceDirectives,Qi.libReferenceDirectives,Qs)?_i.hasNoDefaultLib!==Qi.hasNoDefaultLib?nt=1:Qp(_i.referencedFiles,Qi.referencedFiles,Qs)?(Hs(Qi),Qp(_i.imports,Qi.imports,Ec)&&Qp(_i.moduleAugmentations,Qi.moduleAugmentations,Ec)?(_i.flags&12582912)!==(Qi.flags&12582912)?nt=1:Qp(_i.typeReferenceDirectives,Qi.typeReferenceDirectives,Qs)||(nt=1):nt=1):nt=1:nt=1,Qn.push(Qi)):dr(_i.path)&&(nt=1,Qn.push(Qi)),Rn.push(Qi)}if(nt!==2)return nt;for(const _i of Qn){const Do=aAe(_i),Qi=yn(Do,_i);(je??(je=new Map)).set(_i.path,Qi);const hl=Eu(_i);Y9(Do,Qi,Hp=>pe.getResolvedModule(_i,Hp.text,_3(_i,Hp,hl)),lte)&&(nt=1);const xm=_i.typeReferenceDirectives,Td=wt(xm,_i);(We??(We=new Map)).set(_i.path,Td),Y9(xm,Td,Hp=>pe.getResolvedTypeReferenceDirective(_i,$ae(Hp),jb(Hp,_i)),cte)&&(nt=1)}if(nt!==2)return nt;if(ate(mt,Z)||pe.resolvedLibReferences&&Hc(pe.resolvedLibReferences,(_i,Do)=>Ng(Do).actual!==_i.actual))return 1;if(_t.hasChangedAutomaticTypeDirectiveNames){if(_t.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Be=j4(Z,_t),!Qp(pe.getAutomaticTypeDirectiveNames(),Be))return 1;Ft=pe.getMissingFilePaths(),C.assert(Rn.length===pe.getSourceFiles().length);for(const _i of Rn)ot.set(_i.path,_i);pe.getFilesByNameMap().forEach((_i,Do)=>{if(!_i){ot.set(Do,_i);return}if(_i.path===Do){pe.isSourceFileFromExternalLibrary(_i)&&Kn.set(_i.path,!0);return}ot.set(Do,ot.get(_i.path))});const Ro=mt.configFile&&mt.configFile===Z.configFile||!mt.configFile&&!Z.configFile&&!lI(mt,Z,Um);return Ne.reuseStateFromOldProgram(pe.getProgramDiagnosticsContainer(),Ro),zt=Ro,xe=Rn,Be=pe.getAutomaticTypeDirectiveNames(),lt=pe.getAutomaticTypeDirectiveResolutions(),Ia=pe.sourceFileToPackageName,Mn=pe.redirectTargetsMap,Uo=pe.usesUriStyleNodeCoreModules,_e=pe.resolvedModules,Ge=pe.resolvedTypeReferenceDirectiveNames,ce=pe.resolvedLibReferences,at=pe.getCurrentPackagesMap(),2}function ln(Xe){return{getCanonicalFileName:Xc,getCommonSourceDirectory:Kt.getCommonSourceDirectory,getCompilerOptions:Kt.getCompilerOptions,getCurrentDirectory:()=>Zr,getSourceFile:Kt.getSourceFile,getSourceFileByPath:Kt.getSourceFileByPath,getSourceFiles:Kt.getSourceFiles,isSourceFileFromExternalLibrary:Gl,getRedirectFromSourceFile:tl,isSourceOfProjectReferenceRedirect:rf,getSymlinkCache:Sf,writeFile:Xe||Ii,isEmitBlocked:Go,shouldTransformImportCall:Im,getEmitModuleFormatOfFile:Th,getDefaultResolutionModeForFile:zu,getModeForResolutionAtIndex:bv,readFile:mt=>_t.readFile(mt),fileExists:mt=>{const Yt=jt(mt);return Ra(Yt)?!0:Ft.has(Yt)?!1:_t.fileExists(mt)},realpath:ia(_t,_t.realpath),useCaseSensitiveFileNames:()=>_t.useCaseSensitiveFileNames(),getBuildInfo:()=>{var mt;return(mt=Kt.getBuildInfo)==null?void 0:mt.call(Kt)},getSourceFileFromReference:(mt,Yt)=>Kt.getSourceFileFromReference(mt,Yt),redirectTargetsMap:Mn,getFileIncludeReasons:Kt.getFileIncludeReasons,createHash:ia(_t,_t.createHash),getModuleResolutionCache:()=>Kt.getModuleResolutionCache(),trace:ia(_t,_t.trace),getGlobalTypingsCacheLocation:Kt.getGlobalTypingsCacheLocation}}function Ii(Xe,mt,Yt,Rn,Qn,Lr){_t.writeFile(Xe,mt,Yt,Rn,Qn,Lr)}function ra(Xe){var mt,Yt;(mt=xr)==null||mt.push(xr.Phase.Emit,"emitBuildInfo",{},!0),Dl("beforeEmit");const Rn=KU(Wae,ln(Xe),void 0,Pae,!1,!0);return Dl("afterEmit"),wf("Emit","beforeEmit","afterEmit"),(Yt=xr)==null||Yt.pop(),Rn}function sa(){return ht}function zo(){return ye}function Gl(Xe){return!!Kn.get(Xe.path)}function xl(Xe){if(!Xe.isDeclarationFile)return!1;if(Xe.hasNoDefaultLib)return!0;if(Z.noLib)return!1;const mt=_t.useCaseSensitiveFileNames()?uS:tb;return Z.lib?yt(Z.lib,Yt=>{const Rn=ce.get(Yt);return!!Rn&&mt(Xe.fileName,Rn.actual)}):mt(Xe.fileName,Di())}function Ps(){return Ce||(Ce=Uoe(Kt))}function co(Xe,mt,Yt,Rn,Qn,Lr,Yn){var lr,Oi;(lr=xr)==null||lr.push(xr.Phase.Emit,"emit",{path:Xe?.path},!0);const Ro=ql(()=>Sc(Kt,Xe,mt,Yt,Rn,Qn,Lr,Yn));return(Oi=xr)==null||Oi.pop(),Ro}function Go(Xe){return Pr.has(jt(Xe))}function Sc(Xe,mt,Yt,Rn,Qn,Lr,Yn,lr){if(!Yn){const Do=pH(Xe,mt,Yt,Rn);if(Do)return Do}const Oi=Ps(),Ro=Oi.getEmitResolver(Z.outFile?void 0:mt,Rn,JU(Qn,Yn));Dl("beforeEmit");const _i=Oi.runWithCancellationToken(Rn,()=>KU(Ro,ln(Yt),mt,Lae(Z,Lr,Qn),Qn,!1,Yn,lr));return Dl("afterEmit"),wf("Emit","beforeEmit","afterEmit"),_i}function $s(Xe){return Ra(jt(Xe))}function Ra(Xe){return ot.get(Xe)||void 0}function tc(Xe,mt,Yt){return kR(Xe?mt(Xe,Yt):Ki(Kt.getSourceFiles(),Rn=>(Yt&&Yt.throwIfCancellationRequested(),mt(Rn,Yt))))}function bf(Xe,mt){return tc(Xe,As,mt)}function Lo(Xe,mt,Yt){return tc(Xe,(Rn,Qn)=>lc(Rn,Qn,Yt),mt)}function fa(Xe){return re?.get(Xe.path)}function is(Xe,mt){return vd(Xe,mt,void 0)}function qa(Xe){var mt;if(fD(Xe,Z,Kt))return ae;const Yt=Ne.getCombinedDiagnostics(Kt).getDiagnostics(Xe.fileName);return(mt=Xe.commentDirectives)!=null&&mt.length?Y(Xe,Xe.commentDirectives,Yt).diagnostics:Yt}function Zt(Xe,mt){return tc(Xe,Dr,mt)}function As(Xe){return Mu(Xe)?(Xe.additionalSyntacticDiagnostics||(Xe.additionalSyntacticDiagnostics=fn(Xe)),so(Xe.additionalSyntacticDiagnostics,Xe.parseDiagnostics)):Xe.parseDiagnostics}function ql(Xe){try{return Xe()}catch(mt){throw mt instanceof yN&&(Ce=void 0),mt}}function lc(Xe,mt,Yt){return so(S3(vd(Xe,mt,Yt),Z),qa(Xe))}function vd(Xe,mt,Yt){if(Yt)return Fs(Xe,mt,Yt);let Rn=re?.get(Xe.path);return Rn||(re??(re=new Map)).set(Xe.path,Rn=Fs(Xe,mt)),Rn}function Fs(Xe,mt,Yt){return ql(()=>{if(fD(Xe,Z,Kt))return ae;const Rn=Ps();C.assert(!!Xe.bindDiagnostics);const Qn=Xe.scriptKind===1||Xe.scriptKind===2,Lr=zN(Xe,Z.checkJs),Yn=Qn&&SM(Xe,Z);let lr=Xe.bindDiagnostics,Oi=Rn.getDiagnostics(Xe,mt,Yt);return Lr&&(lr=Un(lr,Ro=>iAe.has(Ro.code)),Oi=Un(Oi,Ro=>iAe.has(Ro.code))),Ee(Xe,!Lr,!!Yt,lr,Oi,Yn?Xe.jsDocDiagnostics:void 0)})}function Ee(Xe,mt,Yt,...Rn){var Qn;const Lr=la(Rn);if(!mt||!((Qn=Xe.commentDirectives)!=null&&Qn.length))return Lr;const{diagnostics:Yn,directives:lr}=Y(Xe,Xe.commentDirectives,Lr);if(Yt)return Yn;for(const Oi of lr.getUnusedExpectations())Yn.push(xte(Xe,Oi.range,f.Unused_ts_expect_error_directive));return Yn}function Y(Xe,mt,Yt){const Rn=pte(Xe,mt);return{diagnostics:Yt.filter(Lr=>qt(Lr,Rn)===-1),directives:Rn}}function pt(Xe,mt){return ql(()=>Ps().getSuggestionDiagnostics(Xe,mt))}function qt(Xe,mt){const{file:Yt,start:Rn}=Xe;if(!Yt)return-1;const Qn=ag(Yt);let Lr=PR(Qn,Rn).line-1;for(;Lr>=0;){if(mt.markUsed(Lr))return Lr;const Yn=Yt.text.slice(Qn[Lr],Qn[Lr+1]).trim();if(Yn!==""&&!/^\s*\/\/.*$/.test(Yn))return-1;Lr--}return-1}function fn(Xe){return ql(()=>{const mt=[];return Yt(Xe,Xe),$I(Xe,Yt,Rn),mt;function Yt(lr,Oi){switch(Oi.kind){case 170:case 173:case 175:if(Oi.questionToken===lr)return mt.push(Yn(lr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(Oi.type===lr)return mt.push(Yn(lr,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(lr.kind){case 274:if(lr.isTypeOnly)return mt.push(Yn(Oi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(lr.isTypeOnly)return mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(lr.isTypeOnly)return mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,Su(lr)?"import...type":"export...type")),"skip";break;case 272:return mt.push(Yn(lr,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(lr.isExportEquals)return mt.push(Yn(lr,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(lr.token===119)return mt.push(Yn(lr,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:const _i=_a(120);return C.assertIsDefined(_i),mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,_i)),"skip";case 268:const Do=lr.flags&32?_a(145):_a(144);return C.assertIsDefined(Do),mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,Do)),"skip";case 266:return mt.push(Yn(lr,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return lr.body?void 0:(mt.push(Yn(lr,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:const Qi=C.checkDefined(_a(94));return mt.push(Yn(lr,f._0_declarations_can_only_be_used_in_TypeScript_files,Qi)),"skip";case 236:return mt.push(Yn(lr,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return mt.push(Yn(lr.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return mt.push(Yn(lr.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:C.fail()}}function Rn(lr,Oi){if(Cj(Oi)){const Ro=hn(Oi.modifiers,Fc);Ro&&mt.push(Yn(Ro,f.Decorators_are_not_valid_here))}else if(HS(Oi)&&Oi.modifiers){const Ro=ho(Oi.modifiers,Fc);if(Ro>=0){if(to(Oi)&&!Z.experimentalDecorators)mt.push(Yn(Oi.modifiers[Ro],f.Decorators_are_not_valid_here));else if(Cc(Oi)){const _i=ho(Oi.modifiers,zI);if(_i>=0){const Do=ho(Oi.modifiers,i4);if(Ro>_i&&Do>=0&&Ro=0&&Ro<_i){const Qi=ho(Oi.modifiers,Fc,_i);Qi>=0&&mt.push(pa(Yn(Oi.modifiers[Qi],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Yn(Oi.modifiers[Ro],f.Decorator_used_before_export_here)))}}}}}switch(Oi.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(lr===Oi.typeParameters)return mt.push(Lr(lr,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(lr===Oi.modifiers)return Qn(Oi.modifiers,Oi.kind===244),"skip";break;case 173:if(lr===Oi.modifiers){for(const Ro of lr)Aa(Ro)&&Ro.kind!==126&&Ro.kind!==129&&mt.push(Yn(Ro,f.The_0_modifier_can_only_be_used_in_TypeScript_files,_a(Ro.kind)));return"skip"}break;case 170:if(lr===Oi.modifiers&&yt(lr,Aa))return mt.push(Lr(lr,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(lr===Oi.typeArguments)return mt.push(Lr(lr,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Qn(lr,Oi){for(const Ro of lr)switch(Ro.kind){case 87:if(Oi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:mt.push(Yn(Ro,f.The_0_modifier_can_only_be_used_in_TypeScript_files,_a(Ro.kind)));break;case 126:case 95:case 90:case 129:}}function Lr(lr,Oi,...Ro){const _i=lr.pos;return Wc(Xe,_i,lr.end-_i,Oi,...Ro)}function Yn(lr,Oi,...Ro){return Wf(Xe,lr,Oi,...Ro)}})}function ur(Xe,mt){let Yt=be?.get(Xe.path);return Yt||(be??(be=new Map)).set(Xe.path,Yt=si(Xe,mt)),Yt}function si(Xe,mt){return ql(()=>{const Yt=Ps().getEmitResolver(Xe,mt);return Mae(ln(gs),Yt,Xe)||ae})}function Dr(Xe,mt){return Xe.isDeclarationFile?ae:ur(Xe,mt)}function Fn(){return kR(so(Ne.getCombinedDiagnostics(Kt).getGlobalDiagnostics(),ro()))}function ro(){if(!Z.configFile)return ae;let Xe=Ne.getCombinedDiagnostics(Kt).getDiagnostics(Z.configFile.fileName);return kl(mt=>{Xe=so(Xe,Ne.getCombinedDiagnostics(Kt).getDiagnostics(mt.sourceFile.fileName))}),Xe}function So(){return J.length?kR(Ps().getGlobalDiagnostics().slice()):ae}function Ns(){return q||ae}function Da(Xe,mt,Yt,Rn){nf(ya(Xe),mt,Yt,void 0,Rn)}function Qs(Xe,mt){return Xe.fileName===mt.fileName}function Ec(Xe,mt){return Xe.kind===80?mt.kind===80&&Xe.escapedText===mt.escapedText:mt.kind===11&&Xe.text===mt.text}function mc(Xe,mt){const Yt=L.createStringLiteral(Xe),Rn=L.createImportDeclaration(void 0,void 0,Yt);return f1(Rn,2),ps(Yt,Rn),ps(Rn,mt),Yt.flags&=-17,Rn.flags&=-17,Yt}function Hs(Xe){if(Xe.imports)return;const mt=Mu(Xe),Yt=Bc(Xe);let Rn,Qn,Lr;if(mt||!Xe.isDeclarationFile&&(ym(Z)||Bc(Xe))){Z.importHelpers&&(Rn=[mc(fb,Xe)]);const lr=D6(zk(Z,Xe),Z);lr&&(Rn||(Rn=[])).push(mc(lr,Xe))}for(const lr of Xe.statements)Yn(lr,!1);(Xe.flags&4194304||mt)&&K6(Xe,!0,!0,(lr,Oi)=>{HT(lr,!1),Rn=Bn(Rn,Oi)}),Xe.imports=Rn||ae,Xe.moduleAugmentations=Qn||ae,Xe.ambientModuleNames=Lr||ae;return;function Yn(lr,Oi){if(j2(lr)){const Ro=hI(lr);Ro&&ka(Ro)&&Ro.text&&(!Oi||!td(Ro.text))&&(HT(lr,!1),Rn=Bn(Rn,Ro),!Uo&&cn===0&&!Xe.isDeclarationFile&&(po(Ro.text,"node:")&&!J6.has(Ro.text)?Uo=!0:Uo===void 0&&Are.has(Ro.text)&&(Uo=!1)))}else if(pc(lr)&&gu(lr)&&(Oi||di(lr,128)||Xe.isDeclarationFile)){lr.name.parent=lr;const Ro=zf(lr.name);if(Yt||Oi&&!td(Ro))(Qn||(Qn=[])).push(lr.name);else if(!Oi){Xe.isDeclarationFile&&(Lr||(Lr=[])).push(Ro);const _i=lr.body;if(_i)for(const Do of _i.statements)Yn(Do,!0)}}}}function Ll(Xe){var mt;const Yt=GV(Xe),Rn=Yt&&((mt=ce?.get(Yt))==null?void 0:mt.actual);return Rn!==void 0?$s(Rn):void 0}function vh(Xe,mt){return Pd(tH(mt.fileName,Xe.fileName),$s)}function Pd(Xe,mt,Yt,Rn){if(CR(Xe)){const Qn=_t.getCanonicalFileName(Xe);if(!Z.allowNonTsExtensions&&!Ye(la(Ni),Yn=>El(Qn,Yn))){Yt&&(Tg(Qn)?Yt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Xe):Yt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Xe,"'"+la(Ai).join("', '")+"'"));return}const Lr=mt(Xe);if(Yt)if(Lr)c0(Rn)&&Qn===_t.getCanonicalFileName(Ra(Rn.file).fileName)&&Yt(f.A_file_cannot_have_a_reference_to_itself);else{const Yn=tl(Xe);Yn?.outputDts?Yt(f.Output_file_0_has_not_been_built_from_source_file_1,Yn.outputDts,Xe):Yt(f.File_0_not_found,Xe)}return Lr}else{const Qn=Z.allowNonTsExtensions&&mt(Xe);if(Qn)return Qn;if(Yt&&Z.allowNonTsExtensions){Yt(f.File_0_not_found,Xe);return}const Lr=Ye(Ai[0],Yn=>mt(Xe+Yn));return Yt&&!Lr&&Yt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Xe,"'"+la(Ai).join("', '")+"'"),Lr}}function nf(Xe,mt,Yt,Rn,Qn){Pd(Xe,Lr=>er(Lr,mt,Yt,Qn,Rn),(Lr,...Yn)=>or(void 0,Qn,Lr,Yn),Qn)}function op(Xe,mt){return nf(Xe,!1,!1,void 0,mt)}function ze(Xe,mt,Yt){!c0(Yt)&&yt(Ne.getFileReasons().get(mt.path),c0)?or(mt,Yt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[mt.fileName,Xe]):or(mt,Yt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Xe,mt.fileName])}function Jt(Xe,mt,Yt,Rn,Qn,Lr,Yn){var lr;const Oi=r0.createRedirectedSourceFile({redirectTarget:Xe,unredirected:mt});return Oi.fileName=Yt,Oi.path=Rn,Oi.resolvedPath=Qn,Oi.originalFileName=Lr,Oi.packageJsonLocations=(lr=Yn.packageJsonLocations)!=null&&lr.length?Yn.packageJsonLocations:void 0,Oi.packageJsonScope=Yn.packageJsonScope,Kn.set(Rn,cn>0),Oi}function er(Xe,mt,Yt,Rn,Qn){var Lr,Yn;(Lr=xr)==null||Lr.push(xr.Phase.Program,"findSourceFile",{fileName:Xe,isDefaultLib:mt||void 0,fileIncludeKind:XB[Rn.kind]});const lr=Za(Xe,mt,Yt,Rn,Qn);return(Yn=xr)==null||Yn.pop(),lr}function go(Xe,mt,Yt,Rn){const Qn=b3(To(Xe,Zr),mt?.getPackageJsonInfoCache(),Yt,Rn),Lr=Ga(Rn),Yn=kk(Rn);return typeof Qn=="object"?{...Qn,languageVersion:Lr,setExternalModuleIndicator:Yn,jsDocParsingMode:Yt.jsDocParsingMode}:{languageVersion:Lr,impliedNodeFormat:Qn,setExternalModuleIndicator:Yn,jsDocParsingMode:Yt.jsDocParsingMode}}function Za(Xe,mt,Yt,Rn,Qn){var Lr,Yn;const lr=jt(Xe);if(dt){let Qi=Jl(lr);if(!Qi&&_t.realpath&&Z.preserveSymlinks&&ad(Xe)&&Xe.includes(Rg)){const hl=jt(_t.realpath(Xe));hl!==lr&&(Qi=Jl(hl))}if(Qi?.source){const hl=er(Qi.source,mt,Yt,Rn,Qn);return hl&&Va(hl,lr,Xe,void 0),hl}}const Oi=Xe;if(ot.has(lr)){const Qi=ot.get(lr),hl=es(Qi||void 0,Rn,!0);if(Qi&&hl&&Z.forceConsistentCasingInFileNames!==!1){const sp=Qi.fileName;jt(sp)!==jt(Xe)&&(Xe=((Lr=tl(Xe))==null?void 0:Lr.outputDts)||Xe);const Td=f9(sp,Zr),Rm=f9(Xe,Zr);Td!==Rm&&ze(Xe,Qi,Rn)}return Qi&&Kn.get(Qi.path)&&cn===0?(Kn.set(Qi.path,!1),Z.noResolve||(ld(Qi,mt),jp(Qi)),Z.noLib||ap(Qi),gn.set(Qi.path,!1),bh(Qi)):Qi&&gn.get(Qi.path)&&cnor(void 0,Rn,f.Cannot_read_file_0_Colon_1,[Xe,Qi]),Ot);if(Qn){const Qi=kT(Qn),hl=$o.get(Qi);if(hl){const sp=Jt(hl,Do,Xe,lr,jt(Xe),Oi,_i);return Mn.add(hl.path,Xe),Va(sp,lr,Xe,Ro),es(sp,Rn,!1),Ia.set(lr,TF(Qn)),ve.push(sp),sp}else Do&&($o.set(Qi,Do),Ia.set(lr,TF(Qn)))}if(Va(Do,lr,Xe,Ro),Do){if(Kn.set(lr,cn>0),Do.fileName=Xe,Do.path=lr,Do.resolvedPath=jt(Xe),Do.originalFileName=Oi,Do.packageJsonLocations=(Yn=_i.packageJsonLocations)!=null&&Yn.length?_i.packageJsonLocations:void 0,Do.packageJsonScope=_i.packageJsonScope,es(Do,Rn,!1),_t.useCaseSensitiveFileNames()){const Qi=Zv(lr),hl=le.get(Qi);hl?ze(Xe,hl,Rn):le.set(Qi,Do)}ir=ir||Do.hasNoDefaultLib&&!Yt,Z.noResolve||(ld(Do,mt),jp(Do)),Z.noLib||ap(Do),bh(Do),mt?fe.push(Do):ve.push(Do),(Se??(Se=new Set)).add(Do.path)}return Do}function es(Xe,mt,Yt){return Xe&&(!Yt||!c0(mt)||!Se?.has(mt.file))?(Ne.getFileReasons().add(Xe.path,mt),!0):!1}function Va(Xe,mt,Yt,Rn){Rn?(Pc(Yt,Rn,Xe),Pc(Yt,mt,Xe||!1)):Pc(Yt,mt,Xe)}function Pc(Xe,mt,Yt){ot.set(mt,Yt),Yt!==void 0?Ft.delete(mt):Ft.set(mt,Xe)}function tl(Xe){return Fe?.get(jt(Xe))}function kl(Xe){return VV(ht,Xe)}function Jl(Xe){return it?.get(Xe)}function rf(Xe){return dt&&!!tl(Xe)}function bd(Xe){if(ne)return ne.get(Xe)||void 0}function ld(Xe,mt){Ye(Xe.referencedFiles,(Yt,Rn)=>{nf(tH(Yt.fileName,Xe.fileName),mt,!1,void 0,{kind:4,file:Xe.path,index:Rn})})}function jp(Xe){const mt=Xe.typeReferenceDirectives;if(!mt.length)return;const Yt=We?.get(Xe.path)||wt(mt,Xe),Rn=WD();(Ge??(Ge=new Map)).set(Xe.path,Rn);for(let Qn=0;Qn{const Rn=GV(mt);Rn?Da(Cg(Rn),!0,!0,{kind:7,file:Xe.path,index:Yt}):Ne.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:Xe.path,index:Yt}})})}function Xc(Xe){return _t.getCanonicalFileName(Xe)}function bh(Xe){if(Hs(Xe),Xe.imports.length||Xe.moduleAugmentations.length){const mt=aAe(Xe),Yt=je?.get(Xe.path)||yn(mt,Xe);C.assert(Yt.length===mt.length);const Rn=Eu(Xe),Qn=WD();(_e??(_e=new Map)).set(Xe.path,Qn);for(let Lr=0;LrWt,sp=Qi&&!fH(Rn,Yn,Xe)&&!Rn.noResolve&&LrL1(Yn.commandLine,!_t.useCaseSensitiveFileNames()));Qn.fileNames.forEach(Ro=>{const _i=jt(Ro);let Do;!ad(Ro)&&!El(Ro,".json")&&(Qn.options.outFile?Do=lr:(Do=fP(Ro,Yn.commandLine,!_t.useCaseSensitiveFileNames(),Oi),it.set(jt(Do),{resolvedRef:Yn,source:Ro}))),Fe.set(_i,{resolvedRef:Yn,outputDts:Do})})}return Qn.projectReferences&&(Yn.references=Qn.projectReferences.map(p_)),Yn}function oe(){Z.strictPropertyInitialization&&!Vd(Z,"strictNullChecks")&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),Z.exactOptionalPropertyTypes&&!Vd(Z,"strictNullChecks")&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(Z.isolatedModules||Z.verbatimModuleSyntax)&&Z.outFile&&Ve(f.Option_0_cannot_be_specified_with_option_1,"outFile",Z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),Z.isolatedDeclarations&&(Ab(Z)&&Ve(f.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),_p(Z)||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),Z.inlineSourceMap&&(Z.sourceMap&&Ve(f.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),Z.mapRoot&&Ve(f.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),Z.composite&&(Z.declaration===!1&&Ve(f.Composite_projects_may_not_disable_declaration_emit,"declaration"),Z.incremental===!1&&Ve(f.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const Xe=Z.outFile;if(!Z.tsBuildInfoFile&&Z.incremental&&!Xe&&!Z.configFilePath&&Ne.addConfigDiagnostic(Il(f.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),an(),ti(),Z.composite){const Yn=new Set(J.map(jt));for(const lr of xe)RS(lr,Kt)&&!Yn.has(lr.path)&&Ne.addLazyConfigDiagnostic(lr,f.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,lr.fileName,Z.configFilePath||"")}if(Z.paths){for(const Yn in Z.paths)if(Rs(Z.paths,Yn))if(yV(Yn)||$i(!0,Yn,f.Pattern_0_can_have_at_most_one_Asterisk_character,Yn),Mo(Z.paths[Yn])){const lr=Z.paths[Yn].length;lr===0&&$i(!1,Yn,f.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Yn);for(let Oi=0;OiBc(Yn)&&!Yn.isDeclarationFile);if(Z.isolatedModules||Z.verbatimModuleSyntax)Z.module===0&&mt<2&&Z.isolatedModules&&Ve(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),Z.preserveConstEnums===!1&&Ve(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,Z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Yt&&mt<2&&Z.module===0){const Yn=ZE(Yt,typeof Yt.externalModuleIndicator=="boolean"?Yt:Yt.externalModuleIndicator);Ne.addConfigDiagnostic(Wc(Yt,Yn.start,Yn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Xe&&!Z.emitDeclarationOnly){if(Z.module&&!(Z.module===2||Z.module===4))Ve(f.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(Z.module===void 0&&Yt){const Yn=ZE(Yt,typeof Yt.externalModuleIndicator=="boolean"?Yt:Yt.externalModuleIndicator);Ne.addConfigDiagnostic(Wc(Yt,Yn.start,Yn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(PS(Z)&&(ru(Z)===1?Ve(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):A6(Z)||Ve(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),Z.outDir||Z.rootDir||Z.sourceRoot||Z.mapRoot||_p(Z)&&Z.declarationDir){const Yn=Qt();Z.outDir&&Yn===""&&xe.some(lr=>zh(lr.fileName)>1)&&Ve(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}Z.checkJs&&!Ab(Z)&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),Z.emitDeclarationOnly&&(_p(Z)||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),Z.emitDecoratorMetadata&&!Z.experimentalDecorators&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Z.jsxFactory?(Z.reactNamespace&&Ve(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(Z.jsx===4||Z.jsx===5)&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",Tw.get(""+Z.jsx)),ZI(Z.jsxFactory,mt)||kt("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Z.jsxFactory)):Z.reactNamespace&&!fp(Z.reactNamespace,mt)&&kt("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Z.reactNamespace),Z.jsxFragmentFactory&&(Z.jsxFactory||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(Z.jsx===4||Z.jsx===5)&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",Tw.get(""+Z.jsx)),ZI(Z.jsxFragmentFactory,mt)||kt("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,Z.jsxFragmentFactory)),Z.reactNamespace&&(Z.jsx===4||Z.jsx===5)&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",Tw.get(""+Z.jsx)),Z.jsxImportSource&&Z.jsx===2&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",Tw.get(""+Z.jsx));const Rn=vu(Z);Z.verbatimModuleSyntax&&(Rn===2||Rn===3||Rn===4)&&Ve(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),Z.allowImportingTsExtensions&&!(Z.noEmit||Z.emitDeclarationOnly||Z.rewriteRelativeImportExtensions)&&kt("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const Qn=ru(Z);if(Z.resolvePackageJsonExports&&!uD(Qn)&&Ve(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),Z.resolvePackageJsonImports&&!uD(Qn)&&Ve(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),Z.customConditions&&!uD(Qn)&&Ve(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Qn===100&&!Fk(Rn)&&Rn!==200&&kt("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),DR[Rn]&&100<=Rn&&Rn<=199&&!(3<=Qn&&Qn<=99)){const Yn=DR[Rn],lr=RR[Yn]?Yn:"Node16";kt("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,lr,Yn)}else if(RR[Qn]&&3<=Qn&&Qn<=99&&!(100<=Rn&&Rn<=199)){const Yn=RR[Qn];kt("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,Yn,Yn)}if(!Z.noEmit&&!Z.suppressOutputPathCheck){const Yn=ln(),lr=new Set;jU(Yn,Oi=>{Z.emitDeclarationOnly||Lr(Oi.jsFilePath,lr),Lr(Oi.declarationFilePath,lr)})}function Lr(Yn,lr){if(Yn){const Oi=jt(Yn);if(ot.has(Oi)){let _i;Z.configFilePath||(_i=qo(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)),_i=qo(_i,f.Cannot_write_file_0_because_it_would_overwrite_input_file,Yn),Ca(Yn,T6(_i))}const Ro=_t.useCaseSensitiveFileNames()?Oi:Zv(Oi);lr.has(Ro)?Ca(Yn,Il(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Yn)):lr.add(Ro)}}}function ut(){const Xe=Z.ignoreDeprecations;if(Xe){if(Xe==="5.0")return new ih(Xe);de()}return ih.zero}function tn(Xe,mt,Yt,Rn){const Qn=new ih(Xe),Lr=new ih(mt),Yn=new ih(ie||ge),lr=ut(),Oi=Lr.compareTo(Yn)!==1,Ro=!Oi&&lr.compareTo(Qn)===-1;(Oi||Ro)&&Rn((_i,Do,Qi)=>{Oi?Do===void 0?Yt(_i,Do,Qi,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,_i):Yt(_i,Do,Qi,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,_i,Do):Do===void 0?Yt(_i,Do,Qi,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,_i,mt,Xe):Yt(_i,Do,Qi,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,_i,Do,mt,Xe)})}function an(){function Xe(mt,Yt,Rn,Qn,...Lr){if(Rn){const Yn=qo(void 0,f.Use_0_instead,Rn),lr=qo(Yn,Qn,...Lr);yo(!Yt,mt,void 0,lr)}else yo(!Yt,mt,void 0,Qn,...Lr)}tn("5.0","5.5",Xe,mt=>{Z.target===0&&mt("target","ES3"),Z.noImplicitUseStrict&&mt("noImplicitUseStrict"),Z.keyofStringsOnly&&mt("keyofStringsOnly"),Z.suppressExcessPropertyErrors&&mt("suppressExcessPropertyErrors"),Z.suppressImplicitAnyIndexErrors&&mt("suppressImplicitAnyIndexErrors"),Z.noStrictGenericChecks&&mt("noStrictGenericChecks"),Z.charset&&mt("charset"),Z.out&&mt("out",void 0,"outFile"),Z.importsNotUsedAsValues&&mt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),Z.preserveValueImports&&mt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function wn(Xe,mt,Yt){function Rn(Qn,Lr,Yn,lr,...Oi){On(mt,Yt,lr,...Oi)}tn("5.0","5.5",Rn,Qn=>{Xe.prepend&&Qn("prepend")})}function or(Xe,mt,Yt,Rn){Ne.addFileProcessingDiagnostic({kind:1,file:Xe&&Xe.path,fileProcessingReason:mt,diagnostic:Yt,args:Rn})}function ti(){const Xe=Z.suppressOutputPathCheck?void 0:l0(Z);MM(ye,ht,(mt,Yt,Rn)=>{const Qn=(Yt?Yt.commandLine.projectReferences:ye)[Rn],Lr=Yt&&Yt.sourceFile;if(wn(Qn,Lr,Rn),!mt){On(Lr,Rn,f.File_0_not_found,Qn.path);return}const Yn=mt.commandLine.options;(!Yn.composite||Yn.noEmit)&&(Yt?Yt.commandLine.fileNames:J).length&&(Yn.composite||On(Lr,Rn,f.Referenced_project_0_must_have_setting_composite_Colon_true,Qn.path),Yn.noEmit&&On(Lr,Rn,f.Referenced_project_0_may_not_disable_emit,Qn.path)),!Yt&&Xe&&Xe===l0(Yn)&&(On(Lr,Rn,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Xe,Qn.path),Pr.set(jt(Xe),!0))})}function Ti(Xe,mt,Yt,...Rn){let Qn=!0;z(Lr=>{Wa(Lr.initializer)&&KR(Lr.initializer,Xe,Yn=>{const lr=Yn.initializer;Cd(lr)&&lr.elements.length>mt&&(Ne.addConfigDiagnostic(Wf(Z.configFile,lr.elements[mt],Yt,...Rn)),Qn=!1)})}),Qn&&ta(Yt,...Rn)}function $i(Xe,mt,Yt,...Rn){let Qn=!0;z(Lr=>{Wa(Lr.initializer)&&ml(Lr.initializer,Xe,mt,void 0,Yt,...Rn)&&(Qn=!1)}),Qn&&ta(Yt,...Rn)}function z(Xe){return UV(Eo(),"paths",Xe)}function Ve(Xe,mt,Yt,Rn){yo(!0,mt,Yt,Xe,mt,Yt,Rn)}function kt(Xe,mt,...Yt){yo(!1,Xe,void 0,mt,...Yt)}function On(Xe,mt,Yt,...Rn){const Qn=Y2(Xe||Z.configFile,"references",Lr=>Cd(Lr.initializer)?Lr.initializer:void 0);Qn&&Qn.elements.length>mt?Ne.addConfigDiagnostic(Wf(Xe||Z.configFile,Qn.elements[mt],Yt,...Rn)):Ne.addConfigDiagnostic(Il(Yt,...Rn))}function yo(Xe,mt,Yt,Rn,...Qn){const Lr=Eo();(!Lr||!ml(Lr,Xe,mt,Yt,Rn,...Qn))&&ta(Rn,...Qn)}function ta(Xe,...mt){const Yt=Vo();Yt?"messageText"in Xe?Ne.addConfigDiagnostic(hg(Z.configFile,Yt.name,Xe)):Ne.addConfigDiagnostic(Wf(Z.configFile,Yt.name,Xe,...mt)):"messageText"in Xe?Ne.addConfigDiagnostic(T6(Xe)):Ne.addConfigDiagnostic(Il(Xe,...mt))}function Eo(){if(Ci===void 0){const Xe=Vo();Ci=Xe&&ni(Xe.initializer,Wa)||!1}return Ci||void 0}function Vo(){return $e===void 0&&($e=KR(UN(Z.configFile),"compilerOptions",Vs)||!1),$e||void 0}function ml(Xe,mt,Yt,Rn,Qn,...Lr){let Yn=!1;return KR(Xe,Yt,lr=>{"messageText"in Qn?Ne.addConfigDiagnostic(hg(Z.configFile,mt?lr.name:lr.initializer,Qn)):Ne.addConfigDiagnostic(Wf(Z.configFile,mt?lr.name:lr.initializer,Qn,...Lr)),Yn=!0},Rn),Yn}function Ca(Xe,mt){Pr.set(jt(Xe),!0),Ne.addConfigDiagnostic(mt)}function cd(Xe){if(Z.noEmit)return!1;const mt=jt(Xe);if(Ra(mt))return!1;const Yt=Z.outFile;if(Yt)return Up(mt,Yt)||Up(mt,bu(Yt)+".d.ts");if(Z.declarationDir&&um(Z.declarationDir,mt,Zr,!_t.useCaseSensitiveFileNames()))return!0;if(Z.outDir)return um(Z.outDir,mt,Zr,!_t.useCaseSensitiveFileNames());if(Ql(mt,pD)||ad(mt)){const Rn=bu(mt);return!!Ra(Rn+".ts")||!!Ra(Rn+".tsx")}return!1}function Up(Xe,mt){return Zg(Xe,mt,Zr,!_t.useCaseSensitiveFileNames())===0}function Sf(){return _t.getSymlinkCache?_t.getSymlinkCache():(X||(X=vV(Zr,Xc)),xe&&!X.hasProcessedResolutions()&&X.setSymlinksFromResolutions(B,Ae,lt),X)}function Yf(Xe,mt){return _3(Xe,mt,Eu(Xe))}function Ty(Xe,mt){return tAe(Xe,mt,Eu(Xe))}function bv(Xe,mt){return Yf(Xe,Yw(Xe,mt))}function zu(Xe){return T3(Xe,Eu(Xe))}function V_(Xe){return k1(Xe,Eu(Xe))}function Th(Xe){return yP(Xe,Eu(Xe))}function Im(Xe){return oAe(Xe,Eu(Xe))}function jb(Xe,mt){return Xe.resolutionMode||zu(mt)}}function oAe(e,t){const r=vu(t);return 100<=r&&r<=199||r===200?!1:yP(e,t)<5}function yP(e,t){return k1(e,t)??vu(t)}function k1(e,t){var r,i;const o=vu(t);if(100<=o&&o<=199)return e.impliedNodeFormat;if(e.impliedNodeFormat===1&&(((r=e.packageJsonScope)==null?void 0:r.contents.packageJsonContent.type)==="commonjs"||Ql(e.fileName,[".cjs",".cts"])))return 1;if(e.impliedNodeFormat===99&&(((i=e.packageJsonScope)==null?void 0:i.contents.packageJsonContent.type)==="module"||Ql(e.fileName,[".mjs",".mts"])))return 99}function T3(e,t){return _V(t)?k1(e,t):void 0}function gqe(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:gs,fileExists:d};e.compilerHost.fileExists=d;let l;return i&&(l=e.compilerHost.directoryExists=A=>i.call(e.compilerHost,A)?(y(A),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{const N=R.commandLine.options.outFile;if(N)t.add(ci(e.toPath(N)));else{const P=R.commandLine.options.declarationDir||R.commandLine.options.outDir;P&&t.add(e.toPath(P))}})),E(A,!1)):!1),o&&(e.compilerHost.getDirectories=A=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,A)?o.call(e.compilerHost,A):[]),s&&(e.compilerHost.realpath=A=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(A)))||s.call(e.compilerHost,A)}),{onProgramCreateComplete:u,fileExists:d,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function d(A){return r.call(e.compilerHost,A)?!0:!e.getResolvedProjectReferences()||!ad(A)?!1:E(A,!0)}function g(A){const R=e.getRedirectFromOutput(e.toPath(A));return R!==void 0?Bo(R.source)?r.call(e.compilerHost,R.source):!0:void 0}function h(A){const R=e.toPath(A),N=`${R}${Js}`;return fg(t,P=>R===P||po(P,N)||po(R,`${P}/`))}function y(A){var R;if(!e.getResolvedProjectReferences()||xM(A)||!s||!A.includes(Rg))return;const N=e.getSymlinkCache(),P=Uc(e.toPath(A));if((R=N.getSymlinkedDirectories())!=null&&R.has(P))return;const k=ya(s.call(e.compilerHost,A));let W;if(k===A||(W=Uc(e.toPath(k)))===P){N.setSymlinkedDirectory(P,!1);return}N.setSymlinkedDirectory(A,{real:Uc(k),realPath:W})}function E(A,R){var N;const P=R?g:h,k=P(A);if(k!==void 0)return k;const W=e.getSymlinkCache(),O=W.getSymlinkedDirectories();if(!O)return!1;const G=e.toPath(A);return G.includes(Rg)?R&&((N=W.getSymlinkedFiles())!=null&&N.has(G))?!0:cr(O.entries(),([j,J])=>{if(!J||!po(G,j))return;const Z=P(G.replace(j,J.realPath));if(R&&Z){const q=To(A,e.compilerHost.getCurrentDirectory());W.setSymlinkedFile(G,`${J.real}${q.replace(new RegExp(j,"i"),"")}`)}return Z})||!1:!1}}var uH={diagnostics:ae,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function pH(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return t?uH: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&&_p(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t){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 S3(e,t){return Un(e,r=>!r.skippedOn||!t[r.skippedOn])}function E3(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return C.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||dS,trace:e.trace?r=>e.trace(r):void 0}}function ax(e){return VH(e.path)}function fH(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||o();case".js":case".mjs":case".cjs":return o();case".json":return s();default:return l()}function i(){return e.jsx?void 0:f.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return Ab(e)||!Vd(e,"noImplicitAny")?void 0:f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return PS(e)?void 0:f.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function l(){return r||e.allowArbitraryExtensions?void 0:f.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function aAe({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===11&&r.push(i);return r}function Yw({imports:e,moduleAugmentations:t},r){if(rt.add(R)),i?.forEach(R=>{switch(R.kind){case 1:return t.add(h(A,R.file&&A.getSourceFileByPath(R.file),R.fileProcessingReason,R.diagnostic,R.args||ae));case 0:return t.add(g(A,R));case 2:return R.diagnostics.forEach(N=>t.add(N));default:C.assertNever(R)}}),l?.forEach(({file:R,diagnostic:N,args:P})=>t.add(h(A,R,void 0,N,P))),u=void 0,d=void 0,t)}};function g(A,{reason:R}){const{file:N,pos:P,end:k}=gP(A,R),W=N.libReferenceDirectives[R.index],O=BV(W),G=xR(pN(O,"lib."),".d.ts"),j=pS(G,x4,Vs);return Wc(N,C.checkDefined(P),C.checkDefined(k)-P,j?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,O,j)}function h(A,R,N,P,k){let W,O,G,j,J,Z;const q=R&&r.get(R.path);let ye=c0(N)?N:void 0,ie=R&&u?.get(R.path);ie?(ie.fileIncludeReasonDetails?(W=new Set(q),q?.forEach(fe)):q?.forEach(de),J=ie.redirectInfo):(q?.forEach(de),J=R&&NH(R,A.getCompilerOptionsForFile(R))),N&&de(N);const K=W?.size!==q?.length;ye&&W?.size===1&&(W=void 0),W&&ie&&(ie.details&&!K?Z=qo(ie.details,P,...k??ae):ie.fileIncludeReasonDetails&&(K?ve()?O=Bn(ie.fileIncludeReasonDetails.next.slice(0,q.length),O[0]):O=[...ie.fileIncludeReasonDetails.next,O[0]]:ve()?O=ie.fileIncludeReasonDetails.next.slice(0,q.length):j=ie.fileIncludeReasonDetails)),Z||(j||(j=W&&qo(O,f.The_file_is_in_the_program_because_Colon)),Z=qo(J?j?[j,...J]:J:j,P,...k||ae)),R&&(ie?(!ie.fileIncludeReasonDetails||!K&&j)&&(ie.fileIncludeReasonDetails=j):(u??(u=new Map)).set(R.path,ie={fileIncludeReasonDetails:j,redirectInfo:J}),!ie.details&&!K&&(ie.details=Z.next));const pe=ye&&gP(A,ye);return pe&&HD(pe)?DF(pe.file,pe.pos,pe.end-pe.pos,Z,G):T6(Z,G);function de(xe){W?.has(xe)||((W??(W=new Set)).add(xe),(O??(O=[])).push(LH(A,xe)),fe(xe))}function fe(xe){!ye&&c0(xe)?ye=xe:ye!==xe&&(G=Bn(G,y(A,xe)))}function ve(){var xe;return((xe=ie.fileIncludeReasonDetails.next)==null?void 0:xe.length)!==q?.length}}function y(A,R){let N=d?.get(R);return N===void 0&&(d??(d=new Map)).set(R,N=E(A,R)??!1),N||void 0}function E(A,R){if(c0(R)){const G=gP(A,R);let j;switch(R.kind){case 3:j=f.File_is_included_via_import_here;break;case 4:j=f.File_is_included_via_reference_here;break;case 5:j=f.File_is_included_via_type_library_reference_here;break;case 7:j=f.File_is_included_via_library_reference_here;break;default:C.assertNever(R)}return HD(G)?Wc(G.file,G.pos,G.end-G.pos,j):void 0}const N=A.getCurrentDirectory(),P=A.getRootFileNames(),k=A.getCompilerOptions();if(!k.configFile)return;let W,O;switch(R.kind){case 0:if(!k.configFile.configFileSpecs)return;const G=To(P[R.index],N),j=MH(A,G);if(j){W=kF(k.configFile,"files",j),O=f.File_is_matched_by_files_list_specified_here;break}const J=PH(A,G);if(!J||!Bo(J))return;W=kF(k.configFile,"include",J),O=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const Z=A.getResolvedProjectReferences(),q=A.getProjectReferences(),ye=C.checkDefined(Z?.[R.index]),ie=MM(q,Z,(ve,xe,X)=>ve===ye?{sourceFile:xe?.sourceFile||k.configFile,index:X}:void 0);if(!ie)return;const{sourceFile:K,index:pe}=ie,de=Y2(K,"references",ve=>Cd(ve.initializer)?ve.initializer:void 0);return de&&de.elements.length>pe?Wf(K,de.elements[pe],R.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(!k.types)return;W=jV(e(),"types",R.typeReference),O=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(R.index!==void 0){W=jV(e(),"lib",k.lib[R.index]),O=f.File_is_library_specified_here;break}const fe=I6(Ga(k));W=fe?xre(e(),"target",fe):void 0,O=f.File_is_default_library_for_target_specified_here;break;default:C.assertNever(R)}return W&&Wf(k.configFile,W,O)}}function Zae(e,t,r,i,o,s){const l=[],{emitSkipped:u,diagnostics:d}=e.emit(t,g,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:d};function g(h,y,E){l.push({name:h,writeByteOrderMark:E,text:y})}}var ese=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(ese||{}),_h;(e=>{function t(){function ie(K,pe,de){const fe={getKeys:ve=>pe.get(ve),getValues:ve=>K.get(ve),keys:()=>K.keys(),size:()=>K.size,deleteKey:ve=>{(de||(de=new Set)).add(ve);const xe=K.get(ve);return xe?(xe.forEach(X=>i(pe,X,ve)),K.delete(ve),!0):!1},set:(ve,xe)=>{de?.delete(ve);const X=K.get(ve);return K.set(ve,xe),X?.forEach(Ce=>{xe.has(Ce)||i(pe,Ce,ve)}),xe.forEach(Ce=>{X?.has(Ce)||r(pe,Ce,ve)}),fe}};return fe}return ie(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(ie,K,pe){let de=ie.get(K);de||(de=new Set,ie.set(K,de)),de.add(pe)}function i(ie,K,pe){const de=ie.get(K);return de?.delete(pe)?(de.size||ie.delete(K),!0):!1}function o(ie){return Ui(ie.declarations,K=>{var pe;return(pe=Wn(K))==null?void 0:pe.resolvedPath})}function s(ie,K){const pe=ie.getSymbolAtLocation(K);return pe&&o(pe)}function l(ie,K,pe,de){var fe;return ks(((fe=ie.getRedirectFromSourceFile(K))==null?void 0:fe.outputDts)||K,pe,de)}function u(ie,K,pe){let de;if(K.imports&&K.imports.length>0){const X=ie.getTypeChecker();for(const Ce of K.imports){const Je=s(X,Ce);Je?.forEach(xe)}}const fe=ci(K.resolvedPath);if(K.referencedFiles&&K.referencedFiles.length>0)for(const X of K.referencedFiles){const Ce=l(ie,X.fileName,fe,pe);xe(Ce)}if(ie.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:X})=>{if(!X)return;const Ce=X.resolvedFileName,Je=l(ie,Ce,fe,pe);xe(Je)},K),K.moduleAugmentations.length){const X=ie.getTypeChecker();for(const Ce of K.moduleAugmentations){if(!ka(Ce))continue;const Je=X.getSymbolAtLocation(Ce);Je&&ve(Je)}}for(const X of ie.getTypeChecker().getAmbientModules())X.declarations&&X.declarations.length>1&&ve(X);return de;function ve(X){if(X.declarations)for(const Ce of X.declarations){const Je=Wn(Ce);Je&&Je!==K&&xe(Je.resolvedPath)}}function xe(X){(de||(de=new Set)).add(X)}}function d(ie,K){return K&&!K.referencedMap==!ie}e.canReuseOldState=d;function g(ie){return ie.module!==0&&!ie.outFile?t():void 0}e.createReferencedMap=g;function h(ie,K,pe){var de,fe;const ve=new Map,xe=ie.getCompilerOptions(),X=g(xe),Ce=d(X,K);ie.getTypeChecker();for(const Je of ie.getSourceFiles()){const Se=C.checkDefined(Je.version,"Program intended to be used with Builder should have source files with versions set"),re=Ce?(de=K.oldSignatures)==null?void 0:de.get(Je.resolvedPath):void 0,be=re===void 0?Ce?(fe=K.fileInfos.get(Je.resolvedPath))==null?void 0:fe.signature:void 0:re||void 0;if(X){const Ne=u(ie,Je,ie.getCanonicalFileName);Ne&&X.set(Je.resolvedPath,Ne)}ve.set(Je.resolvedPath,{version:Se,signature:be,affectsGlobalScope:xe.outFile?void 0:J(Je)||void 0,impliedFormat:Je.impliedNodeFormat})}return{fileInfos:ve,referencedMap:X,useFileVersionAsSignature:!pe&&!Ce}}e.create=h;function y(ie){ie.allFilesExcludingDefaultLibraryFile=void 0,ie.allFileNames=void 0}e.releaseCache=y;function E(ie,K,pe,de,fe){var ve;const xe=A(ie,K,pe,de,fe);return(ve=ie.oldSignatures)==null||ve.clear(),xe}e.getFilesAffectedBy=E;function A(ie,K,pe,de,fe){const ve=K.getSourceFileByPath(pe);return ve?P(ie,K,ve,de,fe)?(ie.referencedMap?ye:q)(ie,K,ve,de,fe):[ve]:ae}e.getFilesAffectedByWithOldState=A;function R(ie,K,pe){ie.fileInfos.get(pe).signature=K,(ie.hasCalledUpdateShapeSignature||(ie.hasCalledUpdateShapeSignature=new Set)).add(pe)}e.updateSignatureOfFile=R;function N(ie,K,pe,de,fe){ie.emit(K,(ve,xe,X,Ce,Je,Se)=>{C.assert(ad(ve),`File extension for signature expected to be dts: Got:: ${ve}`),fe(_H(ie,K,xe,de,Se),Je)},pe,2,void 0,!0)}e.computeDtsSignature=N;function P(ie,K,pe,de,fe,ve=ie.useFileVersionAsSignature){var xe;if((xe=ie.hasCalledUpdateShapeSignature)!=null&&xe.has(pe.resolvedPath))return!1;const X=ie.fileInfos.get(pe.resolvedPath),Ce=X.signature;let Je;return!pe.isDeclarationFile&&!ve&&N(K,pe,de,fe,Se=>{Je=Se,fe.storeSignatureInfo&&(ie.signatureInfo??(ie.signatureInfo=new Map)).set(pe.resolvedPath,0)}),Je===void 0&&(Je=pe.version,fe.storeSignatureInfo&&(ie.signatureInfo??(ie.signatureInfo=new Map)).set(pe.resolvedPath,2)),(ie.oldSignatures||(ie.oldSignatures=new Map)).set(pe.resolvedPath,Ce||!1),(ie.hasCalledUpdateShapeSignature||(ie.hasCalledUpdateShapeSignature=new Set)).add(pe.resolvedPath),X.signature=Je,Je!==Ce}e.updateShapeSignature=P;function k(ie,K,pe){if(K.getCompilerOptions().outFile||!ie.referencedMap||J(pe))return W(ie,K);const fe=new Set,ve=[pe.resolvedPath];for(;ve.length;){const xe=ve.pop();if(!fe.has(xe)){fe.add(xe);const X=ie.referencedMap.getValues(xe);if(X)for(const Ce of X.keys())ve.push(Ce)}}return Co(nh(fe.keys(),xe=>{var X;return((X=K.getSourceFileByPath(xe))==null?void 0:X.fileName)??xe}))}e.getAllDependencies=k;function W(ie,K){if(!ie.allFileNames){const pe=K.getSourceFiles();ie.allFileNames=pe===ae?ae:pe.map(de=>de.fileName)}return ie.allFileNames}function O(ie,K){const pe=ie.referencedMap.getKeys(K);return pe?Co(pe.keys()):[]}e.getReferencedByPaths=O;function G(ie){for(const K of ie.statements)if(!IF(K))return!1;return!0}function j(ie){return yt(ie.moduleAugmentations,K=>M_(K.parent))}function J(ie){return j(ie)||!Pp(ie)&&!Ff(ie)&&!G(ie)}function Z(ie,K,pe){if(ie.allFilesExcludingDefaultLibraryFile)return ie.allFilesExcludingDefaultLibraryFile;let de;pe&&fe(pe);for(const ve of K.getSourceFiles())ve!==pe&&fe(ve);return ie.allFilesExcludingDefaultLibraryFile=de||ae,ie.allFilesExcludingDefaultLibraryFile;function fe(ve){K.isSourceFileDefaultLibrary(ve)||(de||(de=[])).push(ve)}}e.getAllFilesExcludingDefaultLibraryFile=Z;function q(ie,K,pe){const de=K.getCompilerOptions();return de&&de.outFile?[pe]:Z(ie,K,pe)}function ye(ie,K,pe,de,fe){if(J(pe))return Z(ie,K,pe);const ve=K.getCompilerOptions();if(ve&&(ym(ve)||ve.outFile))return[pe];const xe=new Map;xe.set(pe.resolvedPath,pe);const X=O(ie,pe.resolvedPath);for(;X.length>0;){const Ce=X.pop();if(!xe.has(Ce)){const Je=K.getSourceFileByPath(Ce);xe.set(Ce,Je),Je&&P(ie,K,Je,de,fe)&&X.push(...O(ie,Je.resolvedPath))}}return Co(nh(xe.values(),Ce=>Ce))}})(_h||(_h={}));var tse=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(tse||{});function qD(e){return e.program!==void 0}function yqe(e){return C.assert(qD(e)),e}function Fb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),_p(e)&&(t=t|24),e.declarationMap&&(t=t|32),e.emitDeclarationOnly&&(t=t&56),t}function A3(e,t){const r=t&&(Qv(t)?t:Fb(t)),i=Qv(e)?e:Fb(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&8&&(s=s|i&8),o&48&&(s=s|i&48),s}function vqe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!fg(e,r=>!t.has(r))}function bqe(e,t){var r,i;const o=_h.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const l=s.outFile;o.semanticDiagnosticsPerFile=new Map,l&&s.composite&&t?.outSignature&&l===t.compilerOptions.outFile&&(o.outSignature=t.outSignature&&sAe(s,t.compilerOptions,t.outSignature)),o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0,o.checkPending=o.compilerOptions.noCheck?!0:void 0;const u=_h.canReuseOldState(o.referencedMap,t),d=u?t.compilerOptions:void 0;let g=u&&!Jne(s,d);const h=s.composite&&t?.emitSignatures&&!l&&!Xne(s,t.compilerOptions);let y=!0;u?((r=t.changedFilesSet)==null||r.forEach(k=>o.changedFilesSet.add(k)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending,l&&o.changedFilesSet.size&&(g=!1,y=!1),o.hasErrorsFromOldState=t.hasErrors):o.buildInfoEmitPending=LS(s);const E=o.referencedMap,A=u?t.referencedMap:void 0,R=g&&!s.skipLibCheck==!d.skipLibCheck,N=R&&!s.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(o.fileInfos.forEach((k,W)=>{var O;let G,j;if(!u||!(G=t.fileInfos.get(W))||G.version!==k.version||G.impliedFormat!==k.impliedFormat||!vqe(j=E&&E.getValues(W),A&&A.getValues(W))||j&&fg(j,J=>!o.fileInfos.has(J)&&t.fileInfos.has(J)))P(W);else{const J=e.getSourceFileByPath(W),Z=y?(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(W):void 0;if(Z&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(W,t.hasReusableDiagnostic?cAe(Z,W,e):lAe(Z,e)),g){if(J.isDeclarationFile&&!R||J.hasNoDefaultLib&&!N)return;const q=t.semanticDiagnosticsPerFile.get(W);q&&(o.semanticDiagnosticsPerFile.set(W,t.hasReusableDiagnostic?cAe(q,W,e):lAe(q,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(W))}}if(h){const J=t.emitSignatures.get(W);J&&(o.emitSignatures??(o.emitSignatures=new Map)).set(W,sAe(s,t.compilerOptions,J))}}),u&&Hc(t.fileInfos,(k,W)=>o.fileInfos.has(W)?!1:k.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!!l)))_h.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(k=>P(k.resolvedPath));else if(d){const k=Kne(s,d)?Fb(s):A3(s,d);k!==0&&(l?o.changedFilesSet.size||(o.programEmitPending=o.programEmitPending?o.programEmitPending|k:k):(e.getSourceFiles().forEach(W=>{o.changedFilesSet.has(W.resolvedPath)||yH(o,W.resolvedPath,k)}),C.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set),o.buildInfoEmitPending=!0)}return u&&o.semanticDiagnosticsPerFile.size!==o.fileInfos.size&&t.checkPending!==o.checkPending&&(o.buildInfoEmitPending=!0),o;function P(k){o.changedFilesSet.add(k),l&&(g=!1,y=!1,o.semanticDiagnosticsFromOldState=void 0,o.semanticDiagnosticsPerFile.clear(),o.emitDiagnosticsPerFile=void 0),o.buildInfoEmitPending=!0,o.programEmitPending=void 0}}function sAe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Bo(r)?[r]:r[0]}function lAe(e,t){return e.length?Zi(e,r=>{if(Bo(r.messageText))return r;const i=nse(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 nse(e,t,r,i){const o=i(e);if(o===!0)return{...X9(t),next:rse(e.next,t,r,i)};if(o)return{...bF(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:rse(e.next,t,r,i)};const s=rse(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function rse(e,t,r,i){return Zi(e,o=>nse(o,t,r,i))}function cAe(e,t,r){if(!e.length)return ae;let i;return e.map(s=>{const l=dAe(s,t,r,o);l.reportsUnnecessary=s.reportsUnnecessary,l.reportsDeprecated=s.reportDeprecated,l.source=s.source,l.skippedOn=s.skippedOn;const{relatedInformation:u}=s;return l.relatedInformation=u?u.length?u.map(d=>dAe(d,t,r,o)):[]:void 0,l});function o(s){return i??(i=ci(To(l0(r.getCompilerOptions()),r.getCurrentDirectory()))),ks(s,i,r.getCanonicalFileName)}}function dAe(e,t,r,i){const{file:o}=e,s=o!==!1?r.getSourceFileByPath(o?i(o):t):void 0;return{...e,file:s,messageText:Bo(e.messageText)?e.messageText:nse(e.messageText,s,r,l=>l.info)}}function Tqe(e){_h.releaseCache(e),e.program=void 0}function ise(e,t){C.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function uAe(e,t,r){for(var i;;){const{affectedFiles:o}=e;if(o){const u=e.seenAffectedFiles;let d=e.affectedFilesIndex;for(;d{const u=r?s&55:s&7;u?e.affectedFilesPendingEmit.set(l,u):e.affectedFilesPendingEmit.delete(l)}),e.programEmitPending)){const s=r?e.programEmitPending&55:e.programEmitPending&7;s?e.programEmitPending=s:e.programEmitPending=void 0}}function I3(e,t,r,i){let o=A3(e,t);return r&&(o=o&56),i&&(o=o&8),o}function mH(e){return e?8:56}function Sqe(e,t,r){var i;if((i=e.affectedFilesPendingEmit)!=null&&i.size)return Hc(e.affectedFilesPendingEmit,(o,s)=>{var l;const u=e.program.getSourceFileByPath(s);if(!u||!RS(u,e.program)){e.affectedFilesPendingEmit.delete(s);return}const d=(l=e.seenEmittedFiles)==null?void 0:l.get(u.resolvedPath),g=I3(o,d,t,r);if(g)return{affectedFile:u,emitKind:g}})}function Eqe(e,t){var r;if((r=e.emitDiagnosticsPerFile)!=null&&r.size)return Hc(e.emitDiagnosticsPerFile,(i,o)=>{var s;const l=e.program.getSourceFileByPath(o);if(!l||!RS(l,e.program)){e.emitDiagnosticsPerFile.delete(o);return}const u=((s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath))||0;if(!(u&mH(t)))return{affectedFile:l,diagnostics:i,seenKind:u}})}function fAe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();Ye(e.program.getSourceFiles(),r=>e.program.isSourceFileDefaultLibrary(r)&&!lre(r,t,e.program)&&ase(e,r.resolvedPath))}}function Aqe(e,t,r,i){if(ase(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){fAe(e),_h.updateShapeSignature(e,e.program,t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Iqe(e,t,r,i)}function ose(e,t,r,i,o){if(ase(e,t),!e.changedFilesSet.has(t)){const s=e.program.getSourceFileByPath(t);s&&(_h.updateShapeSignature(e,e.program,s,i,o,!0),r?yH(e,t,Fb(e.compilerOptions)):_p(e.compilerOptions)&&yH(e,t,e.compilerOptions.declarationMap?56:24))}}function ase(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function mAe(e,t){const r=C.checkDefined(e.oldSignatures).get(t)||void 0;return C.checkDefined(e.fileInfos.get(t)).signature!==r}function sse(e,t,r,i,o){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?(_h.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(l=>ose(e,l.resolvedPath,r,i,o)),fAe(e),!0):!1}function Iqe(e,t,r,i){var o,s;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!mAe(e,t.resolvedPath))return;if(ym(e.compilerOptions)){const d=new Map;d.set(t.resolvedPath,!0);const g=_h.getReferencedByPaths(e,t.resolvedPath);for(;g.length>0;){const h=g.pop();if(!d.has(h)){if(d.set(h,!0),sse(e,h,!1,r,i))return;if(ose(e,h,!1,r,i),mAe(e,h)){const y=e.program.getSourceFileByPath(h);g.push(..._h.getReferencedByPaths(e,y.resolvedPath))}}}}const l=new Set,u=!!((o=t.symbol)!=null&&o.exports)&&!!Hc(t.symbol.exports,d=>{if(d.flags&128)return!0;const g=xd(d,e.program.getTypeChecker());return g===d?!1:(g.flags&128)!==0&&yt(g.declarations,h=>Wn(h)===t)});(s=e.referencedMap.getKeys(t.resolvedPath))==null||s.forEach(d=>{if(sse(e,d,u,r,i))return!0;const g=e.referencedMap.getKeys(d);return g&&fg(g,h=>hAe(e,h,u,l,r,i))})}function hAe(e,t,r,i,o,s){var l;if(rh(i,t)){if(sse(e,t,r,o,s))return!0;ose(e,t,r,o,s),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>hAe(e,u,r,i,o,s))}}function hH(e,t,r,i){return e.compilerOptions.noCheck?ae:so(xqe(e,t,r,i),e.program.getProgramDiagnostics(t))}function xqe(e,t,r,i){i??(i=e.semanticDiagnosticsPerFile);const o=t.resolvedPath,s=i.get(o);if(s)return S3(s,e.compilerOptions);const l=e.program.getBindAndCheckDiagnostics(t,r);return i.set(o,l),e.buildInfoEmitPending=!0,S3(l,e.compilerOptions)}function lse(e){var t;return!!((t=e.options)!=null&&t.outFile)}function $w(e){return!!e.fileNames}function Rqe(e){return!$w(e)&&!!e.root}function _Ae(e){e.hasErrors===void 0&&(LS(e.compilerOptions)?e.hasErrors=!yt(e.program.getSourceFiles(),t=>{var r,i;const o=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return o===void 0||!!o.length||!!((i=(r=e.emitDiagnosticsPerFile)==null?void 0:r.get(t.resolvedPath))!=null&&i.length)})&&(gAe(e)||yt(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=yt(e.program.getSourceFiles(),t=>{var r,i;const o=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!o?.length||!!((i=(r=e.emitDiagnosticsPerFile)==null?void 0:r.get(t.resolvedPath))!=null&&i.length)})||gAe(e))}function gAe(e){return!!e.program.getConfigFileParsingDiagnostics().length||!!e.program.getSyntacticDiagnostics().length||!!e.program.getOptionsDiagnostics().length||!!e.program.getGlobalDiagnostics().length}function yAe(e){return _Ae(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}function Dqe(e){var t,r;const i=e.program.getCurrentDirectory(),o=ci(To(l0(e.compilerOptions),i)),s=e.latestChangedDtsFile?W(e.latestChangedDtsFile):void 0,l=[],u=new Map,d=new Set(e.program.getRootFileNames().map(X=>ks(X,i,e.program.getCanonicalFileName)));if(_Ae(e),!LS(e.compilerOptions))return{root:Co(d,Ce=>O(Ce)),errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Le};const g=[];if(e.compilerOptions.outFile){const X=Co(e.fileInfos.entries(),([Je,Se])=>{const re=G(Je);return J(Je,re),Se.impliedFormat?{version:Se.version,impliedFormat:Se.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Se.version});return{fileNames:l,fileInfos:X,root:g,resolvedRoot:Z(),options:q(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:ie(),emitDiagnosticsPerFile:K(),changeFileSet:xe(),outSignature:e.outSignature,latestChangedDtsFile:s,pendingEmit:e.programEmitPending?e.programEmitPending===Fb(e.compilerOptions)?!1:e.programEmitPending:void 0,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Le}}let h,y,E;const A=Co(e.fileInfos.entries(),([X,Ce])=>{var Je,Se;const re=G(X);J(X,re),C.assert(l[re-1]===O(X));const be=(Je=e.oldSignatures)==null?void 0:Je.get(X),Ne=be!==void 0?be||void 0:Ce.signature;if(e.compilerOptions.composite){const Be=e.program.getSourceFileByPath(X);if(!Ff(Be)&&RS(Be,e.program)){const lt=(Se=e.emitSignatures)==null?void 0:Se.get(X);lt!==Ne&&(E=Bn(E,lt===void 0?re:[re,!Bo(lt)&<[0]===Ne?ae:lt]))}}return Ce.version===Ne?Ce.affectsGlobalScope||Ce.impliedFormat?{version:Ce.version,signature:void 0,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:Ce.version:Ne!==void 0?be===void 0?Ce:{version:Ce.version,signature:Ne,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:{version:Ce.version,signature:!1,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}});let R;(t=e.referencedMap)!=null&&t.size()&&(R=Co(e.referencedMap.keys()).sort(Wd).map(X=>[G(X),j(e.referencedMap.getValues(X))]));const N=ie();let P;if((r=e.affectedFilesPendingEmit)!=null&&r.size){const X=Fb(e.compilerOptions),Ce=new Set;for(const Je of Co(e.affectedFilesPendingEmit.keys()).sort(Wd))if(rh(Ce,Je)){const Se=e.program.getSourceFileByPath(Je);if(!Se||!RS(Se,e.program))continue;const re=G(Je),be=e.affectedFilesPendingEmit.get(Je);P=Bn(P,be===X?re:be===24?[re]:[re,be])}}return{fileNames:l,fileIdsList:h,fileInfos:A,root:g,resolvedRoot:Z(),options:q(e.compilerOptions),referencedMap:R,semanticDiagnosticsPerFile:N,emitDiagnosticsPerFile:K(),changeFileSet:xe(),affectedFilesPendingEmit:P,emitSignatures:E,latestChangedDtsFile:s,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Le};function W(X){return O(To(X,i))}function O(X){return VE(cf(o,X,e.program.getCanonicalFileName))}function G(X){let Ce=u.get(X);return Ce===void 0&&(l.push(O(X)),u.set(X,Ce=l.length)),Ce}function j(X){const Ce=Co(X.keys(),G).sort(js),Je=Ce.join();let Se=y?.get(Je);return Se===void 0&&(h=Bn(h,Ce),(y??(y=new Map)).set(Je,Se=h.length)),Se}function J(X,Ce){const Je=e.program.getSourceFile(X);if(!e.program.getFileIncludeReasons().get(Je.path).some(Ne=>Ne.kind===0))return;if(!g.length)return g.push(Ce);const Se=g[g.length-1],re=Mo(Se);if(re&&Se[1]===Ce-1)return Se[1]=Ce;if(re||g.length===1||Se!==Ce-1)return g.push(Ce);const be=g[g.length-2];return!Qv(be)||be!==Se-1?g.push(Ce):(g[g.length-2]=[be,Ce],g.length=g.length-1)}function Z(){let X;return d.forEach(Ce=>{const Je=e.program.getSourceFileByPath(Ce);Je&&Ce!==Je.resolvedPath&&(X=Bn(X,[G(Je.resolvedPath),G(Ce)]))}),X}function q(X){let Ce;const{optionsNameMap:Je}=wD();for(const Se of Wh(X).sort(Wd)){const re=Je.get(Se.toLowerCase());re?.affectsBuildInfo&&((Ce||(Ce={}))[Se]=ye(re,X[Se]))}return Ce}function ye(X,Ce){if(X){if(C.assert(X.type!=="listOrElement"),X.type==="list"){const Je=Ce;if(X.element.isFilePath&&Je.length)return Je.map(W)}else if(X.isFilePath)return W(Ce)}return Ce}function ie(){let X;return e.fileInfos.forEach((Ce,Je)=>{const Se=e.semanticDiagnosticsPerFile.get(Je);Se?Se.length&&(X=Bn(X,[G(Je),pe(Se,Je)])):e.changedFilesSet.has(Je)||(X=Bn(X,G(Je)))}),X}function K(){var X;let Ce;if(!((X=e.emitDiagnosticsPerFile)!=null&&X.size))return Ce;for(const Je of Co(e.emitDiagnosticsPerFile.keys()).sort(Wd)){const Se=e.emitDiagnosticsPerFile.get(Je);Ce=Bn(Ce,[G(Je),pe(Se,Je)])}return Ce}function pe(X,Ce){return C.assert(!!X.length),X.map(Je=>{const Se=de(Je,Ce);Se.reportsUnnecessary=Je.reportsUnnecessary,Se.reportDeprecated=Je.reportsDeprecated,Se.source=Je.source,Se.skippedOn=Je.skippedOn;const{relatedInformation:re}=Je;return Se.relatedInformation=re?re.length?re.map(be=>de(be,Ce)):[]:void 0,Se})}function de(X,Ce){const{file:Je}=X;return{...X,file:Je?Je.resolvedPath===Ce?void 0:O(Je.resolvedPath):!1,messageText:Bo(X.messageText)?X.messageText:fe(X.messageText)}}function fe(X){if(X.repopulateInfo)return{info:X.repopulateInfo(),next:ve(X.next)};const Ce=ve(X.next);return Ce===X.next?X:{...X,next:Ce}}function ve(X){return X&&(Ye(X,(Ce,Je)=>{const Se=fe(Ce);if(Ce===Se)return;const re=Je>0?X.slice(0,Je-1):[];re.push(Se);for(let be=Je+1;be(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(cse||{});function x3(e,t,r,i,o,s){let l,u,d;return e===void 0?(C.assert(t===void 0),l=r,d=i,C.assert(!!d),u=d.getProgram()):Mo(e)?(d=i,u=Xw({rootNames:e,options:t,host:r,oldProgram:d&&d.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),l=r):(u=e,l=t,d=r,o=i),{host:l,newProgram:u,oldProgram:d,configFileParsingDiagnostics:o||ae}}function vAe(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function _H(e,t,r,i,o){var s;r=vAe(r,o);let l;return(s=o?.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(g=>`${d(g)}${O8[g.category]}${g.code}: ${u(g.messageText)}`).join(` `)),(i.createHash??p2)(r);function u(g){return Bo(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(u).join(` `):g.messageText}function d(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(l===void 0&&(l=ci(t.resolvedPath)),`${VE(cf(l,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function Cqe(e,t,r){return(t.createHash??p2)(vAe(e,r))}function gH(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.state;if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;const l=bqe(t,s);t.getBuildInfo=()=>Dqe(yqe(l)),t=void 0,i=void 0,s=void 0;const u=bH(l,o);return u.state=l,u.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,u.getAllDependencies=W=>_h.getAllDependencies(l,C.checkDefined(l.program),W),u.getSemanticDiagnostics=k,u.getDeclarationDiagnostics=N,u.emit=A,u.releaseProgram=()=>Tqe(l),e===0?u.getSemanticDiagnosticsOfNextAffectedFile=P:e===1?(u.getSemanticDiagnosticsOfNextAffectedFile=P,u.emitNextAffectedFile=y,u.emitBuildInfo=d):ha(),u;function d(W,O){if(C.assert(qD(l)),yAe(l)){const G=l.program.emitBuildInfo(W||ia(r,r.writeFile),O);return l.buildInfoEmitPending=!1,G}return uH}function g(W,O,G,j,J){var Z,q,ye,ie;C.assert(qD(l));let K=uAe(l,O,r);const pe=Fb(l.compilerOptions);let de=J?8:G?pe&56:pe;if(!K){if(l.compilerOptions.outFile){if(l.programEmitPending&&(de=I3(l.programEmitPending,l.seenProgramEmit,G,J),de&&(K=l.program)),!K&&((Z=l.emitDiagnosticsPerFile)!=null&&Z.size)){const xe=l.seenProgramEmit||0;if(!(xe&mH(J))){l.seenProgramEmit=mH(J)|xe;const X=[];return l.emitDiagnosticsPerFile.forEach(Ce=>Xr(X,Ce)),{result:{emitSkipped:!0,diagnostics:X},affected:l.program}}}}else{const xe=Sqe(l,G,J);if(xe)({affectedFile:K,emitKind:de}=xe);else{const X=Eqe(l,J);if(X)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(X.affectedFile.resolvedPath,X.seenKind|mH(J)),{result:{emitSkipped:!0,diagnostics:X.diagnostics},affected:X.affectedFile}}}if(!K){if(J||!yAe(l))return;const xe=l.program,X=xe.emitBuildInfo(W||ia(r,r.writeFile),O);return l.buildInfoEmitPending=!1,{result:X,affected:xe}}}let fe;de&7&&(fe=0),de&56&&(fe=fe===void 0?1:void 0);const ve=J?{emitSkipped:!0,diagnostics:l.program.getDeclarationDiagnostics(K===l.program?void 0:K,O)}:l.program.emit(K===l.program?void 0:K,E(W,j),O,fe,j,void 0,!0);if(K!==l.program){const xe=K;l.seenAffectedFiles.add(xe.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const X=((q=l.seenEmittedFiles)==null?void 0:q.get(xe.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(xe.resolvedPath,de|X);const Ce=((ye=l.affectedFilesPendingEmit)==null?void 0:ye.get(xe.resolvedPath))||pe,Je=A3(Ce,de|X);Je?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(xe.resolvedPath,Je):(ie=l.affectedFilesPendingEmit)==null||ie.delete(xe.resolvedPath),ve.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(xe.resolvedPath,ve.diagnostics)}else l.changedFilesSet.clear(),l.programEmitPending=l.changedFilesSet.size?A3(pe,de):l.programEmitPending?A3(l.programEmitPending,de):void 0,l.seenProgramEmit=de|(l.seenProgramEmit||0),h(ve.diagnostics),l.buildInfoEmitPending=!0;return{result:ve,affected:K}}function h(W){let O;W.forEach(G=>{if(!G.file)return;let j=O?.get(G.file.resolvedPath);j||(O??(O=new Map)).set(G.file.resolvedPath,j=[]),j.push(G)}),O&&(l.emitDiagnosticsPerFile=O)}function y(W,O,G,j){return g(W,O,G,j,!1)}function E(W,O){return C.assert(qD(l)),_p(l.compilerOptions)?(G,j,J,Z,q,ye)=>{var ie,K,pe;if(ad(G))if(l.compilerOptions.outFile){if(l.compilerOptions.composite){const fe=de(l.outSignature,void 0);if(!fe)return ye.skippedDtsWrite=!0;l.outSignature=fe}}else{C.assert(q?.length===1);let fe;if(!O){const ve=q[0],xe=l.fileInfos.get(ve.resolvedPath);if(xe.signature===ve.version){const X=_H(l.program,ve,j,r,ye);(ie=ye?.diagnostics)!=null&&ie.length||(fe=X),X!==ve.version&&(r.storeSignatureInfo&&(l.signatureInfo??(l.signatureInfo=new Map)).set(ve.resolvedPath,1),l.affectedFiles&&((K=l.oldSignatures)==null?void 0:K.get(ve.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(ve.resolvedPath,xe.signature||!1),xe.signature=X)}}if(l.compilerOptions.composite){const ve=q[0].resolvedPath;if(fe=de((pe=l.emitSignatures)==null?void 0:pe.get(ve),fe),!fe)return ye.skippedDtsWrite=!0;(l.emitSignatures??(l.emitSignatures=new Map)).set(ve,fe)}}W?W(G,j,J,Z,q,ye):r.writeFile?r.writeFile(G,j,J,Z,q,ye):l.program.writeFile(G,j,J,Z,q,ye);function de(fe,ve){const xe=!fe||Bo(fe)?fe:fe[0];if(ve??(ve=Cqe(j,r,ye)),ve===xe){if(fe===xe)return;ye?ye.differsOnlyInMap=!0:ye={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=G;return ve}}:W||ia(r,r.writeFile)}function A(W,O,G,j,J){C.assert(qD(l)),e===1&&ise(l,W);const Z=pH(u,W,O,G);if(Z)return Z;if(!W)if(e===1){let ye=[],ie=!1,K,pe=[],de;for(;de=y(O,G,j,J);)ie=ie||de.result.emitSkipped,K=Xr(K,de.result.diagnostics),pe=Xr(pe,de.result.emittedFiles),ye=Xr(ye,de.result.sourceMaps);return{emitSkipped:ie,diagnostics:K||ae,emittedFiles:pe,sourceMaps:ye}}else pAe(l,j,!1);const q=l.program.emit(W,E(O,J),G,j,J);return R(W,j,!1,q.diagnostics),q}function R(W,O,G,j){!W&&e!==1&&(pAe(l,O,G),h(j))}function N(W,O){var G;if(C.assert(qD(l)),e===1){ise(l,W);let j,J;for(;j=g(void 0,O,void 0,void 0,!0);)W||(J=Xr(J,j.result.diagnostics));return(W?(G=l.emitDiagnosticsPerFile)==null?void 0:G.get(W.resolvedPath):J)||ae}else{const j=l.program.getDeclarationDiagnostics(W,O);return R(W,void 0,!0,j),j}}function P(W,O){for(C.assert(qD(l));;){const G=uAe(l,W,r);let j;if(G)if(G!==l.program){const J=G;if((!O||!O(J))&&(j=hH(l,J,W)),l.seenAffectedFiles.add(J.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!j)continue}else{let J;const Z=new Map;l.program.getSourceFiles().forEach(q=>J=Xr(J,hH(l,q,W,Z))),l.semanticDiagnosticsPerFile=Z,j=J||ae,l.changedFilesSet.clear(),l.programEmitPending=Fb(l.compilerOptions),l.compilerOptions.noCheck||(l.checkPending=void 0),l.buildInfoEmitPending=!0}else{l.checkPending&&!l.compilerOptions.noCheck&&(l.checkPending=void 0,l.buildInfoEmitPending=!0);return}return{result:j,affected:G}}}function k(W,O){if(C.assert(qD(l)),ise(l,W),W)return hH(l,W,O);for(;;){const j=P(O);if(!j)break;if(j.affected===l.program)return j.result}let G;for(const j of l.program.getSourceFiles())G=Xr(G,hH(l,j,O));return l.checkPending&&!l.compilerOptions.noCheck&&(l.checkPending=void 0,l.buildInfoEmitPending=!0),G||ae}}function yH(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 dse(e){return Bo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Bo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function use(e,t){return Qv(e)?t:e[1]||24}function pse(e,t){return e||Fb(t||{})}function fse(e,t,r){var i,o,s,l;const u=ci(To(t,r.getCurrentDirectory())),d=Fd(r.useCaseSensitiveFileNames());let g;const h=(i=e.fileNames)==null?void 0:i.map(N);let y;const E=e.latestChangedDtsFile?P(e.latestChangedDtsFile):void 0,A=new Map,R=new Set(Vt(e.changeFileSet,k));if(lse(e))e.fileInfos.forEach((J,Z)=>{const q=k(Z+1);A.set(q,Bo(J)?{version:J,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:J)}),g={fileInfos:A,compilerOptions:e.options?w4(e.options,P):{},semanticDiagnosticsPerFile:G(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:j(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:R,latestChangedDtsFile:E,outSignature:e.outSignature,programEmitPending:e.pendingEmit===void 0?void 0:pse(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{y=(o=e.fileIdsList)==null?void 0:o.map(q=>new Set(q.map(k)));const J=(s=e.options)!=null&&s.composite&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((q,ye)=>{const ie=k(ye+1),K=dse(q);A.set(ie,K),J&&K.signature&&J.set(ie,K.signature)}),(l=e.emitSignatures)==null||l.forEach(q=>{if(Qv(q))J.delete(k(q));else{const ye=k(q[0]);J.set(ye,!Bo(q[1])&&!q[1].length?[J.get(ye)]:q[1])}});const Z=e.affectedFilesPendingEmit?Fb(e.options||{}):void 0;g={fileInfos:A,compilerOptions:e.options?w4(e.options,P):{},referencedMap:O(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:G(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:j(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:R,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&ER(e.affectedFilesPendingEmit,q=>k(Qv(q)?q:q[0]),q=>use(q,Z)),latestChangedDtsFile:E,emitSignatures:J?.size?J:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:g,getProgram:ha,getProgramOrUndefined:dS,releaseProgram:gs,getCompilerOptions:()=>g.compilerOptions,getSourceFile:ha,getSourceFiles:ha,getOptionsDiagnostics:ha,getGlobalDiagnostics:ha,getConfigFileParsingDiagnostics:ha,getSyntacticDiagnostics:ha,getDeclarationDiagnostics:ha,getSemanticDiagnostics:ha,emit:ha,getAllDependencies:ha,getCurrentDirectory:ha,emitNextAffectedFile:ha,getSemanticDiagnosticsOfNextAffectedFile:ha,emitBuildInfo:ha,close:gs,hasChangedEmitSignature:Qg};function N(J){return ks(J,u,d)}function P(J){return To(J,u)}function k(J){return h[J-1]}function W(J){return y[J-1]}function O(J,Z){const q=_h.createReferencedMap(Z);return!q||!J||J.forEach(([ye,ie])=>q.set(k(ye),W(ie))),q}function G(J){const Z=new Map(nh(A.keys(),q=>R.has(q)?void 0:[q,ae]));return J?.forEach(q=>{Qv(q)?Z.delete(k(q)):Z.set(k(q[0]),q[1])}),Z}function j(J){return J&&ER(J,Z=>k(Z[0]),Z=>Z[1])}}function vH(e,t,r){const i=ci(To(t,r.getCurrentDirectory())),o=Fd(r.useCaseSensitiveFileNames()),s=new Map;let l=0;const u=new Map,d=new Map(e.resolvedRoot);return e.fileInfos.forEach((h,y)=>{const E=ks(e.fileNames[y],i,o),A=Bo(h)?h:h.version;if(s.set(E,A),lks(s,i,o))}function bH(e,t){return{state:void 0,getProgram:r,getProgramOrUndefined:()=>e.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:ha,getCurrentDirectory:()=>r().getCurrentDirectory(),close:gs};function r(){return C.checkDefined(e.program)}}function bAe(e,t,r,i,o,s){return gH(0,x3(e,t,r,i,o,s))}function TH(e,t,r,i,o,s){return gH(1,x3(e,t,r,i,o,s))}function TAe(e,t,r,i,o,s){const{newProgram:l,configFileParsingDiagnostics:u}=x3(e,t,r,i,o,s);return bH({program:l,compilerOptions:l.getCompilerOptions()},u)}function R3(e){return el(e,"/node_modules/.staging")?xR(e,"/.staging"):yt(z8,t=>e.includes(t))?void 0:e}function hse(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-z]:/i)===0;if(e[0]!==Js&&!i&&e[1].search(/[a-z]\$$/i)===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 SH(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=hse(e,t);return t>r+1}function Qw(e){return SH(zd(e))}function _se(e){return EAe(ci(e))}function SAe(e,t){if(t.lengtho.length+1?yse(g,d,Math.max(o.length+1,h+1),E):{dir:r,dirPath:i,nonRecursive:!0}:AAe(g,d,d.length-1,h,y,o,E,u)}function AAe(e,t,r,i,o,s,l,u){if(o!==-1)return yse(e,t,o+1,l);let d=!0,g=r;if(!u){for(let h=0;h=r&&i+2Nqe(i,o,s,e,r,t,l)}}function Nqe(e,t,r,i,o,s,l){const u=D3(e),d=C1(r,i,o,u,t,s,l);if(!e.getGlobalTypingsCacheLocation)return d;const g=e.getGlobalTypingsCacheLocation();if(g!==void 0&&!td(r)&&!(d.resolvedModule&&W6(d.resolvedModule.extension))){const{resolvedModule:h,failedLookupLocations:y,affectingLocations:E,resolutionDiagnostics:A}=Poe(C.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,g,t);if(h)return d.resolvedModule=h,d.failedLookupLocations=OD(d.failedLookupLocations,y),d.affectingLocations=OD(d.affectingLocations,E),d.resolutionDiagnostics=OD(d.resolutionDiagnostics,A),d}return d}function AH(e,t,r){let i,o,s;const l=new Set,u=new Set,d=new Set,g=new Map,h=new Map;let y=!1,E,A,R,N,P,k=!1;const W=Cu(()=>e.getCurrentDirectory()),O=e.getCachedDirectoryStructureHost(),G=new Map,j=FD(W(),e.getCanonicalFileName,e.getCompilationSettings()),J=new Map,Z=H4(W(),e.getCanonicalFileName,e.getCompilationSettings(),j.getPackageJsonInfoCache(),j.optionsToRedirectsKey),q=new Map,ye=FD(W(),e.getCanonicalFileName,oU(e.getCompilationSettings()),j.getPackageJsonInfoCache()),ie=new Map,K=new Map,pe=bse(t,W),de=e.toPath(pe),fe=zd(de),ve=SH(fe),xe=new Map,X=new Map,Ce=new Map,Je=new Map;return{rootDirForResolution:t,resolvedModuleNames:G,resolvedTypeReferenceDirectives:J,resolvedLibraries:q,resolvedFileToResolution:g,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:d,directoryWatchesOfFailedLookups:ie,fileWatchesOfAffectingLocations:K,packageDirWatchers:X,dirPathToSymlinkPackageRefCount:Ce,watchFailedLookupLocationsOfExternalModuleResolutions:en,getModuleResolutionCache:()=>j,startRecordingFilesWithChangedResolutions:be,finishRecordingFilesWithChangedResolutions:Ne,startCachingPerDirectoryResolution:ce,finishCachingPerDirectoryResolution:_e,resolveModuleNameLiterals:cn,resolveTypeReferenceDirectiveReferences:Wt,resolveLibrary:gn,resolveSingleModuleNameWithoutWatching:Kn,removeResolutionsFromProjectReferenceRedirects:ai,removeResolutionsOfFile:qi,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:Ia,invalidateResolutionsOfFailedLookupLocations:Ft,setFilesWithInvalidatedNonRelativeUnresolvedImports:Mn,createHasInvalidatedResolutions:lt,isFileWithInvalidatedNonRelativeUnresolvedImports:Be,updateTypeRootsWatch:dt,closeTypeRootsWatch:Fe,clear:Se,onChangesAffectModuleResolution:re};function Se(){hp(ie,Kf),hp(K,Kf),xe.clear(),X.clear(),Ce.clear(),l.clear(),Fe(),G.clear(),J.clear(),g.clear(),u.clear(),d.clear(),R=void 0,N=void 0,P=void 0,A=void 0,E=void 0,k=!1,j.clear(),Z.clear(),j.update(e.getCompilationSettings()),Z.update(e.getCompilationSettings()),ye.clear(),h.clear(),q.clear(),y=!1}function re(){k=!0,j.clearAllExceptPackageJsonInfoCache(),Z.clearAllExceptPackageJsonInfoCache(),j.update(e.getCompilationSettings()),Z.update(e.getCompilationSettings())}function be(){i=[]}function Ne(){const Ue=i;return i=void 0,Ue}function Be(Ue){if(!s)return!1;const Rt=s.get(Ue);return!!Rt&&!!Rt.length}function lt(Ue,Rt){Ft();const It=o;return o=void 0,{hasInvalidatedResolutions:Ot=>Ue(Ot)||k||!!It?.has(Ot)||Be(Ot),hasInvalidatedLibResolutions:Ot=>{var nt;return Rt(Ot)||!!((nt=q?.get(Ot))!=null&&nt.isInvalidated)}}}function ce(){j.isReadonly=void 0,Z.isReadonly=void 0,ye.isReadonly=void 0,j.getPackageJsonInfoCache().isReadonly=void 0,j.clearAllExceptPackageJsonInfoCache(),Z.clearAllExceptPackageJsonInfoCache(),ye.clearAllExceptPackageJsonInfoCache(),Ai(),xe.clear()}function Re(Ue){q.forEach((Rt,It)=>{var Ot;(Ot=Ue?.resolvedLibReferences)!=null&&Ot.has(It)||(At(Rt,e.toPath(v3(e.getCompilationSettings(),W(),It)),cI),q.delete(It))})}function _e(Ue,Rt){s=void 0,k=!1,Ai(),Ue!==Rt&&(Re(Ue),Ue?.getSourceFiles().forEach(It=>{var Ot;const nt=((Ot=It.packageJsonLocations)==null?void 0:Ot.length)??0,Kt=h.get(It.resolvedPath)??ae;for(let Tr=Kt.length;Trnt)for(let Tr=nt;Tr{const nt=Ue?.getSourceFileByPath(Ot);(!nt||nt.resolvedPath!==Ot)&&(It.forEach(Kt=>K.get(Kt).files--),h.delete(Ot))})),ie.forEach(Ge),K.forEach(We),X.forEach(je),y=!1,j.isReadonly=!0,Z.isReadonly=!0,ye.isReadonly=!0,j.getPackageJsonInfoCache().isReadonly=!0,xe.clear()}function je(Ue,Rt){Ue.dirPathToWatcher.size===0&&X.delete(Rt)}function Ge(Ue,Rt){Ue.refCount===0&&(ie.delete(Rt),Ue.watcher.close())}function We(Ue,Rt){var It;Ue.files===0&&Ue.resolutions===0&&!((It=Ue.symlinks)!=null&&It.size)&&(K.delete(Rt),Ue.watcher.close())}function at({entries:Ue,containingFile:Rt,containingSourceFile:It,redirectedReference:Ot,options:nt,perFileCache:Kt,reusedNames:Tr,loader:Oe,getResolutionWithResolvedFileName:Nt,deferWatchingNonRelativeResolution:he,shouldRetryResolution:B,logChanges:Ae}){var te;const xt=e.toPath(Rt),Xt=Kt.get(xt)||Kt.set(xt,WD()).get(xt),Pe=[],gt=Ae&&Be(xt),Bt=e.getCurrentProgram(),gr=Bt&&((te=Bt.getRedirectFromSourceFile(Rt))==null?void 0:te.resolvedRef),tr=gr?!Ot||Ot.sourceFile.path!==gr.sourceFile.path:!!Ot,Jn=WD();for(const Mt of Ue){const jt=Oe.nameAndMode.getName(Mt),Qt=Oe.nameAndMode.getMode(Mt,It,Ot?.commandLine.options||nt);let In=Xt.get(jt,Qt);if(!Jn.has(jt,Qt)&&(k||tr||!In||In.isInvalidated||gt&&!td(jt)&&B(In))){const yn=In;In=Oe.resolve(jt,Qt),e.onDiscoveredSymlink&&Mqe(In)&&e.onDiscoveredSymlink(),Xt.set(jt,Qt,In),In!==yn&&(en(jt,In,xt,Nt,he),yn&&At(yn,xt,Nt)),Ae&&i&&!ft(yn,In)&&(i.push(xt),Ae=!1)}else{const yn=D3(e);if(Lb(nt,yn)&&!Jn.has(jt,Qt)){const wt=Nt(In);xo(yn,Kt===G?wt?.resolvedFileName?wt.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:wt?.resolvedFileName?wt.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,jt,Rt,wt?.resolvedFileName,wt?.packageId&&kT(wt.packageId))}}C.assert(In!==void 0&&!In.isInvalidated),Jn.set(jt,Qt,!0),Pe.push(In)}return Tr?.forEach(Mt=>Jn.set(Oe.nameAndMode.getName(Mt),Oe.nameAndMode.getMode(Mt,It,Ot?.commandLine.options||nt),!0)),Xt.size()!==Jn.size()&&Xt.forEach((Mt,jt,Qt)=>{Jn.has(jt,Qt)||(At(Mt,xt,Nt),Xt.delete(jt,Qt))}),Pe;function ft(Mt,jt){if(Mt===jt)return!0;if(!Mt||!jt)return!1;const Qt=Nt(Mt),In=Nt(jt);return Qt===In?!0:!Qt||!In?!1:Qt.resolvedFileName===In.resolvedFileName}}function Wt(Ue,Rt,It,Ot,nt,Kt){return at({entries:Ue,containingFile:Rt,containingSourceFile:nt,redirectedReference:It,options:Ot,reusedNames:Kt,perFileCache:J,loader:y3(Rt,It,Ot,D3(e),Z),getResolutionWithResolvedFileName:vF,shouldRetryResolution:Tr=>Tr.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function cn(Ue,Rt,It,Ot,nt,Kt){return at({entries:Ue,containingFile:Rt,containingSourceFile:nt,redirectedReference:It,options:Ot,reusedNames:Kt,perFileCache:G,loader:Tse(Rt,It,Ot,e,j),getResolutionWithResolvedFileName:cI,shouldRetryResolution:Tr=>!Tr.resolvedModule||!bM(Tr.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function gn(Ue,Rt,It,Ot){const nt=D3(e);let Kt=q?.get(Ot);if(!Kt||Kt.isInvalidated){const Tr=Kt;Kt=q4(Ue,Rt,It,nt,ye);const Oe=e.toPath(Rt);en(Ue,Kt,Oe,cI,!1),q.set(Ot,Kt),Tr&&At(Tr,Oe,cI)}else if(Lb(It,nt)){const Tr=cI(Kt);xo(nt,Tr?.resolvedFileName?Tr.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,Ue,Rt,Tr?.resolvedFileName,Tr?.packageId&&kT(Tr.packageId))}return Kt}function Kn(Ue,Rt){var It,Ot;const nt=e.toPath(Rt),Kt=G.get(nt),Tr=Kt?.get(Ue,void 0);if(Tr&&!Tr.isInvalidated)return Tr;const Oe=(It=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:It.call(e,j),Nt=D3(e),he=C1(Ue,Rt,e.getCompilationSettings(),Nt,j);return(Ot=e.afterResolveSingleModuleNameWithoutWatching)==null||Ot.call(e,j,Ue,Rt,he,Oe),he}function _t(Ue){return el(Ue,"/node_modules/@types")}function en(Ue,Rt,It,Ot,nt){if((Rt.files??(Rt.files=new Set)).add(It),Rt.files.size!==1)return;!nt||td(Ue)?Di(Rt):l.add(Rt);const Kt=Ot(Rt);if(Kt&&Kt.resolvedFileName){const Tr=e.toPath(Kt.resolvedFileName);let Oe=g.get(Tr);Oe||g.set(Tr,Oe=new Set),Oe.add(Rt)}}function ir(Ue,Rt){const It=e.toPath(Ue),Ot=EH(Ue,It,pe,de,fe,ve,W,e.preferNonRecursiveWatch);if(Ot){const{dir:nt,dirPath:Kt,nonRecursive:Tr,packageDir:Oe,packageDirPath:Nt}=Ot;Kt===de?(C.assert(Tr),C.assert(!Oe),Rt=!0):Pr(nt,Kt,Oe,Nt,Tr)}return Rt}function Di(Ue){var Rt;C.assert(!!((Rt=Ue.files)!=null&&Rt.size));const{failedLookupLocations:It,affectingLocations:Ot,alternateResult:nt}=Ue;if(!It?.length&&!Ot?.length&&!nt)return;(It?.length||nt)&&u.add(Ue);let Kt=!1;if(It)for(const Tr of It)Kt=ir(Tr,Kt);nt&&(Kt=ir(nt,Kt)),Kt&&Pr(pe,de,void 0,void 0,!0),lo(Ue,!It?.length&&!nt)}function lo(Ue,Rt){var It;C.assert(!!((It=Ue.files)!=null&&It.size));const{affectingLocations:Ot}=Ue;if(Ot?.length){Rt&&d.add(Ue);for(const nt of Ot)zt(nt,!0)}}function zt(Ue,Rt){const It=K.get(Ue);if(It){Rt?It.resolutions++:It.files++;return}let Ot=Ue,nt=!1,Kt;e.realpath&&(Ot=e.realpath(Ue),Ue!==Ot&&(nt=!0,Kt=K.get(Ot)));const Tr=Rt?1:0,Oe=Rt?0:1;if(!nt||!Kt){const Nt={watcher:gse(e.toPath(Ot))?e.watchAffectingFileLocation(Ot,(he,B)=>{O?.addOrDeleteFile(he,e.toPath(Ot),B),Zr(Ot,j.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):KD,resolutions:nt?0:Tr,files:nt?0:Oe,symlinks:void 0};K.set(Ot,Nt),nt&&(Kt=Nt)}if(nt){C.assert(!!Kt);const Nt={watcher:{close:()=>{var he;const B=K.get(Ot);(he=B?.symlinks)!=null&&he.delete(Ue)&&!B.symlinks.size&&!B.resolutions&&!B.files&&(K.delete(Ot),B.watcher.close())}},resolutions:Tr,files:Oe,symlinks:void 0};K.set(Ue,Nt),(Kt.symlinks??(Kt.symlinks=new Set)).add(Ue)}}function Zr(Ue,Rt){var It;const Ot=K.get(Ue);Ot?.resolutions&&(A??(A=new Set)).add(Ue),Ot?.files&&(E??(E=new Set)).add(Ue),(It=Ot?.symlinks)==null||It.forEach(nt=>Zr(nt,Rt)),Rt?.delete(e.toPath(Ue))}function Ai(){l.forEach(Di),l.clear()}function Ni(Ue,Rt,It,Ot,nt){C.assert(!nt);let Kt=xe.get(Ot),Tr=X.get(Ot);if(Kt===void 0){const he=e.realpath(It);Kt=he!==It&&e.toPath(he)!==Ot,xe.set(Ot,Kt),Tr?Tr.isSymlink!==Kt&&(Tr.dirPathToWatcher.forEach(B=>{mn(Tr.isSymlink?Ot:Rt),B.watcher=Nt()}),Tr.isSymlink=Kt):X.set(Ot,Tr={dirPathToWatcher:new Map,isSymlink:Kt})}else C.assertIsDefined(Tr),C.assert(Kt===Tr.isSymlink);const Oe=Tr.dirPathToWatcher.get(Rt);Oe?Oe.refCount++:(Tr.dirPathToWatcher.set(Rt,{watcher:Nt(),refCount:1}),Kt&&Ce.set(Rt,(Ce.get(Rt)??0)+1));function Nt(){return Kt?Ci(It,Ot,nt):Ci(Ue,Rt,nt)}}function Pr(Ue,Rt,It,Ot,nt){!Ot||!e.realpath?Ci(Ue,Rt,nt):Ni(Ue,Rt,It,Ot,nt)}function Ci(Ue,Rt,It){let Ot=ie.get(Rt);return Ot?(C.assert(!!It==!!Ot.nonRecursive),Ot.refCount++):ie.set(Rt,Ot={watcher:dr(Ue,Rt,It),refCount:1,nonRecursive:It}),Ot}function $e(Ue,Rt){const It=e.toPath(Ue),Ot=EH(Ue,It,pe,de,fe,ve,W,e.preferNonRecursiveWatch);if(Ot){const{dirPath:nt,packageDirPath:Kt}=Ot;if(nt===de)Rt=!0;else if(Kt&&e.realpath){const Tr=X.get(Kt),Oe=Tr.dirPathToWatcher.get(nt);if(Oe.refCount--,Oe.refCount===0&&(mn(Tr.isSymlink?Kt:nt),Tr.dirPathToWatcher.delete(nt),Tr.isSymlink)){const Nt=Ce.get(nt)-1;Nt===0?Ce.delete(nt):Ce.set(nt,Nt)}}else mn(nt)}return Rt}function At(Ue,Rt,It){if(C.checkDefined(Ue.files).delete(Rt),Ue.files.size)return;Ue.files=void 0;const Ot=It(Ue);if(Ot&&Ot.resolvedFileName){const Oe=e.toPath(Ot.resolvedFileName),Nt=g.get(Oe);Nt?.delete(Ue)&&!Nt.size&&g.delete(Oe)}const{failedLookupLocations:nt,affectingLocations:Kt,alternateResult:Tr}=Ue;if(u.delete(Ue)){let Oe=!1;if(nt)for(const Nt of nt)Oe=$e(Nt,Oe);Tr&&(Oe=$e(Tr,Oe)),Oe&&mn(de)}else Kt?.length&&d.delete(Ue);if(Kt)for(const Oe of Kt){const Nt=K.get(Oe);Nt.resolutions--}}function mn(Ue){const Rt=ie.get(Ue);Rt.refCount--}function dr(Ue,Rt,It){return e.watchDirectoryOfFailedLookupLocation(Ue,Ot=>{const nt=e.toPath(Ot);O&&O.addOrDeleteFileOrDirectory(Ot,nt),Uo(nt,Rt===nt)},It?0:1)}function ri(Ue,Rt,It){const Ot=Ue.get(Rt);Ot&&(Ot.forEach(nt=>At(nt,Rt,It)),Ue.delete(Rt))}function ai(Ue){if(!El(Ue,".json"))return;const Rt=e.getCurrentProgram();if(!Rt)return;const It=Rt.getResolvedProjectReferenceByPath(Ue);It&&It.commandLine.fileNames.forEach(Ot=>qi(e.toPath(Ot)))}function qi(Ue){ri(G,Ue,cI),ri(J,Ue,vF)}function $o(Ue,Rt){if(!Ue)return!1;let It=!1;return Ue.forEach(Ot=>{if(!(Ot.isInvalidated||!Rt(Ot))){Ot.isInvalidated=It=!0;for(const nt of C.checkDefined(Ot.files))(o??(o=new Set)).add(nt),y=y||el(nt,_P)}}),It}function Ia(Ue){qi(Ue);const Rt=y;$o(g.get(Ue),cS)&&y&&!Rt&&e.onChangedAutomaticTypeDirectiveNames()}function Mn(Ue){C.assert(s===Ue||s===void 0),s=Ue}function Uo(Ue,Rt){if(Rt)(P||(P=new Set)).add(Ue);else{const It=R3(Ue);if(!It||(Ue=It,e.fileIsOpen(Ue)))return!1;const Ot=ci(Ue);if(_t(Ue)||H8(Ue)||_t(Ot)||H8(Ot))(R||(R=new Set)).add(Ue),(N||(N=new Set)).add(Ue);else{if(Gae(e.getCurrentProgram(),Ue)||El(Ue,".map"))return!1;(R||(R=new Set)).add(Ue),(N||(N=new Set)).add(Ue);const nt=Nw(Ue,!0);nt&&(N||(N=new Set)).add(nt)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ot(){const Ue=j.getPackageJsonInfoCache().getInternalMap();Ue&&(R||N||P)&&Ue.forEach((Rt,It)=>ht(It)?Ue.delete(It):void 0)}function Ft(){var Ue;if(k)return E=void 0,ot(),(R||N||P||A)&&$o(q,le),R=void 0,N=void 0,P=void 0,A=void 0,!0;let Rt=!1;return E&&((Ue=e.getCurrentProgram())==null||Ue.getSourceFiles().forEach(It=>{yt(It.packageJsonLocations,Ot=>E.has(Ot))&&((o??(o=new Set)).add(It.path),Rt=!0)}),E=void 0),!R&&!N&&!P&&!A||(Rt=$o(u,le)||Rt,ot(),R=void 0,N=void 0,P=void 0,Rt=$o(d,ne)||Rt,A=void 0),Rt}function le(Ue){var Rt;return ne(Ue)?!0:!R&&!N&&!P?!1:((Rt=Ue.failedLookupLocations)==null?void 0:Rt.some(It=>ht(e.toPath(It))))||!!Ue.alternateResult&&ht(e.toPath(Ue.alternateResult))}function ht(Ue){return R?.has(Ue)||cr(N?.keys()||[],Rt=>po(Ue,Rt)?!0:void 0)||cr(P?.keys()||[],Rt=>Ue.length>Rt.length&&po(Ue,Rt)&&(u9(Rt)||Ue[Rt.length]===Js)?!0:void 0)}function ne(Ue){var Rt;return!!A&&((Rt=Ue.affectingLocations)==null?void 0:Rt.some(It=>A.has(It)))}function Fe(){hp(Je,Bm)}function it(Ue){return Lt(Ue)?e.watchTypeRootsDirectory(Ue,Rt=>{const It=e.toPath(Rt);O&&O.addOrDeleteFileOrDirectory(Rt,It),y=!0,e.onChangedAutomaticTypeDirectiveNames();const Ot=vse(Ue,e.toPath(Ue),de,fe,ve,W,e.preferNonRecursiveWatch,nt=>ie.has(nt)||Ce.has(nt));Ot&&Uo(It,Ot===It)},1):KD}function dt(){const Ue=e.getCompilationSettings();if(Ue.types){Fe();return}const Rt=ZM(Ue,{getCurrentDirectory:W});Rt?hM(Je,new Set(Rt),{createNewValue:it,onDeleteValue:Bm}):Fe()}function Lt(Ue){return e.getCompilationSettings().typeRoots?!0:_se(e.toPath(Ue))}}function Mqe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var IAe=jc?{getCurrentDirectory:()=>jc.getCurrentDirectory(),getNewLine:()=>jc.newLine,getCanonicalFileName:Fd(jc.useCaseSensitiveFileNames)}:void 0;function sx(e,t){const r=e===jc&&IAe?IAe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Fd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(iH(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(Kae(i,r)+r.getNewLine()),i[0]=void 0}}function xAe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&jn(RAe,t.code)?(e.clearScreen(),!0):!1}var RAe=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code];function Pqe(e,t){return jn(RAe,e.code)?t+t:t}function Zw(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function IH(e,t){return t?(r,i,o)=>{xAe(e,r,o);let s=`[${YS(Zw(e),"\x1B[90m")}] `;s+=`${a_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";xAe(e,r,o)||(s+=i),s+=`${Zw(e)} - `,s+=`${a_(r.messageText,e.newLine)}${Pqe(r,i)}`,e.write(s)}}function Sse(e,t,r,i,o,s){const l=o;l.onUnRecoverableConfigFileDiagnostic=d=>NAe(o,s,d);const u=Ew(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function C3(e){return Io(e,t=>t.category===1)}function N3(e){return Un(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=hn(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=ca(i.file,i.start);return{fileName:r,line:o+1}}})}function xH(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function DAe(e,t){const r=YS(":"+e.line,"\x1B[90m");return vN(e.fileName)&&vN(t)?cf(t,e.fileName,!1)+r:e.fileName+r}function RH(e,t,r,i){if(e===0)return"";const o=t.filter(h=>h!==void 0),s=o.map(h=>`${h.fileName}:${h.line}`).filter((h,y,E)=>E.indexOf(h)===y),l=o[0]&&DAe(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 d=Il(...u),g=s.length>1?Lqe(o,i):"";return`${r}${a_(d.messageText,r)}${r}${r}${g}`}function Lqe(e,t){const r=e.filter((y,E,A)=>E===A.findIndex(R=>R?.fileName===y?.fileName));if(r.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,o=r.map(y=>[y,Io(e,E=>E.fileName===y.fileName)]),s=PB(o,0,y=>y[1]),l=f.Errors_Files.message,u=l.split(" ")[0].length,d=Math.max(u,i(s)),g=Math.max(i(s)-u,0);let h="";return h+=" ".repeat(g)+l+` `,o.forEach(y=>{const[E,A]=y,R=Math.log(A)*Math.LOG10E+1|0,N=R{t(i.fileName)})}function CH(e,t){var r,i;const o=e.getFileIncludeReasons(),s=l=>bN(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${JD(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${LH(e,u,s).messageText}`)),(i=NH(l,e.getCompilerOptionsForFile(l),s))==null||i.forEach(u=>t(` ${u.messageText}`))}function NH(e,t,r){var i;let o;if(e.path!==e.resolvedPath&&(o??(o=[])).push(qo(void 0,f.File_is_output_of_project_reference_source_0,JD(e.originalFileName,r))),e.redirectInfo&&(o??(o=[])).push(qo(void 0,f.File_redirects_to_file_0,JD(e.redirectInfo.redirectTarget,r))),Pp(e))switch(k1(e,t)){case 99:e.packageJsonScope&&(o??(o=[])).push(qo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,JD(Ba(e.packageJsonLocations),r)));break;case 1:e.packageJsonScope?(o??(o=[])).push(qo(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,JD(Ba(e.packageJsonLocations),r))):(i=e.packageJsonLocations)!=null&&i.length&&(o??(o=[])).push(qo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return o}function MH(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=ci(To(i.fileName,e.getCurrentDirectory())),l=ho(i.configFileSpecs.validatedFilesSpec,u=>e.getCanonicalFileName(To(u,s))===o);return l!==-1?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[l]:void 0}function PH(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=El(t,".json"),l=ci(To(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames(),d=ho((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,g=>{if(s&&!el(g,".json"))return!1;const h=SV(g,l,"files");return!!h&&iv(`(?:${h})$`,u).test(t)});return d!==-1?o.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[d]:void 0}function LH(e,t,r){var i,o;const s=e.getCompilerOptions();if(c0(t)){const l=gP(e,t),u=HD(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let d;switch(C.assert(HD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:HD(l)?d=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===fb?d=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:d=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:C.assert(!l.packageId),d=f.Referenced_via_0_from_file_1;break;case 5:d=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:C.assert(!l.packageId),d=f.Library_referenced_via_0_from_file_1;break;default:C.assertNever(t)}return qo(void 0,d,u,JD(l.file,r),l.packageId&&kT(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return qo(void 0,f.Root_file_specified_for_compilation);const l=To(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(MH(e,l))return qo(void 0,f.Part_of_files_list_in_tsconfig_json);const d=PH(e,l);return Bo(d)?qo(void 0,f.Matched_by_include_pattern_0_in_1,d,JD(s.configFile,r)):qo(void 0,d?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:const g=t.kind===2,h=C.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return qo(void 0,s.outFile?g?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:g?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,JD(h.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{const y=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,kT(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,kT(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return qo(void 0,...y)}case 6:{if(t.index!==void 0)return qo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);const y=I6(Ga(s)),E=y?[f.Default_library_for_target_0,y]:[f.Default_library];return qo(void 0,...E)}default:C.assertNever(t)}}function JD(e,t){const r=Bo(e)?e:e.fileName;return t?t(r):r}function M3(e,t,r,i,o,s,l,u){const d=e.getCompilerOptions(),g=e.getConfigFileParsingDiagnostics().slice(),h=g.length;Xr(g,e.getSyntacticDiagnostics(void 0,s)),g.length===h&&(Xr(g,e.getOptionsDiagnostics(s)),d.listFilesOnly||(Xr(g,e.getGlobalDiagnostics(s)),g.length===h&&Xr(g,e.getSemanticDiagnostics(void 0,s)),d.noEmit&&_p(d)&&g.length===h&&Xr(g,e.getDeclarationDiagnostics(void 0,s))));const y=d.listFilesOnly?{emitSkipped:!0,diagnostics:ae}:e.emit(void 0,o,s,l,u);Xr(g,y.diagnostics);const E=kR(g);if(E.forEach(t),r){const A=e.getCurrentDirectory();Ye(y.emittedFiles,R=>{const N=To(R,A);r(`TSFILE: ${N}`)}),kqe(e,r)}return i&&i(C3(E),N3(E)),{emitResult:y,diagnostics:E}}function kH(e,t,r,i,o,s,l,u){const{emitResult:d,diagnostics:g}=M3(e,t,r,i,o,s,l,u);return d.emitSkipped&&g.length>0?1:g.length>0?2:0}var KD={close:gs},vP=()=>KD;function wH(e=jc,t){return{onWatchStatusChange:t||IH(e),watchFile:ia(e,e.watchFile)||vP,watchDirectory:ia(e,e.watchDirectory)||vP,setTimeout:ia(e,e.setTimeout)||gs,clearTimeout:ia(e,e.clearTimeout)||gs,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var sd={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 OH(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):gs,o=ZU(e,r,i);return o.writeLog=i,o}function WH(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:nH((s,l)=>l?e.readFile(s,l):o.readFile(s),void 0),getDefaultLibLocation:ia(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:rH((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Cu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Fd(i),getNewLine:()=>rv(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),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return o}function P3(e,t){if(t.match(Joe)){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||!Zd(s)){i=o;continue}break}const l=t.substring(i,r);if(l.match(xU)){t=t.substring(0,i);break}else if(!l.match(RU))break;r=i}}return(e.createHash||p2)(t)}function L3(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=P3(e,i.text)),i}}function FH(e,t){const r=Cu(()=>ci(ya(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Cu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Qr(r(),v2(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||TH,storeSignatureInfo:e.storeSignatureInfo,now:ia(e,e.now)}}function CAe(e=jc,t,r,i){const o=l=>e.write(l+e.newLine),s=FH(e,t);return NB(s,wH(e,i)),s.afterProgramCreate=l=>{const u=l.getCompilerOptions(),d=rv(u);M3(l,r,o,g=>s.onWatchStatusChange(Il(xH(g),g),d,u,g))},s}function NAe(e,t,r){t(r),e.exit(1)}function zH({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const d=l||sx(o),g=CAe(o,s,d,u);return g.onUnRecoverableConfigFileDiagnostic=h=>NAe(o,d,h),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=r,g.extraFileExtensions=i,g}function BH({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const d=CAe(o,s,l||sx(o),u);return d.rootFiles=e,d.options=t,d.watchOptions=r,d.projectReferences=i,d}function Ese(e){const t=e.system||jc,r=e.host||(e.host=w3(e.options,t)),i=Ase(e),o=kH(i,e.reportDiagnostic||sx(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(RH(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}function k3(e,t){const r=l0(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=XU(r,o)}if(!(!i||i.version!==Le||!$w(i)))return fse(i,r,t)}function w3(e,t=jc){const r=h3(e,void 0,t);return r.createHash=ia(t,t.createHash),r.storeSignatureInfo=t.storeSignatureInfo,L3(r),hP(r,i=>ks(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Ase({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||w3(t),s=s||TH;const l=k3(t,o);return s(e,t,o,l,r,i)}function MAe(e,t,r,i,o,s,l,u){return Mo(e)?BH({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):zH({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function GH(e){let t,r,i,o,s=new Map([[void 0,void 0]]),l,u,d,g,h=e.extendedConfigCache,y=!1;const E=new Map;let A,R=!1;const N=e.useCaseSensitiveFileNames(),P=e.getCurrentDirectory(),{configFileName:k,optionsToExtend:W={},watchOptionsToExtend:O,extraFileExtensions:G,createProgram:j}=e;let{rootFiles:J,options:Z,watchOptions:q,projectReferences:ye}=e,ie,K,pe=!1,de=!1;const fe=k===void 0?void 0:p3(e,P,N),ve=fe||e,xe=E3(e,ve);let X=Kn();k&&e.configFileParsingResult&&(Mn(e.configFileParsingResult),X=Kn()),Ni(f.Starting_compilation_in_watch_mode),k&&!e.configFileParsingResult&&(X=rv(W),C.assert(!J),Ia(),X=Kn()),C.assert(Z),C.assert(J);const{watchFile:Ce,watchDirectory:Je,writeLog:Se}=OH(e,Z),re=Fd(N);Se(`Current directory: ${P} CaseSensitiveFileNames: ${N}`);let be;k&&(be=Ce(k,dr,2e3,q,sd.ConfigFile));const Ne=WH(e,()=>Z,ve);L3(Ne);const Be=Ne.getSourceFile;Ne.getSourceFile=(It,...Ot)=>lo(It,_t(It),...Ot),Ne.getSourceFileByPath=lo,Ne.getNewLine=()=>X,Ne.fileExists=Di,Ne.onReleaseOldSourceFile=Ai,Ne.onReleaseParsedCommandLine=Ft,Ne.toPath=_t,Ne.getCompilationSettings=()=>Z,Ne.useSourceOfProjectReferenceRedirect=ia(e,e.useSourceOfProjectReferenceRedirect),Ne.preferNonRecursiveWatch=e.preferNonRecursiveWatch,Ne.watchDirectoryOfFailedLookupLocation=(It,Ot,nt)=>Je(It,Ot,nt,q,sd.FailedLookupLocations),Ne.watchAffectingFileLocation=(It,Ot)=>Ce(It,Ot,2e3,q,sd.AffectingFileLocation),Ne.watchTypeRootsDirectory=(It,Ot,nt)=>Je(It,Ot,nt,q,sd.TypeRoots),Ne.getCachedDirectoryStructureHost=()=>fe,Ne.scheduleInvalidateResolutionsOfFailedLookupLocations=$e,Ne.onInvalidatedResolution=mn,Ne.onChangedAutomaticTypeDirectiveNames=mn,Ne.fileIsOpen=Qg,Ne.getCurrentProgram=at,Ne.writeLog=Se,Ne.getParsedCommandLine=Uo;const lt=AH(Ne,k?ci(To(k,P)):P,!1);Ne.resolveModuleNameLiterals=ia(e,e.resolveModuleNameLiterals),Ne.resolveModuleNames=ia(e,e.resolveModuleNames),!Ne.resolveModuleNameLiterals&&!Ne.resolveModuleNames&&(Ne.resolveModuleNameLiterals=lt.resolveModuleNameLiterals.bind(lt)),Ne.resolveTypeReferenceDirectiveReferences=ia(e,e.resolveTypeReferenceDirectiveReferences),Ne.resolveTypeReferenceDirectives=ia(e,e.resolveTypeReferenceDirectives),!Ne.resolveTypeReferenceDirectiveReferences&&!Ne.resolveTypeReferenceDirectives&&(Ne.resolveTypeReferenceDirectiveReferences=lt.resolveTypeReferenceDirectiveReferences.bind(lt)),Ne.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):lt.resolveLibrary.bind(lt),Ne.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ia(e,e.getModuleResolutionCache):()=>lt.getModuleResolutionCache();const Re=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ia(e,e.hasInvalidatedResolutions)||cS:Qg,_e=e.resolveLibrary?ia(e,e.hasInvalidatedLibResolutions)||cS:Qg;return t=k3(Z,Ne),Wt(),k?{getCurrentProgram:We,getProgram:ai,close:je,getResolutionCache:Ge}:{getCurrentProgram:We,getProgram:ai,updateRootFileNames:gn,close:je,getResolutionCache:Ge};function je(){Ci(),lt.clear(),hp(E,It=>{It&&It.fileWatcher&&(It.fileWatcher.close(),It.fileWatcher=void 0)}),be&&(be.close(),be=void 0),h?.clear(),h=void 0,g&&(hp(g,Kf),g=void 0),o&&(hp(o,Kf),o=void 0),i&&(hp(i,Bm),i=void 0),d&&(hp(d,It=>{var Ot;(Ot=It.watcher)==null||Ot.close(),It.watcher=void 0,It.watchedDirectories&&hp(It.watchedDirectories,Kf),It.watchedDirectories=void 0}),d=void 0),t=void 0}function Ge(){return lt}function We(){return t}function at(){return t&&t.getProgramOrUndefined()}function Wt(){Se("Synchronizing program"),C.assert(Z),C.assert(J),Ci();const It=We();R&&(X=Kn(),It&&gF(It.getCompilerOptions(),Z)&<.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:Ot,hasInvalidatedLibResolutions:nt}=lt.createHasInvalidatedResolutions(Re,_e),{originalReadFile:Kt,originalFileExists:Tr,originalDirectoryExists:Oe,originalCreateDirectory:Nt,originalWriteFile:he,readFileWithCache:B}=hP(Ne,_t);return dH(at(),J,Z,Ae=>Zr(Ae,B),Ae=>Ne.fileExists(Ae),Ot,nt,Pr,Uo,ye)?de&&(y&&Ni(f.File_change_detected_Starting_incremental_compilation),t=j(void 0,void 0,Ne,t,K,ye),de=!1):(y&&Ni(f.File_change_detected_Starting_incremental_compilation),cn(Ot,nt)),y=!1,e.afterProgramCreate&&It!==t&&e.afterProgramCreate(t),Ne.readFile=Kt,Ne.fileExists=Tr,Ne.directoryExists=Oe,Ne.createDirectory=Nt,Ne.writeFile=he,s?.forEach((Ae,te)=>{if(!te)dt(),k&&Ue(_t(k),Z,q,sd.ExtendedConfigFile);else{const xt=d?.get(te);xt&&Rt(Ae,te,xt)}}),s=void 0,t}function cn(It,Ot){Se("CreatingProgramWith::"),Se(` roots: ${JSON.stringify(J)}`),Se(` options: ${JSON.stringify(Z)}`),ye&&Se(` projectReferences: ${JSON.stringify(ye)}`);const nt=R||!at();R=!1,de=!1,lt.startCachingPerDirectoryResolution(),Ne.hasInvalidatedResolutions=It,Ne.hasInvalidatedLibResolutions=Ot,Ne.hasChangedAutomaticTypeDirectiveNames=Pr;const Kt=at();if(t=j(J,Z,Ne,t,K,ye),lt.finishCachingPerDirectoryResolution(t.getProgram(),Kt),QU(t.getProgram(),i||(i=new Map),Fe),nt&<.updateTypeRootsWatch(),A){for(const Tr of A)i.has(Tr)||E.delete(Tr);A=void 0}}function gn(It){C.assert(!k,"Cannot update root file names with config file watch mode"),J=It,mn()}function Kn(){return rv(Z||W)}function _t(It){return ks(It,P,re)}function en(It){return typeof It=="boolean"}function ir(It){return typeof It.version=="boolean"}function Di(It){const Ot=_t(It);return en(E.get(Ot))?!1:ve.fileExists(It)}function lo(It,Ot,nt,Kt,Tr){const Oe=E.get(Ot);if(en(Oe))return;const Nt=typeof nt=="object"?nt.impliedNodeFormat:void 0;if(Oe===void 0||Tr||ir(Oe)||Oe.sourceFile.impliedNodeFormat!==Nt){const he=Be(It,nt,Kt);if(Oe)he?(Oe.sourceFile=he,Oe.version=he.version,Oe.fileWatcher||(Oe.fileWatcher=le(Ot,It,ht,250,q,sd.SourceFile))):(Oe.fileWatcher&&Oe.fileWatcher.close(),E.set(Ot,!1));else if(he){const B=le(Ot,It,ht,250,q,sd.SourceFile);E.set(Ot,{sourceFile:he,version:he.version,fileWatcher:B})}else E.set(Ot,!1);return he}return Oe.sourceFile}function zt(It){const Ot=E.get(It);Ot!==void 0&&(en(Ot)?E.set(It,{version:!1}):Ot.version=!1)}function Zr(It,Ot){const nt=E.get(It);if(!nt)return;if(nt.version)return nt.version;const Kt=Ot(It);return Kt!==void 0?P3(Ne,Kt):void 0}function Ai(It,Ot,nt){const Kt=E.get(It.resolvedPath);Kt!==void 0&&(en(Kt)?(A||(A=[])).push(It.path):Kt.sourceFile===It&&(Kt.fileWatcher&&Kt.fileWatcher.close(),E.delete(It.resolvedPath),nt||lt.removeResolutionsOfFile(It.path)))}function Ni(It){e.onWatchStatusChange&&e.onWatchStatusChange(Il(It),X,Z||W)}function Pr(){return lt.hasChangedAutomaticTypeDirectiveNames()}function Ci(){return u?(e.clearTimeout(u),u=void 0,!0):!1}function $e(){if(!e.setTimeout||!e.clearTimeout)return lt.invalidateResolutionsOfFailedLookupLocations();const It=Ci();Se(`Scheduling invalidateFailedLookup${It?", Cancelled earlier one":""}`),u=e.setTimeout(At,250,"timerToInvalidateFailedLookupResolutions")}function At(){u=void 0,lt.invalidateResolutionsOfFailedLookupLocations()&&mn()}function mn(){!e.setTimeout||!e.clearTimeout||(l&&e.clearTimeout(l),Se("Scheduling update"),l=e.setTimeout(ri,250,"timerToUpdateProgram"))}function dr(){C.assert(!!k),r=2,mn()}function ri(){l=void 0,y=!0,ai()}function ai(){switch(r){case 1:qi();break;case 2:$o();break;default:Wt();break}return We()}function qi(){Se("Reloading new file names and options"),C.assert(Z),C.assert(k),r=0,J=$M(Z.configFile.configFileSpecs,To(ci(k),P),Z,xe,G),F4(J,To(k,P),Z.configFile.configFileSpecs,K,pe)&&(de=!0),Wt()}function $o(){C.assert(k),Se(`Reloading config file: ${k}`),r=0,fe&&fe.clearCache(),Ia(),R=!0,(s??(s=new Map)).set(void 0,void 0),Wt()}function Ia(){C.assert(k),Mn(Ew(k,W,xe,h||(h=new Map),O,G))}function Mn(It){J=It.fileNames,Z=It.options,q=It.watchOptions,ye=It.projectReferences,ie=It.wildcardDirectories,K=$S(It).slice(),pe=Dw(It.raw),de=!0}function Uo(It){const Ot=_t(It);let nt=d?.get(Ot);if(nt){if(!nt.updateLevel)return nt.parsedCommandLine;if(nt.parsedCommandLine&&nt.updateLevel===1&&!e.getParsedCommandLine){Se("Reloading new file names and options"),C.assert(Z);const Tr=$M(nt.parsedCommandLine.options.configFile.configFileSpecs,To(ci(It),P),Z,xe);return nt.parsedCommandLine={...nt.parsedCommandLine,fileNames:Tr},nt.updateLevel=void 0,nt.parsedCommandLine}}Se(`Loading config file: ${It}`);const Kt=e.getParsedCommandLine?e.getParsedCommandLine(It):ot(It);return nt?(nt.parsedCommandLine=Kt,nt.updateLevel=void 0):(d||(d=new Map)).set(Ot,nt={parsedCommandLine:Kt}),(s??(s=new Map)).set(Ot,It),Kt}function ot(It){const Ot=xe.onUnRecoverableConfigFileDiagnostic;xe.onUnRecoverableConfigFileDiagnostic=gs;const nt=Ew(It,void 0,xe,h||(h=new Map),O);return xe.onUnRecoverableConfigFileDiagnostic=Ot,nt}function Ft(It){var Ot;const nt=_t(It),Kt=d?.get(nt);Kt&&(d.delete(nt),Kt.watchedDirectories&&hp(Kt.watchedDirectories,Kf),(Ot=Kt.watcher)==null||Ot.close(),$U(nt,g))}function le(It,Ot,nt,Kt,Tr,Oe){return Ce(Ot,(Nt,he)=>nt(Nt,he,It),Kt,Tr,Oe)}function ht(It,Ot,nt){ne(It,nt,Ot),Ot===2&&E.has(nt)&<.invalidateResolutionOfFile(nt),zt(nt),mn()}function ne(It,Ot,nt){fe&&fe.addOrDeleteFile(It,Ot,nt)}function Fe(It,Ot){return d?.has(It)?KD:le(It,Ot,it,500,q,sd.MissingFile)}function it(It,Ot,nt){ne(It,nt,Ot),Ot===0&&i.has(nt)&&(i.get(nt).close(),i.delete(nt),zt(nt),mn())}function dt(){Uw(o||(o=new Map),ie,Lt)}function Lt(It,Ot){return Je(It,nt=>{C.assert(k),C.assert(Z);const Kt=_t(nt);fe&&fe.addOrDeleteFileOrDirectory(nt,Kt),zt(Kt),!Hw({watchedDirPath:_t(It),fileOrDirectory:nt,fileOrDirectoryPath:Kt,configFileName:k,extraFileExtensions:G,options:Z,program:We()||J,currentDirectory:P,useCaseSensitiveFileNames:N,writeLog:Se,toPath:_t})&&r!==2&&(r=1,mn())},Ot,q,sd.WildcardDirectory)}function Ue(It,Ot,nt,Kt){f3(It,Ot,g||(g=new Map),(Tr,Oe)=>Ce(Tr,(Nt,he)=>{var B;ne(Tr,Oe,he),h&&m3(h,Oe,_t);const Ae=(B=g.get(Oe))==null?void 0:B.projects;Ae?.size&&Ae.forEach(te=>{if(k&&_t(k)===te)r=2;else{const xt=d?.get(te);xt&&(xt.updateLevel=2),lt.removeResolutionsFromProjectReferenceRedirects(te)}mn()})},2e3,nt,Kt),_t)}function Rt(It,Ot,nt){var Kt,Tr,Oe,Nt;nt.watcher||(nt.watcher=Ce(It,(he,B)=>{ne(It,Ot,B);const Ae=d?.get(Ot);Ae&&(Ae.updateLevel=2),lt.removeResolutionsFromProjectReferenceRedirects(Ot),mn()},2e3,((Kt=nt.parsedCommandLine)==null?void 0:Kt.watchOptions)||q,sd.ConfigFileOfReferencedProject)),Uw(nt.watchedDirectories||(nt.watchedDirectories=new Map),(Tr=nt.parsedCommandLine)==null?void 0:Tr.wildcardDirectories,(he,B)=>{var Ae;return Je(he,te=>{const xt=_t(te);fe&&fe.addOrDeleteFileOrDirectory(te,xt),zt(xt);const Xt=d?.get(Ot);Xt?.parsedCommandLine&&(Hw({watchedDirPath:_t(he),fileOrDirectory:te,fileOrDirectoryPath:xt,configFileName:It,options:Xt.parsedCommandLine.options,program:Xt.parsedCommandLine.fileNames,currentDirectory:P,useCaseSensitiveFileNames:N,writeLog:Se,toPath:_t})||Xt.updateLevel!==2&&(Xt.updateLevel=1,mn()))},B,((Ae=nt.parsedCommandLine)==null?void 0:Ae.watchOptions)||q,sd.WildcardDirectoryOfReferencedProject)}),Ue(Ot,(Oe=nt.parsedCommandLine)==null?void 0:Oe.options,((Nt=nt.parsedCommandLine)==null?void 0:Nt.watchOptions)||q,sd.ExtendedConfigOfReferencedProject)}}var Ise=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",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))(Ise||{});function VH(e){return El(e,".json")?e:Qr(e,"tsconfig.json")}var wqe=new Date(-864e13);function Oqe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function xse(e,t){return Oqe(e,t,()=>new Map)}function jH(e){return e.now?e.now():new Date}function lx(e){return!!e&&!!e.buildOrder}function eO(e){return lx(e)?e.buildOrder:e}function O3(e,t){return r=>{let i=t?`[${YS(Zw(e),"\x1B[90m")}] `:`${Zw(e)} - `;i+=`${a_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function PAe(e,t,r,i){const o=FH(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):dS,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):gs,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):gs,o.reportDiagnostic=r||sx(e),o.reportSolutionBuilderStatus=i||O3(e),o.now=ia(e,e.now),o}function Rse(e=jc,t,r,i,o){const s=PAe(e,t,r,i);return s.reportErrorSummary=o,s}function Dse(e=jc,t,r,i,o){const s=PAe(e,t,r,i),l=wH(e,o);return NB(s,l),s}function Wqe(e){const t={};return R4.forEach(r=>{Rs(e,r.name)&&(t[r.name]=e[r.name])}),t.tscBuild=!0,t}function Cse(e,t,r){return ZAe(!1,e,t,r)}function Nse(e,t,r,i){return ZAe(!0,e,t,r,i)}function Fqe(e,t,r,i,o){const s=t,l=t,u=Wqe(i),d=WH(s,()=>N.projectCompilerOptions);L3(d),d.getParsedCommandLine=P=>XD(N,P,B_(N,P)),d.resolveModuleNameLiterals=ia(s,s.resolveModuleNameLiterals),d.resolveTypeReferenceDirectiveReferences=ia(s,s.resolveTypeReferenceDirectiveReferences),d.resolveLibrary=ia(s,s.resolveLibrary),d.resolveModuleNames=ia(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=ia(s,s.resolveTypeReferenceDirectives),d.getModuleResolutionCache=ia(s,s.getModuleResolutionCache);let g,h;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(g=FD(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(P,k,W,O,G)=>Jw(P,k,W,O,G,s,g,lH),d.getModuleResolutionCache=()=>g),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(h=H4(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache(),g?.optionsToRedirectsKey),d.resolveTypeReferenceDirectiveReferences=(P,k,W,O,G)=>Jw(P,k,W,O,G,s,h,y3));let y;d.resolveLibrary||(y=FD(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache()),d.resolveLibrary=(P,k,W)=>q4(P,k,W,s,y)),d.getBuildInfo=(P,k)=>UAe(N,P,B_(N,k),void 0);const{watchFile:E,watchDirectory:A,writeLog:R}=OH(l,i),N={host:s,hostWithWatch:l,parseConfigFileHost:E3(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:d,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:h,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:P=>s.readFile(P),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:E,watchDirectory:A,writeLog:R};return N}function Hm(e,t){return ks(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=Hm(e,t);return r.set(t,o),o}function LAe(e){return!!e.options}function zqe(e,t){const r=e.configFileCache.get(t);return r&&LAe(r)?r:void 0}function XD(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return LAe(o)?o:void 0;Dl("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:d,extendedConfigCache:g,host:h}=e;let y;return h.getParsedCommandLine?(y=h.getParsedCommandLine(t),y||(s=Il(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,y=Ew(t,u,l,g,d),l.onUnRecoverableConfigFileDiagnostic=gs),i.set(r,y||s),Dl("SolutionBuilder::afterConfigFileParsing"),wf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function tO(e,t){return VH(ib(e.compilerHost.getCurrentDirectory(),t))}function kAe(e,t){const r=new Map,i=new Map,o=[];let s,l;for(const d of t)u(d);return l?{buildOrder:s||ae,circularDiagnostics:l}:s||ae;function u(d,g){const h=B_(e,d);if(i.has(h))return;if(r.has(h)){g||(l||(l=[])).push(Il(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r `)));return}r.set(h,!0),o.push(d);const y=XD(e,d,h);if(y&&y.projectReferences)for(const E of y.projectReferences){const A=tO(e,E.path);u(A,g||E.circular)}o.pop(),i.set(h,!0),(s||(s=[])).push(d)}}function W3(e){return e.buildOrder||Bqe(e)}function Bqe(e){const t=kAe(e,e.rootNames.map(o=>tO(e,o)));e.resolvedConfigFilePaths.clear();const r=new Set(eO(t).map(o=>B_(e,o))),i={onDeleteValue:gs};return vg(e.configFileCache,r,i),vg(e.projectStatus,r,i),vg(e.builderPrograms,r,i),vg(e.diagnostics,r,i),vg(e.projectPendingBuild,r,i),vg(e.projectErrorsReported,r,i),vg(e.buildInfoCache,r,i),vg(e.outputTimeStamps,r,i),vg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(vg(e.allWatchedConfigFiles,r,{onDeleteValue:Bm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),vg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Kf)}),vg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Bm)}),vg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Bm)})),e.buildOrder=t}function wAe(e,t,r){const i=t&&tO(e,t),o=W3(e);if(lx(o))return o;if(i){const l=B_(e,i);if(ho(o,d=>B_(e,d)===l)===-1)return}const s=i?kAe(e,[i]):o;return C.assert(!lx(s)),C.assert(!r||i!==void 0),C.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function OAe(e){e.cache&&Mse(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:g,getSourceFileWithCache:h,readFileWithCache:y}=hP(r,E=>Hm(e,E),(...E)=>o.call(t,...E));e.readFileWithCache=y,t.getSourceFile=h,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:o}}function Mse(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 WAe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function FAe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(B_(e,i),0)),t&&t.throwIfCancellationRequested()}var Pse=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(Pse||{});function BAe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function Gqe(e,t,r,i,o){let s=!0;return{kind:1,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{qAe(e,i,r),s=!1},done:()=>(s&&qAe(e,i,r),Dl("SolutionBuilder::Timestamps only updates"),BAe(e,r))}}function Vqe(e,t,r,i,o,s,l){let u=0,d,g;return{kind:0,project:t,projectPath:r,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>y(Vs),getProgram:()=>y(P=>P.getProgramOrUndefined()),getSourceFile:P=>y(k=>k.getSourceFile(P)),getSourceFiles:()=>E(P=>P.getSourceFiles()),getOptionsDiagnostics:P=>E(k=>k.getOptionsDiagnostics(P)),getGlobalDiagnostics:P=>E(k=>k.getGlobalDiagnostics(P)),getConfigFileParsingDiagnostics:()=>E(P=>P.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(P,k)=>E(W=>W.getSyntacticDiagnostics(P,k)),getAllDependencies:P=>E(k=>k.getAllDependencies(P)),getSemanticDiagnostics:(P,k)=>E(W=>W.getSemanticDiagnostics(P,k)),getSemanticDiagnosticsOfNextAffectedFile:(P,k)=>y(W=>W.getSemanticDiagnosticsOfNextAffectedFile&&W.getSemanticDiagnosticsOfNextAffectedFile(P,k)),emit:(P,k,W,O,G)=>P||O?y(j=>{var J,Z;return j.emit(P,k,W,O,G||((Z=(J=e.host).getCustomTransformers)==null?void 0:Z.call(J,t)))}):(N(0,W),R(k,W,G)),done:h};function h(P,k,W){return N(3,P,k,W),Dl("SolutionBuilder::Projects built"),BAe(e,r)}function y(P){return N(0),d&&P(d)}function E(P){return y(P)||ae}function A(){var P,k,W;if(C.assert(d===void 0),e.options.dry){Bp(e,f.A_non_dry_build_would_build_project_0,t),g=1,u=2;return}if(e.options.verbose&&Bp(e,f.Building_project_0,t),o.fileNames.length===0){nO(e,r,$S(o)),g=0,u=2;return}const{host:O,compilerHost:G}=e;if(e.projectCompilerOptions=o.options,(P=e.moduleResolutionCache)==null||P.update(o.options),(k=e.typeReferenceDirectiveResolutionCache)==null||k.update(o.options),d=O.createProgram(o.fileNames,o.options,G,jqe(e,r,o),$S(o),o.projectReferences),e.watch){const j=(W=e.moduleResolutionCache)==null?void 0:W.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(r,j&&new Set(Co(j.values(),J=>e.host.realpath&&(U4(J)||J.directoryExists)?e.host.realpath(Qr(J.packageDirectory,"package.json")):Qr(J.packageDirectory,"package.json")))),e.builderPrograms.set(r,d)}u++}function R(P,k,W){var O,G,j;C.assertIsDefined(d),C.assert(u===1);const{host:J,compilerHost:Z}=e,q=new Map,ye=d.getCompilerOptions(),ie=LS(ye);let K,pe;const{emitResult:de,diagnostics:fe}=M3(d,ve=>J.reportDiagnostic(ve),e.write,void 0,(ve,xe,X,Ce,Je,Se)=>{var re;const be=Hm(e,ve);if(q.set(Hm(e,ve),ve),Se?.buildInfo){pe||(pe=jH(e.host));const Be=(re=d.hasChangedEmitSignature)==null?void 0:re.call(d),lt=qH(e,ve,r);lt?(lt.buildInfo=Se.buildInfo,lt.modifiedTime=pe,Be&&(lt.latestChangedDtsTime=pe)):e.buildInfoCache.set(r,{path:Hm(e,ve),buildInfo:Se.buildInfo,modifiedTime:pe,latestChangedDtsTime:Be?pe:void 0})}const Ne=Se?.differsOnlyInMap?QA(e.host,ve):void 0;(P||Z.writeFile)(ve,xe,X,Ce,Je,Se),Se?.differsOnlyInMap?e.host.setModifiedTime(ve,Ne):!ie&&e.watch&&(K||(K=kse(e,r))).set(be,pe||(pe=jH(e.host)))},k,void 0,W||((G=(O=e.host).getCustomTransformers)==null?void 0:G.call(O,t)));return(!ye.noEmitOnError||!fe.length)&&(q.size||s.type!==8)&&HAe(e,o,r,f.Updating_unchanged_output_timestamps_of_project_0,q),e.projectErrorsReported.set(r,!0),g=(j=d.hasChangedEmitSignature)!=null&&j.call(d)?0:2,fe.length?(e.diagnostics.set(r,fe),e.projectStatus.set(r,{type:0,reason:"it had errors"}),g|=4):(e.diagnostics.delete(r),e.projectStatus.set(r,{type:1,oldestOutputFileName:D8(q.values())??qU(o,!J.useCaseSensitiveFileNames())})),Uqe(e,d),u=2,de}function N(P,k,W,O){for(;u<=P&&u<3;){const G=u;switch(u){case 0:A();break;case 1:R(W,k,O);break;case 2:Kqe(e,t,r,i,o,l,C.checkDefined(g)),u++;break}C.assert(u>G)}}}function GAe(e,t,r){if(!e.projectPendingBuild.size||lx(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s{const A=C.checkDefined(e.filesWatched.get(u));C.assert(UH(A)),A.modifiedTime=E,A.callbacks.forEach(R=>R(h,y,E))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:g,modifiedTime:d})}return{close:()=>{const g=C.checkDefined(e.filesWatched.get(u));C.assert(UH(g)),g.callbacks.length===1?(e.filesWatched.delete(u),Kf(g)):YA(g.callbacks,r)}}}function kse(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function qH(e,t,r){const i=Hm(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function UAe(e,t,r,i){const o=Hm(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?XU(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||Dp}),u}function wse(e,t,r,i){const o=jAe(e,t);if(rG&&(O=fe,G=ve),J.add(xe)}let q;if(P?(Z||(Z=vH(P,y,h)),q=Hc(Z.roots,(fe,ve)=>J.has(ve)?void 0:ve)):q=Ye(mse(N,y,h),fe=>J.has(fe)?void 0:fe),q)return{type:10,buildInfoFile:y,inputFile:q};if(!E){const fe=u3(t,!h.useCaseSensitiveFileNames()),ve=kse(e,r);for(const xe of fe){if(xe===y)continue;const X=Hm(e,xe);let Ce=ve?.get(X);if(Ce||(Ce=QA(e.host,xe),ve?.set(X,Ce)),Ce===Dp)return{type:3,missingOutputFileName:xe};if(Cewse(e,fe,k,W));if(K)return K;const pe=e.lastCachedPackageJsonLookups.get(r),de=pe&&fg(pe,fe=>wse(e,fe,k,W));return de||{type:ye?2:j?15:1,newestInputFileTime:G,newestInputFileName:O,oldestOutputFileName:W}}function qqe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Ose(e,t,r){if(t===void 0)return{type:0,reason:"config file deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;Dl("SolutionBuilder::beforeUpToDateCheck");const o=Hqe(e,t,r);return Dl("SolutionBuilder::afterUpToDateCheck"),wf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function HAe(e,t,r,i,o){if(t.options.noEmit)return;let s;const l=l0(t.options),u=LS(t.options);if(l&&u){o?.has(Hm(e,l))||(e.options.verbose&&Bp(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=jH(e.host)),qH(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:d}=e,g=u3(t,!d.useCaseSensitiveFileNames()),h=kse(e,r),y=h?new Set:void 0;if(!o||g.length!==o.size){let E=!!e.options.verbose;for(const A of g){const R=Hm(e,A);o?.has(R)||(E&&(E=!1,Bp(e,i,t.options.configFilePath)),d.setModifiedTime(A,s||(s=jH(e.host))),A===l?qH(e,l,r).modifiedTime=s:h&&(h.set(R,s),y.add(R)))}}h?.forEach((E,A)=>{!o?.has(A)&&!y.has(A)&&h.delete(A)})}function Jqe(e,t,r){if(!t.composite)return;const i=C.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&$w(i.buildInfo)&&i.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(To(i.buildInfo.latestChangedDtsFile,ci(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function qAe(e,t,r){if(e.options.dry)return Bp(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);HAe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:qU(t,!e.host.useCaseSensitiveFileNames())})}function Kqe(e,t,r,i,o,s,l){if(!(e.options.stopBuildOnErrors&&l&4)&&o.options.composite)for(let u=i+1;ue.diagnostics.has(B_(e,g)))?d?2:1:0}function KAe(e,t,r){Dl("SolutionBuilder::beforeClean");const i=Yqe(e,t,r);return Dl("SolutionBuilder::afterClean"),wf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Yqe(e,t,r){const i=wAe(e,t,r);if(!i)return 3;if(lx(i))return JH(e,i.circularDiagnostics),4;const{options:o,host:s}=e,l=o.dry?[]:void 0;for(const u of i){const d=B_(e,u),g=XD(e,u,d);if(g===void 0){eIe(e,d);continue}const h=u3(g,!s.useCaseSensitiveFileNames());if(!h.length)continue;const y=new Set(g.fileNames.map(E=>Hm(e,E)));for(const E of h)y.has(Hm(e,E))||s.fileExists(E)&&(l?l.push(E):(s.deleteFile(E),Wse(e,d,0)))}return l&&Bp(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r * ${u}`).join("")),0}function Wse(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,WAe(e,t),FAe(e,t,r),OAe(e)}function F3(e,t,r){e.reportFileChangeDetected=!0,Wse(e,t,r),XAe(e,250,!0)}function XAe(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout($qe,t,"timerToBuildInvalidatedProject",e,r))}function $qe(e,t,r){Dl("SolutionBuilder::beforeBuild");const i=Qqe(t,r);Dl("SolutionBuilder::afterBuild"),wf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&tIe(t,i)}function Qqe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Bse(e,f.File_change_detected_Starting_incremental_compilation));let r=0;const i=W3(e),o=Lse(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=GAe(e,i,!1);if(!s)break;if(s.kind!==1&&(t||r===5)){XAe(e,100,!1);return}VAe(e,s,i).done(),s.kind!==1&&r++}return Mse(e),i}function YAe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,HH(e,t,()=>F3(e,r,2),2e3,i?.watchOptions,sd.ConfigFile,t))}function $Ae(e,t,r){f3(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>HH(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>F3(e,l,2))},2e3,r?.watchOptions,sd.ExtendedConfigFile),i=>Hm(e,i))}function QAe(e,t,r,i){e.watch&&Uw(xse(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;Hw({watchedDirPath:Hm(e,o),fileOrDirectory:l,fileOrDirectoryPath:Hm(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=zqe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>Hm(e,d)})||F3(e,r,1)},s,i?.watchOptions,sd.WildcardDirectory,t))}function Fse(e,t,r,i){e.watch&&hM(xse(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>HH(e,o,()=>F3(e,r,0),250,i?.watchOptions,sd.SourceFile,t),onDeleteValue:Bm})}function zse(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||hM(xse(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>HH(e,o,()=>F3(e,r,0),2e3,i?.watchOptions,sd.PackageJson,t),onDeleteValue:Bm})}function Zqe(e,t){if(e.watchAllProjectsPending){Dl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of eO(t)){const i=B_(e,r),o=XD(e,r,i);YAe(e,r,i,o),$Ae(e,i,o),o&&(QAe(e,r,i,o),Fse(e,r,i,o),zse(e,r,i,o))}Dl("SolutionBuilder::afterWatcherCreation"),wf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function eJe(e){hp(e.allWatchedConfigFiles,Bm),hp(e.allWatchedExtendedConfigFiles,Kf),hp(e.allWatchedWildcardDirectories,t=>hp(t,Kf)),hp(e.allWatchedInputFiles,t=>hp(t,Bm)),hp(e.allWatchedPackageJsonFiles,t=>hp(t,Bm))}function ZAe(e,t,r,i,o){const s=Fqe(e,t,r,i,o);return{build:(l,u,d,g)=>JAe(s,l,u,d,g),clean:l=>KAe(s,l),buildReferences:(l,u,d,g)=>JAe(s,l,u,d,g,!0),cleanReferences:l=>KAe(s,l,!0),getNextInvalidatedProject:l=>(zAe(s,l),Lse(s,W3(s),!1)),getBuildOrder:()=>W3(s),getUpToDateStatusOfProject:l=>{const u=tO(s,l),d=B_(s,u);return Ose(s,XD(s,u,d),d)},invalidateProject:(l,u)=>Wse(s,l,u||0),close:()=>eJe(s)}}function Nd(e,t){return bN(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Bp(e,t,...r){e.host.reportSolutionBuilderStatus(Il(t,...r))}function Bse(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Il(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function JH({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function nO(e,t,r){JH(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function eIe(e,t){nO(e,t,[e.configFileCache.get(t)])}function tIe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];lx(t)?(nIe(e,t.buildOrder),JH(e,t.circularDiagnostics),r&&(o+=C3(t.circularDiagnostics)),r&&(s=[...s,...N3(t.circularDiagnostics)])):(t.forEach(l=>{const u=B_(e,l);e.projectErrorsReported.has(u)||JH(e,i.get(u)||ae)}),r&&i.forEach(l=>o+=C3(l)),r&&i.forEach(l=>[...s,...N3(l)])),e.watch?Bse(e,xH(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function nIe(e,t){e.options.verbose&&Bp(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r * `+Nd(e,r)).join(""))}function tJe(e,t,r){switch(r.type){case 5:return Bp(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Nd(e,t),Nd(e,r.outOfDateOutputFileName),Nd(e,r.newerInputFileName));case 6:return Bp(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Nd(e,t),Nd(e,r.outOfDateOutputFileName),Nd(e,r.newerProjectName));case 3:return Bp(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Nd(e,t),Nd(e,r.missingOutputFileName));case 4:return Bp(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Nd(e,t),Nd(e,r.fileName));case 7:return Bp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Nd(e,t),Nd(e,r.buildInfoFile));case 8:return Bp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,Nd(e,t),Nd(e,r.buildInfoFile));case 9:return Bp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Nd(e,t),Nd(e,r.buildInfoFile));case 10:return Bp(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,Nd(e,t),Nd(e,r.buildInfoFile),Nd(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Bp(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Nd(e,t),Nd(e,r.newestInputFileName||""),Nd(e,r.oldestOutputFileName||""));break;case 2:return Bp(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Nd(e,t));case 15:return Bp(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Nd(e,t));case 11:return Bp(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Nd(e,t),Nd(e,r.upstreamProjectName));case 12:return Bp(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,Nd(e,t),Nd(e,r.upstreamProjectName));case 0:return Bp(e,f.Project_0_is_out_of_date_because_1,Nd(e,t),r.reason);case 14:return Bp(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Nd(e,t),r.version,Le);case 17:return Bp(e,f.Project_0_is_being_forcibly_rebuilt,Nd(e,t))}}function KH(e,t,r){e.options.verbose&&tJe(e,t,r)}var Gse=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(Gse||{});function nJe(e){const t=rJe();return Ye(e.getSourceFiles(),r=>{const i=iJe(e,r),o=ag(r).length;t.set(i,t.get(i)+o)}),t}function rJe(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}function iJe(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const r=t.path;return Ql(r,EV)?"TypeScript":Ql(r,pD)?"JavaScript":El(r,".json")?"JSON":"Other"}function XH(e,t,r){return z3(e,r)?sx(e,!0):t}function rIe(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function z3(e,t){return!t||typeof t.pretty>"u"?rIe(e):t.pretty}function iIe(e){return e.options.all?xp(Um.concat(R1),(t,r)=>l2(t.name,r.name)):Un(Um.concat(R1),t=>!!t.showInSimplifiedHelpView)}function YH(e){e.write(rp(f.Version_0,Le)+e.newLine)}function $H(e){if(!rIe(e))return{bold:h=>h,blue:h=>h,blueBackground:h=>h,brightWhite:h=>h};function r(h){return`\x1B[1m${h}\x1B[22m`}const i=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),o=e.getEnvironmentVariable("WT_SESSION"),s=e.getEnvironmentVariable("TERM_PROGRAM")&&e.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function l(h){return i&&!o&&!s?g(h):`\x1B[94m${h}\x1B[39m`}const u=e.getEnvironmentVariable("COLORTERM")==="truecolor"||e.getEnvironmentVariable("TERM")==="xterm-256color";function d(h){return u?`\x1B[48;5;68m${h}\x1B[39;49m`:`\x1B[44m${h}\x1B[39;49m`}function g(h){return`\x1B[97m${h}\x1B[39m`}return{bold:r,blue:l,brightWhite:g,blueBackground:d}}function oIe(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function oJe(e,t,r,i){var o;const s=[],l=$H(e),u=oIe(t),d=R(t),g=typeof t.defaultValueDescription=="object"?rp(t.defaultValueDescription):y(t.defaultValueDescription,t.type==="list"||t.type==="listOrElement"?t.element.type:t.type),h=((o=e.getWidthOfTerminal)==null?void 0:o.call(e))??0;if(h>=80){let N="";t.description&&(N=rp(t.description)),s.push(...A(u,N,r,i,h,!0),e.newLine),E(d,t)&&(d&&s.push(...A(d.valueType,d.possibleValues,r,i,h,!1),e.newLine),g&&s.push(...A(rp(f.default_Colon),g,r,i,h,!1),e.newLine)),s.push(e.newLine)}else{if(s.push(l.blue(u),e.newLine),t.description){const N=rp(t.description);s.push(N)}if(s.push(e.newLine),E(d,t)){if(d&&s.push(`${d.valueType} ${d.possibleValues}`),g){d&&s.push(e.newLine);const N=rp(f.default_Colon);s.push(`${N} ${g}`)}s.push(e.newLine)}s.push(e.newLine)}return s;function y(N,P){return N!==void 0&&typeof P=="object"?Co(P.entries()).filter(([,k])=>k===N).map(([k])=>k).join("/"):String(N)}function E(N,P){const k=["string"],W=[void 0,"false","n/a"],O=P.defaultValueDescription;return!(P.category===f.Command_line_Options||jn(k,N?.possibleValues)&&jn(W,O))}function A(N,P,k,W,O,G){const j=[];let J=!0,Z=P;const q=O-W;for(;Z.length>0;){let ye="";J?(ye=N.padStart(k),ye=ye.padEnd(W),ye=G?l.blue(ye):ye):ye="".padStart(W);const ie=Z.substr(0,q);Z=Z.slice(q),j.push(`${ye}${ie}`),J=!1}return j}function R(N){if(N.type==="object")return;return{valueType:P(N),possibleValues:k(N)};function P(W){switch(C.assert(W.type!=="listOrElement"),W.type){case"string":case"number":case"boolean":return rp(f.type_Colon);case"list":return rp(f.one_or_more_Colon);default:return rp(f.one_of_Colon)}}function k(W){let O;switch(W.type){case"string":case"number":case"boolean":O=W.type;break;case"list":case"listOrElement":O=k(W.element);break;case"object":O="";break;default:const G={};return W.type.forEach((j,J)=>{var Z;(Z=W.deprecatedKeys)!=null&&Z.has(J)||(G[j]||(G[j]=[])).push(J)}),Object.entries(G).map(([,j])=>j.join("/")).join(", ")}return O}}}function aIe(e,t){let r=0;for(const l of t){const u=oIe(l).length;r=r>u?r:u}const i=r+2,o=i+2;let s=[];for(const l of t){const u=oJe(e,l,i,o);s=[...s,...u]}return s[s.length-2]!==e.newLine&&s.push(e.newLine),s}function rO(e,t,r,i,o,s){let l=[];if(l.push($H(e).bold(t)+e.newLine+e.newLine),o&&l.push(o+e.newLine+e.newLine),!i)return l=[...l,...aIe(e,r)],s&&l.push(s+e.newLine+e.newLine),l;const u=new Map;for(const d of r){if(!d.category)continue;const g=rp(d.category),h=u.get(g)??[];h.push(d),u.set(g,h)}return u.forEach((d,g)=>{l.push(`### ${g}${e.newLine}${e.newLine}`),l=[...l,...aIe(e,d)]}),s&&l.push(s+e.newLine+e.newLine),l}function aJe(e,t){const r=$H(e);let i=[...QH(e,`${rp(f.tsc_Colon_The_TypeScript_Compiler)} - ${rp(f.Version_0,Le)}`)];i.push(r.bold(rp(f.COMMON_COMMANDS))+e.newLine+e.newLine),l("tsc",f.Compiles_the_current_project_tsconfig_json_in_the_working_directory),l("tsc app.ts util.ts",f.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),l("tsc -b",f.Build_a_composite_project_in_the_working_directory),l("tsc --init",f.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),l("tsc -p ./path/to/tsconfig.json",f.Compiles_the_TypeScript_project_located_at_the_specified_path),l("tsc --help --all",f.An_expanded_version_of_this_information_showing_all_possible_compiler_options),l(["tsc --noEmit","tsc --target esnext"],f.Compiles_the_current_project_with_additional_settings);const o=t.filter(u=>u.isCommandLineOnly||u.category===f.Command_line_Options),s=t.filter(u=>!jn(o,u));i=[...i,...rO(e,rp(f.COMMAND_LINE_FLAGS),o,!1,void 0,void 0),...rO(e,rp(f.COMMON_COMPILER_OPTIONS),s,!1,void 0,DI(f.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const u of i)e.write(u);function l(u,d){const g=typeof u=="string"?[u]:u;for(const h of g)i.push(" "+r.blue(h)+e.newLine);i.push(" "+rp(d)+e.newLine+e.newLine)}}function sJe(e,t,r,i){let o=[...QH(e,`${rp(f.tsc_Colon_The_TypeScript_Compiler)} - ${rp(f.Version_0,Le)}`)];o=[...o,...rO(e,rp(f.ALL_COMPILER_OPTIONS),t,!0,void 0,DI(f.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],o=[...o,...rO(e,rp(f.WATCH_OPTIONS),i,!1,rp(f.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],o=[...o,...rO(e,rp(f.BUILD_OPTIONS),Un(r,s=>s!==R1),!1,DI(f.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,"https://aka.ms/tsc-composite-builds"))];for(const s of o)e.write(s)}function sIe(e,t){let r=[...QH(e,`${rp(f.tsc_Colon_The_TypeScript_Compiler)} - ${rp(f.Version_0,Le)}`)];r=[...r,...rO(e,rp(f.BUILD_OPTIONS),Un(t,i=>i!==R1),!1,DI(f.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,"https://aka.ms/tsc-composite-builds"))];for(const i of r)e.write(i)}function QH(e,t){var r;const i=$H(e),o=[],s=((r=e.getWidthOfTerminal)==null?void 0:r.call(e))??0,l=5,u=i.blueBackground("".padStart(l)),d=i.blueBackground(i.brightWhite("TS ".padStart(l)));if(s>=t.length+l){const h=(s>120?120:s)-l;o.push(t.padEnd(h)+u+e.newLine),o.push("".padStart(h)+d+e.newLine)}else o.push(t+e.newLine),o.push(e.newLine);return o}function lIe(e,t){t.options.all?sJe(e,iIe(t),Vj,ex):aJe(e,iIe(t))}function cIe(e,t,r){let i=sx(e),o;if(r.options.locale&&A9(r.options.locale,e,r.errors),r.errors.length>0)return r.errors.forEach(i),e.exit(1);if(r.options.init)return uJe(e,i,r.options),e.exit(0);if(r.options.version)return YH(e),e.exit(0);if(r.options.help||r.options.all)return lIe(e,r),e.exit(0);if(r.options.watch&&r.options.listFilesOnly)return i(Il(f.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(r.options.project){if(r.fileNames.length!==0)return i(Il(f.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const u=ya(r.options.project);if(!u||e.directoryExists(u)){if(o=Qr(u,"tsconfig.json"),!e.fileExists(o))return i(Il(f.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,r.options.project)),e.exit(1)}else if(o=u,!e.fileExists(o))return i(Il(f.The_specified_path_does_not_exist_Colon_0,r.options.project)),e.exit(1)}else if(r.fileNames.length===0){const u=ya(e.getCurrentDirectory());o=eH(u,d=>e.fileExists(d))}if(r.fileNames.length===0&&!o)return r.options.showConfig?i(Il(f.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,ya(e.getCurrentDirectory()))):(YH(e),lIe(e,r)),e.exit(1);const s=e.getCurrentDirectory(),l=w4(r.options,u=>To(u,s));if(o){const u=new Map,d=Sse(o,l,u,r.watchOptions,e,i);if(l.showConfig)return d.errors.length!==0?(i=XH(e,i,d.options),d.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(Xj(d,o,e),null,4)+e.newLine),e.exit(0));if(i=XH(e,i,d.options),lV(d.options))return jse(e,i)?void 0:lJe(e,t,i,d,l,r.watchOptions,u);LS(d.options)?fIe(e,t,i,d):pIe(e,t,i,d)}else{if(l.showConfig)return e.write(JSON.stringify(Xj(r,Qr(s,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=XH(e,i,l),lV(l))return jse(e,i)?void 0:cJe(e,t,i,r.fileNames,l,r.watchOptions);LS(l)?fIe(e,t,i,{...r,options:l}):pIe(e,t,i,{...r,options:l})}}function Vse(e){if(e.length>0&&e[0].charCodeAt(0)===45){const t=e[0].slice(e[0].charCodeAt(1)===45?2:1).toLowerCase();return t===R1.name||t===R1.shortName}return!1}function dIe(e,t,r){if(Vse(r)){const{buildOptions:o,watchOptions:s,projects:l,errors:u}=ioe(r);if(o.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(o.generateCpuProfile,()=>uIe(e,t,o,s,l,u));else return uIe(e,t,o,s,l,u)}const i=noe(r,o=>e.readFile(o));if(i.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(i.options.generateCpuProfile,()=>cIe(e,t,i));else return cIe(e,t,i)}function jse(e,t){return!e.watchFile||!e.watchDirectory?(t(Il(f.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0):!1}var B3=2;function uIe(e,t,r,i,o,s){const l=XH(e,sx(e),r);if(r.locale&&A9(r.locale,e,s),s.length>0)return s.forEach(l),e.exit(1);if(r.help||o.length===0)return YH(e),sIe(e,Sw),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||r.clean&&!e.deleteFile)return l(Il(f.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(r.watch){if(jse(e,l))return;const y=Dse(e,void 0,l,O3(e,z3(e,r)),Hse(e,r));y.jsDocParsingMode=B3;const E=gIe(e,r);mIe(e,t,y,E);const A=y.onWatchStatusChange;let R=!1;y.onWatchStatusChange=(P,k,W,O)=>{A?.(P,k,W,O),R&&(P.code===f.Found_0_errors_Watching_for_file_changes.code||P.code===f.Found_1_error_Watching_for_file_changes.code)&&qse(N,E)};const N=Nse(y,o,r,i);return N.build(),qse(N,E),R=!0,N}const u=Rse(e,void 0,l,O3(e,z3(e,r)),Use(e,r));u.jsDocParsingMode=B3;const d=gIe(e,r);mIe(e,t,u,d);const g=Cse(u,o,r),h=r.clean?g.clean():g.build();return qse(g,d),KQ(),e.exit(h)}function Use(e,t){return z3(e,t)?(r,i)=>e.write(RH(r,i,e.newLine,e)):void 0}function pIe(e,t,r,i){const{fileNames:o,options:s,projectReferences:l}=i,u=h3(s,void 0,e);u.jsDocParsingMode=B3;const d=u.getCurrentDirectory(),g=Fd(u.useCaseSensitiveFileNames());hP(u,A=>ks(A,d,g)),Jse(e,s,!1);const h={rootNames:o,options:s,projectReferences:l,host:u,configFileParsingDiagnostics:$S(i)},y=Xw(h),E=kH(y,r,A=>e.write(A+e.newLine),Use(e,s));return eq(e,y,void 0),t(y),e.exit(E)}function fIe(e,t,r,i){const{options:o,fileNames:s,projectReferences:l}=i;Jse(e,o,!1);const u=w3(o,e);u.jsDocParsingMode=B3;const d=Ese({host:u,system:e,rootNames:s,options:o,configFileParsingDiagnostics:$S(i),projectReferences:l,reportDiagnostic:r,reportErrorSummary:Use(e,o),afterProgramEmitAndDiagnostics:g=>{eq(e,g.getProgram(),void 0),t(g)}});return e.exit(d)}function mIe(e,t,r,i){hIe(e,r,!0),r.afterProgramEmitAndDiagnostics=o=>{eq(e,o.getProgram(),i),t(o)}}function hIe(e,t,r){const i=t.createProgram;t.createProgram=(o,s,l,u,d,g)=>(C.assert(o!==void 0||s===void 0&&!!u),s!==void 0&&Jse(e,s,r),i(o,s,l,u,d,g))}function _Ie(e,t,r){r.jsDocParsingMode=B3,hIe(e,r,!1);const i=r.afterProgramCreate;r.afterProgramCreate=o=>{i(o),eq(e,o.getProgram(),void 0),t(o)}}function Hse(e,t){return IH(e,z3(e,t))}function lJe(e,t,r,i,o,s,l){const u=zH({configFileName:i.options.configFilePath,optionsToExtend:o,watchOptionsToExtend:s,system:e,reportDiagnostic:r,reportWatchStatus:Hse(e,i.options)});return _Ie(e,t,u),u.configFileParsingResult=i,u.extendedConfigCache=l,GH(u)}function cJe(e,t,r,i,o,s){const l=BH({rootFiles:i,options:o,watchOptions:s,system:e,reportDiagnostic:r,reportWatchStatus:Hse(e,o)});return _Ie(e,t,l),GH(l)}function gIe(e,t){if(e===jc&&t.extendedDiagnostics)return jB(),dJe()}function dJe(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:r,clear:i};function t(o){const s=e?.get(o.name);s?s.type===2?s.value=Math.max(s.value,o.value):s.value+=o.value:(e??(e=new Map)).set(o.name,o)}function r(o){e?.forEach(o)}function i(){e=void 0}}function qse(e,t){if(!t)return;if(!HQ()){jc.write(f.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` `);return}const r=[];r.push({name:"Projects in scope",value:eO(e.getBuildOrder()).length,type:1}),i("SolutionBuilder::Projects built"),i("SolutionBuilder::Timestamps only updates"),i("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(s=>{s.name=`Aggregate ${s.name}`,r.push(s)}),VB((s,l)=>{ZH(s)&&r.push({name:`${o(s)} time`,value:l,type:0})}),qQ(),jB(),t.clear(),bIe(jc,r);function i(s){const l=Qbe(s);l&&r.push({name:o(s),value:l,type:1})}function o(s){return s.replace("SolutionBuilder::","")}}function yIe(e,t){return e===jc&&(t.diagnostics||t.extendedDiagnostics)}function vIe(e,t){return e===jc&&t.generateTrace}function Jse(e,t,r){yIe(e,t)&&jB(e),vIe(e,t)&&JQ(r?"build":"project",t.generateTrace,t.configFilePath)}function ZH(e){return po(e,"SolutionBuilder::")}function eq(e,t,r){var i;const o=t.getCompilerOptions();vIe(e,o)&&((i=xr)==null||i.stopTracing());let s;if(yIe(e,o)){s=[];const g=e.getMemoryUsage?e.getMemoryUsage():-1;u("Files",t.getSourceFiles().length);const h=nJe(t);if(o.extendedDiagnostics)for(const[P,k]of h.entries())u("Lines of "+P,k);else u("Lines",Gn(h.values(),(P,k)=>P+k,0));u("Identifiers",t.getIdentifierCount()),u("Symbols",t.getSymbolCount()),u("Types",t.getTypeCount()),u("Instantiations",t.getInstantiationCount()),g>=0&&l({name:"Memory used",value:g,type:2},!0);const y=HQ(),E=y?gN("Program"):0,A=y?gN("Bind"):0,R=y?gN("Check"):0,N=y?gN("Emit"):0;if(o.extendedDiagnostics){const P=t.getRelationCacheSizes();u("Assignability cache size",P.assignable),u("Identity cache size",P.identity),u("Subtype cache size",P.subtype),u("Strict subtype cache size",P.strictSubtype),y&&VB((k,W)=>{ZH(k)||d(`${k} time`,W,!0)})}else y&&(d("I/O read",gN("I/O Read"),!0),d("I/O write",gN("I/O Write"),!0),d("Parse time",E,!0),d("Bind time",A,!0),d("Check time",R,!0),d("Emit time",N,!0));y&&d("Total time",E+A+R+N,!1),bIe(e,s),y?r?(VB(P=>{ZH(P)||eTe(P)}),Zbe(P=>{ZH(P)||tTe(P)})):qQ():e.write(f.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` `)}function l(g,h){s.push(g),h&&r?.addAggregateStatistic(g)}function u(g,h){l({name:g,value:h,type:1},!0)}function d(g,h,y){l({name:g,value:h,type:0},y)}}function bIe(e,t){let r=0,i=0;for(const o of t){o.name.length>r&&(r=o.name.length);const s=TIe(o);s.length>i&&(i=s.length)}for(const o of t)e.write(`${o.name}:`.padEnd(r+2)+TIe(o).toString().padStart(i)+e.newLine)}function TIe(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:C.assertNever(e.type)}}function uJe(e,t,r){const i=e.getCurrentDirectory(),o=ya(Qr(i,"tsconfig.json"));if(e.fileExists(o))t(Il(f.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,loe(r,e.newLine));const s=[e.newLine,...QH(e,"Created a new tsconfig.json")];s.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const l of s)e.write(l)}}function s_(e,t=!0){return{type:e,reportFallback:t}}var SIe=s_(void 0,!1),EIe=s_(void 0,!1),bP=s_(void 0,!0);function Kse(e,t){const r=Vd(e,"strictNullChecks");return{serializeTypeOfDeclaration:h,serializeReturnTypeForSignature:E,serializeTypeOfExpression:g,serializeTypeOfAccessor:d,tryReuseExistingTypeNode(_e,je){if(t.canReuseTypeNode(_e,je))return o(_e,je)}};function i(_e,je,Ge=je){return je===void 0?void 0:t.markNodeReuse(_e,je.flags&16?je:L.cloneNode(je),Ge??je)}function o(_e,je){const{finalizeBoundary:Ge,startRecoveryScope:We,hadError:at,markError:Wt}=t.createRecoveryBoundary(_e),cn=st(je,gn,Ri);if(!Ge())return;return _e.approximateLength+=je.end-je.pos,cn;function gn(zt){if(at())return zt;const Zr=We(),Ai=Ire(zt)?t.enterNewScope(_e,zt):void 0,Ni=lo(zt);return Ai?.(),at()?Ri(zt)&&!VI(zt)?(Zr(),t.serializeExistingTypeNode(_e,zt)):zt:Ni?t.markNodeReuse(_e,Ni,zt):void 0}function Kn(zt){const Zr=QN(zt);switch(Zr.kind){case 184:return Di(Zr);case 187:return ir(Zr);case 200:return _t(Zr);case 199:const Ai=Zr;if(Ai.operator===143)return en(Ai)}return st(zt,gn,Ri)}function _t(zt){const Zr=Kn(zt.objectType);if(Zr!==void 0)return L.updateIndexedAccessTypeNode(zt,Zr,st(zt.indexType,gn,Ri))}function en(zt){C.assertEqual(zt.operator,143);const Zr=Kn(zt.type);if(Zr!==void 0)return L.updateTypeOperatorNode(zt,Zr)}function ir(zt){const{introducesError:Zr,node:Ai}=t.trackExistingEntityName(_e,zt.exprName);if(!Zr)return L.updateTypeQueryNode(zt,Ai,Xn(zt.typeArguments,gn,Ri));const Ni=t.serializeTypeName(_e,zt.exprName,!0);if(Ni)return t.markNodeReuse(_e,Ni,zt.exprName)}function Di(zt){if(t.canReuseTypeNode(_e,zt)){const{introducesError:Zr,node:Ai}=t.trackExistingEntityName(_e,zt.typeName),Ni=Xn(zt.typeArguments,gn,Ri);if(Zr){const Pr=t.serializeTypeName(_e,zt.typeName,!1,Ni);if(Pr)return t.markNodeReuse(_e,Pr,zt.typeName)}else{const Pr=L.updateTypeReferenceNode(zt,Ai,Ni);return t.markNodeReuse(_e,Pr,zt)}}}function lo(zt){var Zr;if(e0(zt))return st(zt.type,gn,Ri);if(mie(zt)||zt.kind===320)return L.createKeywordTypeNode(133);if(hie(zt))return L.createKeywordTypeNode(159);if(xD(zt))return L.createUnionTypeNode([st(zt.type,gn,Ri),L.createLiteralTypeNode(L.createNull())]);if(uj(zt))return L.createUnionTypeNode([st(zt.type,gn,Ri),L.createKeywordTypeNode(157)]);if(u4(zt))return st(zt.type,gn);if(p4(zt))return L.createArrayTypeNode(st(zt.type,gn,Ri));if(A1(zt))return L.createTypeLiteralNode(Vt(zt.jsDocPropertyTags,At=>{const mn=st(He(At.name)?At.name:At.name.right,gn,He),dr=t.getJsDocPropertyOverride(_e,zt,At);return L.createPropertySignature(void 0,mn,At.isBracketed||At.typeExpression&&uj(At.typeExpression.type)?L.createToken(58):void 0,dr||At.typeExpression&&st(At.typeExpression.type,gn,Ri)||L.createKeywordTypeNode(133))}));if(Wp(zt)&&He(zt.typeName)&&zt.typeName.escapedText==="")return jr(L.createKeywordTypeNode(133),zt);if((dy(zt)||Wp(zt))&&UF(zt))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,st(zt.typeArguments[0],gn,Ri))],st(zt.typeArguments[1],gn,Ri))]);if(RD(zt))if(gI(zt)){let At;return L.createConstructorTypeNode(void 0,Xn(zt.typeParameters,gn,sl),Ui(zt.parameters,(mn,dr)=>mn.name&&He(mn.name)&&mn.name.escapedText==="new"?(At=mn.type,void 0):L.createParameterDeclaration(void 0,Pr(mn),t.markNodeReuse(_e,L.createIdentifier(Ci(mn,dr)),mn),L.cloneNode(mn.questionToken),st(mn.type,gn,Ri),void 0)),st(At||zt.type,gn,Ri)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(Xn(zt.typeParameters,gn,sl),Vt(zt.parameters,(At,mn)=>L.createParameterDeclaration(void 0,Pr(At),t.markNodeReuse(_e,L.createIdentifier(Ci(At,mn)),At),L.cloneNode(At.questionToken),st(At.type,gn,Ri),void 0)),st(zt.type,gn,Ri)||L.createKeywordTypeNode(133));if(zM(zt))return t.canReuseTypeNode(_e,zt)||Wt(),zt;if(sl(zt)){const{node:At}=t.trackExistingEntityName(_e,zt.name);return L.updateTypeParameterDeclaration(zt,Xn(zt.modifiers,gn,Aa),At,st(zt.constraint,gn,Ri),st(zt.default,gn,Ri))}if(zS(zt)){const At=_t(zt);return At||(Wt(),zt)}if(Wp(zt)){const At=Di(zt);return At||(Wt(),zt)}if(ry(zt)){if(((Zr=zt.attributes)==null?void 0:Zr.token)===132)return Wt(),zt;if(!t.canReuseTypeNode(_e,zt))return t.serializeExistingTypeNode(_e,zt);const At=$e(zt,zt.argument.literal),mn=At===zt.argument.literal?i(_e,zt.argument.literal):At;return L.updateImportTypeNode(zt,mn===zt.argument.literal?i(_e,zt.argument):L.createLiteralTypeNode(mn),st(zt.attributes,gn,S1),st(zt.qualifier,gn,Nu),Xn(zt.typeArguments,gn,Ri),zt.isTypeOf)}if(nd(zt)&&zt.name.kind===168&&!t.hasLateBindableName(zt)){if(!oy(zt))return Ai(zt,gn);if(t.shouldRemoveDeclaration(_e,zt))return}if(Yo(zt)&&!zt.type||Po(zt)&&!zt.type&&!zt.initializer||Tu(zt)&&!zt.type&&!zt.initializer||to(zt)&&!zt.type&&!zt.initializer){let At=Ai(zt,gn);return At===zt&&(At=t.markNodeReuse(_e,L.cloneNode(zt),zt)),At.type=L.createKeywordTypeNode(133),to(zt)&&(At.modifiers=void 0),At}if(WS(zt)){const At=ir(zt);return At||(Wt(),zt)}if(va(zt)&&Ds(zt.expression)){const{node:At,introducesError:mn}=t.trackExistingEntityName(_e,zt.expression);if(mn){const dr=t.serializeTypeOfExpression(_e,zt.expression);let ri;if(dv(dr))ri=dr.literal;else{const ai=t.evaluateEntityNameExpression(zt.expression),qi=typeof ai.value=="string"?L.createStringLiteral(ai.value,void 0):typeof ai.value=="number"?L.createNumericLiteral(ai.value,0):void 0;if(!qi)return e_(dr)&&t.trackComputedName(_e,zt.expression),zt;ri=qi}return ri.kind===11&&fp(ri.text,Ga(e))?L.createIdentifier(ri.text):ri.kind===9&&!ri.text.startsWith("-")?ri:L.updateComputedPropertyName(zt,ri)}else return L.updateComputedPropertyName(zt,At)}if(VI(zt)){let At;if(He(zt.parameterName)){const{node:mn,introducesError:dr}=t.trackExistingEntityName(_e,zt.parameterName);dr&&Wt(),At=mn}else At=L.cloneNode(zt.parameterName);return L.updateTypePredicateNode(zt,L.cloneNode(zt.assertsModifier),At,st(zt.type,gn,Ri))}if(jI(zt)||ku(zt)||y1(zt)){const At=Ai(zt,gn),mn=t.markNodeReuse(_e,At===zt?L.cloneNode(zt):At,zt),dr=Qa(mn);return Cr(mn,dr|(_e.flags&1024&&ku(zt)?0:1)),mn}if(ka(zt)&&_e.flags&268435456&&!zt.singleQuote){const At=L.cloneNode(zt);return At.singleQuote=!0,At}if(FS(zt)){const At=st(zt.checkType,gn,Ri),mn=t.enterNewScope(_e,zt),dr=st(zt.extendsType,gn,Ri),ri=st(zt.trueType,gn,Ri);mn();const ai=st(zt.falseType,gn,Ri);return L.updateConditionalTypeNode(zt,At,dr,ri,ai)}if(JT(zt)){if(zt.operator===158&&zt.type.kind===155){if(!t.canReuseTypeNode(_e,zt))return Wt(),zt}else if(zt.operator===143){const At=en(zt);return At||(Wt(),zt)}}return Ai(zt,gn);function Ai(At,mn){const dr=!_e.enclosingFile||_e.enclosingFile!==Wn(At);return kn(At,mn,void 0,dr?Ni:void 0)}function Ni(At,mn,dr,ri,ai){let qi=Xn(At,mn,dr,ri,ai);return qi&&(qi.pos!==-1||qi.end!==-1)&&(qi===At&&(qi=L.createNodeArray(At.slice(),At.hasTrailingComma)),uh(qi,-1,-1)),qi}function Pr(At){return At.dotDotDotToken||(At.type&&p4(At.type)?L.createToken(26):void 0)}function Ci(At,mn){return At.name&&He(At.name)&&At.name.escapedText==="this"?"this":Pr(At)?"args":`arg${mn}`}function $e(At,mn){const dr=t.getModuleSpecifierOverride(_e,At,mn);return dr?jr(L.createStringLiteral(dr),mn):mn}}}function s(_e,je,Ge){if(!_e)return;let We;return(!Ge||Be(_e))&&t.canReuseTypeNode(je,_e)&&(We=o(je,_e),We!==void 0&&(We=Ne(We,Ge,void 0,je))),We}function l(_e,je,Ge,We,at,Wt=at!==void 0){if(!_e||!t.canReuseTypeNodeAnnotation(je,Ge,_e,We,at)&&(!at||!t.canReuseTypeNodeAnnotation(je,Ge,_e,We,!1)))return;let cn;return(!at||Be(_e))&&(cn=s(_e,je,at)),cn!==void 0||!Wt?cn:(je.tracker.reportInferenceFallback(Ge),t.serializeExistingTypeNode(je,_e,at)??L.createKeywordTypeNode(133))}function u(_e,je,Ge,We){if(!_e)return;const at=s(_e,je,Ge);return at!==void 0?at:(je.tracker.reportInferenceFallback(_e),t.serializeExistingTypeNode(je,_e,Ge)??L.createKeywordTypeNode(133))}function d(_e,je,Ge){return N(_e,je,Ge)??Z(_e,t.getAllAccessorDeclarations(_e),Ge,je)}function g(_e,je,Ge,We){const at=ie(_e,je,!1,Ge,We);return at.type!==void 0?at.type:j(_e,je,at.reportFallback)}function h(_e,je,Ge){switch(_e.kind){case 170:case 342:return k(_e,je,Ge);case 261:return P(_e,je,Ge);case 172:case 349:case 173:return O(_e,je,Ge);case 209:return G(_e,je,Ge);case 278:return g(_e.expression,Ge,void 0,!0);case 212:case 213:case 227:return W(_e,je,Ge);case 304:case 305:return y(_e,je,Ge);default:C.assertNever(_e,`Node needs to be an inferrable node, found ${C.formatSyntaxKind(_e.kind)}`)}}function y(_e,je,Ge){const We=Rc(_e);let at;if(We&&t.canReuseTypeNodeAnnotation(Ge,_e,We,je)&&(at=s(We,Ge)),!at&&_e.kind===304){const Wt=_e.initializer,cn=US(Wt)?ND(Wt):Wt.kind===235||Wt.kind===217?Wt.type:void 0;cn&&!Om(cn)&&t.canReuseTypeNodeAnnotation(Ge,_e,cn,je)&&(at=s(cn,Ge))}return at??G(_e,je,Ge,!1)}function E(_e,je,Ge){switch(_e.kind){case 178:return d(_e,je,Ge);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return lt(_e,je,Ge);default:C.assertNever(_e,`Node needs to be an inferrable node, found ${C.formatSyntaxKind(_e.kind)}`)}}function A(_e){if(_e)return _e.kind===178?Ir(_e)&&Yy(_e)||kp(_e):KG(_e)}function R(_e,je){let Ge=A(_e);return!Ge&&_e!==je.firstAccessor&&(Ge=A(je.firstAccessor)),!Ge&&je.secondAccessor&&_e!==je.secondAccessor&&(Ge=A(je.secondAccessor)),Ge}function N(_e,je,Ge){const We=t.getAllAccessorDeclarations(_e),at=R(_e,We);if(at&&!VI(at))return q(Ge,_e,()=>l(at,Ge,_e,je)??G(_e,je,Ge));if(We.getAccessor)return q(Ge,We.getAccessor,()=>lt(We.getAccessor,je,Ge))}function P(_e,je,Ge){var We;const at=Rc(_e);let Wt=bP;return at?Wt=s_(l(at,Ge,_e,je)):_e.initializer&&(((We=je.declarations)==null?void 0:We.length)===1||Io(je.declarations,yi)===1)&&!t.isExpandoFunctionDeclaration(_e)&&!Re(_e)&&(Wt=ie(_e.initializer,Ge,void 0,void 0,Cte(_e))),Wt.type!==void 0?Wt.type:G(_e,je,Ge,Wt.reportFallback)}function k(_e,je,Ge){const We=_e.parent;if(We.kind===179)return d(We,void 0,Ge);const at=Rc(_e),Wt=t.requiresAddingImplicitUndefined(_e,je,Ge.enclosingDeclaration);let cn=bP;return at?cn=s_(l(at,Ge,_e,je,Wt)):to(_e)&&_e.initializer&&He(_e.name)&&!Re(_e)&&(cn=ie(_e.initializer,Ge,void 0,Wt)),cn.type!==void 0?cn.type:G(_e,je,Ge,cn.reportFallback)}function W(_e,je,Ge){const We=Rc(_e);let at;We&&(at=l(We,Ge,_e,je));const Wt=Ge.suppressReportInferenceFallback;Ge.suppressReportInferenceFallback=!0;const cn=at??G(_e,je,Ge,!1);return Ge.suppressReportInferenceFallback=Wt,cn}function O(_e,je,Ge){const We=Rc(_e),at=t.requiresAddingImplicitUndefined(_e,je,Ge.enclosingDeclaration);let Wt=bP;if(We)Wt=s_(l(We,Ge,_e,je,at));else{const cn=Po(_e)?_e.initializer:void 0;if(cn&&!Re(_e)){const gn=q2(_e);Wt=ie(cn,Ge,void 0,at,gn)}}return Wt.type!==void 0?Wt.type:G(_e,je,Ge,Wt.reportFallback)}function G(_e,je,Ge,We=!0){return We&&Ge.tracker.reportInferenceFallback(_e),Ge.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(Ge,_e,je)}function j(_e,je,Ge=!0,We){return C.assert(!We),Ge&&je.tracker.reportInferenceFallback(_e),je.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeTypeOfExpression(je,_e)??L.createKeywordTypeNode(133)}function J(_e,je,Ge,We){return We&&je.tracker.reportInferenceFallback(_e),je.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(je,_e,Ge)??L.createKeywordTypeNode(133)}function Z(_e,je,Ge,We,at=!0){return _e.kind===178?lt(_e,We,Ge,at):(at&&Ge.tracker.reportInferenceFallback(_e),(je.getAccessor&<(je.getAccessor,We,Ge,at))??t.serializeTypeOfDeclaration(Ge,_e,We)??L.createKeywordTypeNode(133))}function q(_e,je,Ge){const We=t.enterNewScope(_e,je),at=Ge();return We(),at}function ye(_e,je,Ge,We){return Om(je)?ie(_e,Ge,!0,We):s_(u(je,Ge,We))}function ie(_e,je,Ge=!1,We=!1,at=!1){switch(_e.kind){case 218:return US(_e)?ye(_e.expression,ND(_e),je,We):ie(_e.expression,je,Ge,We);case 80:if(t.isUndefinedIdentifierExpression(_e))return s_(re());break;case 106:return s_(r?Ne(L.createLiteralTypeNode(L.createNull()),We,_e,je):L.createKeywordTypeNode(133));case 220:case 219:return C.type(_e),q(je,_e,()=>K(_e,je));case 217:case 235:const Wt=_e;return ye(Wt.expression,Wt.type,je,We);case 225:const cn=_e;if(H6(cn))return be(cn.operator===40?cn.operand:cn,cn.operand.kind===10?163:150,je,Ge||at,We);break;case 210:return de(_e,je,Ge,We);case 211:return ve(_e,je,Ge,We);case 232:return s_(j(_e,je,!0,We));case 229:if(!Ge&&!at)return s_(L.createKeywordTypeNode(154));break;default:let gn,Kn=_e;switch(_e.kind){case 9:gn=150;break;case 15:Kn=L.createStringLiteral(_e.text),gn=154;break;case 11:gn=154;break;case 10:gn=163;break;case 112:case 97:gn=136;break}if(gn)return be(Kn,gn,je,Ge||at,We)}return bP}function K(_e,je){const Ge=lt(_e,void 0,je),We=Ce(_e.typeParameters,je),at=_e.parameters.map(Wt=>X(Wt,je));return s_(L.createFunctionTypeNode(We,at,Ge))}function pe(_e,je,Ge){if(!Ge)return je.tracker.reportInferenceFallback(_e),!1;for(const We of _e.elements)if(We.kind===231)return je.tracker.reportInferenceFallback(We),!1;return!0}function de(_e,je,Ge,We){if(!pe(_e,je,Ge))return We||rd(zm(_e).parent)?EIe:s_(j(_e,je,!1,We));const at=je.noInferenceFallback;je.noInferenceFallback=!0;const Wt=[];for(const gn of _e.elements)if(C.assert(gn.kind!==231),gn.kind===233)Wt.push(re());else{const Kn=ie(gn,je,Ge),_t=Kn.type!==void 0?Kn.type:j(gn,je,Kn.reportFallback);Wt.push(_t)}const cn=L.createTupleTypeNode(Wt);return cn.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},je.noInferenceFallback=at,SIe}function fe(_e,je){let Ge=!0;for(const We of _e.properties){if(We.flags&262144){Ge=!1;break}if(We.kind===305||We.kind===306)je.tracker.reportInferenceFallback(We),Ge=!1;else if(We.name.flags&262144){Ge=!1;break}else if(We.name.kind===81)Ge=!1;else if(We.name.kind===168){const at=We.name.expression;!H6(at,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(at)&&(je.tracker.reportInferenceFallback(We.name),Ge=!1)}}return Ge}function ve(_e,je,Ge,We){if(!fe(_e,je))return We||rd(zm(_e).parent)?EIe:s_(j(_e,je,!1,We));const at=je.noInferenceFallback;je.noInferenceFallback=!0;const Wt=[],cn=je.flags;je.flags|=4194304;for(const Kn of _e.properties){C.assert(!Ud(Kn)&&!xg(Kn));const _t=Kn.name;let en;switch(Kn.kind){case 175:en=q(je,Kn,()=>Je(Kn,_t,je,Ge));break;case 304:en=xe(Kn,_t,je,Ge);break;case 179:case 178:en=Se(Kn,_t,je);break}en&&(Dc(en,Kn),Wt.push(en))}je.flags=cn;const gn=L.createTypeLiteralNode(Wt);return je.flags&1024||Cr(gn,1),je.noInferenceFallback=at,SIe}function xe(_e,je,Ge,We){const at=We?[L.createModifier(148)]:[],Wt=ie(_e.initializer,Ge,We),cn=Wt.type!==void 0?Wt.type:G(_e,void 0,Ge,Wt.reportFallback);return L.createPropertySignature(at,i(Ge,je),void 0,cn)}function X(_e,je){return L.updateParameterDeclaration(_e,void 0,i(je,_e.dotDotDotToken),t.serializeNameOfParameter(je,_e),t.isOptionalParameter(_e)?L.createToken(58):void 0,k(_e,void 0,je),void 0)}function Ce(_e,je){return _e?.map(Ge=>{var We;const{node:at}=t.trackExistingEntityName(je,Ge.name);return L.updateTypeParameterDeclaration(Ge,(We=Ge.modifiers)==null?void 0:We.map(Wt=>i(je,Wt)),at,u(Ge.constraint,je),u(Ge.default,je))})}function Je(_e,je,Ge,We){const at=lt(_e,void 0,Ge),Wt=Ce(_e.typeParameters,Ge),cn=_e.parameters.map(gn=>X(gn,Ge));return We?L.createPropertySignature([L.createModifier(148)],i(Ge,je),i(Ge,_e.questionToken),L.createFunctionTypeNode(Wt,cn,at)):(He(je)&&je.escapedText==="new"&&(je=L.createStringLiteral("new")),L.createMethodSignature([],i(Ge,je),i(Ge,_e.questionToken),Wt,cn,at))}function Se(_e,je,Ge){const We=t.getAllAccessorDeclarations(_e),at=We.getAccessor&&A(We.getAccessor),Wt=We.setAccessor&&A(We.setAccessor);if(at!==void 0&&Wt!==void 0)return q(Ge,_e,()=>{const cn=_e.parameters.map(gn=>X(gn,Ge));return ug(_e)?L.updateGetAccessorDeclaration(_e,[],i(Ge,je),cn,u(at,Ge),void 0):L.updateSetAccessorDeclaration(_e,[],i(Ge,je),cn,void 0)});if(We.firstAccessor===_e){const gn=(at?q(Ge,We.getAccessor,()=>u(at,Ge)):Wt?q(Ge,We.setAccessor,()=>u(Wt,Ge)):void 0)??Z(_e,We,Ge,void 0);return L.createPropertySignature(We.setAccessor===void 0?[L.createModifier(148)]:[],i(Ge,je),void 0,gn)}}function re(){return r?L.createKeywordTypeNode(157):L.createKeywordTypeNode(133)}function be(_e,je,Ge,We,at){let Wt;return We?(_e.kind===225&&_e.operator===40&&(Wt=L.createLiteralTypeNode(i(Ge,_e.operand))),Wt=L.createLiteralTypeNode(i(Ge,_e))):Wt=L.createKeywordTypeNode(je),s_(Ne(Wt,at,_e,Ge))}function Ne(_e,je,Ge,We){const at=Ge&&zm(Ge).parent,Wt=at&&rd(at)&&PI(at);return!r||!(je||Wt)?_e:(Be(_e)||We.tracker.reportInferenceFallback(_e),cv(_e)?L.createUnionTypeNode([..._e.types,L.createKeywordTypeNode(157)]):L.createUnionTypeNode([_e,L.createKeywordTypeNode(157)]))}function Be(_e){return!r||ep(_e.kind)||_e.kind===202||_e.kind===185||_e.kind===186||_e.kind===189||_e.kind===190||_e.kind===188||_e.kind===204||_e.kind===198?!0:_e.kind===197?Be(_e.type):_e.kind===193||_e.kind===194?_e.types.every(Be):!1}function lt(_e,je,Ge,We=!0){let at=bP;const Wt=gI(_e)?Rc(_e.parameters[0]):kp(_e);return Wt?at=s_(l(Wt,Ge,_e,je)):a1(_e)&&(at=ce(_e,Ge)),at.type!==void 0?at.type:J(_e,Ge,je,We&&at.reportFallback&&!Wt)}function ce(_e,je){let Ge;if(_e&&!Wl(_e.body)){if(dc(_e)&3)return bP;const at=_e.body;at&&ea(at)?gb(at,Wt=>{if(Wt.parent!==at)return Ge=void 0,!0;if(!Ge)Ge=Wt.expression;else return Ge=void 0,!0}):Ge=at}if(Ge)if(Re(Ge)){const We=US(Ge)?ND(Ge):TD(Ge)||s4(Ge)?Ge.type:void 0;if(We&&!Om(We))return s_(s(We,je))}else return ie(Ge,je);return bP}function Re(_e){return Dn(_e.parent,je=>Zo(je)||!Ms(je)&&!!Rc(je)||r_(je)||AD(je))}}var zb={};x(zb,{NameValidationResult:()=>NIe,discoverTypings:()=>mJe,isTypingUpToDate:()=>DIe,loadSafeList:()=>pJe,loadTypesMap:()=>fJe,nonRelativeModuleNameForTypingCache:()=>CIe,renderPackageNameValidationFailure:()=>_Je,validatePackageName:()=>hJe});var G3="action::set",V3="action::invalidate",j3="action::packageInstalled",tq="event::typesRegistry",nq="event::beginInstallTypes",rq="event::endInstallTypes",Xse="event::initializationFailed",iO="action::watchTypingLocations",iq;(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(iq||(iq={}));function AIe(e){return jc.args.includes(e)}function IIe(e){const t=jc.args.indexOf(e);return t>=0&&te.readFile(i));return new Map(Object.entries(r.config))}function fJe(e,t){var r;const i=Aw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function mJe(e,t,r,i,o,s,l,u,d,g){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const h=new Map;r=Ui(r,G=>{const j=ya(G);if(Tg(j))return j});const y=[];l.include&&k(l.include,"Explicitly included types");const E=l.exclude||[];if(!g.types){const G=new Set(r.map(ci));G.add(i),G.forEach(j=>{W(j,"bower.json","bower_components",y),W(j,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||O(r),u){const G=lS(u.map(CIe),uS,Wd);k(G,"Inferred typings from unresolved imports")}for(const G of E)h.delete(G)&&t&&t(`Typing for ${G} is in exclude list, will be ignored.`);s.forEach((G,j)=>{const J=d.get(j);h.get(j)===!1&&J!==void 0&&DIe(G,J)&&h.set(j,G.typingLocation)});const A=[],R=[];h.forEach((G,j)=>{G?R.push(G):A.push(j)});const N={cachedTypingPaths:R,newTypingNames:A,filesToWatch:y};return t&&t(`Finished typings discovery:${d0(N)}`),N;function P(G){h.has(G)||h.set(G,!1)}function k(G,j){t&&t(`${j}: ${JSON.stringify(G)}`),Ye(G,P)}function W(G,j,J,Z){const q=Qr(G,j);let ye,ie;e.fileExists(q)&&(Z.push(q),ye=Aw(q,fe=>e.readFile(fe)).config,ie=Ki([ye.dependencies,ye.devDependencies,ye.optionalDependencies,ye.peerDependencies],Wh),k(ie,`Typing names in '${q}' dependencies`));const K=Qr(G,J);if(Z.push(K),!e.directoryExists(K))return;const pe=[],de=ie?ie.map(fe=>Qr(K,fe,j)):e.readDirectory(K,[".json"],void 0,void 0,3).filter(fe=>{if(xc(fe)!==j)return!1;const ve=zd(ya(fe)),xe=ve[ve.length-3][0]==="@";return xe&&Zv(ve[ve.length-4])===J||!xe&&Zv(ve[ve.length-3])===J});t&&t(`Searching for typing names in ${K}; all files: ${JSON.stringify(de)}`);for(const fe of de){const ve=ya(fe),X=Aw(ve,Je=>e.readFile(Je)).config;if(!X.name)continue;const Ce=X.types||X.typings;if(Ce){const Je=To(Ce,ci(ve));e.fileExists(Je)?(t&&t(` Package '${X.name}' provides its own types.`),h.set(X.name,Je)):t&&t(` Package '${X.name}' provides its own types but they are missing.`)}else pe.push(X.name)}k(pe," Found package names")}function O(G){const j=Ui(G,Z=>{if(!Tg(Z))return;const q=bu(Zv(xc(Z))),ye=OB(q);return o.get(ye)});j.length&&k(j,"Inferred typings from file names"),yt(G,Z=>El(Z,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),P("react"))}}var NIe=(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))(NIe||{}),MIe=214;function hJe(e){return Yse(e,!0)}function Yse(e,t){if(!e)return 1;if(e.length>MIe)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=Yse(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=Yse(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function _Je(e,t){return typeof e=="object"?PIe(t,e.result,e.name,e.isScopeName):PIe(t,e,t,!1)}function PIe(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 ${MIe} 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 C.fail();default:C.assertNever(t)}}var U3;(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})(U3||(U3={}));var $se=(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))($se||{}),Qse=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(Qse||{}),Zse=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(Zse||{}),Sm={},ele=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(ele||{}),oq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(oq||{}),aq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(aq||{}),tle=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(tle||{}),nle=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(nle||{}),rle=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(rle||{}),sq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(sq||{});function H3(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 LIe=H3(` `),q3=(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))(q3||{}),ile=(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))(ile||{}),ole=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(ole||{}),ale=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(ale||{}),sle=(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))(sle||{}),lle=(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))(lle||{}),cle=(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))(cle||{}),dle=(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))(dle||{}),ule=(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))(ule||{}),lq=(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))(lq||{}),yd=cg(99,!0),ple=(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))(ple||{});function J3(e){switch(e.kind){case 261:return Ir(e)&&D9(e)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return e.name===void 0?3:2;case 307:case 264:return 3;case 268:return gu(e)||my(e)===1?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function w1(e){e=Tq(e);const t=e.parent;return e.kind===308?1:ll(t)||iu(t)||uy(t)||Su(t)||Vm(t)||zc(t)&&e===t.name?7:K3(e)?gJe(e):L_(e)?J3(t):Nu(e)&&Dn(e,Rp(UM,aI,t0))?7:TJe(e)?2:yJe(e)?4:sl(t)?(C.assert(bm(t.parent)),2):dv(t)?3:1}function gJe(e){const t=e.kind===167?e:Lu(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===272?7:4}function K3(e){if(!e.parent)return!1;for(;e.parent.kind===167;)e=e.parent;return t1(e.parent)&&e.parent.moduleReference===e}function yJe(e){return vJe(e)||bJe(e)}function vJe(e){let t=e,r=!0;if(t.parent.kind===167){for(;t.parent&&t.parent.kind===167;)t=t.parent;r=t.right===e}return t.parent.kind===184&&!r}function bJe(e){let t=e,r=!0;if(t.parent.kind===212){for(;t.parent&&t.parent.kind===212;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===234&&t.parent.parent.kind===299){const i=t.parent.parent.parent;return i.kind===264&&t.parent.parent.token===119||i.kind===265&&t.parent.parent.token===96}return!1}function TJe(e){switch(dM(e)&&(e=e.parent),e.kind){case 110:return!P_(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return Hh(e.parent)}return!1}function cq(e,t=!1,r=!1){return oO(e,Zo,uq,t,r)}function SP(e,t=!1,r=!1){return oO(e,BS,uq,t,r)}function dq(e,t=!1,r=!1){return oO(e,Gh,uq,t,r)}function fle(e,t=!1,r=!1){return oO(e,KT,SJe,t,r)}function mle(e,t=!1,r=!1){return oO(e,Fc,uq,t,r)}function hle(e,t=!1,r=!1){return oO(e,nu,EJe,t,r)}function uq(e){return e.expression}function SJe(e){return e.tag}function EJe(e){return e.tagName}function oO(e,t,r,i,o){let s=i?AJe(e):X3(e);return o&&(s=Hl(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function X3(e){return YD(e)?e.parent:e}function AJe(e){return YD(e)||hq(e)?e.parent:e}function Y3(e,t){for(;e;){if(e.kind===257&&e.label.escapedText===t)return e.label;e=e.parent}}function aO(e,t){return qr(e.expression)?e.expression.name.text===t:!1}function sO(e){var t;return He(e)&&((t=ni(e.parent,MN))==null?void 0:t.label)===e}function pq(e){var t;return He(e)&&((t=ni(e.parent,Mb))==null?void 0:t.label)===e}function fq(e){return pq(e)||sO(e)}function mq(e){var t;return((t=ni(e.parent,GR))==null?void 0:t.tagName)===e}function _le(e){var t;return((t=ni(e.parent,Lu))==null?void 0:t.right)===e}function YD(e){var t;return((t=ni(e.parent,qr))==null?void 0:t.name)===e}function hq(e){var t;return((t=ni(e.parent,Ws))==null?void 0:t.argumentExpression)===e}function _q(e){var t;return((t=ni(e.parent,pc))==null?void 0:t.name)===e}function gq(e){var t;return He(e)&&((t=ni(e.parent,Yo))==null?void 0:t.name)===e}function $3(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return Oo(e.parent)===e;case 213:return e.parent.argumentExpression===e;case 168:return!0;case 202:return e.parent.parent.kind===200;default:return!1}}function gle(e){return WT(e.parent.parent)&&qN(e.parent.parent)===e}function O1(e){for(hm(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return e}}}function QS(e){switch(e.kind){case 308:return Bc(e)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return t(e);case 209:return t(Jh(e));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:const{initializer:r}=e;return Yo(r)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return di(e,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:const i=ac(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=QS(o);return l===""?"const":l;case 3:return Us(o)?"method":"property";case 4:return"property";case 5:return Us(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Vm(e.parent)?"alias":"";case 278:const s=QS(e.expression);return s===""?"const":s;default:return""}function t(r){return qR(r)?"const":CF(r)?"let":"var"}}function $D(e){switch(e.kind){case 110:return!0;case 80:return JG(e)&&e.parent.kind===170;default:return!1}}var IJe=/^\/\/\/\s*=r}function EP(e,t,r){return Z3(e.pos,e.end,t,r)}function Q3(e,t,r,i){return Z3(e.getStart(t),e.end,r,i)}function Z3(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function e7(e){const t=hn(e.parent.getChildren(),r=>CD(r)&&tp(r,e));return C.assert(!t||jn(t.getChildren(),e)),t}function kIe(e){return e.kind===90}function xJe(e){return e.kind===86}function RJe(e){return e.kind===100}function DJe(e){if(nd(e))return e.name;if(Cc(e)){const t=e.modifiers&&hn(e.modifiers,kIe);if(t)return t}if(uc(e)){const t=hn(e.getChildren(),xJe);if(t)return t}}function CJe(e){if(nd(e))return e.name;if(ec(e)){const t=hn(e.modifiers,kIe);if(t)return t}if(Us(e)){const t=hn(e.getChildren(),RJe);if(t)return t}}function NJe(e){let t;return Dn(e,r=>(Ri(r)&&(t=r),!Lu(r.parent)&&!Ri(r.parent)&&!hS(r.parent))),t}function t7(e,t){if(e.flags&16777216)return;const r=g7(e,t);if(r)return r;const i=NJe(e);return i&&t.getTypeAtLocation(i)}function MJe(e,t){if(!t)switch(e.kind){case 264:case 232:return DJe(e);case 263:case 219:return CJe(e);case 177:return e}if(nd(e))return e.name}function wIe(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(n_(e.importClause.namedBindings)){const r=og(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Ig(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function OIe(e,t){if(e.exportClause){if(Jf(e.exportClause))return og(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(O_(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function PJe(e){if(e.types.length===1)return e.types[0].expression}function WIe(e,t){const{parent:r}=e;if(Aa(e)&&(t||e.kind!==90)?Tm(r)&&jn(r.modifiers,e):e.kind===86?Cc(r)||uc(e):e.kind===100?ec(r)||Us(e):e.kind===120?gd(r):e.kind===94?QT(r):e.kind===156?vm(r):e.kind===145||e.kind===144?pc(r):e.kind===102?zc(r):e.kind===139?Hf(r):e.kind===153&&gp(r)){const i=MJe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&_d(r)&&r.declarations.length===1){const i=r.declarations[0];if(He(i.name))return i.name}if(e.kind===156){if(Vm(r)&&r.isTypeOnly){const i=wIe(r.parent,t);if(i)return i}if(fc(r)&&r.isTypeOnly){const i=OIe(r,t);if(i)return i}}if(e.kind===130){if(Su(r)&&r.propertyName||iu(r)&&r.propertyName||Ig(r)||O_(r))return r.name;if(fc(r)&&r.exportClause&&O_(r.exportClause))return r.exportClause.name}if(e.kind===102&&vl(r)){const i=wIe(r,t);if(i)return i}if(e.kind===95){if(fc(r)){const i=OIe(r,t);if(i)return i}if(ll(r))return Hl(r.expression)}if(e.kind===149&&uy(r))return r.expression;if(e.kind===161&&(vl(r)||fc(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&Fp(r)&&r.token===e.kind){const i=PJe(r);if(i)return i}if(e.kind===96){if(sl(r)&&r.constraint&&Wp(r.constraint))return r.constraint.typeName;if(FS(r)&&Wp(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&_1(r))return r.typeParameter.name;if(e.kind===103&&sl(r)&&y1(r.parent))return r.name;if(e.kind===143&&JT(r)&&r.operator===143&&Wp(r.type))return r.type.typeName;if(e.kind===148&&JT(r)&&r.operator===148&&ow(r.type)&&Wp(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&BS(r)||e.kind===116&&HI(r)||e.kind===114&&bD(r)||e.kind===135&&Nb(r)||e.kind===127&&aw(r)||e.kind===91&&rie(r))&&r.expression)return Hl(r.expression);if((e.kind===103||e.kind===104)&&Nr(r)&&r.operatorToken===e)return Hl(r.right);if(e.kind===130&&TD(r)&&Wp(r.type))return r.type.typeName;if(e.kind===103&&c4(r)||e.kind===165&&sw(r))return Hl(r.expression)}return e}function Tq(e){return WIe(e,!1)}function n7(e){return WIe(e,!0)}function ip(e,t){return ZD(e,t,r=>qh(r)||ep(r.kind)||eo(r))}function ZD(e,t,r){return FIe(e,t,!1,r,!1)}function Fi(e,t){return FIe(e,t,!0,void 0,!1)}function FIe(e,t,r,i,o){let s=e,l;e:for(;;){const d=s.getChildren(e),g=JA(d,t,(h,y)=>y,(h,y)=>{const E=d[h].getEnd();if(Et?1:u(d[h],A,E)?d[h-1]&&u(d[h-1])?1:0:i&&A===t&&d[h-1]&&d[h-1].getEnd()===t&&u(d[h-1])?1:-1});if(l)return l;if(g>=0&&d[g]){s=d[g];continue e}return s}function u(d,g,h){if(h??(h=d.getEnd()),ht))return!1;if(tr.getStart(e)&&t(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&xle(s,r)?i(s):void 0)}}function Gc(e,t,r,i){const o=s(r||t);return C.assert(!(o&&r7(o))),o;function s(l){if(zIe(l)&&l.kind!==1)return l;const u=l.getChildren(t),d=JA(u,e,(h,y)=>y,(h,y)=>e=u[h-1].end?0:1:-1);if(d>=0&&u[d]){const h=u[d];if(e=e||!xle(h,t)||r7(h)){const A=Sle(u,d,t,l.kind);return A?!i&&fF(A)&&A.getChildren(t).length?s(A):Tle(A,t):void 0}else return s(h)}C.assert(r!==void 0||l.kind===308||l.kind===1||fF(l));const g=Sle(u,u.length,t,l.kind);return g&&Tle(g,t)}}function zIe(e){return nI(e)&&!r7(e)}function Tle(e,t){if(zIe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=Sle(r,r.length,t,e.kind);return i&&Tle(i,t)}function Sle(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(r7(s))o===0&&(i===12||i===286)&&C.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(xle(e[o],r))return e[o]}}function cx(e,t,r=Gc(t,e)){if(r&&w9(r)){const i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function Ale(e,t){const r=Fi(e,t);return!!(WI(r)||r.kind===19&&AD(r.parent)&&r_(r.parent.parent)||r.kind===30&&nu(r.parent)&&r_(r.parent.parent))}function i7(e,t){function r(i){for(;i;)if(i.kind>=286&&i.kind<=295||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===285){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(Fi(e,t))}function o7(e,t,r){const i=_a(e.kind),o=_a(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 Aq(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=Gc(r.getFullStart(),t),r&&r.kind===29&&(r=Gc(r.getFullStart(),t)),!r||!He(r))return;if(!i)return L_(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=o7(r,19,t),!r)return;break;case 22:if(r=o7(r,21,t),!r)return;break;case 24:if(r=o7(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(Ri(r))break;return}r=Gc(r.getFullStart(),t)}}function fv(e,t,r){return Mc.getRangeOfEnclosingComment(e,t,void 0,r)}function Ile(e,t){const r=Fi(e,t);return!!Dn(r,mh)}function xle(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function IP(e,t=0){const r=[],i=rd(e)?E9(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Zl(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===278&&r.push("export"),r.length>0?r.join(","):""}function Rle(e){if(e.kind===184||e.kind===214)return e.typeArguments;if(Yo(e)||e.kind===264||e.kind===265)return e.typeParameters}function a7(e){return e===2||e===3}function Iq(e){return!!(e===11||e===14||lb(e))}function BIe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function Dle(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(BIe(r,t[0],t[1])||BIe(r,t[1],t[0]))}function uO(e,t,r){return lb(e.kind)&&e.getStart(r){const r=ls(t);return!e[r]&&(e[r]=!0)}}function dx(e){return e.getText(0,e.getLength())}function fO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function Ple(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function Lq(e){return!!e.module||Ga(e)>=2||!!e.noEmit}function u0(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ia(t,t.readFile),useCaseSensitiveFileNames:ia(t,t.useCaseSensitiveFileNames)||e.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,getRedirectFromSourceFile:r=>e.getRedirectFromSourceFile(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ia(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:r=>e.getDefaultResolutionModeForFile(r),getModeForResolutionAtIndex:(r,i)=>e.getModeForResolutionAtIndex(r,i)}}function kq(e,t){return{...u0(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function d7(e){return e===2||e>=3&&e<=99||e===100}function Bb(e,t,r,i,o){return L.createImportDeclaration(void 0,e||t?L.createImportClause(o?156:void 0,e,t&&t.length?L.createNamedImports(t):void 0):void 0,typeof r=="string"?RP(r,i):r,void 0)}function RP(e,t){return L.createStringLiteral(e,t===0)}var Lle=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(Lle||{});function wq(e,t){return HF(e,t)?1:0}function Gp(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=_g(e)&&e.imports&&hn(e.imports,i=>ka(i)&&!Os(i.parent));return r?wq(r,e):1}}function Oq(e){switch(e){case 0:return"'";case 1:return'"';default:return C.assertNever(e)}}function Wq(e){const t=u7(e);return t===void 0?void 0:Gi(t)}function u7(e){return e.escapedName!=="default"?e.escapedName:Hn(e.declarations,t=>{const r=Oo(t);return r&&r.kind===80?r.escapedText:void 0})}function p7(e){return ds(e)&&(uy(e.parent)||vl(e.parent)||o_(e.parent)||Zu(e.parent,!1)&&e.parent.arguments[0]===e||Qu(e.parent)&&e.parent.arguments[0]===e)}function hO(e){return Ha(e)&&ff(e.parent)&&He(e.name)&&!e.propertyName}function f7(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function _O(e,t,r){if(e)for(;e.parent;){if(Yi(e.parent)||!kJe(r,e.parent,t))return e;e=e.parent}}function kJe(e,t,r){return b9(e,t.getStart(r))&&t.getEnd()<=Cl(e)}function tC(e,t){return Tm(e)?hn(e.modifiers,r=>r.kind===t):void 0}function Fq(e,t,r,i,o){var s;const u=(Mo(r)?r[0]:r).kind===244?rk:uI,d=Un(t.statements,u),{comparer:g,isSorted:h}=y0.getOrganizeImportsStringComparerWithDetection(d,o),y=Mo(r)?xp(r,(E,A)=>y0.compareImportsOrRequireStatements(E,A,g)):[r];if(!d?.length){if(_g(t))e.insertNodesAtTopOfFile(t,y,i);else for(const E of y)e.insertStatementsInNewFile(t.fileName,[E],(s=yl(E))==null?void 0:s.getSourceFile());return}if(C.assert(_g(t)),d&&h)for(const E of y){const A=y0.getImportDeclarationInsertionIndex(d,E,g);if(A===0){const R=d[0]===t.statements[0]?{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],E,!1,R)}else{const R=d[A-1];e.insertNodeAfter(t,R,E)}}else{const E=Zs(d);E?e.insertNodesAfter(t,E,y):e.insertNodesAtTopOfFile(t,y,i)}}function zq(e,t){return C.assert(e.isTypeOnly),ma(e.getChildAt(0,t),VIe)}function nC(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Bq(e,t,r){return(r?uS:tb)(e.fileName,t.fileName)&&nC(e.textSpan,t.textSpan)}function Gq(e){return(t,r)=>Bq(t,r,e)}function Vq(e,t){if(e){for(let r=0;rto(r)?!0:Ha(r)||ff(r)||uv(r)?!1:"quit")}var wle=new Map;function wJe(e){return e=e||FN,wle.has(e)||wle.set(e,OJe(e)),wle.get(e)}function OJe(e){const t=e*10;let r,i,o,s;y();const l=E=>d(E,17);return{displayParts:()=>{const E=r.length&&r[r.length-1].text;return s>t&&E&&E!=="..."&&(sg(E.charCodeAt(E.length-1))||r.push(yp(" ",16)),r.push(yp("...",15))),r},writeKeyword:E=>d(E,5),writeOperator:E=>d(E,12),writePunctuation:E=>d(E,15),writeTrailingSemicolon:E=>d(E,15),writeSpace:E=>d(E,16),writeStringLiteral:E=>d(E,8),writeParameter:E=>d(E,13),writeProperty:E=>d(E,14),writeLiteral:E=>d(E,8),writeSymbol:g,writeLine:h,write:l,writeComment:l,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ha,getIndent:()=>o,increaseIndent:()=>{o++},decreaseIndent:()=>{o--},clear:y};function u(){if(!(s>t)&&i){const E=n6(o);E&&(s+=E.length,r.push(yp(E,16))),i=!1}}function d(E,A){s>t||(u(),s+=E.length,r.push(yp(E,A)))}function g(E,A){s>t||(u(),s+=E.length,r.push(WJe(E,A)))}function h(){s>t||(s+=1,r.push(rC()),i=!0)}function y(){r=[],i=!0,o=0,s=0}}function WJe(e,t){return yp(e,r(t));function r(i){const o=i.flags;return o&3?Uq(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 yp(e,t){return{text:e,kind:q3[t]}}function Bl(){return yp(" ",16)}function Vp(e){return yp(_a(e),5)}function su(e){return yp(_a(e),15)}function CP(e){return yp(_a(e),12)}function Ole(e){return yp(e,13)}function Wle(e){return yp(e,14)}function Hq(e){const t=jE(e);return t===void 0?yf(e):Vp(t)}function yf(e){return yp(e,17)}function Fle(e){return yp(e,0)}function zle(e){return yp(e,18)}function Ble(e){return yp(e,24)}function FJe(e,t){return{text:e,kind:q3[23],target:{fileName:Wn(t).fileName,textSpan:Fu(t)}}}function jIe(e){return yp(e,22)}function Gle(e,t){var r;const i=pie(e)?"link":fie(e)?"linkcode":"linkplain",o=[jIe(`{@${i} `)];if(!e.name)e.text&&o.push(Ble(e.text));else{const s=t?.getSymbolAtLocation(e.name),l=s&&t?Kq(s,t):void 0,u=BJe(e.text),d=Al(e.name)+e.text.slice(0,u),g=zJe(e.text.slice(u)),h=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(h)o.push(FJe(d,h)),g&&o.push(Ble(g));else{const y=u===0||e.text.charCodeAt(u)===124&&d.charCodeAt(d.length-1)!==32?" ":"";o.push(Ble(d+y+g))}}return o.push(jIe("}")),o}function zJe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}var GJe=` `;function _y(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||GJe}function rC(){return yp(` `,6)}function Gb(e,t){const r=wJe(t);try{return e(r),r.displayParts()}finally{r.clear()}}function gO(e,t,r,i=0,o,s,l){return Gb(u=>{e.writeType(t,r,i|1024|16384,u,o,s,l)},o)}function NP(e,t,r,i,o=0){return Gb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function qq(e,t,r,i=0,o,s,l){return i|=25632,Gb(u=>{e.writeSignature(t,r,i,void 0,u,o,s,l)},o)}function Vle(e){return!!e.parent&&cb(e.parent)&&e.parent.propertyName===e}function Jq(e,t){return P6(e,t.getScriptKind&&t.getScriptKind(e))}function Kq(e,t){let r=e;for(;VJe(r)||pg(r)&&r.links.target;)pg(r)&&r.links.target?r=r.links.target:r=xd(r,t);return r}function VJe(e){return(e.flags&2097152)!==0}function jle(e,t){return Ta(xd(e,t))}function Ule(e,t){for(;sg(e.charCodeAt(t));)t+=1;return t}function h7(e,t){for(;t>-1&&Bh(e.charCodeAt(t));)t-=1;return t+1}function W1(e,t){const r=e.getSourceFile(),i=r.text;jJe(e,i)?iC(e,t,r):vO(e,t,r),MP(e,t,r)}function jJe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;o=0),s}function iC(e,t,r,i,o){_2(r.text,e.pos,Hle(t,r,i,o,Rb))}function MP(e,t,r,i,o){g2(r.text,e.end,Hle(t,r,i,o,LM))}function vO(e,t,r,i,o){g2(r.text,e.pos,Hle(t,r,i,o,Rb))}function Hle(e,t,r,i,o){return(s,l,u,d)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:d)}}function UJe(e,t){if(po(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 _7(e){return Nr(e)&&e.operatorToken.kind===28||Wa(e)||(TD(e)||SD(e))&&Wa(e.expression)}function g7(e,t,r){const i=zm(e.parent);switch(i.kind){case 215:return t.getContextualType(i,r);case 227:{const{left:o,operatorToken:s,right:l}=i;return y7(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 297:return Yq(i,t);default:return t.getContextualType(e,r)}}function PP(e,t,r){const i=Gp(e,t),o=JSON.stringify(r);return i===0?`'${_m(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function y7(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function qle(e){switch(e.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function Xq(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function Yq(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var $q="anonymous function";function LP(e,t,r,i){const o=r.getTypeChecker();let s=!0;const l=()=>s=!1,u=o.typeToTypeNode(e,t,1,8,{trackSymbol:(d,g,h)=>(s=s&&o.isSymbolAccessible(d,g,h,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:kq(r,i)});return s?u:void 0}function Jle(e){return e===180||e===181||e===182||e===172||e===174}function UIe(e){return e===263||e===177||e===175||e===178||e===179}function HIe(e){return e===268}function Kle(e){return e===244||e===245||e===247||e===252||e===253||e===254||e===258||e===260||e===173||e===266||e===273||e===272||e===279||e===271||e===278}var HJe=Rp(Jle,UIe,HIe,Kle);function qJe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Jle(e.kind)){if(r&&r.kind===28)return!1}else if(HIe(e.kind)){const u=Ba(e.getChildren(t));if(u&&t_(u))return!1}else if(UIe(e.kind)){const u=Ba(e.getChildren(t));if(u&&TS(u))return!1}else if(!Kle(e.kind))return!1;if(e.kind===247)return!0;const i=Dn(e,u=>!u.parent),o=ZS(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 v7(e,t,r){const i=Dn(t,o=>o.end!==e?"quit":HJe(o.kind));return!!i&&qJe(i,r)}function bO(e){let t=0,r=0;const i=5;return Jo(e,function o(s){if(Kle(s.kind)){const l=s.getLastToken(e);l?.kind===27?t++:r++}else if(Jle(s.kind)){const l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){const u=ca(e,l.getStart(e)).line,d=ca(e,jh(e,l.end).start).line;u!==d&&r++}}return t+r>=i?!0:Jo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function b7(e,t){return Xle(e,e.getDirectories,t)||[]}function Qq(e,t,r,i,o){return Xle(e,e.readDirectory,t,r,i,o)||ae}function kP(e,t){return Xle(e,e.fileExists,t)}function T7(e,t){return S7(()=>ch(t,e))||!1}function S7(e){try{return e()}catch{return}}function Xle(e,t,...r){return S7(()=>t&&t.apply(e,r))}function Zq(e,t){const r=[];return W_(t,e,i=>{const o=Qr(i,"package.json");kP(t,o)&&r.push(o)}),r}function Yle(e,t){let r;return W_(t,e,i=>{if(i==="node_modules"||(r=eH(i,o=>kP(t,o),"package.json"),r))return!0}),r}function JJe(e,t){if(!t.fileExists)return[];const r=[];return W_(t,ci(e),i=>{const o=Qr(i,"package.json");if(t.fileExists(o)){const s=eJ(o,t);s&&r.push(s)}}),r}function eJ(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=Nk(i),s={};if(o)for(const d of r){const g=o[d];if(!g)continue;const h=new Map;for(const y in g)h.set(y,g[y]);s[d]=h}const l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(d,g){return!!u(d,g)}};function u(d,g=15){for(const[h,y]of l)if(y&&g&h){const E=y.get(d);if(E!==void 0)return E}}}function oC(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||JJe(e.fileName,r)).filter(R=>R.parseable);let o,s,l;return{allowsImportingAmbientModule:d,getSourceFileInfo:g,allowsImportingSpecifier:h};function u(R){const N=A(R);for(const P of i)if(P.has(N)||P.has(X4(N)))return!0;return!1}function d(R,N){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{const G=s.get(R);if(G!==void 0)return G}const P=_m(R.getName());if(y(P))return s.set(R,!0),!0;const k=R.valueDeclaration.getSourceFile(),W=E(k.fileName,N);if(typeof W>"u")return s.set(R,!0),!0;const O=u(W)||u(P);return s.set(R,O),O}function g(R,N){if(!i.length)return{importable:!0,packageName:void 0};if(!l)l=new Map;else{const O=l.get(R);if(O!==void 0)return O}const P=E(R.fileName,N);if(!P){const O={importable:!0,packageName:P};return l.set(R,O),O}const W={importable:u(P),packageName:P};return l.set(R,W),W}function h(R){return!i.length||y(R)||Zp(R)||Cp(R)?!0:u(R)}function y(R){return!!(_g(e)&&Mu(e)&&hD.has(R)&&(o===void 0&&(o=E7(e)),o))}function E(R,N){if(!R.includes("node_modules"))return;const P=hy.getNodeModulesPackageName(r.getCompilationSettings(),e,R,N,t);if(P&&!Zp(P)&&!Cp(P))return A(P)}function A(R){const N=zd(rP(R)).slice(1);return po(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function E7(e){return yt(e.imports,({text:t})=>hD.has(t))}function TO(e){return jn(zd(e),"node_modules")}function qIe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function $le(e,t){const r=Fu(e),i=JA(t,r,Vs,C8);if(i>=0){const o=t[i];return C.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ma(o,qIe)}}function Qle(e,t){var r;let i=JA(t,e.start,l=>l.start,js);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=Cl(e);for(;;){const l=ni(t[i],qIe);if(!l||l.start>s)break;dee(e,l)&&o.push(l),i++}return o}function ux({startPosition:e,endPosition:t}){return oc(e,t===void 0?e:t)}function tJ(e,t){const r=Fi(e,t.start);return Dn(r,o=>o.getStart(e)Cl(t)?"quit":St(o)&&nC(t,Fu(o,e)))}function nJ(e,t,r=Vs){return e?Mo(e)?r(Vt(e,t)):t(e,0):void 0}function rJ(e){return Mo(e)?$a(e):e}function A7(e,t,r){return e.escapedName==="export="||e.escapedName==="default"?iJ(e)||SO(KJe(e),t,!!r):e.name}function iJ(e){return Hn(e.declarations,t=>{var r,i,o;if(ll(t))return(r=ni(Hl(t.expression),He))==null?void 0:r.text;if(iu(t)&&t.symbol.flags===2097152)return(i=ni(t.propertyName,He))==null?void 0:i.text;const s=(o=ni(Oo(t),He))==null?void 0:o.text;if(s)return s;if(e.parent&&!sI(e.parent))return e.parent.getName()})}function KJe(e){var t;return C.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${C.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=C.formatSyntaxKind(r.kind),o=Ir(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${C.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function SO(e,t,r){return EO(bu(_m(e.name)),t,r)}function EO(e,t,r){const i=xc(xR(bu(e),"/index"));let o="",s=!0;const l=i.charCodeAt(0);R_(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;ue.length)return!1;for(let o=0;o(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(ece||{}),tce=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(tce||{});function lJ(e){let t=1;const r=cm(),i=new Map,o=new Map;let s;const l={isUsableByFile:A=>A===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(A,R,N,P,k,W,O,G)=>{A!==s&&(l.clear(),s=A);let j;if(k){const xe=G6(k.fileName);if(xe){const{topLevelNodeModulesIndex:X,topLevelPackageNameIndex:Ce,packageRootIndex:Je}=xe;if(j=Pw(rP(k.fileName.substring(Ce+1,Je))),po(A,k.path.substring(0,X))){const Se=o.get(j),re=k.fileName.substring(0,Ce+1);if(Se){const be=Se.indexOf(Rg);X>be&&o.set(j,re)}else o.set(j,re)}}}const Z=W===1&&uM(R)||R,q=W===0||sI(Z)?Gi(N):YJe(Z,G,void 0),ye=typeof q=="string"?q:q[0],ie=typeof q=="string"?void 0:q[1],K=_m(P.name),pe=t++,de=xd(R,G),fe=R.flags&33554432?void 0:R,ve=P.flags&33554432?void 0:P;(!fe||!ve)&&i.set(pe,[R,P]),r.add(d(ye,R,td(K)?void 0:K,G),{id:pe,symbolTableKey:N,symbolName:ye,capitalizedSymbolName:ie,moduleName:K,moduleFile:k,moduleFileName:k?.fileName,packageName:j,exportKind:W,targetFlags:de.flags,isFromPackageJson:O,symbol:fe,moduleSymbol:ve})},get:(A,R)=>{if(A!==s)return;const N=r.get(R);return N?.map(u)},search:(A,R,N,P)=>{if(A===s)return Hc(r,(k,W)=>{const{symbolName:O,ambientModuleName:G}=g(W),j=R&&k[0].capitalizedSymbolName||O;if(N(j,k[0].targetFlags)){const Z=k.map(u).filter((q,ye)=>E(q,k[ye].packageName));if(Z.length){const q=P(Z,j,!!G,W);if(q!==void 0)return q}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(A,R,N)=>h(A)&&h(R)?!1:s&&s!==R.path||N&&E7(A)!==E7(R)||!Qp(A.moduleAugmentations,R.moduleAugmentations)||!y(A,R)?(l.clear(),!0):(s=R.path,!1)};return C.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(A){if(A.symbol&&A.moduleSymbol)return A;const{id:R,exportKind:N,targetFlags:P,isFromPackageJson:k,moduleFileName:W}=A,[O,G]=i.get(R)||ae;if(O&&G)return{symbol:O,moduleSymbol:G,moduleFileName:W,exportKind:N,targetFlags:P,isFromPackageJson:k};const j=(k?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),J=A.moduleSymbol||G||C.checkDefined(A.moduleFile?j.getMergedSymbol(A.moduleFile.symbol):j.tryFindAmbientModule(A.moduleName)),Z=A.symbol||O||C.checkDefined(N===2?j.resolveExternalModuleSymbol(J):j.tryGetMemberInModuleExportsAndProperties(Gi(A.symbolTableKey),J),`Could not find symbol '${A.symbolName}' by key '${A.symbolTableKey}' in module ${J.name}`);return i.set(R,[Z,J]),{symbol:Z,moduleSymbol:J,moduleFileName:W,exportKind:N,targetFlags:P,isFromPackageJson:k}}function d(A,R,N,P){const k=N||"";return`${A.length} ${Ta(xd(R,P))} ${A} ${k}`}function g(A){const R=A.indexOf(" "),N=A.indexOf(" ",R+1),P=parseInt(A.substring(0,R),10),k=A.substring(N+1),W=k.substring(0,P),O=k.substring(P+1);return{symbolName:W,ambientModuleName:O===""?void 0:O}}function h(A){return!A.commonJsModuleIndicator&&!A.externalModuleIndicator&&!A.moduleAugmentations&&!A.ambientModuleNames}function y(A,R){if(!Qp(A.ambientModuleNames,R.ambientModuleNames))return!1;let N=-1,P=-1;for(const k of R.ambientModuleNames){const W=O=>rG(O)&&O.name.text===k;if(N=ho(A.statements,W,N+1),P=ho(R.statements,W,P+1),A.statements[N]!==R.statements[P])return!1}return!0}function E(A,R){if(!R||!A.moduleFileName)return!0;const N=e.getGlobalTypingsCacheLocation();if(N&&po(A.moduleFileName,N))return!0;const P=o.get(R);return!P||po(A.moduleFileName,P)}}function cJ(e,t,r,i,o,s,l,u){var d;if(!r){let A;const R=_m(i.name);return hD.has(R)&&(A=x7(t,e))!==void 0?A===po(R,"node:"):!s||s.allowsImportingAmbientModule(i,l)||nce(t,R)}if(C.assertIsDefined(r),t===r)return!1;const g=u?.get(t.path,r.path,o,{});if(g?.isBlockedByPackageJsonDependencies!==void 0)return!g.isBlockedByPackageJsonDependencies||!!g.packageName&&nce(t,g.packageName);const h=ay(l),y=(d=l.getGlobalTypingsCacheLocation)==null?void 0:d.call(l),E=!!hy.forEachFileNameOfModule(t.fileName,r.fileName,l,!1,A=>{const R=e.getSourceFile(A);return(R===r||!R)&&XJe(t.fileName,A,h,y,l)});if(s){const A=E?s.getSourceFileInfo(r,l):void 0;return u?.setBlockedByPackageJsonDependencies(t.path,r.path,o,{},A?.packageName,!A?.importable),!!A?.importable||E&&!!A?.packageName&&nce(t,A.packageName)}return E}function nce(e,t){return e.imports&&e.imports.some(r=>r.text===t||r.text.startsWith(t+"/"))}function XJe(e,t,r,i,o){const s=W_(o,t,u=>xc(u)==="node_modules"?u:void 0),l=s&&ci(r(s));return l===void 0||po(r(e),l)||!!i&&po(r(i),l)}function dJ(e,t,r,i,o){var s,l;const u=l1(t),d=r.autoImportFileExcludePatterns&&JIe(r,u);KIe(e.getTypeChecker(),e.getSourceFiles(),d,t,(h,y)=>o(h,y,e,!1));const g=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(g){const h=Ls(),y=e.getTypeChecker();KIe(g.getTypeChecker(),g.getSourceFiles(),d,t,(E,A)=>{(A&&!e.getSourceFile(A.fileName)||!A&&!y.resolveName(E.name,void 0,1536,!1))&&o(E,A,g,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Ls()-h}`)}}function JIe(e,t){return Ui(e.autoImportFileExcludePatterns,r=>{const i=N6(r,"","exclude");return i?iv(i,t):void 0})}function KIe(e,t,r,i,o){var s;const l=r&&XIe(r,i);for(const u of e.getAmbientModules())!u.name.includes("*")&&!(r&&((s=u.declarations)!=null&&s.every(d=>l(d.getSourceFile()))))&&o(u,void 0);for(const u of t)Pp(u)&&!l?.(u)&&o(e.getMergedSymbol(u.symbol),u)}function XIe(e,t){var r;const i=(r=t.getSymlinkCache)==null?void 0:r.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:o,path:s})=>{if(e.some(l=>l.test(o)))return!0;if(i?.size&&wb(o)){let l=ci(o);return W_(t,ci(s),u=>{const d=i.get(Uc(u));if(d)return d.some(g=>e.some(h=>h.test(o.replace(l,g))));l=ci(l)})??!1}return!1}}function rce(e,t){return t.autoImportFileExcludePatterns?XIe(JIe(t,l1(e)),e):()=>!1}function IO(e,t,r,i,o){var s,l,u,d,g;const h=Ls();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||lJ({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var A;return(A=t.getPackageJsonAutoImportProvider)==null?void 0:A.call(t)},getGlobalTypingsCacheLocation:()=>{var A;return(A=t.getGlobalTypingsCacheLocation)==null?void 0:A.call(t)}});if(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(d=t.log)==null||d.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let E=0;try{dJ(r,t,i,!0,(A,R,N,P)=>{++E%100===0&&o?.throwIfCancellationRequested();const k=new Set,W=N.getTypeChecker(),O=N7(A,W);O&&YIe(O.symbol,W)&&y.add(e.path,O.symbol,O.exportKind===1?"default":"export=",A,R,O.exportKind,P,W),W.forEachExportAndPropertyOfModule(A,(G,j)=>{G!==O?.symbol&&YIe(G,W)&&gm(k,j)&&y.add(e.path,G,j,A,R,0,P,W)})})}catch(A){throw y.clear(),A}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${Ls()-h} ms`),y}function N7(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e){const o=t.tryGetMemberInModuleExports("default",r);return o?{symbol:o,exportKind:1}:{symbol:r,exportKind:2}}const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function YIe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!iM(e)&&!ine(e)}function YJe(e,t,r){let i;return M7(e,t,r,(o,s)=>(i=s?[o,s]:o,!0)),C.checkDefined(i)}function M7(e,t,r,i){let o,s=e;const l=new Set;for(;s;){const u=iJ(s);if(u){const d=i(u);if(d)return d}if(s.escapedName!=="default"&&s.escapedName!=="export="){const d=i(s.name);if(d)return d}if(o=Bn(o,s),!gm(l,s))break;s=s.flags&2097152?t.getImmediateAliasedSymbol(s):void 0}for(const u of o??ae)if(u.parent&&sI(u.parent)){const d=i(SO(u.parent,r,!1),SO(u.parent,r,!0));if(d)return d}}function $Ie(){const e=cg(99,!1);function t(i,o,s){return eKe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0;const d=[],{prefix:g,pushTemplate:h}=rKe(o);i=g+i;const y=g.length;h&&d.push(16),e.setText(i);let E=0;const A=[];let R=0;do{l=e.scan(),nD(l)||(N(),u=l);const P=e.getTokenEnd();if(ZJe(e.getTokenStart(),P,y,aKe(l),A),P>=i.length){const k=QJe(e,l,Zs(d));k!==void 0&&(E=k)}}while(l!==1);function N(){switch(l){case 44:case 69:!$Je[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:d.push(l);break;case 19:d.length>0&&d.push(l);break;case 20:if(d.length>0){const P=Zs(d);P===16?(l=e.reScanTemplateToken(!1),l===18?d.pop():C.assertEqual(l,17,"Should have been a template middle.")):(C.assertEqual(P,19,"Should have been an open brace"),d.pop())}break;default:if(!ep(l))break;(u===25||ep(u)&&ep(l)&&!nKe(u,l))&&(l=80)}}return{endOfLineState:E,spans:A}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}var $Je=xQ([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function QJe(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?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(lb(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return C.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function ZJe(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 eKe(e,t){const r=[],i=e.spans;let o=0;for(let l=0;l=0){const h=u-o;h>0&&r.push({length:h,classification:4})}r.push({length:d,classification:tKe(g)}),o=u+d}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function tKe(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 nKe(e,t){if(!xq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function rKe(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 C.assertNever(e)}}function iKe(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 oKe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function aKe(e){if(ep(e))return 3;if(iKe(e)||oKe(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 lb(e)?6:2}}function ice(e,t,r,i,o){return exe(uJ(e,t,r,i,o))}function QIe(e,t){switch(t){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function uJ(e,t,r,i,o){const s=[];return r.forEachChild(function u(d){if(!(!d||!T2(o,d.pos,d.getFullWidth()))){if(QIe(t,d.kind),He(d)&&!Wl(d)&&i.has(d.escapedText)){const g=e.getSymbolAtLocation(d),h=g&&ZIe(g,w1(d),e);h&&l(d.getStart(r),d.getEnd(),h)}d.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,d,g){const h=d-u;C.assert(h>0,`Classification had non-positive length of ${h}`),s.push(u),s.push(h),s.push(g)}}function ZIe(e,t,r){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&sKe(e)?14:void 0:i&2097152?ZIe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function sKe(e){return yt(e.declarations,t=>pc(t)&&my(t)===1)}function lKe(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 exe(e){C.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/m,q=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,ye=t.text.substr(j,J),ie=Z.exec(ye);if(!ie||!ie[3]||!(ie[3]in W8))return!1;let K=j;y(K,ie[1].length),K+=ie[1].length,d(K,ie[2].length,10),K+=ie[2].length,d(K,ie[3].length,21),K+=ie[3].length;const pe=ie[4];let de=K;for(;;){const ve=q.exec(pe);if(!ve)break;const xe=K+ve.index+ve[1].length;xe>de&&(y(de,xe-de),de=xe),d(de,ve[2].length,22),de+=ve[2].length,ve[3].length&&(y(de,ve[3].length),de+=ve[3].length),d(de,ve[4].length,5),de+=ve[4].length,ve[5].length&&(y(de,ve[5].length),de+=ve[5].length),d(de,ve[6].length,24),de+=ve[6].length}K+=ie[4].length,K>de&&y(de,K-de),ie[5]&&(d(K,ie[5].length,10),K+=ie[5].length);const fe=j+J;return K=0),q>0){const ye=J||O(j.kind,j);ye&&d(Z,q,ye)}return!0}function W(j){switch(j.parent&&j.parent.kind){case 287:if(j.parent.tagName===j)return 19;break;case 288:if(j.parent.tagName===j)return 20;break;case 286:if(j.parent.tagName===j)return 21;break;case 292:if(j.parent.name===j)return 22;break}}function O(j,J){if(ep(j))return 3;if((j===30||j===32)&&J&&Rle(J.parent))return 10;if(NG(j)){if(J){const Z=J.parent;if(j===64&&(Z.kind===261||Z.kind===173||Z.kind===170||Z.kind===292)||Z.kind===227||Z.kind===225||Z.kind===226||Z.kind===228)return 5}return 10}else{if(j===9)return 4;if(j===10)return 25;if(j===11)return J&&J.parent.kind===292?24:6;if(j===14)return 6;if(lb(j))return 6;if(j===12)return 23;if(j===80){if(J){switch(J.parent.kind){case 264:return J.parent.name===J?11:void 0;case 169:return J.parent.name===J?15:void 0;case 265:return J.parent.name===J?13:void 0;case 267:return J.parent.name===J?12:void 0;case 268:return J.parent.name===J?14:void 0;case 170:return J.parent.name===J?Tb(J)?3:17:void 0}if(Om(J.parent))return 3}return 2}}}function G(j){if(j&&S2(i,o,j.pos,j.getFullWidth())){QIe(e,j.kind);for(const J of j.getChildren(t))k(J)||G(J)}}}var P7;(e=>{function t(K,pe,de,fe,ve){const xe=ip(de,fe);if(xe.parent&&(ph(xe.parent)&&xe.parent.tagName===xe||GS(xe.parent))){const{openingElement:X,closingElement:Ce}=xe.parent.parent,Je=[X,Ce].map(({tagName:Se})=>r(Se,de));return[{fileName:de.fileName,highlightSpans:Je}]}return i(fe,xe,K,pe,ve)||o(xe,de)}e.getDocumentHighlights=t;function r(K,pe){return{fileName:pe.fileName,textSpan:Fu(K,pe),kind:"none"}}function i(K,pe,de,fe,ve){const xe=new Set(ve.map(Se=>Se.fileName)),X=Ys.getReferenceEntriesForNode(K,pe,de,ve,fe,void 0,xe);if(!X)return;const Ce=a2(X.map(Ys.toHighlightSpan),Se=>Se.fileName,Se=>Se.span),Je=Fd(de.useCaseSensitiveFileNames());return Co(nh(Ce.entries(),([Se,re])=>{if(!xe.has(Se)){if(!de.redirectTargetsMap.has(ks(Se,de.getCurrentDirectory(),Je)))return;const be=de.getSourceFile(Se);Se=hn(ve,Be=>!!Be.redirectInfo&&Be.redirectInfo.redirectTarget===be).fileName,C.assert(xe.has(Se))}return{fileName:Se,highlightSpans:re}}))}function o(K,pe){const de=s(K,pe);return de&&[{fileName:pe.fileName,highlightSpans:de}]}function s(K,pe){switch(K.kind){case 101:case 93:return YT(K.parent)?q(K.parent,pe):void 0;case 107:return fe(K.parent,tf,G);case 111:return fe(K.parent,dj,O);case 113:case 85:case 98:const xe=K.kind===85?K.parent.parent:K.parent;return fe(xe,T1,W);case 109:return fe(K.parent,GM,k);case 84:case 90:return jM(K.parent)||ID(K.parent)?fe(K.parent.parent.parent,GM,k):void 0;case 83:case 88:return fe(K.parent,MN,P);case 99:case 117:case 92:return fe(K.parent,X=>pb(X,!0),N);case 137:return de(Pl,[137]);case 139:case 153:return de(ub,[139,153]);case 135:return fe(K.parent,Nb,j);case 134:return ve(j(K));case 127:return ve(J(K));case 103:case 147:return;default:return db(K.kind)&&(rd(K.parent)||sc(K.parent))?ve(E(K.kind,K.parent)):void 0}function de(xe,X){return fe(K.parent,xe,Ce=>{var Je;return Ui((Je=ni(Ce,ah))==null?void 0:Je.symbol.declarations,Se=>xe(Se)?hn(Se.getChildren(pe),re=>jn(X,re.kind)):void 0)})}function fe(xe,X,Ce){return X(xe)?ve(Ce(xe,pe)):void 0}function ve(xe){return xe&&xe.map(X=>r(X,pe))}}function l(K){return dj(K)?[K]:T1(K)?so(K.catchClause?l(K.catchClause):K.tryBlock&&l(K.tryBlock),K.finallyBlock&&l(K.finallyBlock)):Yo(K)?void 0:g(K,l)}function u(K){let pe=K;for(;pe.parent;){const de=pe.parent;if(TS(de)||de.kind===308)return de;if(T1(de)&&de.tryBlock===pe&&de.catchClause)return pe;pe=de}}function d(K){return MN(K)?[K]:Yo(K)?void 0:g(K,d)}function g(K,pe){const de=[];return K.forEachChild(fe=>{const ve=pe(fe);ve!==void 0&&de.push(...XA(ve))}),de}function h(K,pe){const de=y(pe);return!!de&&de===K}function y(K){return Dn(K,pe=>{switch(pe.kind){case 256:if(K.kind===252)return!1;case 249:case 250:case 251:case 248:case 247:return!K.label||ie(pe,K.label.escapedText);default:return Yo(pe)&&"quit"}})}function E(K,pe){return Ui(A(pe,SI(K)),de=>tC(de,K))}function A(K,pe){const de=K.parent;switch(de.kind){case 269:case 308:case 242:case 297:case 298:return pe&64&&Cc(K)?[...K.members,K]:de.statements;case 177:case 175:case 263:return[...de.parameters,...ui(de.parent)?de.parent.members:[]];case 264:case 232:case 265:case 188:const fe=de.members;if(pe&15){const ve=hn(de.members,Pl);if(ve)return[...fe,...ve.parameters]}else if(pe&64)return[...fe,de];return fe;default:return}}function R(K,pe,...de){return pe&&jn(de,pe.kind)?(K.push(pe),!0):!1}function N(K){const pe=[];if(R(pe,K.getFirstToken(),99,117,92)&&K.kind===247){const de=K.getChildren();for(let fe=de.length-1;fe>=0&&!R(pe,de[fe],117);fe--);}return Ye(d(K.statement),de=>{h(K,de)&&R(pe,de.getFirstToken(),83,88)}),pe}function P(K){const pe=y(K);if(pe)switch(pe.kind){case 249:case 250:case 251:case 247:case 248:return N(pe);case 256:return k(pe)}}function k(K){const pe=[];return R(pe,K.getFirstToken(),109),Ye(K.caseBlock.clauses,de=>{R(pe,de.getFirstToken(),84,90),Ye(d(de),fe=>{h(K,fe)&&R(pe,fe.getFirstToken(),83)})}),pe}function W(K,pe){const de=[];if(R(de,K.getFirstToken(),113),K.catchClause&&R(de,K.catchClause.getFirstToken(),85),K.finallyBlock){const fe=Es(K,98,pe);R(de,fe,98)}return de}function O(K,pe){const de=u(K);if(!de)return;const fe=[];return Ye(l(de),ve=>{fe.push(Es(ve,111,pe))}),TS(de)&&gb(de,ve=>{fe.push(Es(ve,107,pe))}),fe}function G(K,pe){const de=df(K);if(!de)return;const fe=[];return gb(ma(de.body,ea),ve=>{fe.push(Es(ve,107,pe))}),Ye(l(de.body),ve=>{fe.push(Es(ve,111,pe))}),fe}function j(K){const pe=df(K);if(!pe)return;const de=[];return pe.modifiers&&pe.modifiers.forEach(fe=>{R(de,fe,134)}),Jo(pe,fe=>{Z(fe,ve=>{Nb(ve)&&R(de,ve.getFirstToken(),135)})}),de}function J(K){const pe=df(K);if(!pe)return;const de=[];return Jo(pe,fe=>{Z(fe,ve=>{aw(ve)&&R(de,ve.getFirstToken(),127)})}),de}function Z(K,pe){pe(K),!Yo(K)&&!ui(K)&&!gd(K)&&!pc(K)&&!vm(K)&&!Ri(K)&&Jo(K,de=>Z(de,pe))}function q(K,pe){const de=ye(K,pe),fe=[];for(let ve=0;ve=xe.end;Je--)if(!Bh(pe.text.charCodeAt(Je))){Ce=!1;break}if(Ce){fe.push({fileName:pe.fileName,textSpan:oc(xe.getStart(),X.end),kind:"reference"}),ve++;continue}}fe.push(r(de[ve],pe))}return fe}function ye(K,pe){const de=[];for(;YT(K.parent)&&K.parent.elseStatement===K;)K=K.parent;for(;;){const fe=K.getChildren(pe);R(de,fe[0],101);for(let ve=fe.length-1;ve>=0&&!R(de,fe[ve],93);ve--);if(!K.elseStatement||!YT(K.elseStatement))break;K=K.elseStatement}return de}function ie(K,pe){return!!Dn(K.parent,de=>Mb(de)?de.label.escapedText===pe:"quit")}})(P7||(P7={}));function xO(e){return!!e.sourceFile}function ace(e,t,r){return fJ(e,t,r)}function fJ(e,t="",r,i){const o=new Map,s=Fd(!!e);function l(){const P=Co(o.keys()).filter(k=>k&&k.charAt(0)==="_").map(k=>{const W=o.get(k),O=[];return W.forEach((G,j)=>{xO(G)?O.push({name:j,scriptKind:G.sourceFile.scriptKind,refCount:G.languageServiceRefCount}):G.forEach((J,Z)=>O.push({name:j,scriptKind:Z,refCount:J.languageServiceRefCount}))}),O.sort((G,j)=>j.refCount-G.refCount),{bucket:k,sourceFiles:O}});return JSON.stringify(P,void 0,2)}function u(P){return typeof P.getCompilationSettings=="function"?P.getCompilationSettings():P}function d(P,k,W,O,G,j){const J=ks(P,t,s),Z=mJ(u(k));return g(P,J,k,Z,W,O,G,j)}function g(P,k,W,O,G,j,J,Z){return A(P,k,W,O,G,j,!0,J,Z)}function h(P,k,W,O,G,j){const J=ks(P,t,s),Z=mJ(u(k));return y(P,J,k,Z,W,O,G,j)}function y(P,k,W,O,G,j,J,Z){return A(P,k,u(W),O,G,j,!1,J,Z)}function E(P,k){const W=xO(P)?P:P.get(C.checkDefined(k,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return C.assert(k===void 0||!W||W.sourceFile.scriptKind===k,`Script kind should match provided ScriptKind:${k} and sourceFile.scriptKind: ${W?.sourceFile.scriptKind}, !entry: ${!W}`),W}function A(P,k,W,O,G,j,J,Z,q){var ye,ie,K,pe;Z=P6(P,Z);const de=u(W),fe=W===de?void 0:W,ve=Z===6?100:Ga(de),xe=typeof q=="object"?q:{languageVersion:ve,impliedNodeFormat:fe&&Kw(k,(pe=(K=(ie=(ye=fe.getCompilerHost)==null?void 0:ye.call(fe))==null?void 0:ie.getModuleResolutionCache)==null?void 0:K.call(ie))==null?void 0:pe.getPackageJsonInfoCache(),fe,de),setExternalModuleIndicator:kk(de),jsDocParsingMode:r};xe.languageVersion=ve,C.assertEqual(r,xe.jsDocParsingMode);const X=o.size,Ce=sce(O,xe.impliedNodeFormat),Je=HA(o,Ce,()=>new Map);if(xr){o.size>X&&xr.instant(xr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:de.configFilePath,key:Ce});const Ne=!ad(k)&&Hc(o,(Be,lt)=>lt!==Ce&&Be.has(k)&<);Ne&&xr.instant(xr.Phase.Session,"documentRegistryBucketOverlap",{path:k,key1:Ne,key2:Ce})}const Se=Je.get(k);let re=Se&&E(Se,Z);if(!re&&i){const Ne=i.getDocument(Ce,k);Ne&&Ne.scriptKind===Z&&Ne.text===dx(G)&&(C.assert(J),re={sourceFile:Ne,languageServiceRefCount:0},be())}if(re)re.sourceFile.version!==j&&(re.sourceFile=JJ(re.sourceFile,G,j,G.getChangeRange(re.sourceFile.scriptSnapshot)),i&&i.setDocument(Ce,k,re.sourceFile)),J&&re.languageServiceRefCount++;else{const Ne=K7(P,G,xe,j,!1,Z);i&&i.setDocument(Ce,k,Ne),re={sourceFile:Ne,languageServiceRefCount:1},be()}return C.assert(re.languageServiceRefCount!==0),re.sourceFile;function be(){if(!Se)Je.set(k,re);else if(xO(Se)){const Ne=new Map;Ne.set(Se.sourceFile.scriptKind,Se),Ne.set(Z,re),Je.set(k,Ne)}else Se.set(Z,re)}}function R(P,k,W,O){const G=ks(P,t,s),j=mJ(k);return N(G,j,W,O)}function N(P,k,W,O){const G=C.checkDefined(o.get(sce(k,O))),j=G.get(P),J=E(j,W);J.languageServiceRefCount--,C.assert(J.languageServiceRefCount>=0),J.languageServiceRefCount===0&&(xO(j)?G.delete(P):(j.delete(W),j.size===1&&G.set(P,cr(j.values(),Vs))))}return{acquireDocument:d,acquireDocumentWithKey:g,updateDocument:h,updateDocumentWithKey:y,releaseDocument:R,releaseDocumentWithKey:N,getKeyForCompilationSettings:mJ,getDocumentRegistryBucketKeyWithMode:sce,reportStats:l,getBuckets:()=>o}}function mJ(e){return iU(e,Gj)}function sce(e,t){return t?`${e}|${t}`:e}function lce(e,t,r,i,o,s,l){const u=l1(i),d=Fd(u),g=hJ(t,r,d,l),h=hJ(r,t,d,l);return Rr.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{dKe(e,y,g,t,r,i.getCurrentDirectory(),u),uKe(e,y,g,h,i,d)})}function hJ(e,t,r,i){const o=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),d=s(u?u.fileName:l);return u?d===void 0?void 0:cKe(u.fileName,d,l,r):d};function s(l){if(r(l)===o)return t;const u=bV(l,o,r);return u===void 0?void 0:t+"/"+u}}function cKe(e,t,r,i){const o=NR(e,t,i);return cce(ci(r),o)}function dKe(e,t,r,i,o,s,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const d=ci(u.fileName),g=UN(u);if(!g)return;dce(g,(A,R)=>{switch(R){case"files":case"include":case"exclude":{if(h(A)||R!=="include"||!Cd(A.initializer))return;const P=Ui(A.initializer.elements,W=>ka(W)?W.text:void 0);if(P.length===0)return;const k=M6(d,[],P,l,s);iv(C.checkDefined(k.includeFilePattern),l).test(i)&&!iv(C.checkDefined(k.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Ba(A.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":dce(A.initializer,(N,P)=>{const k=Uj(P);C.assert(k?.type!=="listOrElement"),k&&(k.isFilePath||k.type==="list"&&k.element.isFilePath)?h(N):P==="paths"&&dce(N.initializer,W=>{if(Cd(W.initializer))for(const O of W.initializer.elements)y(O)})});return}});function h(A){const R=Cd(A.initializer)?A.initializer.elements:[A.initializer];let N=!1;for(const P of R)N=y(P)||N;return N}function y(A){if(!ka(A))return!1;const R=cce(d,A.text),N=r(R);return N!==void 0?(t.replaceRangeWithText(u,nxe(A,u),E(N)),!0):!1}function E(A){return cf(d,A,!l)}}function uKe(e,t,r,i,o,s){const l=e.getSourceFiles();for(const u of l){const d=r(u.fileName),g=d??u.fileName,h=ci(g),y=i(u.fileName),E=y||u.fileName,A=ci(E),R=d!==void 0||y!==void 0;mKe(u,t,N=>{if(!Zp(N))return;const P=cce(A,N),k=r(P);return k===void 0?void 0:VE(cf(h,k,s))},N=>{const P=e.getTypeChecker().getSymbolAtLocation(N);if(P?.declarations&&P.declarations.some(W=>gu(W)))return;const k=y!==void 0?txe(N,C1(N.text,E,e.getCompilerOptions(),o),r,l):fKe(P,N,u,e,o,r);return k!==void 0&&(k.updated||R&&Zp(N.text))?hy.updateModuleSpecifier(e.getCompilerOptions(),u,g,k.newFileName,u0(e,o),N.text):void 0})}}function pKe(e,t){return ya(Qr(e,t))}function cce(e,t){return VE(pKe(e,t))}function fKe(e,t,r,i,o,s){if(e){const l=hn(e.declarations,Yi).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,r):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return txe(t,u,s,i.getSourceFiles())}}function txe(e,t,r,i){if(!t)return;if(t.resolvedModule){const d=u(t.resolvedModule.resolvedFileName);if(d)return d}const o=Ye(t.failedLookupLocations,s)||Zp(e.text)&&Ye(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(d){const g=r(d);return g&&hn(i,h=>h.fileName===g)?l(d):void 0}function l(d){return el(d,"/package.json")?void 0:u(d)}function u(d){const g=r(d);return g&&{newFileName:g,updated:!0}}}function mKe(e,t,r,i){for(const o of e.referencedFiles||ae){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,nxe(o,e),s)}}function nxe(e,t){return Bf(e.getStart(t)+1,e.end-1)}function dce(e,t){if(Wa(e))for(const r of e.properties)Nc(r)&&ka(r.name)&&t(r,r.name.text)}var _J=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(_J||{});function wP(e,t){return{kind:e,isCaseSensitive:t}}function uce(e){const t=new Map,r=e.trim().split(".").map(i=>yKe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>wP(2,!0),getFullMatch:()=>wP(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>hKe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>pce(i,Ba(r),t),patternContainsDots:r.length>1}}function hKe(e,t,r,i){if(!pce(t,Ba(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=oxe(s,pce(e[u],r[l],i));return s}function rxe(e,t){let r=t.get(e);return r||t.set(e,r=yce(e)),r}function ixe(e,t,r){const i=vKe(e,t.textLowerCase);if(i===0)return wP(t.text.length===e.length?0:1,po(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=rxe(e,r);for(const s of o)if(fce(e,s,t.text,!0))return wP(2,fce(e,s,t.text,!1));if(t.text.length0)return wP(2,!0);if(t.characterSpans.length>0){const o=rxe(e,r),s=axe(e,o,t,!1)?!0:axe(e,o,t,!0)?!1:void 0;if(s!==void 0)return wP(3,s)}}}function pce(e,t,r){if(gJ(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=ixe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=oxe(o,ixe(e,s,r));return o}function oxe(e,t){return LB([e,t],_Ke)}function _Ke(e,t){return e===void 0?1:t===void 0?-1:js(e.kind,t.kind)||CT(!e.isCaseSensitive,!t.isCaseSensitive)}function fce(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&dxe(0,o.length,s=>gKe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function gKe(e,t,r){return r?mce(e)===mce(t):e===t}function axe(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],d=!1;for(;l=65&&e<=90)return!0;if(e<127||!J8(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function sxe(e){if(e>=97&&e<=122)return!0;if(e<127||!J8(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function vKe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(gJ(t,(o,s)=>mce(e.charCodeAt(s+i))===o))return i;return-1}function mce(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function hce(e){return e>=48&&e<=57}function bKe(e){return sC(e)||sxe(e)||hce(e)||e===95||e===36}function TKe(e){const t=[];let r=0,i=0;for(let o=0;o0&&(t.push(_ce(e.substr(r,i))),i=0)}return i>0&&t.push(_ce(e.substr(r,i))),t}function _ce(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:gce(e)}}function gce(e){return lxe(e,!1)}function yce(e){return lxe(e,!0)}function lxe(e,t){const r=[];let i=0;for(let o=1;ovce(i)&&i!==95,t,r)}function SKe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}function uxe(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,d=0,g=!1;function h(){return l=u,u=yd.scan(),u===19?d++:u===20&&d--,u}function y(){const j=yd.getTokenValue(),J=yd.getTokenStart();return{fileName:j,pos:J,end:J+j.length}}function E(){s||(s=[]),s.push({ref:y(),depth:d})}function A(){o.push(y()),R()}function R(){d===0&&(g=!0)}function N(){let j=yd.getToken();return j===138?(j=h(),j===144&&(j=h(),j===11&&E()),!0):!1}function P(){if(l===25)return!1;let j=yd.getToken();if(j===102){if(j=h(),j===21){if(j=h(),j===11||j===15)return A(),!0}else{if(j===11)return A(),!0;if(j===156&&yd.lookAhead(()=>{const Z=yd.scan();return Z!==161&&(Z===42||Z===19||Z===80||ep(Z))})&&(j=h()),j===80||ep(j))if(j=h(),j===161){if(j=h(),j===11)return A(),!0}else if(j===64){if(W(!0))return!0}else if(j===28)j=h();else return!0;if(j===19){for(j=h();j!==20&&j!==1;)j=h();j===20&&(j=h(),j===161&&(j=h(),j===11&&A()))}else j===42&&(j=h(),j===130&&(j=h(),(j===80||ep(j))&&(j=h(),j===161&&(j=h(),j===11&&A()))))}return!0}return!1}function k(){let j=yd.getToken();if(j===95){if(R(),j=h(),j===156&&yd.lookAhead(()=>{const Z=yd.scan();return Z===42||Z===19})&&(j=h()),j===19){for(j=h();j!==20&&j!==1;)j=h();j===20&&(j=h(),j===161&&(j=h(),j===11&&A()))}else if(j===42)j=h(),j===161&&(j=h(),j===11&&A());else if(j===102&&(j=h(),j===156&&yd.lookAhead(()=>{const Z=yd.scan();return Z===80||ep(Z)})&&(j=h()),(j===80||ep(j))&&(j=h(),j===64&&W(!0))))return!0;return!0}return!1}function W(j,J=!1){let Z=j?h():yd.getToken();return Z===149?(Z=h(),Z===21&&(Z=h(),(Z===11||J&&Z===15)&&A()),!0):!1}function O(){let j=yd.getToken();if(j===80&&yd.getTokenValue()==="define"){if(j=h(),j!==21)return!0;if(j=h(),j===11||j===15)if(j=h(),j===28)j=h();else return!0;if(j!==23)return!0;for(j=h();j!==24&&j!==1;)(j===11||j===15)&&A(),j=h();return!0}return!1}function G(){for(yd.setText(e),h();yd.getToken()!==1;){if(yd.getToken()===16){const j=[yd.getToken()];e:for(;et(j);){const J=yd.scan();switch(J){case 1:break e;case 102:P();break;case 16:j.push(J);break;case 19:et(j)&&j.push(J);break;case 20:et(j)&&(Zs(j)===16?yd.reScanTemplateToken(!1)===18&&j.pop():j.pop());break}}h()}N()||P()||k()||r&&(W(!1,!0)||O())||h()}yd.setText(void 0)}if(t&&G(),Oj(i,e),Wj(i,gs),g){if(s)for(const j of s)o.push(j.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let j;if(s)for(const J of s)J.depth===0?(j||(j=[]),j.push(J.ref.fileName)):o.push(J.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:j}}}var AKe=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function bce(e){const t=Fd(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:d,toLineColumnOffset:E,clearCache:A,documentPositionMappers:o};function s(R){return ks(R,r,t)}function l(R,N){const P=s(R),k=o.get(P);if(k)return k;let W;if(e.getDocumentPositionMapper)W=e.getDocumentPositionMapper(R,N);else if(e.readFile){const O=y(R);W=O&&yJ({getSourceFileLike:y,getCanonicalFileName:t,log:G=>e.log(G)},R,DU(O.text,ag(O)),G=>!e.fileExists||e.fileExists(G)?e.readFile(G):void 0)}return o.set(P,W||NU),W||NU}function u(R){if(!ad(R.fileName)||!g(R.fileName))return;const P=l(R.fileName).getSourcePosition(R);return!P||P===R?void 0:u(P)||P}function d(R){if(ad(R.fileName))return;const N=g(R.fileName);if(!N)return;const P=e.getProgram();if(P.isSourceOfProjectReferenceRedirect(N.fileName))return;const W=P.getCompilerOptions().outFile,O=W?bu(W)+".d.ts":r6(R.fileName,P.getCompilerOptions(),P);if(O===void 0)return;const G=l(O,R.fileName).getGeneratedPosition(R);return G===R?void 0:G}function g(R){const N=e.getProgram();if(!N)return;const P=s(R),k=N.getSourceFileByPath(P);return k&&k.resolvedPath===P?k:void 0}function h(R){const N=s(R),P=i.get(N);if(P!==void 0)return P||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(N,!1);return}const k=e.readFile(R),W=k?IKe(k):!1;return i.set(N,W),W||void 0}function y(R){return e.getSourceFileLike?e.getSourceFileLike(R):g(R)||h(R)}function E(R,N){return y(R).getLineAndCharacterOfPosition(N)}function A(){i.clear(),o.clear()}}function yJ(e,t,r,i){let o=Koe(r);if(o){const u=AKe.exec(o);if(u){if(u[1]){const d=u[1];return pxe(e,Rne(jc,d),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const l=o&&To(o,ci(t));for(const u of s){const d=To(u,ci(t)),g=i(d,l);if(Bo(g))return pxe(e,g,d);if(g!==void 0)return g||void 0}}function pxe(e,t,r){const i=Xoe(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Bo)))return $oe(e,i,r)}function IKe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return PR(ag(this),r)}}}var Tce=new Map;function vJ(e,t,r){var i;t.getSemanticDiagnostics(e,r);const o=[],s=t.getTypeChecker();!(t.getImpliedNodeFormatForEmit(e)===1||Ql(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Ple(t)||Lq(t.getCompilerOptions()))&&xKe(e)&&o.push(Ar(NKe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=Mu(e);if(Tce.clear(),d(e),CI(t.getCompilerOptions()))for(const g of e.imports){const h=$N(g);if(zc(h)&&di(h,32))continue;const y=RKe(h);if(!y)continue;const E=(i=t.getResolvedModuleFromModuleSpecifier(g,e))==null?void 0:i.resolvedModule,A=E&&t.getSourceFile(E.resolvedFileName);A&&A.externalModuleIndicator&&A.externalModuleIndicator!==!0&&ll(A.externalModuleIndicator)&&A.externalModuleIndicator.isExportEquals&&o.push(Ar(y,f.Import_may_be_converted_to_a_default_import))}return Xr(o,e.bindSuggestionDiagnostics),Xr(o,t.getSuggestionDiagnostics(e,r)),o.sort((g,h)=>g.start-h.start),o;function d(g){if(u)PKe(g,s)&&o.push(Ar(yi(g.parent)?g.parent.name:g,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(sc(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){const y=g.declarationList.declarations[0].initializer;y&&Zu(y,!0)&&o.push(Ar(y,f.require_call_may_be_converted_to_an_import))}const h=lu.getJSDocTypedefNodes(g);for(const y of h)o.push(Ar(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));lu.parameterShouldGetTypeFromJSDoc(g)&&o.push(Ar(g.name||g,f.JSDoc_types_may_be_moved_to_TypeScript_types))}SJ(g)&&DKe(g,s,o),g.forEachChild(d)}}function xKe(e){return e.statements.some(t=>{switch(t.kind){case 244:return t.declarationList.declarations.some(r=>!!r.initializer&&Zu(fxe(r.initializer),!0));case 245:{const{expression:r}=t;if(!Nr(r))return Zu(r,!0);const i=ac(r);return i===1||i===2}default:return!1}})}function fxe(e){return qr(e)?fxe(e.expression):e}function RKe(e){switch(e.kind){case 273:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===275&&ka(r)?t.namedBindings.name:void 0;case 272:return e.name;default:return}}function DKe(e,t,r){CKe(e,t)&&!Tce.has(gxe(e))&&r.push(Ar(!e.name&&yi(e.parent)&&He(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function CKe(e,t){return!nM(e)&&e.body&&ea(e.body)&&MKe(e.body,t)&&bJ(e,t)}function bJ(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function NKe(e){return Nr(e)?e.left:e}function MKe(e,t){return!!gb(e,r=>L7(r,t))}function L7(e,t){return tf(e)&&!!e.expression&&TJ(e.expression,t)}function TJ(e,t){if(!mxe(e)||!hxe(e)||!e.arguments.every(i=>_xe(i,t)))return!1;let r=e.expression.expression;for(;mxe(r)||qr(r);)if(Zo(r)){if(!hxe(r)||!r.arguments.every(i=>_xe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function mxe(e){return Zo(e)&&(aO(e,"then")||aO(e,"catch")||aO(e,"finally"))}function hxe(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||He(i)&&i.text==="undefined")}function _xe(e,t){switch(e.kind){case 263:case 219:if(dc(e)&1)return!1;case 220:Tce.set(gxe(e),!0);case 106:return!0;case 80:case 212:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||yt(xd(i,t).declarations,o=>Yo(o)||Qy(o)&&!!o.initializer&&Yo(o.initializer)):!1}default:return!1}}function gxe(e){return`${e.pos.toString()}:${e.end.toString()}`}function PKe(e,t){var r,i,o,s;if(Us(e)){if(yi(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 ec(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function SJ(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var LKe=new Set(["isolatedModules"]);function Sce(e,t){return vxe(e,t,!1)}function yxe(e,t){return vxe(e,t,!0)}var kKe=`/// interface Boolean {} interface Function {} interface CallableFunction {} interface NewableFunction {} interface IArguments {} interface Number {} interface Object {} interface RegExp {} interface String {} interface Array { length: number; [n: number]: T; } interface SymbolConstructor { (desc?: string | number): symbol; for(name: string): symbol; readonly toStringTag: symbol; } declare var Symbol: SymbolConstructor; interface Symbol { readonly [Symbol.toStringTag]: string; }`,k7="lib.d.ts",Ece;function vxe(e,t,r){Ece??(Ece=QI(k7,kKe,{languageVersion:99}));const i=[],o=t.compilerOptions?EJ(t.compilerOptions,i):{},s=J7();for(const N in s)Rs(s,N)&&o[N]===void 0&&(o[N]=s[N]);for(const N of $ie)o.verbatimModuleSyntax&&LKe.has(N.name)||(o[N.name]=N.transpileOptionValue);o.suppressOutputPathCheck=!0,o.allowNonTsExtensions=!0,r?(o.declaration=!0,o.emitDeclarationOnly=!0,o.isolatedDeclarations=!0):(o.declaration=!1,o.declarationMap=!1);const l=rv(o),u={getSourceFile:N=>N===ya(d)?g:N===ya(k7)?Ece:void 0,writeFile:(N,P)=>{El(N,".map")?(C.assertEqual(y,void 0,"Unexpected multiple source map outputs, file:",N),y=P):(C.assertEqual(h,void 0,"Unexpected multiple outputs, file:",N),h=P)},getDefaultLibFileName:()=>k7,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:N=>N,getCurrentDirectory:()=>"",getNewLine:()=>l,fileExists:N=>N===d||!!r&&N===k7,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),g=QI(d,e,{languageVersion:Ga(o),impliedNodeFormat:Kw(ks(d,"",u.getCanonicalFileName),void 0,u,o),setExternalModuleIndicator:kk(o),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(g.moduleName=t.moduleName),t.renamedDependencies&&(g.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,y;const A=Xw(r?[d,k7]:[d],o,u);t.reportDiagnostics&&(Xr(i,A.getSyntacticDiagnostics(g)),Xr(i,A.getOptionsDiagnostics()));const R=A.emit(void 0,void 0,void 0,r,t.transformers,r);return Xr(i,R.diagnostics),h===void 0?C.fail("Output generation failed"):{outputText:h,diagnostics:i,sourceMapText:y}}function bxe(e,t,r,i,o){const s=Sce(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Xr(i,s.diagnostics),s.outputText}var Ace;function EJ(e,t){Ace=Ace||Un(Um,r=>typeof r.type=="object"&&!Hc(r.type,i=>typeof i!="number")),e=Rq(e);for(const r of Ace){if(!Rs(e,r.name))continue;const i=e[r.name];Bo(i)?e[r.name]=N4(r,i,t):Hc(r.type,o=>o===i)||t.push(Zie(r))}return e}var Ice={};x(Ice,{getNavigateToItems:()=>Txe});function Txe(e,t,r,i,o,s,l){const u=uce(i);if(!u)return ae;const d=[],g=e.length===1?e[0]:void 0;for(const h of e)r.throwIfCancellationRequested(),!(s&&h.isDeclarationFile)&&(Sxe(h,!!l,g)||h.getNamedDeclarations().forEach((y,E)=>{wKe(u,E,y,t,h.fileName,!!l,g,d)}));return d.sort(zKe),(o===void 0?d:d.slice(0,o)).map(BKe)}function Sxe(e,t,r){return e!==r&&t&&(TO(e.path)||e.hasNoDefaultLib)}function wKe(e,t,r,i,o,s,l,u){const d=e.getMatchForLastSegmentOfPattern(t);if(d){for(const g of r)if(OKe(g,i,s,l))if(e.patternContainsDots){const h=e.getFullMatch(FKe(g),t);h&&u.push({name:t,fileName:o,matchKind:h.kind,isCaseSensitive:h.isCaseSensitive,declaration:g})}else u.push({name:t,fileName:o,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:g})}}function OKe(e,t,r,i){var o;switch(e.kind){case 274:case 277:case 272:const s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>Sxe(u.getSourceFile(),r,i)));default:return!0}}function WKe(e,t){const r=Oo(e);return!!r&&(Exe(r,t)||r.kind===168&&xce(r.expression,t))}function xce(e,t){return Exe(e,t)||qr(e)&&(t.push(e.name.text),!0)&&xce(e.expression,t)}function Exe(e,t){return qh(e)&&(t.push(zf(e)),!0)}function FKe(e){const t=[],r=Oo(e);if(r&&r.kind===168&&!xce(r.expression,t))return ae;t.shift();let i=O1(e);for(;i;){if(!WKe(i,t))return ae;i=O1(i)}return t.reverse(),t}function zKe(e,t){return js(e.matchKind,t.matchKind)||c2(e.name,t.name)}function BKe(e){const t=e.declaration,r=O1(t),i=r&&Oo(r);return{name:e.name,kind:QS(t),kindModifiers:IP(t),matchKind:_J[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Fu(t),containerName:i?i.text:"",containerKind:i?QS(r):""}}var Rce={};x(Rce,{getNavigationBarItems:()=>Ixe,getNavigationTree:()=>xxe});var GKe=/\s+/g,Dce=150,AJ,RO,w7=[],_v,Axe=[],lC,Cce=[];function Ixe(e,t){AJ=t,RO=e;try{return Vt(qKe(Cxe(e)),JKe)}finally{Rxe()}}function xxe(e,t){AJ=t,RO=e;try{return Fxe(Cxe(e))}finally{Rxe()}}function Rxe(){RO=void 0,AJ=void 0,w7=[],_v=void 0,Cce=[]}function O7(e){return OP(e.getText(RO))}function IJ(e){return e.node.kind}function Dxe(e,t){e.children?e.children.push(t):e.children=[t]}function Cxe(e){C.assert(!w7.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};_v=t;for(const r of e.statements)fx(r);return p0(),C.assert(!_v&&!w7.length),t}function tE(e,t){Dxe(_v,Nce(e,t))}function Nce(e,t){return{node:e,name:t||(rd(e)||St(e)?Oo(e):void 0),additionalNodes:void 0,parent:_v,children:void 0,indent:_v.indent+1}}function Nxe(e){lC||(lC=new Map),lC.set(e,!0)}function Mxe(e){for(let t=0;t0;i--){const o=r[i];nE(e,o)}return[r.length-1,r[0]]}function nE(e,t){const r=Nce(e,t);Dxe(_v,r),w7.push(_v),Axe.push(lC),lC=void 0,_v=r}function p0(){_v.children&&(xJ(_v.children,_v),Lce(_v.children)),_v=w7.pop(),lC=Axe.pop()}function f0(e,t,r){nE(e,r),fx(t),p0()}function Lxe(e){e.initializer&&XKe(e.initializer)?(nE(e),Jo(e.initializer,fx),p0()):f0(e,e.initializer)}function Mce(e){const t=Oo(e);if(t===void 0)return!1;if(va(t)){const r=t.expression;return Ds(r)||np(r)||uf(r)}return!!t}function fx(e){if(AJ.throwIfCancellationRequested(),!(!e||nI(e)))switch(e.kind){case 177:const t=e;f0(t,t.body);for(const l of t.parameters)Np(l,t)&&tE(l);break;case 175:case 178:case 179:case 174:Mce(e)&&f0(e,e.body);break;case 173:Mce(e)&&Lxe(e);break;case 172:Mce(e)&&tE(e);break;case 274:const r=e;r.name&&tE(r.name);const{namedBindings:i}=r;if(i)if(i.kind===275)tE(i);else for(const l of i.elements)tE(l);break;case 305:f0(e,e.name);break;case 306:const{expression:o}=e;He(o)?tE(e,o):tE(e);break;case 209:case 304:case 261:{const l=e;Qo(l.name)?fx(l.name):Lxe(l);break}case 263:const s=e.name;s&&He(s)&&Nxe(s.text),f0(e,e.body);break;case 220:case 219:f0(e,e.body);break;case 267:nE(e);for(const l of e.members)KKe(l)||tE(l);p0();break;case 264:case 232:case 265:nE(e);for(const l of e.members)fx(l);p0();break;case 268:f0(e,Bxe(e).body);break;case 278:{const l=e.expression,u=Wa(l)||Zo(l)?l:Xs(l)||Us(l)?l.body:void 0;u?(nE(e),fx(u),p0()):tE(e);break}case 282:case 272:case 182:case 180:case 181:case 266:tE(e);break;case 214:case 227:{const l=ac(e);switch(l){case 1:case 2:f0(e,e.right);return;case 6:case 3:{const u=e,d=u.left,g=l===3?d.expression:d;let h=0,y;He(g.expression)?(Nxe(g.expression.text),y=g.expression):[h,y]=Pxe(u,g.expression),l===6?Wa(u.right)&&u.right.properties.length>0&&(nE(u,y),Jo(u.right,fx),p0()):Us(u.right)||Xs(u.right)?f0(e,u.right,y):(nE(u,y),f0(e,u.right,d.name),p0()),Mxe(h);return}case 7:case 9:{const u=e,d=l===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[h,y]=Pxe(e,d);nE(e,y),nE(e,vt(L.createIdentifier(g.text),g)),fx(e.arguments[2]),p0(),p0(),Mxe(h);return}case 5:{const u=e,d=u.left,g=d.expression;if(He(g)&&iy(d)!=="prototype"&&lC&&lC.has(g.text)){Us(u.right)||Xs(u.right)?f0(e,u.right,g):ES(d)&&(nE(u,g),f0(u.left,u.right,sk(d)),p0());return}break}case 4:case 0:case 8:break;default:C.assertNever(l)}}default:ef(e)&&Ye(e.jsDoc,l=>{Ye(l.tags,u=>{hm(u)&&tE(u)})}),Jo(e,fx)}}function xJ(e,t){const r=new Map;ul(e,(i,o)=>{const s=i.name||Oo(i.node),l=s&&O7(s);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const d of u)if(kxe(d,i,o,t))return!1;return u.push(i),!0}else{const d=u;return kxe(d,i,o,t)?!1:(r.set(l,[d,i]),!0)}})}var DO={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function VKe(e,t,r,i){function o(u){return Us(u)||ec(u)||yi(u)}const s=Nr(t.node)||Zo(t.node)?ac(t.node):0,l=Nr(e.node)||Zo(e.node)?ac(e.node):0;if(DO[s]&&DO[l]||o(e.node)&&DO[s]||o(t.node)&&DO[l]||Cc(e.node)&&Pce(e.node)&&DO[s]||Cc(t.node)&&DO[l]||Cc(e.node)&&Pce(e.node)&&o(t.node)||Cc(t.node)&&o(e.node)&&Pce(e.node)){let u=e.additionalNodes&&Zs(e.additionalNodes)||e.node;if(!Cc(e.node)&&!Cc(t.node)||o(e.node)||o(t.node)){const g=o(e.node)?e.node:o(t.node)?t.node:void 0;if(g!==void 0){const h=vt(L.createConstructorDeclaration(void 0,[],void 0),g),y=Nce(h);y.indent=e.indent+1,y.children=e.node===g?e.children:t.children,e.children=e.node===g?so([y],t.children||[t]):so(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=so(e.children||[{...e}],t.children||[t]),e.children&&(xJ(e.children,e),Lce(e.children)));u=e.node=vt(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=so(e.children,t.children),e.children&&xJ(e.children,e);const d=t.node;return i.children[r-1].node.end===u.end?vt(u,{pos:u.pos,end:d.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(vt(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function kxe(e,t,r,i){return VKe(e,t,r,i)?!0:jKe(e.node,t.node,i)?(UKe(e,t),!0):!1}function jKe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(wxe(e,r)&&wxe(t,r)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return ua(e)===ua(t);case 268:return Oxe(e,t)&&Oce(e)===Oce(t);default:return!0}}function Pce(e){return!!(e.flags&16)}function wxe(e,t){if(e.parent===void 0)return!1;const r=t_(e.parent)?e.parent.parent:e.parent;return r===t.node||jn(t.additionalNodes,r)}function Oxe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==268||Oxe(e.body,t.body))}function UKe(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&&(xJ(e.children,e),Lce(e.children))}function Lce(e){e.sort(HKe)}function HKe(e,t){return c2(Wxe(e.node),Wxe(t.node))||js(IJ(e),IJ(t))}function Wxe(e){if(e.kind===268)return zxe(e);const t=Oo(e);if(t&&bc(t)){const r=s1(t);return r&&Gi(r)}switch(e.kind){case 219:case 220:case 232:return Vxe(e);default:return}}function kce(e,t){if(e.kind===268)return OP(zxe(e));if(t){const r=He(t)?t.text:Ws(t)?`[${O7(t.argumentExpression)}]`:O7(t);if(r.length>0)return OP(r)}switch(e.kind){case 308:const r=e;return Bc(r)?`"${k_(xc(bu(ya(r.fileName))))}"`:"";case 278:return ll(e)&&e.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return tv(e)&2048?"default":Vxe(e);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return""}}function qKe(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(IJ(o)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(IJ(l.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}function Fxe(e){return{text:kce(e.node,e.name),kind:QS(e.node),kindModifiers:Gxe(e.node),spans:wce(e),nameSpan:e.name&&Wce(e.name),childItems:Vt(e.children,Fxe)}}function JKe(e){return{text:kce(e.node,e.name),kind:QS(e.node),kindModifiers:Gxe(e.node),spans:wce(e),childItems:Vt(e.children,t)||Cce,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:kce(r.node,r.name),kind:QS(r.node),kindModifiers:IP(r.node),spans:wce(r),childItems:Cce,indent:0,bolded:!1,grayed:!1}}}function wce(e){const t=[Wce(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(Wce(r));return t}function zxe(e){return gu(e)?Al(e.name):Oce(e)}function Oce(e){const t=[zf(e.name)];for(;e.body&&e.body.kind===268;)e=e.body,t.push(zf(e.name));return t.join(".")}function Bxe(e){return e.body&&pc(e.body)?Bxe(e.body):e}function KKe(e){return!e.name||e.name.kind===168}function Wce(e){return e.kind===308?hv(e):Fu(e,RO)}function Gxe(e){return e.parent&&e.parent.kind===261&&(e=e.parent),IP(e)}function Vxe(e){const{parent:t}=e;if(e.name&&F2(e.name)>0)return OP(ws(e.name));if(yi(t))return OP(ws(t.name));if(Nr(t)&&t.operatorToken.kind===64)return O7(t.left).replace(GKe,"");if(Nc(t))return O7(t.name);if(tv(e)&2048)return"default";if(ui(e))return"";if(Zo(t)){let r=jxe(t.expression);if(r!==void 0){if(r=OP(r),r.length>Dce)return`${r} callback`;const i=OP(Ui(t.arguments,o=>ds(o)||oI(o)?o.getText(RO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function jxe(e){if(He(e))return e.text;if(qr(e)){const t=jxe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function XKe(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}function OP(e){return e=e.length>Dce?e.substring(0,Dce)+"...":e,e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var mx={};x(mx,{addExportsInOldFile:()=>Kce,addImportsForMovedSymbols:()=>Xce,addNewFileToTsconfig:()=>Jce,addOrRemoveBracesToArrowFunction:()=>UXe,addTargetFileImports:()=>ide,containsJsx:()=>Qce,convertArrowFunctionOrFunctionExpression:()=>XXe,convertParamsToDestructuredObject:()=>aYe,convertStringOrTemplateLiteral:()=>AYe,convertToOptionalChainExpression:()=>kYe,createNewFileName:()=>$ce,doChangeNamedToNamespaceOrDefault:()=>Xxe,extractSymbol:()=>GRe,generateGetAccessorAndSetAccessor:()=>g$e,getApplicableRefactors:()=>YKe,getEditsForRefactor:()=>$Ke,getExistingLocals:()=>nde,getIdentifierForNode:()=>rde,getNewStatementsAndRemoveFromOldFile:()=>qce,getStatementsToMove:()=>CO,getUsageInfo:()=>W7,inferFunctionReturnType:()=>y$e,isInImport:()=>wJ,isRefactorErrorInfo:()=>gy,refactorKindBeginsWith:()=>m0,registerRefactor:()=>Dg});var Fce=new Map;function Dg(e,t){Fce.set(e,t)}function YKe(e,t){return Co(lf(Fce.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>m0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function $Ke(e,t,r,i){const o=Fce.get(t);return o&&o.getEditsForAction(e,r,i)}var zce="Convert export",RJ={name:"Convert default export to named export",description:Ho(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},DJ={name:"Convert named export to default export",description:Ho(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};Dg(zce,{kinds:[RJ.kind,DJ.kind],getAvailableActions:function(t){const r=Uxe(t,t.triggerReason==="invoked");if(!r)return ae;if(!gy(r)){const i=r.wasDefault?RJ:DJ;return[{name:zce,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:zce,description:Ho(f.Convert_default_export_to_named_export),actions:[{...RJ,notApplicableReason:r.error},{...DJ,notApplicableReason:r.error}]}]:ae},getEditsForAction:function(t,r){C.assert(r===RJ.name||r===DJ.name,"Unexpected action name");const i=Uxe(t);return C.assert(i&&!gy(i),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(t,s=>QKe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function Uxe(e,t=!0){const{file:r,program:i}=e,o=ux(e),s=Fi(r,o.start),l=s.parent&&tv(s.parent)&32&&t?s.parent:_O(s,r,o);if(!l||!Yi(l.parent)&&!(t_(l.parent)&&gu(l.parent.parent)))return{error:Ho(f.Could_not_find_export_statement)};const u=i.getTypeChecker(),d=rXe(l.parent,u),g=tv(l)||(ll(l)&&!l.isExportEquals?2080:0),h=!!(g&2048);if(!(g&32)||!h&&d.exports.has("default"))return{error:Ho(f.This_file_already_has_a_default_export)};const y=E=>He(E)&&u.getSymbolAtLocation(E)?void 0:{error:Ho(f.Can_only_convert_named_export)};switch(l.kind){case 263:case 264:case 265:case 267:case 266:case 268:{const E=l;return E.name?y(E.name)||{exportNode:E,exportName:E.name,wasDefault:h,exportingModuleSymbol:d}:void 0}case 244:{const E=l;if(!(E.declarationList.flags&2)||E.declarationList.declarations.length!==1)return;const A=$a(E.declarationList.declarations);return A.initializer?(C.assert(!h,"Can't have a default flag here"),y(A.name)||{exportNode:E,exportName:A.name,wasDefault:h,exportingModuleSymbol:d}):void 0}case 278:{const E=l;return E.isExportEquals?void 0:y(E.expression)||{exportNode:E,exportName:E.expression,wasDefault:h,exportingModuleSymbol:d}}default:return}}function QKe(e,t,r,i,o){ZKe(e,r,i,t.getTypeChecker()),eXe(t,r,i,o)}function ZKe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(ll(r)&&!r.isExportEquals){const l=r.expression,u=Hxe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([u])))}else o.delete(e,C.checkDefined(tC(r,90),"Should find a default keyword in modifier list"));else{const l=C.checkDefined(tC(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 263:case 264:case 265:o.insertNodeAfter(e,l,L.createToken(90));break;case 244:const u=$a(r.declarationList.declarations);if(!Ys.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,L.createExportDefault(C.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:o.deleteModifier(e,l),o.insertNodeAfter(e,r,L.createExportDefault(L.createIdentifier(i.text)));break;default:C.fail(`Unexpected exportNode kind ${r.kind}`)}}}function eXe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const l=e.getTypeChecker(),u=C.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Ys.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,d=>{if(r===d)return;const g=d.getSourceFile();t?tXe(g,d,o,r.text):nXe(g,d,o)})}function tXe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 212:r.replaceNode(e,t,L.createIdentifier(i));break;case 277:case 282:{const l=o;r.replaceNode(e,l,Bce(i,l.name.text));break}case 274:{const l=o;C.assert(l.name===t,"Import clause name should match provided ref");const u=Bce(i,t.text),{namedBindings:d}=l;if(!d)r.replaceNode(e,t,L.createNamedImports([u]));else if(d.kind===275){r.deleteRange(e,{pos:t.getStart(e),end:d.getStart(e)});const g=ka(l.parent.moduleSpecifier)?wq(l.parent.moduleSpecifier,e):1,h=Bb(void 0,[Bce(i,t.text)],l.parent.moduleSpecifier,g);r.insertNodeAfter(e,l.parent,h)}else r.delete(e,t),r.insertNodeAtEndOfList(e,d.elements,u);break}case 206:const s=o;r.replaceNode(e,o,L.createImportTypeNode(s.argument,s.attributes,L.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:C.failBadSyntaxKind(o)}}function nXe(e,t,r){const i=t.parent;switch(i.kind){case 212:r.replaceNode(e,t,L.createIdentifier("default"));break;case 277:{const o=L.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 282:{r.replaceNode(e,i,Hxe("default",i.name.text));break}default:C.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Bce(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function Hxe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function rXe(e,t){if(Yi(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&bS(r.valueDeclaration)?t.getMergedSymbol(r):r}var Gce="Convert import",CJ={0:{name:"Convert namespace import to named imports",description:Ho(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Ho(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Ho(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};Dg(Gce,{kinds:KA(CJ).map(e=>e.kind),getAvailableActions:function(t){const r=qxe(t,t.triggerReason==="invoked");if(!r)return ae;if(!gy(r)){const i=CJ[r.convertTo];return[{name:Gce,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?KA(CJ).map(i=>({name:Gce,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):ae},getEditsForAction:function(t,r){C.assert(yt(KA(CJ),s=>s.name===r),"Unexpected action name");const i=qxe(t);return C.assert(i&&!gy(i),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(t,s=>iXe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}});function qxe(e,t=!0){const{file:r}=e,i=ux(e),o=Fi(r,i.start),s=t?Dn(o,Rp(vl,o_)):_O(o,r,i);if(s===void 0||!(vl(s)||o_(s)))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=ZS(s,s.parent,r);if(u&&l>u.getStart())return;const{importClause:d}=s;return d?d.namedBindings?d.namedBindings.kind===275?{convertTo:0,import:d.namedBindings}:Jxe(e.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:Ho(f.Could_not_find_namespace_import_or_named_imports)}:{error:Ho(f.Could_not_find_import_clause)}}function Jxe(e,t){return CI(e.getCompilerOptions())&&sXe(t.parent.moduleSpecifier,e.getTypeChecker())}function iXe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?oXe(e,o,r,i.import,CI(t.getCompilerOptions())):Xxe(e,t,r,i.import,i.convertTo===1)}function oXe(e,t,r,i,o){let s=!1;const l=[],u=new Map;Ys.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!L2(y.parent))s=!0;else{const E=Kxe(y.parent).text;t.resolveName(E,y,-1,!0)&&u.set(E,!0),C.assert(aXe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});const d=new Map;for(const y of l){const E=Kxe(y).text;let A=d.get(E);A===void 0&&d.set(E,A=u.has(E)?F1(E,e):E),r.replaceNode(e,y,L.createIdentifier(A))}const g=[];d.forEach((y,E)=>{g.push(L.createImportSpecifier(!1,y===E?void 0:L.createIdentifier(E),L.createIdentifier(y)))});const h=i.parent.parent;if(s&&!o&&vl(h))r.insertNodeAfter(e,h,Yxe(h,void 0,g));else{const y=s?L.createIdentifier(i.name.text):void 0;r.replaceNode(e,i.parent,$xe(y,g))}}function Kxe(e){return qr(e)?e.name:e.right}function aXe(e){return qr(e)?e.expression:e.left}function Xxe(e,t,r,i,o=Jxe(t,i.parent)){const s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,d=new Set;i.elements.forEach(R=>{const N=s.getSymbolAtLocation(R.name);N&&d.add(N)});const g=u&&ka(u)?EO(u.text,99):"module";function h(R){return!!Ys.Core.eachSymbolReferenceInFile(R.name,s,e,N=>{const P=s.resolveName(g,N,-1,!0);return P?d.has(P)?iu(N.parent):!0:!1})}const E=i.elements.some(h)?F1(g,e):g,A=new Set;for(const R of i.elements){const N=R.propertyName||R.name;Ys.Core.eachSymbolReferenceInFile(R.name,s,e,P=>{const k=N.kind===11?L.createElementAccessExpression(L.createIdentifier(E),L.cloneNode(N)):L.createPropertyAccessExpression(L.createIdentifier(E),L.cloneNode(N));Ud(P.parent)?r.replaceNode(e,P.parent,L.createPropertyAssignment(P.text,k)):iu(P.parent)?A.add(R):r.replaceNode(e,P,k)})}if(r.replaceNode(e,i,o?L.createIdentifier(E):L.createNamespaceImport(L.createIdentifier(E))),A.size&&vl(l)){const R=Co(A.values(),N=>L.createImportSpecifier(N.isTypeOnly,N.propertyName&&L.cloneNode(N.propertyName),L.cloneNode(N.name)));r.insertNodeAfter(e,i.parent.parent,Yxe(l,void 0,R))}}function sXe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function Yxe(e,t,r){return L.createImportDeclaration(void 0,$xe(t,r),e.moduleSpecifier,void 0)}function $xe(e,t){return L.createImportClause(void 0,e,t&&t.length?L.createNamedImports(t):void 0)}var Vce="Extract type",NJ={name:"Extract to type alias",description:Ho(f.Extract_to_type_alias),kind:"refactor.extract.type"},MJ={name:"Extract to interface",description:Ho(f.Extract_to_interface),kind:"refactor.extract.interface"},PJ={name:"Extract to typedef",description:Ho(f.Extract_to_typedef),kind:"refactor.extract.typedef"};Dg(Vce,{kinds:[NJ.kind,MJ.kind,PJ.kind],getAvailableActions:function(t){const{info:r,affectedTextRange:i}=Qxe(t,t.triggerReason==="invoked");return r?gy(r)?t.preferences.provideRefactorNotApplicableReason?[{name:Vce,description:Ho(f.Extract_type),actions:[{...PJ,notApplicableReason:r.error},{...NJ,notApplicableReason:r.error},{...MJ,notApplicableReason:r.error}]}]:ae:[{name:Vce,description:Ho(f.Extract_type),actions:r.isJS?[PJ]:Bn([NJ],r.typeElements&&MJ)}].map(s=>({...s,actions:s.actions.map(l=>({...l,range:i?{start:{line:ca(t.file,i.pos).line,offset:ca(t.file,i.pos).character},end:{line:ca(t.file,i.end).line,offset:ca(t.file,i.end).character}}:void 0}))})):ae},getEditsForAction:function(t,r){const{file:i}=t,{info:o}=Qxe(t);C.assert(o&&!gy(o),"Expected to find a range to extract");const s=F1("NewType",i),l=Rr.ChangeTracker.with(t,g=>{switch(r){case NJ.name:return C.assert(!o.isJS,"Invalid actionName/JS combo"),dXe(g,i,s,o);case PJ.name:return C.assert(o.isJS,"Invalid actionName/JS combo"),pXe(g,t,i,s,o);case MJ.name:return C.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),uXe(g,i,s,o);default:C.fail("Unexpected action name")}}),u=i.fileName,d=yO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:d}}});function Qxe(e,t=!0){const{file:r,startPosition:i}=e,o=Mu(r),s=s7(ux(e)),l=s.pos===s.end&&t,u=lXe(r,i,s,l);if(!u||!Ri(u))return{info:{error:Ho(f.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=e.program.getTypeChecker(),g=fXe(u,o);if(g===void 0)return{info:{error:Ho(f.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const h=mXe(u,g);if(!Ri(h))return{info:{error:Ho(f.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const y=[];(cv(h.parent)||UI(h.parent))&&s.end>u.end&&Xr(y,h.parent.types.filter(P=>Q3(P,r,s.pos,s.end)));const E=y.length>1?y:h,{typeParameters:A,affectedTextRange:R}=cXe(d,E,g,r);if(!A)return{info:{error:Ho(f.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const N=LJ(d,E);return{info:{isJS:o,selection:E,enclosingNode:g,typeParameters:A,typeElements:N},affectedTextRange:R}}function lXe(e,t,r,i){const o=[()=>Fi(e,t),()=>ZD(e,t,()=>!0)];for(const s of o){const l=s(),u=Q3(l,e,r.pos,r.end),d=Dn(l,g=>g.parent&&Ri(g)&&!rE(r,g.parent,e)&&(i||u));if(d)return d}}function LJ(e,t){if(t){if(Mo(t)){const r=[];for(const i of t){const o=LJ(e,i);if(!o)return;Xr(r,o)}return r}if(UI(t)){const r=[],i=new Set;for(const o of t.types){const s=LJ(e,o);if(!s||!s.every(l=>l.name&&gm(i,mO(l.name))))return;Xr(r,s)}return r}else{if(g1(t))return LJ(e,t.type);if(ku(t))return t.members}}}function rE(e,t,r){return cO(e,La(r.text,t.pos),t.end)}function cXe(e,t,r,i){const o=[],s=XA(t),l={pos:s[0].getStart(i),end:s[s.length-1].end};for(const d of s)if(u(d))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:o,affectedTextRange:l};function u(d){if(Wp(d)){if(He(d.typeName)){const g=d.typeName,h=e.resolveName(g.text,g,262144,!0);for(const y of h?.declarations||ae)if(sl(y)&&y.getSourceFile()===i){if(y.name.escapedText===g.escapedText&&rE(y,l,i))return!0;if(rE(r,y,i)&&!rE(l,y,i)){kf(o,y);break}}}}else if(_1(d)){const g=Dn(d,h=>FS(h)&&rE(h.extendsType,d,i));if(!g||!rE(l,g,i))return!0}else if(VI(d)||zM(d)){const g=Dn(d.parent,Yo);if(g&&g.type&&rE(g.type,d,i)&&!rE(l,g,i))return!0}else if(WS(d)){if(He(d.exprName)){const g=e.resolveName(d.exprName.text,d.exprName,111551,!1);if(g?.valueDeclaration&&rE(r,g.valueDeclaration,i)&&!rE(l,g.valueDeclaration,i))return!0}else if(Tb(d.exprName.left)&&!rE(l,d.parent,i))return!0}return i&&jI(d)&&ca(i,d.pos).line===ca(i,d.end).line&&Cr(d,1),Jo(d,u)}}function dXe(e,t,r,i){const{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:d}=jce(i),g=L.createTypeAliasDeclaration(void 0,r,s.map(h=>L.updateTypeParameterDeclaration(h,h.modifiers,h.name,h.constraint,void 0)),d);e.insertNodeBefore(t,o,ZV(g),!0),e.replaceNodeRange(t,l,u,L.createTypeReferenceNode(r,s.map(h=>L.createTypeReferenceNode(h.name,void 0))),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.ExcludeWhitespace})}function uXe(e,t,r,i){var o;const{enclosingNode:s,typeParameters:l,typeElements:u}=i,d=L.createInterfaceDeclaration(void 0,r,l,void 0,u);vt(d,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,ZV(d),!0);const{firstTypeNode:g,lastTypeNode:h}=jce(i);e.replaceNodeRange(t,g,h,L.createTypeReferenceNode(r,l.map(y=>L.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.ExcludeWhitespace})}function pXe(e,t,r,i,o){var s;XA(o.selection).forEach(R=>{Cr(R,7168)});const{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:d,lastTypeNode:g,newTypeNode:h}=jce(o),y=L.createJSDocTypedefTag(L.createIdentifier("typedef"),L.createJSDocTypeExpression(h),L.createIdentifier(i)),E=[];Ye(u,R=>{const N=OR(R),P=L.createTypeParameterDeclaration(void 0,R.name),k=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&ma(N,e0),[P]);E.push(k)});const A=L.createJSDocComment(void 0,L.createNodeArray(so(E,[y])));if(mh(l)){const R=l.getStart(r),N=_y(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),A,{suffix:N+N+r.text.slice(h7(r.text,R-1),R)})}else e.insertNodeBefore(r,l,A,!0);e.replaceNodeRange(r,d,g,L.createTypeReferenceNode(i,u.map(R=>L.createTypeReferenceNode(R.name,void 0))))}function jce(e){return Mo(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:cv(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function fXe(e,t){return Dn(e,Vi)||(t?Dn(e,mh):void 0)}function mXe(e,t){return Dn(e,r=>r===t?"quit":!!(cv(r.parent)||UI(r.parent)))??e}var kJ="Move to file",Uce=Ho(f.Move_to_file),Hce={name:"Move to file",description:Uce,kind:"refactor.move.file"};Dg(kJ,{kinds:[Hce.kind],getAvailableActions:function(t,r){const i=t.file,o=CO(t);if(!r)return ae;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){const s=Dn(Fi(i,t.startPosition),px),l=Dn(Fi(i,t.endPosition),px);if(s&&!Yi(s)&&l&&!Yi(l))return ae}if(t.preferences.allowTextChangesInNewFiles&&o){const s={start:{line:ca(i,o.all[0].getStart(i)).line,offset:ca(i,o.all[0].getStart(i)).character},end:{line:ca(i,Ba(o.all).end).line,offset:ca(i,Ba(o.all).end).character}};return[{name:kJ,description:Uce,actions:[{...Hce,range:s}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:kJ,description:Uce,actions:[{...Hce,notApplicableReason:Ho(f.Selection_is_not_a_valid_statement_or_statements)}]}]:ae},getEditsForAction:function(t,r,i){C.assert(r===kJ,"Wrong refactor invoked");const o=C.checkDefined(CO(t)),{host:s,program:l}=t;C.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return Tg(u)||u1(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?Zxe(Ho(f.Cannot_move_statements_to_the_selected_file)):{edits:Rr.ChangeTracker.with(t,g=>hXe(t,t.file,i.targetFile,t.program,o,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:Zxe(Ho(f.Cannot_move_to_file_selected_file_is_invalid))}});function Zxe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function hXe(e,t,r,i,o,s,l,u){const d=i.getTypeChecker(),g=!l.fileExists(r),h=g?C7(r,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,i,l):C.checkDefined(i.getSourceFile(r)),y=lu.createImportAdder(t,e.program,e.preferences,e.host),E=lu.createImportAdder(h,e.program,e.preferences,e.host);qce(t,h,W7(t,o.all,d,g?void 0:nde(h,o.all,d)),s,o,i,l,u,E,y),g&&Jce(i,s,t.fileName,r,ay(l))}function qce(e,t,r,i,o,s,l,u,d,g){const h=s.getTypeChecker(),y=zB(e.statements,Uh),E=!sJ(t.fileName,s,l,!!e.commonJsModuleIndicator),A=Gp(e,u);Xce(r.oldFileImportsFromTargetFile,t.fileName,g,s),gXe(e,o.all,r.unusedImportsFromOldFile,g),g.writeFixes(i,A),_Xe(e,o.ranges,i),yXe(i,s,l,e,r.movedSymbols,t.fileName,A),Kce(e,r.targetFileImportsFromOldFile,i,E),ide(e,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,h,s,d),!_g(t)&&y.length&&i.insertStatementsInNewFile(t.fileName,y,e),d.writeFixes(i,A);const R=AXe(e,o.all,Co(r.oldFileImportsFromTargetFile.keys()),E);_g(t)&&t.statements.length>0?BXe(i,s,R,t,o):_g(t)?i.insertNodesAtEndOfFile(t,R,!1):i.insertStatementsInNewFile(t.fileName,d.hasFixes()?[4,...R]:R,e)}function Jce(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const l=ya(Qr(r,"..",i)),u=NR(s.fileName,l,o),d=s.statements[0]&&ni(s.statements[0].expression,Wa),g=d&&hn(d.properties,h=>Nc(h)&&ka(h.name)&&h.name.text==="files");g&&Cd(g.initializer)&&t.insertNodeInListAfter(s,Ba(g.initializer.elements),L.createStringLiteral(u),g.initializer.elements)}function _Xe(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function gXe(e,t,r,i){for(const o of e.statements)jn(t,o)||tRe(o,s=>{nRe(s,l=>{r.has(l.symbol)&&i.removeExistingImport(l)})})}function Kce(e,t,r,i){const o=eC();t.forEach((s,l)=>{if(l.declarations)for(const u of l.declarations){if(!tde(u))continue;const d=PXe(u);if(!d)continue;const g=aRe(u);o(g)&&LXe(e,g,d,r,i)}})}function yXe(e,t,r,i,o,s,l){const u=t.getTypeChecker();for(const d of t.getSourceFiles())if(d!==i)for(const g of d.statements)tRe(g,h=>{if(u.getSymbolAtLocation(SXe(h))!==i.symbol)return;const y=P=>{const k=Ha(P.parent)?f7(u,P.parent):xd(u.getSymbolAtLocation(P),u);return!!k&&o.has(k)};IXe(d,h,e,y);const E=ib(ci(To(i.fileName,t.getCurrentDirectory())),s);if(IR(!t.useCaseSensitiveFileNames())(E,d.fileName)===0)return;const A=hy.getModuleSpecifier(t.getCompilerOptions(),d,d.fileName,E,u0(t,r)),R=CXe(h,RP(A,l),y);R&&e.insertNodeAfter(d,g,R);const N=vXe(h);N&&bXe(e,d,u,o,A,N,h,l)})}function vXe(e){switch(e.kind){case 273:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===275?e.importClause.namedBindings.name:void 0;case 272:return e.name;case 261:return ni(e.name,He);default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function bXe(e,t,r,i,o,s,l,u){const d=EO(o,99);let g=!1;const h=[];if(Ys.Core.eachSymbolReferenceInFile(s,r,t,y=>{qr(y.parent)&&(g=g||!!r.resolveName(d,y,-1,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&h.push(y))}),h.length){const y=g?F1(d,t):d;for(const E of h)e.replaceNode(t,E,L.createIdentifier(y));e.insertNodeAfter(t,l,TXe(l,d,o,u))}}function TXe(e,t,r,i){const o=L.createIdentifier(t),s=RP(r,i);switch(e.kind){case 273:return L.createImportDeclaration(void 0,L.createImportClause(void 0,void 0,L.createNamespaceImport(o)),s,void 0);case 272:return L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(s));case 261:return L.createVariableDeclaration(o,void 0,void 0,eRe(s));default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function eRe(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function SXe(e){return e.kind===273?e.moduleSpecifier:e.kind===272?e.moduleReference.expression:e.initializer.arguments[0]}function tRe(e,t){if(vl(e))ka(e.moduleSpecifier)&&t(e);else if(zc(e))uy(e.moduleReference)&&ds(e.moduleReference.expression)&&t(e);else if(sc(e))for(const r of e.declarationList.declarations)r.initializer&&Zu(r.initializer,!0)&&t(r)}function nRe(e,t){var r,i,o,s,l;if(e.kind===273){if((r=e.importClause)!=null&&r.name&&t(e.importClause),((o=(i=e.importClause)==null?void 0:i.namedBindings)==null?void 0:o.kind)===275&&t(e.importClause.namedBindings),((l=(s=e.importClause)==null?void 0:s.namedBindings)==null?void 0:l.kind)===276)for(const u of e.importClause.namedBindings.elements)t(u)}else if(e.kind===272)t(e);else if(e.kind===261){if(e.name.kind===80)t(e);else if(e.name.kind===207)for(const u of e.name.elements)He(u.name)&&t(u)}}function Xce(e,t,r,i){for(const[o,s]of e){const l=A7(o,Ga(i.getCompilerOptions())),u=o.name==="default"&&o.parent?1:0;r.addImportForNonExistentExport(l,t,u,o.flags,s)}}function EXe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function AXe(e,t,r,i){return Ki(t,o=>{if(iRe(o)&&!rRe(e,o,i)&&ede(o,s=>{var l;return r.includes(C.checkDefined((l=ni(s,ah))==null?void 0:l.symbol))})){const s=xXe(_s(o),i);if(s)return s}return _s(o)})}function rRe(e,t,r,i){var o;return r?!od(t)&&di(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Yce(t).some(s=>e.symbol.exports.has(Nl(s)))}function IXe(e,t,r,i){if(t.kind===273&&t.importClause){const{name:o,namedBindings:s}=t.importClause;if((!o||i(o))&&(!s||s.kind===276&&s.elements.length!==0&&s.elements.every(l=>i(l.name))))return r.delete(e,t)}nRe(t,o=>{o.name&&He(o.name)&&i(o.name)&&r.delete(e,o)})}function iRe(e){return C.assert(Yi(e.parent),"Node parent should be a SourceFile"),cRe(e)||sc(e)}function xXe(e,t){return t?[RXe(e)]:DXe(e)}function RXe(e){const t=Tm(e)?so([L.createModifier(95)],fS(e)):void 0;switch(e.kind){case 263:return L.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 264:const r=HS(e)?ab(e):void 0;return L.updateClassDeclaration(e,so(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 244:return L.updateVariableStatement(e,t,e.declarationList);case 268:return L.updateModuleDeclaration(e,t,e.name,e.body);case 267:return L.updateEnumDeclaration(e,t,e.name,e.members);case 266:return L.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 265:return L.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 272:return L.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 245:return C.fail();default:return C.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function DXe(e){return[e,...Yce(e).map(oRe)]}function oRe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function Yce(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return Ui(e.declarationList.declarations,t=>He(t.name)?t.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return ae;case 245:return C.fail("Can't export an ExpressionStatement");default:return C.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function CXe(e,t,r){switch(e.kind){case 273:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&NXe(i.namedBindings,r);return o||s?L.createImportDeclaration(void 0,L.createImportClause(i.phaseModifier,o,s),_s(t),void 0):void 0}case 272:return r(e.name)?e:void 0;case 261:{const i=MXe(e.name,r);return i?EXe(i,e.type,eRe(t),e.parent.flags):void 0}default:return C.assertNever(e,`Unexpected import kind ${e.kind}`)}}function NXe(e,t){if(e.kind===275)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?L.createNamedImports(r):void 0}}function MXe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 208:return e;case 207:{const r=e.elements.filter(i=>i.propertyName||!He(i.name)||t(i.name));return r.length?L.createObjectBindingPattern(r):void 0}}}function PXe(e){return od(e)?ni(e.expression.left.name,He):ni(e.name,He)}function aRe(e){switch(e.kind){case 261:return e.parent.parent;case 209:return aRe(ma(e.parent.parent,t=>yi(t)||Ha(t)));default:return e}}function LXe(e,t,r,i,o){if(!rRe(e,t,o,r))if(o)od(t)||i.insertExportModifier(e,t);else{const s=Yce(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(oRe))}}function $ce(e,t,r,i){const o=t.getTypeChecker();if(i){const s=W7(e,i.all,o),l=ci(e.fileName),u=TM(e.fileName);return Qr(l,WXe(FXe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function kXe(e){const{file:t}=e,r=s7(ux(e)),{statements:i}=t;let o=ho(i,g=>g.end>r.pos);if(o===-1)return;const s=i[o],l=dRe(t,s);l&&(o=l.start);let u=ho(i,g=>g.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;const d=dRe(t,i[u]);return d&&(u=d.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function CO(e){const t=kXe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return TB(o,wXe,(l,u)=>{for(let d=l;d!!(t.transformFlags&2))}function wXe(e){return!OXe(e)&&!Uh(e)}function OXe(e){switch(e.kind){case 273:return!0;case 272:return!di(e,32);case 244:return e.declarationList.declarations.every(t=>!!t.initializer&&Zu(t.initializer,!0));default:return!1}}function W7(e,t,r,i=new Set,o){var s;const l=new Set,u=new Map,d=new Map,g=E(Qce(t));g&&u.set(g,[!1,ni((s=g.declarations)==null?void 0:s[0],A=>Su(A)||Vm(A)||Ig(A)||zc(A)||Ha(A)||yi(A))]);for(const A of t)ede(A,R=>{l.add(C.checkDefined(od(R)?r.getSymbolAtLocation(R.expression.left):R.symbol,"Need a symbol here"))});const h=new Set;for(const A of t)Zce(A,r,o,(R,N)=>{if(!yt(R.declarations))return;if(i.has(xd(R,r))){h.add(R);return}const P=hn(R.declarations,wJ);if(P){const k=u.get(R);u.set(R,[(k===void 0||k)&&N,ni(P,W=>Su(W)||Vm(W)||Ig(W)||zc(W)||Ha(W)||yi(W))])}else!l.has(R)&&Vn(R.declarations,k=>tde(k)&&zXe(k)===e)&&d.set(R,N)});for(const A of u.keys())h.add(A);const y=new Map;for(const A of e.statements)jn(t,A)||(g&&A.transformFlags&2&&h.delete(g),Zce(A,r,o,(R,N)=>{l.has(R)&&y.set(R,N),h.delete(R)}));return{movedSymbols:l,targetFileImportsFromOldFile:d,oldFileImportsFromTargetFile:y,oldImportsNeededByTargetFile:u,unusedImportsFromOldFile:h};function E(A){if(A===void 0)return;const R=r.getJsxNamespace(A),N=r.resolveName(R,A,1920,!0);return N&&yt(N.declarations,wJ)?N:void 0}}function WXe(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 FXe(e,t){return fg(e,Wq)||fg(t,Wq)||"newFile"}function Zce(e,t,r,i){e.forEachChild(function o(s){if(He(s)&&!L_(s)){if(r&&!tp(r,s))return;const l=t.getSymbolAtLocation(s);l&&i(l,UT(s))}else s.forEachChild(o)})}function ede(e,t){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return t(e);case 244:return Hn(e.declarationList.declarations,r=>lRe(r.name,t));case 245:{const{expression:r}=e;return Nr(r)&&ac(r)===1?t(e):void 0}}}function wJ(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return sRe(e);case 209:return yi(e.parent.parent)&&sRe(e.parent.parent);default:return!1}}function sRe(e){return Yi(e.parent.parent.parent)&&!!e.initializer&&Zu(e.initializer,!0)}function tde(e){return cRe(e)&&Yi(e.parent)||yi(e)&&Yi(e.parent.parent.parent)}function zXe(e){return yi(e)?e.parent.parent.parent:e.parent}function lRe(e,t){switch(e.kind){case 80:return t(ma(e.parent,r=>yi(r)||Ha(r)));case 208:case 207:return Hn(e.elements,r=>Jc(r)?void 0:lRe(r.name,t));default:return C.assertNever(e,`Unexpected name kind ${e.kind}`)}}function cRe(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function BXe(e,t,r,i,o){var s;const l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){const g=t.getTypeChecker(),h=new Map;for(const y of o.all)iRe(y)&&di(y,32)&&ede(y,E=>{var A;const R=ah(E)?(A=u.get(E.symbol.escapedName))==null?void 0:A.declarations:void 0,N=Hn(R,P=>fc(P)?P:iu(P)?ni(P.parent.parent,fc):void 0);N&&N.moduleSpecifier&&h.set(N,(h.get(N)||new Set).add(E))});for(const[y,E]of Co(h))if(y.exportClause&&Jf(y.exportClause)&&et(y.exportClause.elements)){const A=y.exportClause.elements,R=Un(A,N=>hn(xd(N.symbol,g).declarations,P=>tde(P)&&E.has(P))===void 0);if(et(R)===0){e.deleteNode(i,y),l.add(y);continue}et(R)fc(g)&&!!g.moduleSpecifier&&!l.has(g));d?e.insertNodesBefore(i,d,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function dRe(e,t){if(Ms(t)){const r=t.symbol.declarations;if(r===void 0||et(r)<=1||!jn(r,t))return;const i=r[0],o=r[et(r)-1],s=Ui(r,d=>Wn(d)===e&&Vi(d)?d:void 0),l=ho(e.statements,d=>d.end>=o.end),u=ho(e.statements,d=>d.end>=i.end);return{toMove:s,start:u,end:l}}}function nde(e,t,r){const i=new Set;for(const o of e.imports){const s=$N(o);if(vl(s)&&s.importClause&&s.importClause.namedBindings&&n_(s.importClause.namedBindings))for(const l of s.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(xd(u,r))}if(nk(s.parent)&&ff(s.parent.name))for(const l of s.parent.name.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(xd(u,r))}}for(const o of t)Zce(o,r,void 0,s=>{const l=xd(s,r);l.valueDeclaration&&Wn(l.valueDeclaration).path===e.path&&i.add(l)});return i}function gy(e){return e.error!==void 0}function m0(e,t){return t?e.substr(0,t.length)===t:!0}function rde(e,t,r,i){return qr(e)&&!ui(t)&&!r.resolveName(e.name.text,e,111551,!1)&&!eo(e.name)&&!HE(e.name)?e.name.text:F1(ui(t)?"newProperty":"newLocal",i)}function ide(e,t,r,i,o,s){t.forEach(([l,u],d)=>{var g;const h=xd(d,i);i.isUnknownSymbol(h)?s.addVerbatimImport(C.checkDefined(u??Dn((g=d.declarations)==null?void 0:g[0],bte))):h.parent===void 0?(C.assert(u!==void 0,"expected module symbol to have a declaration"),s.addImportForModuleSymbol(d,l,u)):s.addImportFromExportedSymbol(h,l,u)}),Xce(r,e.fileName,s,o)}var F7="Inline variable",ode=Ho(f.Inline_variable),ade={name:F7,description:ode,kind:"refactor.inline.variable"};Dg(F7,{kinds:[ade.kind],getAvailableActions(e){const{file:t,program:r,preferences:i,startPosition:o,triggerReason:s}=e,l=uRe(t,o,s==="invoked",r);return l?mx.isRefactorErrorInfo(l)?i.provideRefactorNotApplicableReason?[{name:F7,description:ode,actions:[{...ade,notApplicableReason:l.error}]}]:ae:[{name:F7,description:ode,actions:[ade]}]:ae},getEditsForAction(e,t){C.assert(t===F7,"Unexpected refactor invoked");const{file:r,program:i,startPosition:o}=e,s=uRe(r,o,!0,i);if(!s||mx.isRefactorErrorInfo(s))return;const{references:l,declaration:u,replacement:d}=s;return{edits:Rr.ChangeTracker.with(e,h=>{for(const y of l){const E=ka(d)&&He(y)&&zm(y.parent);E&&ED(E)&&!KT(E.parent.parent)?VXe(h,r,E,d):h.replaceNode(r,y,GXe(y,d))}h.delete(r,u)})}}});function uRe(e,t,r,i){var o,s;const l=i.getTypeChecker(),u=ip(e,t),d=u.parent;if(He(u)){if(Pk(d)&&jN(d)&&He(d.name)){if(((o=l.getMergedSymbol(d.symbol).declarations)==null?void 0:o.length)!==1)return{error:Ho(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(pRe(d))return;const g=fRe(d,l,e);return g&&{references:g,declaration:d,replacement:d.initializer}}if(r){let g=l.resolveName(u.text,u,111551,!1);if(g=g&&l.getMergedSymbol(g),((s=g?.declarations)==null?void 0:s.length)!==1)return{error:Ho(f.Variables_with_multiple_declarations_cannot_be_inlined)};const h=g.declarations[0];if(!Pk(h)||!jN(h)||!He(h.name)||pRe(h))return;const y=fRe(h,l,e);return y&&{references:y,declaration:h,replacement:h.initializer}}return{error:Ho(f.Could_not_find_variable_to_inline)}}}function pRe(e){const t=ma(e.parent.parent,sc);return yt(t.modifiers,zI)}function fRe(e,t,r){const i=[],o=Ys.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Ys.isWriteAccessForReference(s)&&!Ud(s.parent)||iu(s.parent)||ll(s.parent)||WS(s.parent)||b2(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function GXe(e,t){t=_s(t);const{parent:r}=e;return St(r)&&(oM(t)jXe(t.file,t.program,i,s,t.host,t,t.preferences)),renameFilename:void 0,renameLocation:void 0}}});function jXe(e,t,r,i,o,s,l){const u=t.getTypeChecker(),d=W7(e,r.all,u),g=$ce(e,t,o,r),h=C7(g,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,o),y=lu.createImportAdder(e,s.program,s.preferences,s.host),E=lu.createImportAdder(h,s.program,s.preferences,s.host);qce(e,h,d,i,r,t,o,l,E,y),Jce(t,i,e.fileName,g,ay(o))}var UXe={},cde="Convert overload list to single signature",mRe=Ho(f.Convert_overload_list_to_single_signature),hRe={name:cde,description:mRe,kind:"refactor.rewrite.function.overloadList"};Dg(cde,{kinds:[hRe.kind],getEditsForAction:qXe,getAvailableActions:HXe});function HXe(e){const{file:t,startPosition:r,program:i}=e;return gRe(t,r,i)?[{name:cde,description:mRe,actions:[hRe]}]:ae}function qXe(e){const{file:t,startPosition:r,program:i}=e,o=gRe(t,r,i);if(!o)return;const s=i.getTypeChecker(),l=o[o.length-1];let u=l;switch(l.kind){case 174:{u=L.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,g(o),l.type);break}case 175:{u=L.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,g(o),l.type,l.body);break}case 180:{u=L.updateCallSignature(l,l.typeParameters,g(o),l.type);break}case 177:{u=L.updateConstructorDeclaration(l,l.modifiers,g(o),l.body);break}case 181:{u=L.updateConstructSignature(l,l.typeParameters,g(o),l.type);break}case 263:{u=L.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,g(o),l.type,l.body);break}default:return C.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,E=>{E.replaceNodeRange(t,o[0],o[o.length-1],u)})};function g(E){const A=E[E.length-1];return Ms(A)&&A.body&&(E=E.slice(0,E.length-1)),L.createNodeArray([L.createParameterDeclaration(void 0,L.createToken(26),"args",void 0,L.createUnionTypeNode(Vt(E,h)))])}function h(E){const A=Vt(E.parameters,y);return Cr(L.createTupleTypeNode(A),yt(A,R=>!!et(_D(R)))?0:1)}function y(E){C.assert(He(E.name));const A=vt(L.createNamedTupleMember(E.dotDotDotToken,E.name,E.questionToken,E.type||L.createKeywordTypeNode(133)),E),R=E.symbol&&E.symbol.getDocumentationComment(s);if(R){const N=PO(R);N.length&&qT(A,[{text:`* ${N.split(` `).map(P=>` * ${P}`).join(` `)} `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return A}}function _Re(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function gRe(e,t,r){const i=Fi(e,t),o=Dn(i,_Re);if(!o||Ms(o)&&o.body&&QD(o.body,t))return;const s=r.getTypeChecker(),l=o.symbol;if(!l)return;const u=l.declarations;if(et(u)<=1||!Vn(u,E=>Wn(E)===e)||!_Re(u[0]))return;const d=u[0].kind;if(!Vn(u,E=>E.kind===d))return;const g=u;if(yt(g,E=>!!E.typeParameters||yt(E.parameters,A=>!!A.modifiers||!He(A.name))))return;const h=Ui(g,E=>s.getSignatureFromDeclaration(E));if(et(h)!==et(u))return;const y=s.getReturnTypeOfSignature(h[0]);if(Vn(h,E=>s.getReturnTypeOfSignature(E)===y))return g}var dde="Add or remove braces in an arrow function",yRe=Ho(f.Add_or_remove_braces_in_an_arrow_function),OJ={name:"Add braces to arrow function",description:Ho(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},B7={name:"Remove braces from arrow function",description:Ho(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};Dg(dde,{kinds:[B7.kind],getEditsForAction:KXe,getAvailableActions:JXe});function JXe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=vRe(t,r,i==="invoked");return o?gy(o)?e.preferences.provideRefactorNotApplicableReason?[{name:dde,description:yRe,actions:[{...OJ,notApplicableReason:o.error},{...B7,notApplicableReason:o.error}]}]:ae:[{name:dde,description:yRe,actions:[o.addBraces?OJ:B7]}]:ae}function KXe(e,t){const{file:r,startPosition:i}=e,o=vRe(r,i);C.assert(o&&!gy(o),"Expected applicable refactor info");const{expression:s,returnStatement:l,func:u}=o;let d;if(t===OJ.name){const h=L.createReturnStatement(s);d=L.createBlock([h],!0),iC(s,h,r,3,!0)}else if(t===B7.name&&l){const h=s||L.createVoidZero();d=_7(h)?L.createParenthesizedExpression(h):h,vO(l,d,r,3,!1),iC(l,d,r,3,!1),MP(l,d,r,3,!1)}else C.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,h=>{h.replaceNode(r,u.body,d)})}}function vRe(e,t,r=!0,i){const o=Fi(e,t),s=df(o);if(!s)return{error:Ho(f.Could_not_find_a_containing_arrow_function)};if(!Xs(s))return{error:Ho(f.Containing_function_is_not_an_arrow_function)};if(!(!tp(s,o)||tp(s.body,o)&&!r)){if(m0(OJ.kind,i)&&St(s.body))return{func:s,addBraces:!0,expression:s.body};if(m0(B7.kind,i)&&ea(s.body)&&s.body.statements.length===1){const l=$a(s.body.statements);if(tf(l)){const u=l.expression&&Wa(dD(l.expression,!1))?L.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var XXe={},bRe="Convert arrow function or function expression",YXe=Ho(f.Convert_arrow_function_or_function_expression),G7={name:"Convert to anonymous function",description:Ho(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},V7={name:"Convert to named function",description:Ho(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},j7={name:"Convert to arrow function",description:Ho(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};Dg(bRe,{kinds:[G7.kind,V7.kind,j7.kind],getEditsForAction:QXe,getAvailableActions:$Xe});function $Xe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=SRe(t,r,i);if(!s)return ae;const{selectedVariableDeclaration:l,func:u}=s,d=[],g=[];if(m0(V7.kind,o)){const h=l||Xs(u)&&yi(u.parent)?void 0:Ho(f.Could_not_convert_to_named_function);h?g.push({...V7,notApplicableReason:h}):d.push(V7)}if(m0(G7.kind,o)){const h=!l&&Xs(u)?void 0:Ho(f.Could_not_convert_to_anonymous_function);h?g.push({...G7,notApplicableReason:h}):d.push(G7)}if(m0(j7.kind,o)){const h=Us(u)?void 0:Ho(f.Could_not_convert_to_arrow_function);h?g.push({...j7,notApplicableReason:h}):d.push(j7)}return[{name:bRe,description:YXe,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?g:d}]}function QXe(e,t){const{file:r,startPosition:i,program:o}=e,s=SRe(r,i,o);if(!s)return;const{func:l}=s,u=[];switch(t){case G7.name:u.push(...nYe(e,l));break;case V7.name:const d=tYe(l);if(!d)return;u.push(...rYe(e,l,d));break;case j7.name:if(!Us(l))return;u.push(...iYe(e,l));break;default:return C.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function TRe(e){let t=!1;return e.forEachChild(function r(i){if($D(i)){t=!0;return}!ui(i)&&!ec(i)&&!Us(i)&&Jo(i,r)}),t}function SRe(e,t,r){const i=Fi(e,t),o=r.getTypeChecker(),s=eYe(e,o,i.parent);if(s&&!TRe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const l=df(i);if(l&&(Us(l)||Xs(l))&&!tp(l.body,i)&&!TRe(l.body)&&!o.containsArgumentsReference(l))return Us(l)&&ARe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function ZXe(e){return yi(e)||_d(e)&&e.declarations.length===1}function eYe(e,t,r){if(!ZXe(r))return;const o=(yi(r)?r:$a(r.declarations)).initializer;if(o&&(Xs(o)||Us(o)&&!ARe(e,t,o)))return o}function ERe(e){if(St(e)){const t=L.createReturnStatement(e),r=e.getSourceFile();return vt(t,e),Op(t),vO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function tYe(e){const t=e.parent;if(!yi(t)||!jN(t))return;const r=t.parent,i=r.parent;if(!(!_d(r)||!sc(i)||!He(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function nYe(e,t){const{file:r}=e,i=ERe(t.body),o=L.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return Rr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function rYe(e,t,r){const{file:i}=e,o=ERe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:d}=r;qV(u);const g=MT(s)&32|Gd(t),h=L.createModifiersFromModifierFlags(g),y=L.createFunctionDeclaration(et(h)?h:void 0,t.asteriskToken,d,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?Rr.ChangeTracker.with(e,E=>E.replaceNode(i,u,y)):Rr.ChangeTracker.with(e,E=>{E.delete(i,s),E.insertNodeAfter(i,u,y)})}function iYe(e,t){const{file:r}=e,o=t.body.statements[0];let s;oYe(t.body,o)?(s=o.expression,Op(s),W1(o,s)):s=t.body;const l=L.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,L.createToken(39),s);return Rr.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function oYe(e,t){return e.statements.length===1&&tf(t)&&!!t.expression}function ARe(e,t,r){return!!r.name&&Ys.Core.isSymbolReferencedInFile(r.name,t,e)}var aYe={},WJ="Convert parameters to destructured object",sYe=1,IRe=Ho(f.Convert_parameters_to_destructured_object),xRe={name:WJ,description:IRe,kind:"refactor.rewrite.parameters.toDestructured"};Dg(WJ,{kinds:[xRe.kind],getEditsForAction:cYe,getAvailableActions:lYe});function lYe(e){const{file:t,startPosition:r}=e;return Mu(t)||!CRe(t,r,e.program.getTypeChecker())?ae:[{name:WJ,description:IRe,actions:[xRe]}]}function cYe(e,t){C.assert(t===WJ,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=CRe(r,i,o.getTypeChecker());if(!u||!s)return;const d=uYe(u,o,s);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,h=>dYe(r,o,l,h,u,d))}:{edits:[]}}function dYe(e,t,r,i,o,s){const l=s.signature,u=Vt(LRe(o,t,r),h=>_s(h));if(l){const h=Vt(LRe(l,t,r),y=>_s(y));g(l,h)}g(o,u);const d=dN(s.functionCalls,(h,y)=>js(h.pos,y.pos));for(const h of d)if(h.arguments&&h.arguments.length){const y=_s(TYe(o,h.arguments),!0);i.replaceNodeRange(Wn(h),$a(h.arguments),Ba(h.arguments),y,{leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include})}function g(h,y){i.replaceNodeRangeWithNodes(e,$a(h.parameters),Ba(h.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include})}}function uYe(e,t,r){const i=EYe(e),o=Pl(e)?SYe(e):[],s=lS([...i,...o],eb),l=t.getTypeChecker(),u=Ki(s,y=>Ys.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),d=g(u);return Vn(d.declarations,y=>jn(s,y))||(d.valid=!1),d;function g(y){const E={accessExpressions:[],typeUsages:[]},A={functionCalls:[],declarations:[],classReferences:E,valid:!0},R=Vt(i,h),N=Vt(o,h),P=Pl(e),k=Vt(i,W=>ude(W,l));for(const W of y){if(W.kind===Ys.EntryKind.Span){A.valid=!1;continue}if(jn(k,h(W.node))){if(hYe(W.node.parent)){A.signature=W.node.parent;continue}const G=DRe(W);if(G){A.functionCalls.push(G);continue}}const O=ude(W.node,l);if(O&&jn(k,O)){const G=pde(W);if(G){A.declarations.push(G);continue}}if(jn(R,h(W.node))||SP(W.node)){if(RRe(W))continue;const j=pde(W);if(j){A.declarations.push(j);continue}const J=DRe(W);if(J){A.functionCalls.push(J);continue}}if(P&&jn(N,h(W.node))){if(RRe(W))continue;const j=pde(W);if(j){A.declarations.push(j);continue}const J=pYe(W);if(J){E.accessExpressions.push(J);continue}if(Cc(e.parent)){const Z=fYe(W);if(Z){E.typeUsages.push(Z);continue}}}A.valid=!1}return A}function h(y){const E=l.getSymbolAtLocation(y);return E&&Kq(E,l)}}function ude(e,t){const r=LO(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Fl(o)&6))return o}}function RRe(e){const t=e.node;if(Su(t.parent)||Vm(t.parent)||zc(t.parent)||Ig(t.parent)||iu(t.parent)||ll(t.parent))return t}function pde(e){if(rd(e.node.parent))return e.node}function DRe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 214:case 215:const i=ni(r,Gh);if(i&&i.expression===t)return i;break;case 212:const o=ni(r,qr);if(o&&o.parent&&o.name===t){const l=ni(o.parent,Gh);if(l&&l.expression===o)return l}break;case 213:const s=ni(r,Ws);if(s&&s.parent&&s.argumentExpression===t){const l=ni(s.parent,Gh);if(l&&l.expression===s)return l}break}}}function pYe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 212:const i=ni(r,qr);if(i&&i.expression===t)return i;break;case 213:const o=ni(r,Ws);if(o&&o.expression===t)return o;break}}}function fYe(e){const t=e.node;if(w1(t)===2||p6(t.parent))return t}function CRe(e,t,r){const i=ZD(e,t),o=Wte(i);if(!mYe(i)&&o&&_Ye(o,r)&&tp(o,i)&&!(o.body&&tp(o.body,i)))return o}function mYe(e){const t=Dn(e,BR);if(t){const r=Dn(t,i=>!BR(i));return!!r&&Ms(r)}return!1}function hYe(e){return Gm(e)&&(gd(e.parent)||ku(e.parent))}function _Ye(e,t){var r;if(!gYe(e.parameters,t))return!1;switch(e.kind){case 263:return NRe(e)&&U7(e,t);case 175:if(Wa(e.parent)){const i=ude(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&U7(e,t)}return U7(e,t);case 177:return Cc(e.parent)?NRe(e.parent)&&U7(e,t):MRe(e.parent.parent)&&U7(e,t);case 219:case 220:return MRe(e.parent)}return!1}function U7(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function NRe(e){return e.name?!0:!!tC(e,90)}function gYe(e,t){return vYe(e)>=sYe&&Vn(e,r=>yYe(r,t))}function yYe(e,t){if(C_(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&He(e.name)}function MRe(e){return yi(e)&&qR(e)&&He(e.name)&&!e.type}function fde(e){return e.length>0&&$D(e[0].name)}function vYe(e){return fde(e)?e.length-1:e.length}function PRe(e){return fde(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function bYe(e,t){return He(t)&&zf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function TYe(e,t){const r=PRe(e.parameters),i=C_(Ba(r)),o=i?t.slice(0,r.length-1):t,s=Vt(o,(u,d)=>{const g=FJ(r[d]),h=bYe(g,u);return Op(h.name),Nc(h)&&Op(h.initializer),W1(u,h),h});if(i&&t.length>=r.length){const u=t.slice(r.length-1),d=L.createPropertyAssignment(FJ(Ba(r)),L.createArrayLiteralExpression(u));s.push(d)}return L.createObjectLiteralExpression(s,!1)}function LRe(e,t,r){const i=t.getTypeChecker(),o=PRe(e.parameters),s=Vt(o,h),l=L.createObjectBindingPattern(s),u=y(o);let d;Vn(o,R)&&(d=L.createObjectLiteralExpression());const g=L.createParameterDeclaration(void 0,void 0,l,void 0,u,d);if(fde(e.parameters)){const N=e.parameters[0],P=L.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return Op(P.name),W1(N.name,P.name),N.type&&(Op(P.type),W1(N.type,P.type)),L.createNodeArray([P,g])}return L.createNodeArray([g]);function h(N){const P=L.createBindingElement(void 0,void 0,FJ(N),C_(N)&&R(N)?L.createArrayLiteralExpression():N.initializer);return Op(P),N.initializer&&P.initializer&&W1(N.initializer,P.initializer),P}function y(N){const P=Vt(N,E);return Qh(L.createTypeLiteralNode(P),1)}function E(N){let P=N.type;!P&&(N.initializer||C_(N))&&(P=A(N));const k=L.createPropertySignature(void 0,FJ(N),R(N)?L.createToken(58):N.questionToken,P);return Op(k),W1(N.name,k.name),N.type&&k.type&&W1(N.type,k.type),k}function A(N){const P=i.getTypeAtLocation(N);return LP(P,N,t,r)}function R(N){if(C_(N)){const P=i.getTypeAtLocation(N);return!i.isTupleType(P)}return i.isOptionalParameter(N)}}function FJ(e){return zf(e.name)}function SYe(e){switch(e.parent.kind){case 264:const t=e.parent;return t.name?[t.name]:[C.checkDefined(tC(t,90),"Nameless class declaration should be a default export")];case 232:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function EYe(e){switch(e.kind){case 263:return e.name?[e.name]:[C.checkDefined(tC(e,90),"Nameless function declaration should be a default export")];case 175:return[e.name];case 177:const r=C.checkDefined(Es(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===232?[e.parent.parent.name,r]:[r];case 220:return[e.parent.name];case 219:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return C.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var AYe={},mde="Convert to template string",hde=Ho(f.Convert_to_template_string),_de={name:mde,description:hde,kind:"refactor.rewrite.string"};Dg(mde,{kinds:[_de.kind],getEditsForAction:xYe,getAvailableActions:IYe});function IYe(e){const{file:t,startPosition:r}=e,i=kRe(t,r),o=gde(i),s=ka(o),l={name:mde,description:hde,actions:[]};return s&&e.triggerReason!=="invoked"?ae:P_(o)&&(s||Nr(o)&&yde(o).isValidConcatenation)?(l.actions.push(_de),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({..._de,notApplicableReason:Ho(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):ae}function kRe(e,t){const r=Fi(e,t),i=gde(r);return!yde(i).isValidConcatenation&&wu(i.parent)&&Nr(i.parent.parent)?i.parent.parent:r}function xYe(e,t){const{file:r,startPosition:i}=e,o=kRe(r,i);switch(t){case hde:return{edits:RYe(e,o)};default:return C.fail("invalid action")}}function RYe(e,t){const r=gde(t),i=e.file,o=PYe(yde(r),i),s=ob(i.text,r.end);if(s){const l=s[s.length-1],u={pos:s[0].pos,end:l.end};return Rr.ChangeTracker.with(e,d=>{d.deleteRange(i,u),d.replaceNode(i,r,o)})}else return Rr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function DYe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function gde(e){return Dn(e.parent,r=>{switch(r.kind){case 212:case 213:return!1;case 229:case 227:return!(Nr(r.parent)&&DYe(r.parent));default:return"quit"}})||e}function yde(e){const t=l=>{if(!Nr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:ka(l)||h1(l)};const{nodes:u,operators:d,hasString:g,validOperators:h}=t(l.left);if(!(g||ka(l.right)||l4(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const y=l.operatorToken.kind===40,E=h&&y;return u.push(l.right),d.push(l.operatorToken),{nodes:u,operators:d,hasString:!0,validOperators:E}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}var CYe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){const s=i.shift();MP(e[s],o,t,3,!1),r(s,o)}};function MYe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function wRe(e){const t=FI(e)||tj(e)?-2:-1;return Al(e).slice(1,t)}function ORe(e,t){const r=[];let i="",o="";for(;e{WRe(O);const j=G===E.templateSpans.length-1,J=O.literal.text+(j?R:""),Z=wRe(O.literal)+(j?N:"");return L.createTemplateSpan(O.expression,k&&j?L.createTemplateTail(J,Z):L.createTemplateMiddle(J,Z))});g.push(...W)}else{const W=k?L.createTemplateTail(R,N):L.createTemplateMiddle(R,N);o(P,W),g.push(L.createTemplateSpan(E,W))}}return L.createTemplateExpression(h,g)}function WRe(e){const t=e.getSourceFile();MP(e,e.expression,t,3,!1),vO(e.expression,e.expression,t,3,!1)}function LYe(e){return wu(e)&&(WRe(e),e=e.expression),e}var kYe={},zJ="Convert to optional chain expression",vde=Ho(f.Convert_to_optional_chain_expression),bde={name:zJ,description:vde,kind:"refactor.rewrite.expression.optionalChain"};Dg(zJ,{kinds:[bde.kind],getEditsForAction:OYe,getAvailableActions:wYe});function wYe(e){const t=FRe(e,e.triggerReason==="invoked");return t?gy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:zJ,description:vde,actions:[{...bde,notApplicableReason:t.error}]}]:ae:[{name:zJ,description:vde,actions:[bde]}]:ae}function OYe(e,t){const r=FRe(e);return C.assert(r&&!gy(r),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(e,o=>UYe(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function BJ(e){return Nr(e)||v1(e)}function WYe(e){return od(e)||tf(e)||sc(e)}function GJ(e){return BJ(e)||WYe(e)}function FRe(e,t=!0){const{file:r,program:i}=e,o=ux(e),s=o.length===0;if(s&&!t)return;const l=Fi(r,o.start),u=AP(r,o.start+o.length),d=oc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),g=s?VYe(l):GYe(l,d),h=g&&GJ(g)?jYe(g):void 0;if(!h)return{error:Ho(f.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return v1(h)?FYe(h,y):zYe(h)}function FYe(e,t){const r=e.condition,i=Sde(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Ho(f.Could_not_find_convertible_access_expression)};if((qr(r)||He(r))&&Tde(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(Nr(r)){const o=zRe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Ho(f.Could_not_find_matching_access_expressions)}}}function zYe(e){if(e.operatorToken.kind!==56)return{error:Ho(f.Can_only_convert_logical_AND_access_chains)};const t=Sde(e.right);if(!t)return{error:Ho(f.Could_not_find_convertible_access_expression)};const r=zRe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Ho(f.Could_not_find_matching_access_expressions)}}function zRe(e,t){const r=[];for(;Nr(t)&&t.operatorToken.kind===56;){const o=Tde(us(e),us(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=Tde(e,t);return i&&r.push(i),r.length>0?r:void 0}function Tde(e,t){if(!(!He(t)&&!qr(t)&&!Ws(t)))return BYe(e,t)?t:void 0}function BYe(e,t){for(;(Zo(e)||qr(e)||Ws(e))&&NO(e)!==NO(t);)e=e.expression;for(;qr(e)&&qr(t)||Ws(e)&&Ws(t);){if(NO(e)!==NO(t))return!1;e=e.expression,t=t.expression}return He(e)&&He(t)&&e.getText()===t.getText()}function NO(e){if(He(e)||uf(e))return e.getText();if(qr(e))return NO(e.name);if(Ws(e))return NO(e.argumentExpression)}function GYe(e,t){for(;e.parent;){if(GJ(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function VYe(e){for(;e.parent;){if(GJ(e)&&!GJ(e.parent))return e;e=e.parent}}function jYe(e){if(BJ(e))return e;if(sc(e)){const t=yI(e),r=t?.initializer;return r&&BJ(r)?r:void 0}return e.expression&&BJ(e.expression)?e.expression:void 0}function Sde(e){if(e=us(e),Nr(e))return Sde(e.left);if((qr(e)||Ws(e)||Zo(e))&&!eu(e))return e}function BRe(e,t,r){if(qr(t)||Ws(t)||Zo(t)){const i=BRe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),Zo(t))return s?L.createCallChain(i,L.createToken(29),t.typeArguments,t.arguments):L.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(qr(t))return s?L.createPropertyAccessChain(i,L.createToken(29),t.name):L.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Ws(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function UYe(e,t,r,i,o){const{finalExpression:s,occurrences:l,expression:u}=i,d=l[l.length-1],g=BRe(t,s,l);g&&(qr(g)||Ws(g)||Zo(g))&&(Nr(u)?r.replaceNodeRange(e,d,s,g):v1(u)&&r.replaceNode(e,u,L.createBinaryExpression(g,L.createToken(61),u.whenFalse)))}var GRe={};x(GRe,{Messages:()=>Md,RangeFacts:()=>URe,getRangeToExtract:()=>Ede,getRefactorActionsToExtractSymbol:()=>VRe,getRefactorEditsToExtractSymbol:()=>jRe});var WP="Extract Symbol",FP={name:"Extract Constant",description:Ho(f.Extract_constant),kind:"refactor.extract.constant"},zP={name:"Extract Function",description:Ho(f.Extract_function),kind:"refactor.extract.function"};Dg(WP,{kinds:[FP.kind,zP.kind],getEditsForAction:jRe,getAvailableActions:VRe});function VRe(e){const t=e.kind,r=Ede(e.file,ux(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return ae;const N=[];return m0(zP.kind,t)&&N.push({name:WP,description:zP.description,actions:[{...zP,notApplicableReason:R(r.errors)}]}),m0(FP.kind,t)&&N.push({name:WP,description:FP.description,actions:[{...FP,notApplicableReason:R(r.errors)}]}),N}const{affectedTextRange:o,extractions:s}=YYe(i,e);if(s===void 0)return ae;const l=[],u=new Map;let d;const g=[],h=new Map;let y,E=0;for(const{functionExtraction:N,constantExtraction:P}of s){if(m0(zP.kind,t)){const k=N.description;N.errors.length===0?u.has(k)||(u.set(k,!0),l.push({description:k,name:`function_scope_${E}`,kind:zP.kind,range:{start:{line:ca(e.file,o.pos).line,offset:ca(e.file,o.pos).character},end:{line:ca(e.file,o.end).line,offset:ca(e.file,o.end).character}}})):d||(d={description:k,name:`function_scope_${E}`,notApplicableReason:R(N.errors),kind:zP.kind})}if(m0(FP.kind,t)){const k=P.description;P.errors.length===0?h.has(k)||(h.set(k,!0),g.push({description:k,name:`constant_scope_${E}`,kind:FP.kind,range:{start:{line:ca(e.file,o.pos).line,offset:ca(e.file,o.pos).character},end:{line:ca(e.file,o.end).line,offset:ca(e.file,o.end).character}}})):y||(y={description:k,name:`constant_scope_${E}`,notApplicableReason:R(P.errors),kind:FP.kind})}E++}const A=[];return l.length?A.push({name:WP,description:Ho(f.Extract_function),actions:l}):e.preferences.provideRefactorNotApplicableReason&&d&&A.push({name:WP,description:Ho(f.Extract_function),actions:[d]}),g.length?A.push({name:WP,description:Ho(f.Extract_constant),actions:g}):e.preferences.provideRefactorNotApplicableReason&&y&&A.push({name:WP,description:Ho(f.Extract_constant),actions:[y]}),A.length?A:ae;function R(N){let P=N[0].messageText;return typeof P!="string"&&(P=P.messageText),P}}function jRe(e,t){const i=Ede(e.file,ux(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return C.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),KYe(i,e,l)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const l=+s[1];return C.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),XYe(i,e,l)}C.fail("Unrecognized action name")}var Md;(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")})(Md||(Md={}));var URe=(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))(URe||{});function Ede(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[Wc(e,t.start,i,Md.cannotExtractEmpty)]};const o=i===0&&r,s=ble(e,t.start),l=AP(e,Cl(t)),u=s&&l&&r?HYe(s,l,e):t,d=o?_$e(s):_O(s,e,u),g=o?d:_O(l,e,u);let h=0,y;if(!d||!g)return{errors:[Wc(e,t.start,i,Md.cannotExtractRange)]};if(d.flags&16777216)return{errors:[Wc(e,t.start,i,Md.cannotExtractJSDoc)]};if(d.parent!==g.parent)return{errors:[Wc(e,t.start,i,Md.cannotExtractRange)]};if(d!==g){if(!px(d.parent))return{errors:[Wc(e,t.start,i,Md.cannotExtractRange)]};const W=[];for(const O of d.parent.statements){if(O===d||W.length){const G=k(O);if(G)return{errors:G};W.push(O)}if(O===g)break}return W.length?{targetRange:{range:W,facts:h,thisNode:y}}:{errors:[Wc(e,t.start,i,Md.cannotExtractRange)]}}if(tf(d)&&!d.expression)return{errors:[Wc(e,t.start,i,Md.cannotExtractRange)]};const E=R(d),A=N(E)||k(E);if(A)return{errors:A};return{targetRange:{range:qYe(E),facts:h,thisNode:y}};function R(W){if(tf(W)){if(W.expression)return W.expression}else if(sc(W)||_d(W)){const O=sc(W)?W.declarationList.declarations:W.declarations;let G=0,j;for(const J of O)J.initializer&&(G++,j=J.initializer);if(G===1)return j}else if(yi(W)&&W.initializer)return W.initializer;return W}function N(W){if(He(od(W)?W.expression:W))return[Ar(W,Md.cannotExtractIdentifier)]}function P(W,O){let G=W;for(;G!==O;){if(G.kind===173){ua(G)&&(h|=32);break}else if(G.kind===170){df(G).kind===177&&(h|=32);break}else G.kind===175&&ua(G)&&(h|=32);G=G.parent}}function k(W){let O;if((ye=>{ye[ye.None=0]="None",ye[ye.Break=1]="Break",ye[ye.Continue=2]="Continue",ye[ye.Return=4]="Return"})(O||(O={})),C.assert(W.pos<=W.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),C.assert(!dh(W.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Vi(W)&&!(P_(W)&&HRe(W))&&!Dde(W))return[Ar(W,Md.statementOrExpressionExpected)];if(W.flags&33554432)return[Ar(W,Md.cannotExtractAmbientBlock)];const G=hd(W);G&&P(W,G);let j,J=4,Z;if(q(W),h&8){const ye=yu(W,!1,!1);(ye.kind===263||ye.kind===175&&ye.parent.kind===211||ye.kind===219)&&(h|=16)}return j;function q(ye){if(j)return!0;if(rd(ye)){const K=ye.kind===261?ye.parent.parent:ye;if(di(K,32))return(j||(j=[])).push(Ar(ye,Md.cannotExtractExportedEntity)),!0}switch(ye.kind){case 273:return(j||(j=[])).push(Ar(ye,Md.cannotExtractImport)),!0;case 278:return(j||(j=[])).push(Ar(ye,Md.cannotExtractExportedEntity)),!0;case 108:if(ye.parent.kind===214){const K=hd(ye);if(K===void 0||K.pos=t.start+t.length)return(j||(j=[])).push(Ar(ye,Md.cannotExtractSuper)),!0}else h|=8,y=ye;break;case 220:Jo(ye,function K(pe){if($D(pe))h|=8,y=ye;else{if(ui(pe)||Yo(pe)&&!Xs(pe))return!1;Jo(pe,K)}});case 264:case 263:Yi(ye.parent)&&ye.parent.externalModuleIndicator===void 0&&(j||(j=[])).push(Ar(ye,Md.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}const ie=J;switch(ye.kind){case 246:J&=-5;break;case 259:J=0;break;case 242:ye.parent&&ye.parent.kind===259&&ye.parent.finallyBlock===ye&&(J=4);break;case 298:case 297:J|=1;break;default:pb(ye,!1)&&(J|=3);break}switch(ye.kind){case 198:case 110:h|=8,y=ye;break;case 257:{const K=ye.label;(Z||(Z=[])).push(K.escapedText),Jo(ye,q),Z.pop();break}case 253:case 252:{const K=ye.label;K?jn(Z,K.escapedText)||(j||(j=[])).push(Ar(ye,Md.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):J&(ye.kind===253?1:2)||(j||(j=[])).push(Ar(ye,Md.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:h|=4;break;case 230:h|=2;break;case 254:J&4?h|=1:(j||(j=[])).push(Ar(ye,Md.cannotExtractRangeContainingConditionalReturnStatement));break;default:Jo(ye,q);break}J=ie}}}function HYe(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 qYe(e){if(Vi(e))return[e];if(P_(e))return od(e.parent)?[e.parent]:e;if(Dde(e))return e}function Ade(e){return Xs(e)?V9(e.body):Ms(e)||Yi(e)||t_(e)||ui(e)}function JYe(e){let t=gv(e.range)?$a(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=hd(t);if(i){const o=Dn(t,Ms);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===170&&(t=Dn(t,i=>Ms(i)).parent),Ade(t)&&(r.push(t),t.kind===308))return r}function KYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=Ide(e,t);return C.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),n$e(o,i[r],s[r],u,e,t)}function XYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=Ide(e,t);C.assert(!l[r].length,"The extraction went missing? How?"),C.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const d=St(o)?o:o.statements[0].expression;return r$e(d,i[r],s[r],e.facts,t)}function YYe(e,t){const{scopes:r,affectedTextRange:i,readsAndWrites:{functionErrorsPerScope:o,constantErrorsPerScope:s}}=Ide(e,t),l=r.map((u,d)=>{const g=$Ye(u),h=QYe(u),y=Ms(u)?ZYe(u):ui(u)?e$e(u):t$e(u);let E,A;return y===1?(E=bg(Ho(f.Extract_to_0_in_1_scope),[g,"global"]),A=bg(Ho(f.Extract_to_0_in_1_scope),[h,"global"])):y===0?(E=bg(Ho(f.Extract_to_0_in_1_scope),[g,"module"]),A=bg(Ho(f.Extract_to_0_in_1_scope),[h,"module"])):(E=bg(Ho(f.Extract_to_0_in_1),[g,y]),A=bg(Ho(f.Extract_to_0_in_1),[h,y])),d===0&&!ui(u)&&(A=bg(Ho(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:E,errors:o[d]},constantExtraction:{description:A,errors:s[d]}}});return{affectedTextRange:i,extractions:l}}function Ide(e,t){const{file:r}=t,i=JYe(e),o=m$e(e,r),s=h$e(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,affectedTextRange:o,readsAndWrites:s}}function $Ye(e){return Ms(e)?"inner function":ui(e)?"method":"function"}function QYe(e){return ui(e)?"readonly field":"constant"}function ZYe(e){switch(e.kind){case 177:return"constructor";case 219:case 263:return e.name?`function '${e.name.text}'`:$q;case 220:return"arrow function";case 175:return`method '${e.name.getText()}'`;case 178:return`'get ${e.name.getText()}'`;case 179:return`'set ${e.name.getText()}'`;default:C.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function e$e(e){return e.kind===264?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function t$e(e){return e.kind===269?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function n$e(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){const d=u.program.getTypeChecker(),g=Ga(u.program.getCompilerOptions()),h=lu.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),E=F1(ui(t)?"newMethod":"newFunction",y),A=Ir(t),R=L.createIdentifier(E);let N;const P=[],k=[];let W;r.forEach((re,be)=>{let Ne;if(!A){let lt=d.getTypeOfSymbolAtLocation(re.symbol,re.node);lt=d.getBaseTypeOfLiteralType(lt),Ne=lu.typeToAutoImportableTypeNode(d,h,lt,t,g,1,8)}const Be=L.createParameterDeclaration(void 0,void 0,be,void 0,Ne);P.push(Be),re.usage===2&&(W||(W=[])).push(re),k.push(L.createIdentifier(be))});const O=Co(i.values(),re=>({type:re,declaration:o$e(re,u.startPosition)}));O.sort(a$e);const G=O.length===0?void 0:Ui(O,({declaration:re})=>re),j=G!==void 0?G.map(re=>L.createTypeReferenceNode(re.name,void 0)):void 0;if(St(e)&&!A){const re=d.getContextualType(e);N=d.typeToTypeNode(re,t,1,8)}const{body:J,returnValueProperty:Z}=l$e(e,s,W,o,!!(l.facts&1));Op(J);let q;const ye=!!(l.facts&16);if(ui(t)){const re=A?[]:[L.createModifier(123)];l.facts&32&&re.push(L.createModifier(126)),l.facts&4&&re.push(L.createModifier(134)),q=L.createMethodDeclaration(re.length?re:void 0,l.facts&2?L.createToken(42):void 0,R,void 0,G,P,N,J)}else ye&&P.unshift(L.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(d.getTypeAtLocation(l.thisNode),t,1,8),void 0)),q=L.createFunctionDeclaration(l.facts&4?[L.createToken(134)]:void 0,l.facts&2?L.createToken(42):void 0,R,G,P,N,J);const ie=Rr.ChangeTracker.fromContext(u),K=(gv(l.range)?Ba(l.range):l.range).end,pe=u$e(K,t);pe?ie.insertNodeBefore(u.file,pe,q,!0):ie.insertNodeAtEndOfScope(u.file,t,q),h.writeFixes(ie);const de=[],fe=s$e(t,l,E);ye&&k.unshift(L.createIdentifier("this"));let ve=L.createCallExpression(ye?L.createPropertyAccessExpression(fe,"call"):fe,j,k);if(l.facts&2&&(ve=L.createYieldExpression(L.createToken(42),ve)),l.facts&4&&(ve=L.createAwaitExpression(ve)),Rde(e)&&(ve=L.createJsxExpression(void 0,ve)),s.length&&!W)if(C.assert(!Z,"Expected no returnValueProperty"),C.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const re=s[0];de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(re.name),void 0,_s(re.type),ve)],re.parent.flags)))}else{const re=[],be=[];let Ne=s[0].parent.flags,Be=!1;for(const ce of s){re.push(L.createBindingElement(void 0,void 0,_s(ce.name)));const Re=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(ce)),t,1,8);be.push(L.createPropertySignature(void 0,ce.symbol.name,void 0,Re)),Be=Be||ce.type!==void 0,Ne=Ne&ce.parent.flags}const lt=Be?L.createTypeLiteralNode(be):void 0;lt&&Cr(lt,1),de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(re),void 0,lt,ve)],Ne)))}else if(s.length||W){if(s.length)for(const be of s){let Ne=be.parent.flags;Ne&2&&(Ne=Ne&-3|1),de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(be.symbol.name,void 0,Se(be.type))],Ne)))}Z&&de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z,void 0,Se(N))],1)));const re=xde(s,W);Z&&re.unshift(L.createShorthandPropertyAssignment(Z)),re.length===1?(C.assert(!Z,"Shouldn't have returnValueProperty here"),de.push(L.createExpressionStatement(L.createAssignment(re[0].name,ve))),l.facts&1&&de.push(L.createReturnStatement())):(de.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(re),ve))),Z&&de.push(L.createReturnStatement(L.createIdentifier(Z))))}else l.facts&1?de.push(L.createReturnStatement(ve)):gv(l.range)?de.push(L.createExpressionStatement(ve)):de.push(ve);gv(l.range)?ie.replaceNodeRangeWithNodes(u.file,$a(l.range),Ba(l.range),de):ie.replaceNodeWithNodes(u.file,l.range,de);const xe=ie.getChanges(),Ce=(gv(l.range)?$a(l.range):l.range).getSourceFile().fileName,Je=yO(xe,Ce,E,!1);return{renameFilename:Ce,renameLocation:Je,edits:xe};function Se(re){if(re===void 0)return;const be=_s(re);let Ne=be;for(;g1(Ne);)Ne=Ne.type;return cv(Ne)&&hn(Ne.types,Be=>Be.kind===157)?be:L.createUnionTypeNode([be,L.createKeywordTypeNode(157)])}}function r$e(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),l=t.getSourceFile(),u=rde(e,t,s,l),d=Ir(t);let g=d||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1,8),h=c$e(us(e),r);({variableType:g,initializer:h}=N(g,h)),Op(h);const y=Rr.ChangeTracker.fromContext(o);if(ui(t)){C.assert(!d,"Cannot extract to a JS class");const P=[];P.push(L.createModifier(123)),i&32&&P.push(L.createModifier(126)),P.push(L.createModifier(148));const k=L.createPropertyDeclaration(P,u,void 0,g,h);let W=L.createPropertyAccessExpression(i&32?L.createIdentifier(t.name.getText()):L.createThis(),L.createIdentifier(u));Rde(e)&&(W=L.createJsxExpression(void 0,W));const O=e.pos,G=p$e(O,t);y.insertNodeBefore(o.file,G,k,!0),y.replaceNode(o.file,e,W)}else{const P=L.createVariableDeclaration(u,void 0,g,h),k=i$e(e,t);if(k){y.insertNodeBefore(o.file,k,P);const W=L.createIdentifier(u);y.replaceNode(o.file,e,W)}else if(e.parent.kind===245&&t===Dn(e,Ade)){const W=L.createVariableStatement(void 0,L.createVariableDeclarationList([P],2));y.replaceNode(o.file,e.parent,W)}else{const W=L.createVariableStatement(void 0,L.createVariableDeclarationList([P],2)),O=f$e(e,t);if(O.pos===0?y.insertNodeAtTopOfFile(o.file,W,!1):y.insertNodeBefore(o.file,O,W,!1),e.parent.kind===245)y.delete(o.file,e.parent);else{let G=L.createIdentifier(u);Rde(e)&&(G=L.createJsxExpression(void 0,G)),y.replaceNode(o.file,e,G)}}}const E=y.getChanges(),A=e.getSourceFile().fileName,R=yO(E,A,u,!0);return{renameFilename:A,renameLocation:R,edits:E};function N(P,k){if(P===void 0)return{variableType:P,initializer:k};if(!Us(k)&&!Xs(k)||k.typeParameters)return{variableType:P,initializer:k};const W=s.getTypeAtLocation(e),O=og(s.getSignaturesOfType(W,0));if(!O)return{variableType:P,initializer:k};if(O.getTypeParameters())return{variableType:P,initializer:k};const G=[];let j=!1;for(const J of k.parameters)if(J.type)G.push(J);else{const Z=s.getTypeAtLocation(J);Z===s.getAnyType()&&(j=!0),G.push(L.updateParameterDeclaration(J,J.modifiers,J.dotDotDotToken,J.name,J.questionToken,J.type||s.typeToTypeNode(Z,t,1,8),J.initializer))}if(j)return{variableType:P,initializer:k};if(P=void 0,Xs(k))k=L.updateArrowFunction(k,Tm(e)?fS(e):void 0,k.typeParameters,G,k.type||s.typeToTypeNode(O.getReturnType(),t,1,8),k.equalsGreaterThanToken,k.body);else{if(O&&O.thisParameter){const J=Ic(G);if(!J||He(J.name)&&J.name.escapedText!=="this"){const Z=s.getTypeOfSymbolAtLocation(O.thisParameter,e);G.splice(0,0,L.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(Z,t,1,8)))}}k=L.updateFunctionExpression(k,Tm(e)?fS(e):void 0,k.asteriskToken,k.name,k.typeParameters,G,k.type||s.typeToTypeNode(O.getReturnType(),t,1),k.body)}return{variableType:P,initializer:k}}}function i$e(e,t){let r;for(;e!==void 0&&e!==t;){if(yi(e)&&e.initializer===r&&_d(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function o$e(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const o of i.declarations)(r===void 0||o.pos0;if(ea(e)&&!s&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const d=L.createNodeArray(ea(e)?e.statements.slice(0):[Vi(e)?e:L.createReturnStatement(us(e))]);if(s||i.size){const h=Xn(d,g,Vi).slice();if(s&&!o&&Vi(e)){const y=xde(t,r);y.length===1?h.push(L.createReturnStatement(y[0].name)):h.push(L.createReturnStatement(L.createObjectLiteralExpression(y)))}return{body:L.createBlock(h,!0),returnValueProperty:l}}else return{body:L.createBlock(d,!0),returnValueProperty:void 0};function g(h){if(!u&&tf(h)&&s){const y=xde(t,r);return h.expression&&(l||(l="__return"),y.unshift(L.createPropertyAssignment(l,st(h.expression,g,St)))),y.length===1?L.createReturnStatement(y[0].name):L.createReturnStatement(L.createObjectLiteralExpression(y))}else{const y=u;u=u||Ms(h)||ui(h);const E=i.get(ls(h).toString()),A=E?_s(E):kn(h,g,void 0);return u=y,A}}}function c$e(e,t){return t.size?r(e):e;function r(i){const o=t.get(ls(i).toString());return o?_s(o):kn(i,r,void 0)}}function d$e(e){if(Ms(e)){const t=e.body;if(ea(t))return t.statements}else{if(t_(e)||Yi(e))return e.statements;if(ui(e))return e.members}return ae}function u$e(e,t){return hn(d$e(t),r=>r.pos>=e&&Ms(r)&&!Pl(r))}function p$e(e,t){const r=t.members;C.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&&!Po(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?C.fail():i}function f$e(e,t){C.assert(!ui(t));let r;for(let i=e;i!==t;i=i.parent)Ade(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(px(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&ID(i)?(C.assert(GM(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):C.checkDefined(o,"prevStatement failed to get set")}C.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function xde(e,t){const r=Vt(e,o=>L.createShorthandPropertyAssignment(o.symbol.name)),i=Vt(t,o=>L.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function gv(e){return Mo(e)}function m$e(e,t){return gv(e.range)?{pos:$a(e.range).getStart(t),end:Ba(e.range).getEnd()}:e.range}function h$e(e,t,r,i,o,s){const l=new Map,u=[],d=[],g=[],h=[],y=[],E=new Map,A=[];let R;const N=gv(e.range)?e.range.length===1&&od(e.range[0])?e.range[0].expression:void 0:e.range;let P;if(N===void 0){const de=e.range,fe=$a(de).getStart(),ve=Ba(de).end;P=Wc(i,fe,ve-fe,Md.expressionExpected)}else o.getTypeAtLocation(N).flags&147456&&(P=Ar(N,Md.uselessConstantType));for(const de of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),g.push([]);const fe=[];P&&fe.push(P),ui(de)&&Ir(de)&&fe.push(Ar(de,Md.cannotExtractToJSClass)),Xs(de)&&!ea(de.body)&&fe.push(Ar(de,Md.cannotExtractToExpressionArrowFunction)),h.push(fe)}const k=new Map,W=gv(e.range)?L.createBlock(e.range):e.range,O=gv(e.range)?$a(e.range):e.range,G=j(O);if(Z(W),G&&!gv(e.range)&&!i_(e.range)){const de=o.getContextualType(e.range);J(de)}if(l.size>0){const de=new Map;let fe=0;for(let ve=O;ve!==void 0&&fe{u[fe].typeParameterUsages.set(X,xe)}),fe++),cG(ve))for(const xe of sb(ve)){const X=o.getTypeAtLocation(xe);l.has(X.id.toString())&&de.set(X.id.toString(),X)}C.assert(fe===t.length,"Should have iterated all scopes")}if(y.length){const de=lG(t[0],t[0].parent)?t[0]:sh(t[0]);Jo(de,ie)}for(let de=0;de0&&(fe.usages.size>0||fe.typeParameterUsages.size>0)){const X=gv(e.range)?e.range[0]:e.range;h[de].push(Ar(X,Md.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ui(t[de])&&g[de].push(Ar(e.thisNode,Md.cannotExtractFunctionsContainingThisToMethod));let ve=!1,xe;if(u[de].usages.forEach(X=>{X.usage===2&&(ve=!0,X.symbol.flags&106500&&X.symbol.valueDeclaration&&wp(X.symbol.valueDeclaration,8)&&(xe=X.symbol.valueDeclaration))}),C.assert(gv(e.range)||A.length===0,"No variable declarations expected if something was extracted"),ve&&!gv(e.range)){const X=Ar(e.range,Md.cannotWriteInExpression);g[de].push(X),h[de].push(X)}else if(xe&&de>0){const X=Ar(xe,Md.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[de].push(X),h[de].push(X)}else if(R){const X=Ar(R,Md.cannotExtractExportedEntity);g[de].push(X),h[de].push(X)}}return{target:W,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:h,exposedVariableDeclarations:A};function j(de){return!!Dn(de,fe=>cG(fe)&&sb(fe).length!==0)}function J(de){const fe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:ve}=fe.walkType(de);for(const xe of ve)xe.isTypeParameter()&&l.set(xe.id.toString(),xe)}function Z(de,fe=1){if(G){const ve=o.getTypeAtLocation(de);J(ve)}if(rd(de)&&de.symbol&&y.push(de),id(de))Z(de.left,2),Z(de.right);else if(Hee(de))Z(de.operand,2);else if(qr(de)||Ws(de))Jo(de,Z);else if(He(de)){if(!de.parent||Lu(de.parent)&&de!==de.parent.left||qr(de.parent)&&de!==de.parent.expression)return;q(de,fe,Hh(de))}else Jo(de,Z)}function q(de,fe,ve){const xe=ye(de,fe,ve);if(xe)for(let X=0;X=fe)return X;if(k.set(X,fe),Ce){for(const re of u)re.usages.get(de.text)&&re.usages.set(de.text,{usage:fe,symbol:xe,node:de});return X}const Je=xe.getDeclarations(),Se=Je&&hn(Je,re=>re.getSourceFile()===i);if(Se&&!cO(r,Se.getStart(),Se.end)){if(e.facts&2&&fe===2){const re=Ar(de,Md.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const be of g)be.push(re);for(const be of h)be.push(re)}for(let re=0;rexe.symbol===fe);if(ve)if(yi(ve)){const xe=ve.symbol.id.toString();E.has(xe)||(A.push(ve),E.set(xe,!0))}else R=R||ve}Jo(de,ie)}function K(de){return de.parent&&Ud(de.parent)&&de.parent.name===de?o.getShorthandAssignmentValueSymbol(de.parent):o.getSymbolAtLocation(de)}function pe(de,fe,ve){if(!de)return;const xe=de.getDeclarations();if(xe&&xe.some(Ce=>Ce.parent===fe))return L.createIdentifier(de.name);const X=pe(de.parent,fe,ve);if(X!==void 0)return ve?L.createQualifiedName(X,L.createIdentifier(de.name)):L.createPropertyAccessExpression(X,de.name)}}function _$e(e){return Dn(e,t=>t.parent&&HRe(t)&&!Nr(t.parent))}function HRe(e){const{parent:t}=e;switch(t.kind){case 307:return!1}switch(e.kind){case 11:return t.kind!==273&&t.kind!==277;case 231:case 207:case 209:return!1;case 80:return t.kind!==209&&t.kind!==277&&t.kind!==282}return!0}function Rde(e){return Dde(e)||(r_(e)||E1(e)||ZT(e))&&(r_(e.parent)||ZT(e.parent))}function Dde(e){return ka(e)&&e.parent&&i_(e.parent)}var g$e={},VJ="Generate 'get' and 'set' accessors",Cde=Ho(f.Generate_get_and_set_accessors),Nde={name:VJ,description:Cde,kind:"refactor.rewrite.property.generateAccessors"};Dg(VJ,{kinds:[Nde.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=lu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);C.assert(i&&!gy(i),"Expected applicable refactor info");const o=lu.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,d=(He(l)?0:-1)+yO(o,s,l.text,to(i.declaration));return{renameFilename:s,renameLocation:d,edits:o}},getAvailableActions(e){if(!e.endPosition)return ae;const t=lu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?gy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:VJ,description:Cde,actions:[{...Nde,notApplicableReason:t.error}]}]:ae:[{name:VJ,description:Cde,actions:[Nde]}]:ae}});var y$e={},jJ="Infer function return type",Mde=Ho(f.Infer_function_return_type),UJ={name:jJ,description:Mde,kind:"refactor.rewrite.function.returnType"};Dg(jJ,{kinds:[UJ.kind],getEditsForAction:v$e,getAvailableActions:b$e});function v$e(e){const t=qRe(e);if(t&&!gy(t))return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,i=>T$e(e.file,i,t.declaration,t.returnTypeNode))}}function b$e(e){const t=qRe(e);return t?gy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:jJ,description:Mde,actions:[{...UJ,notApplicableReason:t.error}]}]:ae:[{name:jJ,description:Mde,actions:[UJ]}]:ae}function T$e(e,t,r,i){const o=Es(r,22,e),s=Xs(r)&&o===void 0,l=s?$a(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,L.createToken(21)),t.insertNodeAfter(e,l,L.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function qRe(e){if(Ir(e.file)||!m0(UJ.kind,e.kind))return;const t=ip(e.file,e.startPosition),r=Dn(t,l=>ea(l)||l.parent&&Xs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":S$e(l));if(!r||!r.body||r.type)return{error:Ho(f.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker();let o;if(i.isImplementationOfOverload(r)){const l=i.getTypeAtLocation(r).getCallSignatures();l.length>1&&(o=i.getUnionType(Ui(l,u=>u.getReturnType())))}if(!o){const l=i.getSignatureFromDeclaration(r);if(l){const u=i.getTypePredicateOfSignature(l);if(u&&u.type){const d=i.typePredicateToTypePredicateNode(u,r,1,8);if(d)return{declaration:r,returnTypeNode:d}}else o=i.getReturnTypeOfSignature(l)}}if(!o)return{error:Ho(f.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1,8);if(s)return{declaration:r,returnTypeNode:s}}function S$e(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}var JRe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(JRe||{}),KRe=(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))(KRe||{}),XRe=(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))(XRe||{});function YRe(e,t,r,i){const o=Pde(e,t,r,i);C.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)+d)},i),o}function A$e(e,t,r,i,o){const s=e.getTypeChecker();let l=!1;function u(d){switch(d.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 220:o.throwIfCancellationRequested()}if(!d||!T2(r,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;const g=l;if((r_(d)||E1(d))&&(l=!0),AD(d)&&(l=!1),He(d)&&!l&&!D$e(d)&&!RM(d.escapedText)){let h=s.getSymbolAtLocation(d);if(h){h.flags&2097152&&(h=s.getAliasedSymbol(h));let y=I$e(h,w1(d));if(y!==void 0){let E=0;d.parent&&(Ha(d.parent)||ZRe.get(d.parent.kind)===y)&&d.parent.name===d&&(E=1),y===6&&QRe(d)&&(y=9),y=x$e(s,d,y);const A=h.valueDeclaration;if(A){const R=MT(A),N=ty(A);R&256&&(E|=2),R&1024&&(E|=4),y!==0&&y!==2&&(R&8||N&2||h.getFlags()&8)&&(E|=8),(y===7||y===10)&&R$e(A,t)&&(E|=32),e.isSourceFileDefaultLibrary(A.getSourceFile())&&(E|=16)}else h.declarations&&h.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(E|=16);i(d,y,E)}}}Jo(d,u),l=g}u(t)}function I$e(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&&Ha(i)&&(i=$Re(i)),i&&ZRe.get(i.kind)}function x$e(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)||C$e(t))return r===9?11:10}}return r}function R$e(e,t){return Ha(e)&&(e=$Re(e)),yi(e)?(!Yi(e.parent.parent.parent)||jS(e.parent))&&e.getSourceFile()===t:ec(e)?!Yi(e.parent)&&e.getSourceFile()===t:!1}function $Re(e){for(;;)if(Ha(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function D$e(e){const t=e.parent;return t&&(Vm(t)||Su(t)||Ig(t))}function C$e(e){for(;QRe(e);)e=e.parent;return Zo(e.parent)&&e.parent.expression===e}function QRe(e){return Lu(e.parent)&&e.parent.right===e||qr(e.parent)&&e.parent.name===e}var ZRe=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),eDe="0.8";function tDe(e,t,r,i){const o=oF(e)?new Lde(e,t,r):e===80?new rDe(80,t,r):e===81?new iDe(81,t,r):new nDe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}var Lde=class{constructor(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}assertHasRealPosition(e){C.assert(!dh(this.pos)&&!dh(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Wn(this)}getStart(e,t){return this.assertHasRealPosition(),hb(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=Wn(this)){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"),vj(this,e)??yie(this,e,N$e(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=hn(t,i=>i.kind<310||i.kind>352);return r.kind<167?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=Zs(t);if(r)return r.kind<167?r:r.getLastToken(e)}forEachChild(e,t){return Jo(this,e,t)}};function N$e(e,t){const r=[];if(fF(e))return e.forEachChild(l=>{r.push(l)}),r;yd.setText((t||e.getSourceFile()).text);let i=e.pos;const o=l=>{H7(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{H7(r,i,l.pos,e),r.push(M$e(l,e)),i=l.end};return Ye(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),H7(r,i,e.end,e),yd.setText(void 0),r}function H7(e,t,r,i){for(yd.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function HJ(e,t){if(!e)return ae;let r=g0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(oDe))){const i=new Set;for(const o of e){const s=aDe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===178||o.kind===179?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags(t):void 0});s&&(r=[...s,...r])}}return r}function q7(e,t){if(!e)return ae;let r=g0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(oDe))){const i=new Set;for(const o of e){const s=aDe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===178||o.kind===179?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(rC(),r))}}return r}function aDe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===177?t.parent.parent:t.parent;if(!o)return;const s=Oc(t);return Hn(eM(o),l=>{const u=e.getTypeAtLocation(l),d=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(d,t.symbol.name);return g?r(g):void 0})}var w$e=class extends Lde{constructor(e,t,r){super(e,t,r)}update(e,t){return kj(this,e,t)}getLineAndCharacterOfPosition(e){return ca(this,e)}getLineStarts(){return ag(this)}getPositionOfLineAndCharacter(e,t,r){return K8(ag(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=cm();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=$8(s);return l&&(va(l)&&qr(l.expression)?l.expression.name.text:bc(l)?mO(l):void 0)}function o(s){switch(s.kind){case 263:case 219:case 175:case 174:const l=s,u=i(l);if(u){const h=r(u),y=Zs(h);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(h[h.length-1]=l):h.push(l)}Jo(s,o);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(s),Jo(s,o);break;case 170:if(!di(s,31))break;case 261:case 209:{const h=s;if(Qo(h.name)){Jo(h.name,o);break}h.initializer&&o(h.initializer)}case 307:case 173:case 172:t(s);break;case 279:const d=s;d.exportClause&&(Jf(d.exportClause)?Ye(d.exportClause.elements,o):o(d.exportClause.name));break;case 273:const g=s.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===275?t(g.namedBindings):Ye(g.namedBindings.elements,o)));break;case 227:ac(s)!==0&&t(s);default:Jo(s,o)}}}},O$e=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}getLineAndCharacterOfPosition(e){return ca(this,e)}};function W$e(){return{getNodeConstructor:()=>Lde,getTokenConstructor:()=>nDe,getIdentifierConstructor:()=>rDe,getPrivateIdentifierConstructor:()=>iDe,getSourceFileConstructor:()=>w$e,getSymbolConstructor:()=>P$e,getTypeConstructor:()=>L$e,getSignatureConstructor:()=>k$e,getSourceMapSourceConstructor:()=>O$e}}function MO(e){let t=!0;for(const i in e)if(Rs(e,i)&&!sDe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Rs(e,i)){const o=sDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function sDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function PO(e){return e?Vt(e,t=>t.text).join(""):""}function J7(){return{target:1,jsx:1}}function qJ(){return lu.getSupportedErrorCodes()}var F$e=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,d;const g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");const h=Jq(e,this.host),y=this.host.getScriptVersion(e);let E;if(this.currentFileName!==e){const A={languageVersion:99,impliedNodeFormat:Kw(ks(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||ay(this.host)),(d=(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:d.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:kk(this.host.getCompilationSettings()),jsDocParsingMode:0};E=K7(e,g,A,y,!0,h)}else if(this.currentFileVersion!==y){const A=g.getChangeRange(this.currentFileScriptSnapshot);E=JJ(this.currentSourceFile,g,y,A)}return E&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=E),this.currentSourceFile}};function lDe(e,t,r){e.version=r,e.scriptSnapshot=t}function K7(e,t,r,i,o,s){const l=QI(e,dx(t),r,o,s);return lDe(l,t,i),l}function JJ(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):"",d=Cl(i.span)!==e.text.length?e.text.substr(Cl(i.span)):"";if(i.newLength===0)l=u&&d?u+d:u||d;else{const h=t.getText(i.span.start,i.span.start+i.newLength);l=u&&d?u+h+d:u?u+h:h+d}const g=kj(e,l,i,o);return lDe(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return K7(e.fileName,t,s,r,!0,e.scriptKind)}var z$e={isCancellationRequested:Qg,throwIfCancellationRequested:gs},B$e=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xr)==null||e.instant(xr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new yN}},wde=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Ls();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xr)==null||e.instant(xr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new yN}},cDe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],G$e=[...cDe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function Ode(e,t=ace(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;const s=new F$e(e);let l,u,d=0;const g=e.getCancellationToken?new B$e(e.getCancellationToken()):z$e,h=e.getCurrentDirectory();zne((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(ft){e.log&&e.log(ft)}const E=l1(e),A=Fd(E),R=bce({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>h,getProgram:W,fileExists:ia(e,e.fileExists),readFile:ia(e,e.readFile),getDocumentPositionMapper:ia(e,e.getDocumentPositionMapper),getSourceFileLike:ia(e,e.getSourceFileLike),log:y});function N(ft){const Mt=l.getSourceFile(ft);if(!Mt){const jt=new Error(`Could not find source file: '${ft}'.`);throw jt.ProgramFiles=l.getSourceFiles().map(Qt=>Qt.fileName),jt}return Mt}function P(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():k()}function k(){var ft,Mt,jt;if(C.assert(o!==2),e.getProjectVersion){const Lo=e.getProjectVersion();if(Lo){if(u===Lo&&!((ft=e.hasChangedAutomaticTypeDirectiveNames)!=null&&ft.call(e)))return;u=Lo}}const Qt=e.getTypeRootsVersion?e.getTypeRootsVersion():0;d!==Qt&&(y("TypeRoots version has changed; provide new program"),l=void 0,d=Qt);const In=e.getScriptFileNames().slice(),yn=e.getCompilationSettings()||J7(),wt=e.hasInvalidatedResolutions||Qg,En=ia(e,e.hasInvalidatedLibResolutions)||Qg,xn=ia(e,e.hasChangedAutomaticTypeDirectiveNames),Ln=(Mt=e.getProjectReferences)==null?void 0:Mt.call(e);let ln,Ii={getSourceFile:tc,getSourceFileByPath:bf,getCancellationToken:()=>g,getCanonicalFileName:A,useCaseSensitiveFileNames:()=>E,getNewLine:()=>rv(yn),getDefaultLibFileName:Lo=>e.getDefaultLibFileName(Lo),writeFile:gs,getCurrentDirectory:()=>h,fileExists:Lo=>e.fileExists(Lo),readFile:Lo=>e.readFile&&e.readFile(Lo),getSymlinkCache:ia(e,e.getSymlinkCache),realpath:ia(e,e.realpath),directoryExists:Lo=>ch(Lo,e),getDirectories:Lo=>e.getDirectories?e.getDirectories(Lo):[],readDirectory:(Lo,fa,is,qa,Zt)=>(C.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Lo,fa,is,qa,Zt)),onReleaseOldSourceFile:Ra,onReleaseParsedCommandLine:Sc,hasInvalidatedResolutions:wt,hasInvalidatedLibResolutions:En,hasChangedAutomaticTypeDirectiveNames:xn,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:co,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:ia(e,e.getGlobalTypingsCacheLocation)};const ra=Ii.getSourceFile,{getSourceFileWithCache:sa}=hP(Ii,Lo=>ks(Lo,h,A),(...Lo)=>ra.call(Ii,...Lo));Ii.getSourceFile=sa,(jt=e.setCompilerHost)==null||jt.call(e,Ii);const zo={useCaseSensitiveFileNames:E,fileExists:Lo=>Ii.fileExists(Lo),readFile:Lo=>Ii.readFile(Lo),directoryExists:Lo=>Ii.directoryExists(Lo),getDirectories:Lo=>Ii.getDirectories(Lo),realpath:Ii.realpath,readDirectory:(...Lo)=>Ii.readDirectory(...Lo),trace:Ii.trace,getCurrentDirectory:Ii.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:gs},Gl=t.getKeyForCompilationSettings(yn);let xl=new Set;if(dH(l,In,yn,(Lo,fa)=>e.getScriptVersion(fa),Lo=>Ii.fileExists(Lo),wt,En,xn,co,Ln)){Ii=void 0,ln=void 0,xl=void 0;return}l=Xw({rootNames:In,options:yn,host:Ii,oldProgram:l,projectReferences:Ln}),Ii=void 0,ln=void 0,xl=void 0,R.clearCache(),l.getTypeChecker();return;function co(Lo){const fa=ks(Lo,h,A),is=ln?.get(fa);if(is!==void 0)return is||void 0;const qa=e.getParsedCommandLine?e.getParsedCommandLine(Lo):Go(Lo);return(ln||(ln=new Map)).set(fa,qa||!1),qa}function Go(Lo){const fa=tc(Lo,100);if(fa)return fa.path=ks(Lo,h,A),fa.resolvedPath=fa.path,fa.originalFileName=fa.fileName,xw(fa,zo,To(ci(Lo),h),void 0,To(Lo,h))}function Sc(Lo,fa,is){var qa;e.getParsedCommandLine?(qa=e.onReleaseParsedCommandLine)==null||qa.call(e,Lo,fa,is):fa&&$s(fa.sourceFile,is)}function $s(Lo,fa){const is=t.getKeyForCompilationSettings(fa);t.releaseDocumentWithKey(Lo.resolvedPath,is,Lo.scriptKind,Lo.impliedNodeFormat)}function Ra(Lo,fa,is,qa){var Zt;$s(Lo,fa),(Zt=e.onReleaseOldSourceFile)==null||Zt.call(e,Lo,fa,is,qa)}function tc(Lo,fa,is,qa){return bf(Lo,ks(Lo,h,A),fa,is,qa)}function bf(Lo,fa,is,qa,Zt){C.assert(Ii,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const As=e.getScriptSnapshot(Lo);if(!As)return;const ql=Jq(Lo,e),lc=e.getScriptVersion(Lo);if(!Zt){const vd=l&&l.getSourceFileByPath(fa);if(vd){if(ql===vd.scriptKind||xl.has(vd.resolvedPath))return t.updateDocumentWithKey(Lo,fa,e,Gl,As,lc,ql,is);t.releaseDocumentWithKey(vd.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),vd.scriptKind,vd.impliedNodeFormat),xl.add(vd.resolvedPath)}}return t.acquireDocumentWithKey(Lo,fa,e,Gl,As,lc,ql,is)}}function W(){if(o===2){C.assert(l===void 0);return}return P(),l}function O(){var ft;return(ft=e.getPackageJsonAutoImportProvider)==null?void 0:ft.call(e)}function G(ft,Mt){const jt=l.getTypeChecker(),Qt=In();if(!Qt)return!1;for(const wt of ft)for(const En of wt.references){const xn=yn(En);if(C.assertIsDefined(xn),Mt.has(En)||Ys.isDeclarationOfSymbol(xn,Qt)){Mt.add(En),En.isDefinition=!0;const Ln=m7(En,R,ia(e,e.fileExists));Ln&&Mt.add(Ln)}else En.isDefinition=!1}return!0;function In(){for(const wt of ft)for(const En of wt.references){if(Mt.has(En)){const Ln=yn(En);return C.assertIsDefined(Ln),jt.getSymbolAtLocation(Ln)}const xn=m7(En,R,ia(e,e.fileExists));if(xn&&Mt.has(xn)){const Ln=yn(xn);if(Ln)return jt.getSymbolAtLocation(Ln)}}}function yn(wt){const En=l.getSourceFile(wt.fileName);if(!En)return;const xn=ip(En,wt.textSpan.start);return Ys.Core.getAdjustedNode(xn,{use:Ys.FindReferencesUse.References})}}function j(){if(l){const ft=t.getKeyForCompilationSettings(l.getCompilerOptions());Ye(l.getSourceFiles(),Mt=>t.releaseDocumentWithKey(Mt.resolvedPath,ft,Mt.scriptKind,Mt.impliedNodeFormat)),l=void 0}}function J(){j(),e=void 0}function Z(ft){return P(),l.getSyntacticDiagnostics(N(ft),g).slice()}function q(ft){P();const Mt=N(ft),jt=l.getSemanticDiagnostics(Mt,g);if(!_p(l.getCompilerOptions()))return jt.slice();const Qt=l.getDeclarationDiagnostics(Mt,g);return[...jt,...Qt]}function ye(ft,Mt){P();const jt=N(ft),Qt=l.getCompilerOptions();if(fD(jt,Qt,l)||!EM(jt,Qt)||l.getCachedSemanticDiagnostics(jt))return;const In=ie(jt,Mt);if(!In)return;const yn=S9(In.map(En=>oc(En.getFullStart(),En.getEnd())));return{diagnostics:l.getSemanticDiagnostics(jt,g,In).slice(),spans:yn}}function ie(ft,Mt){const jt=[],Qt=S9(Mt.map(In=>hv(In)));for(const In of Qt){const yn=K(ft,In);if(!yn)return;jt.push(...yn)}if(jt.length)return jt}function K(ft,Mt){if(T9(Mt,ft))return;const jt=AP(ft,Cl(Mt))||ft,Qt=Dn(jt,yn=>uee(yn,Mt)),In=[];if(pe(Mt,Qt,In),ft.end===Mt.start+Mt.length&&In.push(ft.endOfFileToken),!yt(In,Yi))return In}function pe(ft,Mt,jt){return de(Mt,ft)?T9(ft,Mt)?(fe(Mt,jt),!0):px(Mt)?ve(ft,Mt,jt):ui(Mt)?xe(ft,Mt,jt):(fe(Mt,jt),!0):!1}function de(ft,Mt){const jt=Mt.start+Mt.length;return ft.posMt.start}function fe(ft,Mt){for(;ft.parent&&!bre(ft);)ft=ft.parent;Mt.push(ft)}function ve(ft,Mt,jt){const Qt=[];return Mt.statements.filter(yn=>pe(ft,yn,Qt)).length===Mt.statements.length?(fe(Mt,jt),!0):(jt.push(...Qt),!1)}function xe(ft,Mt,jt){var Qt,In,yn;const wt=Ln=>hee(Ln,ft);if((Qt=Mt.modifiers)!=null&&Qt.some(wt)||Mt.name&&wt(Mt.name)||(In=Mt.typeParameters)!=null&&In.some(wt)||(yn=Mt.heritageClauses)!=null&&yn.some(wt))return fe(Mt,jt),!0;const En=[];return Mt.members.filter(Ln=>pe(ft,Ln,En)).length===Mt.members.length?(fe(Mt,jt),!0):(jt.push(...En),!1)}function X(ft){return P(),vJ(N(ft),l,g)}function Ce(){return P(),[...l.getOptionsDiagnostics(g),...l.getGlobalDiagnostics(g)]}function Je(ft,Mt,jt=Sm,Qt){const In={...jt,includeCompletionsForModuleExports:jt.includeCompletionsForModuleExports||jt.includeExternalModuleExports,includeCompletionsWithInsertText:jt.includeCompletionsWithInsertText||jt.includeInsertTextCompletions};return P(),bx.getCompletionsAtPosition(e,l,y,N(ft),Mt,In,jt.triggerCharacter,jt.triggerKind,g,Qt&&Mc.getFormatContext(Qt,e),jt.includeSymbol)}function Se(ft,Mt,jt,Qt,In,yn=Sm,wt){return P(),bx.getCompletionEntryDetails(l,y,N(ft),Mt,{name:jt,source:In,data:wt},e,Qt&&Mc.getFormatContext(Qt,e),yn,g)}function re(ft,Mt,jt,Qt,In=Sm){return P(),bx.getCompletionEntrySymbol(l,y,N(ft),Mt,{name:jt,source:Qt},e,In)}function be(ft,Mt,jt,Qt){P();const In=N(ft),yn=ip(In,Mt);if(yn===In)return;const wt=l.getTypeChecker(),En=lt(yn),xn=H$e(En,wt);if(!xn||wt.isUnknownSymbol(xn)){const zo=ce(In,En,Mt)?wt.getTypeAtLocation(En):void 0;return zo&&{kind:"",kindModifiers:"",textSpan:Fu(En,In),displayParts:wt.runWithCancellationToken(g,Gl=>gO(Gl,zo,O1(En),void 0,Qt)),documentation:zo.symbol?zo.symbol.getDocumentationComment(wt):void 0,tags:zo.symbol?zo.symbol.getJsDocTags(wt):void 0}}const{symbolKind:Ln,displayParts:ln,documentation:Ii,tags:ra,canIncreaseVerbosityLevel:sa}=wt.runWithCancellationToken(g,zo=>yv.getSymbolDisplayPartsDocumentationAndSymbolKind(zo,xn,In,O1(En),En,void 0,void 0,jt??ite,Qt));return{kind:Ln,kindModifiers:yv.getSymbolModifiers(wt,xn),textSpan:Fu(En,In),displayParts:ln,documentation:Ii,tags:ra,canIncreaseVerbosityLevel:sa}}function Ne(ft,Mt){return P(),iX.preparePasteEdits(N(ft),Mt,l.getTypeChecker())}function Be(ft,Mt){return P(),oX.pasteEditsProvider(N(ft.targetFile),ft.pastedText,ft.pasteLocations,ft.copiedFrom?{file:N(ft.copiedFrom.file),range:ft.copiedFrom.range}:void 0,e,ft.preferences,Mc.getFormatContext(Mt,e),g)}function lt(ft){return BS(ft.parent)&&ft.pos===ft.parent.pos?ft.parent.expression:vD(ft.parent)&&ft.pos===ft.parent.pos||JR(ft.parent)&&ft.parent.name===ft||fh(ft.parent)?ft.parent:ft}function ce(ft,Mt,jt){switch(Mt.kind){case 80:return Mt.flags&16777216&&!Ir(Mt)&&(Mt.parent.kind===172&&Mt.parent.name===Mt||Dn(Mt,Qt=>Qt.kind===170))?!1:!fq(Mt)&&!mq(Mt)&&!Om(Mt.parent);case 212:case 167:return!fv(ft,jt);case 110:case 198:case 108:case 203:return!0;case 237:return JR(Mt);default:return!1}}function Re(ft,Mt,jt,Qt){return P(),pC.getDefinitionAtPosition(l,N(ft),Mt,jt,Qt)}function _e(ft,Mt){return P(),pC.getDefinitionAndBoundSpan(l,N(ft),Mt)}function je(ft,Mt){return P(),pC.getTypeDefinitionAtPosition(l.getTypeChecker(),N(ft),Mt)}function Ge(ft,Mt){return P(),Ys.getImplementationsAtPosition(l,g,l.getSourceFiles(),N(ft),Mt)}function We(ft,Mt,jt){const Qt=ya(ft);C.assert(jt.some(wt=>ya(wt)===Qt)),P();const In=Ui(jt,wt=>l.getSourceFile(wt)),yn=N(ft);return P7.getDocumentHighlights(l,g,yn,Mt,In)}function at(ft,Mt,jt,Qt,In){P();const yn=N(ft),wt=n7(ip(yn,Mt));if(hz.nodeIsEligibleForRename(wt))if(He(wt)&&(ph(wt.parent)||GS(wt.parent))&&iD(wt.escapedText)){const{openingElement:En,closingElement:xn}=wt.parent.parent;return[En,xn].map(Ln=>{const ln=Fu(Ln.tagName,yn);return{fileName:yn.fileName,textSpan:ln,...Ys.toContextSpan(ln,yn,Ln.parent)}})}else{const En=Gp(yn,In??Sm),xn=typeof In=="boolean"?In:In?.providePrefixAndSuffixTextForRename;return cn(wt,Mt,{findInStrings:jt,findInComments:Qt,providePrefixAndSuffixTextForRename:xn,use:Ys.FindReferencesUse.Rename},(Ln,ln,Ii)=>Ys.toRenameLocation(Ln,ln,Ii,xn||!1,En))}}function Wt(ft,Mt){return P(),cn(ip(N(ft),Mt),Mt,{use:Ys.FindReferencesUse.References},Ys.toReferenceEntry)}function cn(ft,Mt,jt,Qt){P();const In=jt&&jt.use===Ys.FindReferencesUse.Rename?l.getSourceFiles().filter(yn=>!l.isSourceFileDefaultLibrary(yn)):l.getSourceFiles();return Ys.findReferenceOrRenameEntries(l,g,In,ft,Mt,jt,Qt)}function gn(ft,Mt){return P(),Ys.findReferencedSymbols(l,g,l.getSourceFiles(),N(ft),Mt)}function Kn(ft){return P(),Ys.Core.getReferencesForFileName(ft,l,l.getSourceFiles()).map(Ys.toReferenceEntry)}function _t(ft,Mt,jt,Qt=!1,In=!1){P();const yn=jt?[N(jt)]:l.getSourceFiles();return Txe(yn,l.getTypeChecker(),g,ft,Mt,Qt,In)}function en(ft,Mt,jt){P();const Qt=N(ft),In=e.getCustomTransformers&&e.getCustomTransformers();return Zae(l,Qt,!!Mt,g,In,jt)}function ir(ft,Mt,{triggerReason:jt}=Sm){P();const Qt=N(ft);return KO.getSignatureHelpItems(l,Qt,Mt,jt,g)}function Di(ft){return s.getCurrentSourceFile(ft)}function lo(ft,Mt,jt){const Qt=s.getCurrentSourceFile(ft),In=ip(Qt,Mt);if(In===Qt)return;switch(In.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let yn=In;for(;;)if(YD(yn)||_le(yn))yn=yn.parent;else if(_q(yn))if(yn.parent.parent.kind===268&&yn.parent.parent.body===yn.parent)yn=yn.parent.parent.name;else break;else break;return oc(yn.getStart(),In.getEnd())}function zt(ft,Mt){const jt=s.getCurrentSourceFile(ft);return XJ.spanInSourceFileAtLocation(jt,Mt)}function Zr(ft){return Ixe(s.getCurrentSourceFile(ft),g)}function Ai(ft){return xxe(s.getCurrentSourceFile(ft),g)}function Ni(ft,Mt,jt){return P(),(jt||"original")==="2020"?YRe(l,g,N(ft),Mt):ice(l.getTypeChecker(),g,N(ft),l.getClassifiableNames(),Mt)}function Pr(ft,Mt,jt){return P(),(jt||"original")==="original"?uJ(l.getTypeChecker(),g,N(ft),l.getClassifiableNames(),Mt):Pde(l,g,N(ft),Mt)}function Ci(ft,Mt){return oce(g,s.getCurrentSourceFile(ft),Mt)}function $e(ft,Mt){return pJ(g,s.getCurrentSourceFile(ft),Mt)}function At(ft){const Mt=s.getCurrentSourceFile(ft);return jK.collectElements(Mt,g)}const mn=new Map(Object.entries({19:20,21:22,23:24,32:30}));mn.forEach((ft,Mt)=>mn.set(ft.toString(),Number(Mt)));function dr(ft,Mt){const jt=s.getCurrentSourceFile(ft),Qt=ZD(jt,Mt),In=Qt.getStart(jt)===Mt?mn.get(Qt.kind.toString()):void 0,yn=In&&Es(Qt.parent,In,jt);return yn?[Fu(Qt,jt),Fu(yn,jt)].sort((wt,En)=>wt.start-En.start):ae}function ri(ft,Mt,jt){let Qt=Ls();const In=MO(jt),yn=s.getCurrentSourceFile(ft);y("getIndentationAtPosition: getCurrentSourceFile: "+(Ls()-Qt)),Qt=Ls();const wt=Mc.SmartIndenter.getIndentation(Mt,yn,In);return y("getIndentationAtPosition: computeIndentation : "+(Ls()-Qt)),wt}function ai(ft,Mt,jt,Qt){const In=s.getCurrentSourceFile(ft);return Mc.formatSelection(Mt,jt,In,Mc.getFormatContext(MO(Qt),e))}function qi(ft,Mt){return Mc.formatDocument(s.getCurrentSourceFile(ft),Mc.getFormatContext(MO(Mt),e))}function $o(ft,Mt,jt,Qt){const In=s.getCurrentSourceFile(ft),yn=Mc.getFormatContext(MO(Qt),e);if(!fv(In,Mt))switch(jt){case"{":return Mc.formatOnOpeningCurly(Mt,In,yn);case"}":return Mc.formatOnClosingCurly(Mt,In,yn);case";":return Mc.formatOnSemicolon(Mt,In,yn);case` `:return Mc.formatOnEnter(Mt,In,yn)}return[]}function Ia(ft,Mt,jt,Qt,In,yn=Sm){P();const wt=N(ft),En=oc(Mt,jt),xn=Mc.getFormatContext(In,e);return Ki(lS(Qt,eb,js),Ln=>(g.throwIfCancellationRequested(),lu.getFixes({errorCode:Ln,sourceFile:wt,span:En,program:l,host:e,cancellationToken:g,formatContext:xn,preferences:yn})))}function Mn(ft,Mt,jt,Qt=Sm){P(),C.assert(ft.type==="file");const In=N(ft.fileName),yn=Mc.getFormatContext(jt,e);return lu.getAllFixes({fixId:Mt,sourceFile:In,program:l,host:e,cancellationToken:g,formatContext:yn,preferences:Qt})}function Uo(ft,Mt,jt=Sm){P(),C.assert(ft.type==="file");const Qt=N(ft.fileName);if(dI(Qt))return ae;const In=Mc.getFormatContext(Mt,e),yn=ft.mode??(ft.skipDestructiveCodeActions?"SortAndCombine":"All");return y0.organizeImports(Qt,In,e,l,jt,yn)}function ot(ft,Mt,jt,Qt=Sm){return lce(W(),ft,Mt,e,Mc.getFormatContext(jt,e),Qt,R)}function Ft(ft,Mt){const jt=typeof ft=="string"?Mt:ft;return Mo(jt)?Promise.all(jt.map(Qt=>le(Qt))):le(jt)}function le(ft){const Mt=jt=>ks(jt,h,A);return C.assertEqual(ft.type,"install package"),e.installPackage?e.installPackage({fileName:Mt(ft.file),packageName:ft.packageName}):Promise.reject("Host does not implement `installPackage`")}function ht(ft,Mt,jt,Qt){const In=Qt?Mc.getFormatContext(Qt,e).options:void 0;return g0.getDocCommentTemplateAtPosition(_y(e,In),s.getCurrentSourceFile(ft),Mt,jt)}function ne(ft,Mt,jt){if(jt===60)return!1;const Qt=s.getCurrentSourceFile(ft);if(cx(Qt,Mt))return!1;if(Ele(Qt,Mt))return jt===123;if(Sq(Qt,Mt))return!1;switch(jt){case 39:case 34:case 96:return!fv(Qt,Mt)}return!0}function Fe(ft,Mt){const jt=s.getCurrentSourceFile(ft),Qt=Gc(Mt,jt);if(!Qt)return;const In=Qt.kind===32&&ph(Qt.parent)?Qt.parent.parent:WI(Qt)&&r_(Qt.parent)?Qt.parent:void 0;if(In&&Ot(In))return{newText:``};const yn=Qt.kind===32&&jm(Qt.parent)?Qt.parent.parent:WI(Qt)&&ZT(Qt.parent)?Qt.parent:void 0;if(yn&&nt(yn))return{newText:""}}function it(ft,Mt){const jt=s.getCurrentSourceFile(ft),Qt=Gc(Mt,jt);if(!Qt||Qt.parent.kind===308)return;const In="[a-zA-Z0-9:\\-\\._$]*";if(ZT(Qt.parent.parent)){const yn=Qt.parent.parent.openingFragment,wt=Qt.parent.parent.closingFragment;if(dI(yn)||dI(wt))return;const En=yn.getStart(jt)+1,xn=wt.getStart(jt)+2;return Mt!==En&&Mt!==xn?void 0:{ranges:[{start:En,length:0},{start:xn,length:0}],wordPattern:In}}else{const yn=Dn(Qt.parent,sa=>!!(ph(sa)||GS(sa)));if(!yn)return;C.assert(ph(yn)||GS(yn),"tag should be opening or closing element");const wt=yn.parent.openingElement,En=yn.parent.closingElement,xn=wt.tagName.getStart(jt),Ln=wt.tagName.end,ln=En.tagName.getStart(jt),Ii=En.tagName.end;return xn===wt.getStart(jt)||ln===En.getStart(jt)||Ln===wt.getEnd()||Ii===En.getEnd()||!(xn<=Mt&&Mt<=Ln||ln<=Mt&&Mt<=Ii)||wt.tagName.getText(jt)!==En.tagName.getText(jt)?void 0:{ranges:[{start:xn,length:Ln-xn},{start:ln,length:Ii-ln}],wordPattern:In}}}function dt(ft,Mt){return{lineStarts:ft.getLineStarts(),firstLine:ft.getLineAndCharacterOfPosition(Mt.pos).line,lastLine:ft.getLineAndCharacterOfPosition(Mt.end).line}}function Lt(ft,Mt,jt){const Qt=s.getCurrentSourceFile(ft),In=[],{lineStarts:yn,firstLine:wt,lastLine:En}=dt(Qt,Mt);let xn=jt||!1,Ln=Number.MAX_VALUE;const ln=new Map,Ii=new RegExp(/\S/),ra=i7(Qt,yn[wt]),sa=ra?"{/*":"//";for(let zo=wt;zo<=En;zo++){const Gl=Qt.text.substring(yn[zo],Qt.getLineEndOfPosition(yn[zo])),xl=Ii.exec(Gl);xl&&(Ln=Math.min(Ln,xl.index),ln.set(zo.toString(),xl.index),Gl.substr(xl.index,sa.length)!==sa&&(xn=jt===void 0||jt))}for(let zo=wt;zo<=En;zo++){if(wt!==En&&yn[zo]===Mt.end)continue;const Gl=ln.get(zo.toString());Gl!==void 0&&(ra?In.push(...Ue(ft,{pos:yn[zo]+Ln,end:Qt.getLineEndOfPosition(yn[zo])},xn,ra)):xn?In.push({newText:sa,span:{length:0,start:yn[zo]+Ln}}):Qt.text.substr(yn[zo]+Gl,sa.length)===sa&&In.push({newText:"",span:{length:sa.length,start:yn[zo]+Gl}}))}return In}function Ue(ft,Mt,jt,Qt){var In;const yn=s.getCurrentSourceFile(ft),wt=[],{text:En}=yn;let xn=!1,Ln=jt||!1;const ln=[];let{pos:Ii}=Mt;const ra=Qt!==void 0?Qt:i7(yn,Ii),sa=ra?"{/*":"/*",zo=ra?"*/}":"*/",Gl=ra?"\\{\\/\\*":"\\/\\*",xl=ra?"\\*\\/\\}":"\\*\\/";for(;Ii<=Mt.end;){const Ps=En.substr(Ii,sa.length)===sa?sa.length:0,co=fv(yn,Ii+Ps);if(co)ra&&(co.pos--,co.end++),ln.push(co.pos),co.kind===3&&ln.push(co.end),xn=!0,Ii=co.end+1;else{const Go=En.substring(Ii,Mt.end).search(`(${Gl})|(${xl})`);Ln=jt!==void 0?jt:Ln||!kle(En,Ii,Go===-1?Mt.end:Ii+Go),Ii=Go===-1?Mt.end+1:Ii+Go+zo.length}}if(Ln||!xn){((In=fv(yn,Mt.pos))==null?void 0:In.kind)!==2&&Xv(ln,Mt.pos,js),Xv(ln,Mt.end,js);const Ps=ln[0];En.substr(Ps,sa.length)!==sa&&wt.push({newText:sa,span:{length:0,start:Ps}});for(let co=1;co0?Ps-zo.length:0,Go=En.substr(co,zo.length)===zo?zo.length:0;wt.push({newText:"",span:{length:sa.length,start:Ps-Go}})}return wt}function Rt(ft,Mt){const jt=s.getCurrentSourceFile(ft),{firstLine:Qt,lastLine:In}=dt(jt,Mt);return Qt===In&&Mt.pos!==Mt.end?Ue(ft,Mt,!0):Lt(ft,Mt,!0)}function It(ft,Mt){const jt=s.getCurrentSourceFile(ft),Qt=[],{pos:In}=Mt;let{end:yn}=Mt;In===yn&&(yn+=i7(jt,In)?2:1);for(let wt=In;wt<=yn;wt++){const En=fv(jt,wt);if(En){switch(En.kind){case 2:Qt.push(...Lt(ft,{end:En.end,pos:En.pos+1},!1));break;case 3:Qt.push(...Ue(ft,{end:En.end,pos:En.pos+1},!1))}wt=En.end+1}}return Qt}function Ot({openingElement:ft,closingElement:Mt,parent:jt}){return!o0(ft.tagName,Mt.tagName)||r_(jt)&&o0(ft.tagName,jt.openingElement.tagName)&&Ot(jt)}function nt({closingFragment:ft,parent:Mt}){return!!(ft.flags&262144)||ZT(Mt)&&nt(Mt)}function Kt(ft,Mt,jt){const Qt=s.getCurrentSourceFile(ft),In=Mc.getRangeOfEnclosingComment(Qt,Mt);return In&&(!jt||In.kind===3)?hv(In):void 0}function Tr(ft,Mt){P();const jt=N(ft);g.throwIfCancellationRequested();const Qt=jt.text,In=[];if(Mt.length>0&&!xn(jt.fileName)){const Ln=wt();let ln;for(;ln=Ln.exec(Qt);){g.throwIfCancellationRequested();const Ii=3;C.assert(ln.length===Mt.length+Ii);const ra=ln[1],sa=ln.index+ra.length;if(!fv(jt,sa))continue;let zo;for(let xl=0;xl"("+yn(co.text)+")").join("|")+")",zo=/(?:$|\*\/)/.source,Gl=/(?:.*?)/.source,xl="("+sa+Gl+")",Ps=ra+xl+zo;return new RegExp(Ps,"gim")}function En(Ln){return Ln>=97&&Ln<=122||Ln>=65&&Ln<=90||Ln>=48&&Ln<=57}function xn(Ln){return Ln.includes("/node_modules/")}}function Oe(ft,Mt,jt){return P(),hz.getRenameInfo(l,N(ft),Mt,jt||{})}function Nt(ft,Mt,jt,Qt,In,yn){const[wt,En]=typeof Mt=="number"?[Mt,void 0]:[Mt.pos,Mt.end];return{file:ft,startPosition:wt,endPosition:En,program:W(),host:e,formatContext:Mc.getFormatContext(Qt,e),cancellationToken:g,preferences:jt,triggerReason:In,kind:yn}}function he(ft,Mt,jt){return{file:ft,program:W(),host:e,span:Mt,preferences:jt,cancellationToken:g}}function B(ft,Mt){return qK.getSmartSelectionRange(Mt,s.getCurrentSourceFile(ft))}function Ae(ft,Mt,jt=Sm,Qt,In,yn){P();const wt=N(ft);return mx.getApplicableRefactors(Nt(wt,Mt,jt,Sm,Qt,In),yn)}function te(ft,Mt,jt=Sm){P();const Qt=N(ft),In=C.checkDefined(l.getSourceFiles()),yn=TM(ft),wt=CO(Nt(Qt,Mt,jt,Sm)),En=Qce(wt?.all),xn=Ui(In,Ln=>{const ln=TM(Ln.fileName);return!l?.isSourceFileFromExternalLibrary(Qt)&&!(Qt===N(Ln.fileName)||yn===".ts"&&ln===".d.ts"||yn===".d.ts"&&po(xc(Ln.fileName),"lib.")&&ln===".d.ts")&&(yn===ln||(yn===".tsx"&&ln===".ts"||yn===".jsx"&&ln===".js")&&!En)?Ln.fileName:void 0});return{newFileName:$ce(Qt,l,e,wt),files:xn}}function xt(ft,Mt,jt,Qt,In,yn=Sm,wt){P();const En=N(ft);return mx.getEditsForRefactor(Nt(En,jt,yn,Mt),Qt,In,wt)}function Xt(ft,Mt){return Mt===0?{line:0,character:0}:R.toLineColumnOffset(ft,Mt)}function Pe(ft,Mt){P();const jt=hx.resolveCallHierarchyDeclaration(l,ip(N(ft),Mt));return jt&&nJ(jt,Qt=>hx.createCallHierarchyItem(l,Qt))}function gt(ft,Mt){P();const jt=N(ft),Qt=rJ(hx.resolveCallHierarchyDeclaration(l,Mt===0?jt:ip(jt,Mt)));return Qt?hx.getIncomingCalls(l,Qt,g):[]}function Bt(ft,Mt){P();const jt=N(ft),Qt=rJ(hx.resolveCallHierarchyDeclaration(l,Mt===0?jt:ip(jt,Mt)));return Qt?hx.getOutgoingCalls(l,Qt):[]}function gr(ft,Mt,jt=Sm){P();const Qt=N(ft);return BK.provideInlayHints(he(Qt,Mt,jt))}function tr(ft,Mt,jt,Qt,In){return GK.mapCode(s.getCurrentSourceFile(ft),Mt,jt,e,Mc.getFormatContext(Qt,e),In)}const Jn={dispose:J,cleanupSemanticCache:j,getSyntacticDiagnostics:Z,getSemanticDiagnostics:q,getRegionSemanticDiagnostics:ye,getSuggestionDiagnostics:X,getCompilerOptionsDiagnostics:Ce,getSyntacticClassifications:Ci,getSemanticClassifications:Ni,getEncodedSyntacticClassifications:$e,getEncodedSemanticClassifications:Pr,getCompletionsAtPosition:Je,getCompletionEntryDetails:Se,getCompletionEntrySymbol:re,getSignatureHelpItems:ir,getQuickInfoAtPosition:be,getDefinitionAtPosition:Re,getDefinitionAndBoundSpan:_e,getImplementationAtPosition:Ge,getTypeDefinitionAtPosition:je,getReferencesAtPosition:Wt,findReferences:gn,getFileReferences:Kn,getDocumentHighlights:We,getNameOrDottedNameSpan:lo,getBreakpointStatementAtPosition:zt,getNavigateToItems:_t,getRenameInfo:Oe,getSmartSelectionRange:B,findRenameLocations:at,getNavigationBarItems:Zr,getNavigationTree:Ai,getOutliningSpans:At,getTodoComments:Tr,getBraceMatchingAtPosition:dr,getIndentationAtPosition:ri,getFormattingEditsForRange:ai,getFormattingEditsForDocument:qi,getFormattingEditsAfterKeystroke:$o,getDocCommentTemplateAtPosition:ht,isValidBraceCompletionAtPosition:ne,getJsxClosingTagAtPosition:Fe,getLinkedEditingRangeAtPosition:it,getSpanOfEnclosingComment:Kt,getCodeFixesAtPosition:Ia,getCombinedCodeFix:Mn,applyCodeActionCommand:Ft,organizeImports:Uo,getEditsForFileRename:ot,getEmitOutput:en,getNonBoundSourceFile:Di,getProgram:W,getCurrentProgram:()=>l,getAutoImportProvider:O,updateIsDefinitionOfReferencedSymbols:G,getApplicableRefactors:Ae,getEditsForRefactor:xt,getMoveToRefactoringFileSuggestions:te,toLineColumnOffset:Xt,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:Pe,provideCallHierarchyIncomingCalls:gt,provideCallHierarchyOutgoingCalls:Bt,toggleLineComment:Lt,toggleMultilineComment:Ue,commentSelection:Rt,uncommentSelection:It,provideInlayHints:gr,getSupportedCodeFixes:qJ,preparePasteEditsForFile:Ne,getPasteEdits:Be,mapCode:tr};switch(o){case 0:break;case 1:cDe.forEach(ft=>Jn[ft]=()=>{throw new Error(`LanguageService Operation: ${ft} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:G$e.forEach(ft=>Jn[ft]=()=>{throw new Error(`LanguageService Operation: ${ft} not allowed in LanguageServiceMode.Syntactic`)});break;default:C.assertNever(o)}return Jn}function KJ(e){return e.nameTable||V$e(e),e.nameTable}function V$e(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(He(i)&&!mq(i)&&i.escapedText||uf(i)&&j$e(i)){const o=rM(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(eo(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Jo(i,r),ef(i))for(const o of i.jsDoc)Jo(o,r)})}function j$e(e){return L_(e)||e.parent.kind===284||q$e(e)||_k(e)}function LO(e){const t=U$e(e);return t&&(Wa(t.parent)||VS(t.parent))?t:void 0}function U$e(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===168)return U9(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return U9(e.parent)&&(e.parent.parent.kind===211||e.parent.parent.kind===293)&&e.parent.name===e?e.parent:void 0}}function H$e(e,t){const r=LO(e);if(r){const i=t.getContextualType(r.parent),o=i&&X7(r,t,i,!1);if(o&&o.length===1)return $a(o)}return t.getSymbolAtLocation(e)}function X7(e,t,r,i){const o=mO(e.name);if(!o)return ae;if(!r.isUnion()){const u=r.getProperty(o);return u?[u]:ae}const s=Wa(e.parent)||VS(e.parent)?Un(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=Ui(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?Ui(r.types,u=>u.getProperty(o)):lS(l,eb)}function q$e(e){return e&&e.parent&&e.parent.kind===213&&e.parent.argumentExpression===e}function Wde(e){if(jc)return Qr(ci(ya(jc.getExecutingFilePath())),v2(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}Wne(W$e());function dDe(e,t,r){const i=[];r=EJ(r,i);const o=Mo(e)?e:[e],s=Gw(void 0,void 0,L,r,o,t,!0);return s.diagnostics=so(s.diagnostics,i),s}var XJ={};x(XJ,{spanInSourceFileAtLocation:()=>J$e});function J$e(e,t){if(e.isDeclarationFile)return;let r=Fi(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const y=Gc(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return h(r);function o(y,E){const A=HS(y)?ga(y.modifiers,Fc):void 0,R=A?La(e.text,A.end):y.getStart(e);return oc(R,(E||y).getEnd())}function s(y,E){return o(y,ZS(E,E.parent,e))}function l(y,E){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?h(y):h(E)}function u(y,E,A){if(y){const R=y.indexOf(E);if(R>=0){let N=R,P=R+1;for(;N>0&&A(y[N-1]);)N--;for(;P0)return h(Ce.declarations[0])}else return h(X.initializer)}function j(X){if(X.initializer)return G(X);if(X.condition)return o(X.condition);if(X.incrementor)return o(X.incrementor)}function J(X){const Ce=Ye(X.elements,Je=>Je.kind!==233?Je:void 0);return Ce?h(Ce):X.parent.kind===209?o(X.parent):E(X.parent)}function Z(X){C.assert(X.kind!==208&&X.kind!==207);const Ce=X.kind===210?X.elements:X.properties,Je=Ye(Ce,Se=>Se.kind!==233?Se:void 0);return Je?h(Je):o(X.parent.kind===227?X.parent:X)}function q(X){switch(X.parent.kind){case 267:const Ce=X.parent;return l(Gc(X.pos,e,X.parent),Ce.members.length?Ce.members[0]:Ce.getLastToken(e));case 264:const Je=X.parent;return l(Gc(X.pos,e,X.parent),Je.members.length?Je.members[0]:Je.getLastToken(e));case 270:return l(X.parent.parent,X.parent.clauses[0])}return h(X.parent)}function ye(X){switch(X.parent.kind){case 269:if(my(X.parent.parent)!==1)return;case 267:case 264:return o(X);case 242:if(TS(X.parent))return o(X);case 300:return h(Zs(X.parent.statements));case 270:const Ce=X.parent,Je=Zs(Ce.clauses);return Je?h(Zs(Je.statements)):void 0;case 207:const Se=X.parent;return h(Zs(Se.elements)||Se);default:if(mv(X.parent)){const re=X.parent;return o(Zs(re.properties)||re)}return h(X.parent)}}function ie(X){switch(X.parent.kind){case 208:const Ce=X.parent;return o(Zs(Ce.elements)||Ce);default:if(mv(X.parent)){const Je=X.parent;return o(Zs(Je.elements)||Je)}return h(X.parent)}}function K(X){return X.parent.kind===247||X.parent.kind===214||X.parent.kind===215?d(X):X.parent.kind===218?g(X):h(X.parent)}function pe(X){switch(X.parent.kind){case 219:case 263:case 220:case 175:case 174:case 178:case 179:case 177:case 248:case 247:case 249:case 251:case 214:case 215:case 218:return d(X);default:return h(X.parent)}}function de(X){return Yo(X.parent)||X.parent.kind===304||X.parent.kind===170?d(X):h(X.parent)}function fe(X){return X.parent.kind===217?g(X):h(X.parent)}function ve(X){return X.parent.kind===247?s(X,X.parent.expression):h(X.parent)}function xe(X){return X.parent.kind===251?g(X):h(X.parent)}}}var hx={};x(hx,{createCallHierarchyItem:()=>Fde,getIncomingCalls:()=>tQe,getOutgoingCalls:()=>uQe,resolveCallHierarchyDeclaration:()=>yDe});function K$e(e){return(Us(e)||uc(e))&&nd(e)}function uDe(e){return Po(e)||yi(e)}function kO(e){return(Us(e)||Xs(e)||uc(e))&&uDe(e.parent)&&e===e.parent.initializer&&He(e.parent.name)&&(!!(ty(e.parent)&2)||Po(e.parent))}function pDe(e){return Yi(e)||pc(e)||ec(e)||Us(e)||Cc(e)||uc(e)||Zl(e)||Ml(e)||Gm(e)||Hf(e)||gp(e)}function cC(e){return Yi(e)||pc(e)&&He(e.name)||ec(e)||Cc(e)||Zl(e)||Ml(e)||Gm(e)||Hf(e)||gp(e)||K$e(e)||kO(e)}function fDe(e){return Yi(e)?e:nd(e)?e.name:kO(e)?e.parent.name:C.checkDefined(e.modifiers&&hn(e.modifiers,mDe))}function mDe(e){return e.kind===90}function hDe(e,t){const r=fDe(t);return r&&e.getSymbolAtLocation(r)}function X$e(e,t){if(Yi(t))return{text:t.fileName,pos:0,end:0};if((ec(t)||Cc(t))&&!nd(t)){const o=t.modifiers&&hn(t.modifiers,mDe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Zl(t)){const o=t.getSourceFile(),s=La(o.text,Yh(t).pos),l=s+6,u=e.getTypeChecker(),d=u.getSymbolAtLocation(t.parent);return{text:`${d?`${u.symbolToString(d,t.parent)} `:""}static {}`,pos:s,end:l}}const r=kO(t)?t.parent.name:C.checkDefined(Oo(t),"Expected call hierarchy item to have a name");let i=He(r)?Kr(r):uf(r)?r.text:va(r)&&uf(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=YU();i=VR(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function Y$e(e){var t,r,i,o;if(kO(e))return Po(e.parent)&&ui(e.parent.parent)?uc(e.parent.parent)?(t=Q8(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():t_(e.parent.parent.parent.parent)&&He(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 178:case 179:case 175:return e.parent.kind===211?(i=Q8(e.parent))==null?void 0:i.getText():(o=Oo(e.parent))==null?void 0:o.getText();case 263:case 264:case 268:if(t_(e.parent)&&He(e.parent.parent.name))return e.parent.parent.name.getText()}}function _De(e,t){if(t.body)return t;if(Pl(t))return yg(t.parent);if(ec(t)||Ml(t)){const r=hDe(e,t);return r&&r.valueDeclaration&&Ms(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function gDe(e,t){const r=hDe(e,t);let i;if(r&&r.declarations){const o=R8(r.declarations),s=Vt(r.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));o.sort((d,g)=>Wd(s[d].file,s[g].file)||s[d].pos-s[g].pos);const l=Vt(o,d=>r.declarations[d]);let u;for(const d of l)cC(d)&&((!u||u.parent!==d.parent||u.end!==d.pos)&&(i=Bn(i,d)),u=d)}return i}function YJ(e,t){return Zl(t)?t:Ms(t)?_De(e,t)??gDe(e,t)??t:gDe(e,t)??t}function yDe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(cC(t))return YJ(r,t);if(pDe(t)){const o=Dn(t,cC);return o&&YJ(r,o)}if(L_(t)){if(cC(t.parent))return YJ(r,t.parent);if(pDe(t.parent)){const o=Dn(t.parent,cC);return o&&YJ(r,o)}return uDe(t.parent)&&t.parent.initializer&&kO(t.parent.initializer)?t.parent.initializer:void 0}if(Pl(t))return cC(t.parent)?t.parent:void 0;if(t.kind===126&&Zl(t.parent)){t=t.parent;continue}if(yi(t)&&t.initializer&&kO(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 Fde(e,t){const r=t.getSourceFile(),i=X$e(e,t),o=Y$e(t),s=QS(t),l=IP(t),u=oc(La(r.text,t.getFullStart(),!1,!0),t.getEnd()),d=oc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:d}}function $$e(e){return e!==void 0}function Q$e(e){if(e.kind===Ys.EntryKind.Node){const{node:t}=e;if(dq(t,!0,!0)||fle(t,!0,!0)||mle(t,!0,!0)||hle(t,!0,!0)||YD(t)||hq(t)){const r=t.getSourceFile();return{declaration:Dn(t,cC)||r,range:Nq(t,r)}}}}function vDe(e){return ls(e.declaration)}function Z$e(e,t){return{from:e,fromSpans:t}}function eQe(e,t){return Z$e(Fde(e,t[0].declaration),Vt(t,r=>hv(r.range)))}function tQe(e,t,r){if(Yi(t)||pc(t)||Zl(t))return[];const i=fDe(t),o=Un(Ys.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Ys.FindReferencesUse.References},Q$e),$$e);return o?AR(o,vDe,s=>eQe(e,s)):[]}function nQe(e,t){function r(o){const s=KT(o)?o.tag:nu(o)?o.tagName:Ks(o)||Zl(o)?o:o.expression,l=yDe(e,s);if(l){const u=Nq(s,o.getSourceFile());if(Mo(l))for(const d of l)t.push({declaration:d,range:u});else t.push({declaration:l,range:u})}}function i(o){if(o&&!(o.flags&33554432)){if(cC(o)){if(ui(o))for(const s of o.members)s.name&&va(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:r(o);return;case 217:case 235:i(o.expression);return;case 261:case 170:i(o.name),i(o.initializer);return;case 214:r(o),i(o.expression),Ye(o.arguments,i);return;case 215:r(o),i(o.expression),Ye(o.arguments,i);return;case 216:r(o),i(o.tag),i(o.template);return;case 287:case 286:r(o),i(o.tagName),i(o.attributes);return;case 171:r(o),i(o.expression);return;case 212:case 213:r(o),Jo(o,i);break;case 239:i(o.expression);return}Hh(o)||Jo(o,i)}}return i}function rQe(e,t){Ye(e.statements,t)}function iQe(e,t){!di(e,128)&&e.body&&t_(e.body)&&Ye(e.body.statements,t)}function oQe(e,t,r){const i=_De(e,t);i&&(Ye(i.parameters,r),r(i.body))}function aQe(e,t){t(e.body)}function sQe(e,t){Ye(e.modifiers,t);const r=xS(e);r&&t(r.expression);for(const i of e.members)Tm(i)&&Ye(i.modifiers,t),Po(i)?t(i.initializer):Pl(i)&&i.body?(Ye(i.parameters,t),t(i.body)):Zl(i)&&t(i)}function lQe(e,t){const r=[],i=nQe(e,r);switch(t.kind){case 308:rQe(t,i);break;case 268:iQe(t,i);break;case 263:case 219:case 220:case 175:case 178:case 179:oQe(e.getTypeChecker(),t,i);break;case 264:case 232:sQe(t,i);break;case 176:aQe(t,i);break;default:C.assertNever(t)}return r}function cQe(e,t){return{to:e,fromSpans:t}}function dQe(e,t){return cQe(Fde(e,t[0].declaration),Vt(t,r=>hv(r.range)))}function uQe(e,t){return t.flags&33554432||Gm(t)?[]:AR(lQe(e,t),vDe,r=>dQe(e,r))}var zde={};x(zde,{v2020:()=>bDe});var bDe={};x(bDe,{TokenEncodingConsts:()=>JRe,TokenModifier:()=>XRe,TokenType:()=>KRe,getEncodedSemanticClassifications:()=>Pde,getSemanticClassifications:()=>YRe});var lu={};x(lu,{PreserveOptionalFlags:()=>kPe,addNewNodeForMemberSymbol:()=>wPe,codeFixAll:()=>Ss,createCodeFixAction:()=>oa,createCodeFixActionMaybeFixAll:()=>Vde,createCodeFixActionWithoutFixAll:()=>yh,createCombinedCodeActions:()=>_x,createFileTextChanges:()=>TDe,createImportAdder:()=>oE,createImportSpecifierResolver:()=>bZe,createMissingMemberNodes:()=>cpe,createSignatureDeclarationFromCallExpression:()=>dpe,createSignatureDeclarationFromSignature:()=>SK,createStubbedBody:()=>nz,eachDiagnostic:()=>gx,findAncestorMatchingSpan:()=>gpe,generateAccessorFromProperty:()=>jPe,getAccessorConvertiblePropertyAtPosition:()=>qPe,getAllFixes:()=>hQe,getFixes:()=>mQe,getImportCompletionAction:()=>TZe,getImportKind:()=>sK,getJSDocTypedefNodes:()=>yZe,getNoopSymbolTrackerWithResolver:()=>uC,getPromoteTypeOnlyCompletionAction:()=>SZe,getSupportedErrorCodes:()=>pQe,importFixName:()=>jCe,importSymbols:()=>z1,parameterShouldGetTypeFromJSDoc:()=>QDe,registerCodeFix:()=>Sa,setJsonCompilerOptionValue:()=>hpe,setJsonCompilerOptionValues:()=>mpe,tryGetAutoImportableReferenceFromTypeNode:()=>aE,typeNodeToAutoImportableTypeNode:()=>upe,typePredicateToAutoImportableTypeNode:()=>FPe,typeToAutoImportableTypeNode:()=>EK,typeToMinimizedReferenceType:()=>WPe});var Bde=cm(),Gde=new Map;function yh(e,t,r){return jde(e,eE(r),t,void 0,void 0)}function oa(e,t,r,i,o,s){return jde(e,eE(r),t,i,eE(o),s)}function Vde(e,t,r,i,o,s){return jde(e,eE(r),t,i,o&&eE(o),s)}function jde(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Sa(e){for(const t of e.errorCodes)Ude=void 0,Bde.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)C.assert(!Gde.has(t)),Gde.set(t,e)}var Ude;function pQe(){return Ude??(Ude=Co(Bde.keys()))}function fQe(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(jn(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 mQe(e){const t=SDe(e),r=Bde.get(String(e.errorCode));return Ki(r,i=>Vt(i.getCodeActions(e),fQe(i,t)))}function hQe(e){return Gde.get(ma(e.fixId,Bo)).getAllCodeActions(e)}function _x(e,t){return{changes:e,commands:t}}function TDe(e,t){return{fileName:e,textChanges:t}}function Ss(e,t,r){const i=[],o=Rr.ChangeTracker.with(e,s=>gx(e,t,l=>r(s,l,i)));return _x(o,i.length===0?void 0:i)}function gx(e,t,r){for(const i of SDe(e))jn(t,i.code)&&r(i)}function SDe({program:e,sourceFile:t,cancellationToken:r}){const i=[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...vJ(t,e,r)];return _p(e.getCompilerOptions())&&i.push(...e.getDeclarationDiagnostics(t,r)),i}var Hde="addConvertToUnknownForNonOverlappingTypes",EDe=[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];Sa({errorCodes:EDe,getCodeActions:function(t){const r=IDe(t.sourceFile,t.span.start);if(r===void 0)return;const i=Rr.ChangeTracker.with(t,o=>ADe(o,t.sourceFile,r));return[oa(Hde,i,f.Add_unknown_conversion_for_non_overlapping_types,Hde,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[Hde],getAllCodeActions:e=>Ss(e,EDe,(t,r)=>{const i=IDe(r.file,r.start);i&&ADe(t,r.file,i)})});function ADe(e,t,r){const i=TD(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function IDe(e,t){if(!Ir(e))return Dn(Fi(e,t),r=>TD(r)||s4(r))}Sa({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=Rr.ChangeTracker.with(t,o=>{const s=L.createExportDeclaration(void 0,!1,L.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[yh("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}});var qde="addMissingAsync",xDe=[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];Sa({fixIds:[qde],errorCodes:xDe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=hn(s.getTypeChecker().getDiagnostics(r,o),gQe(l,i)),d=u&&u.relatedInformation&&hn(u.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),g=DDe(r,d);return g?[RDe(t,g,y=>Rr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Ss(e,xDe,(i,o)=>{const s=o.relatedInformation&&hn(o.relatedInformation,d=>d.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=DDe(t,s);return l?RDe(e,l,d=>(d(i),[]),r):void 0})}});function RDe(e,t,r,i){const o=r(s=>_Qe(s,e.sourceFile,t,i));return oa(qde,o,f.Add_async_modifier_to_containing_function,qde,f.Add_all_missing_async_modifiers)}function _Qe(e,t,r,i){if(i&&i.has(ls(r)))return;i?.add(ls(r));const o=L.replaceModifiers(_s(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(tv(r)|1024)));e.replaceNode(t,r,o)}function DDe(e,t){if(!t)return;const r=Fi(e,t.start);return Dn(r,o=>o.getStart(e)Cl(t)?"quit":(Xs(o)||Ml(o)||Us(o)||ec(o))&&nC(t,Fu(o,e)))}function gQe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Qv(r)&&Qv(i)&&nC({start:r,length:i},e)&&s===t&&!!o&&yt(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var Jde="addMissingAwait",CDe=f.Property_0_does_not_exist_on_type_1.code,NDe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],Kde=[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,CDe,...NDe];Sa({fixIds:[Jde],errorCodes:Kde,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=MDe(r,i,o,s,l);if(!u)return;const d=t.program.getTypeChecker(),g=h=>Rr.ChangeTracker.with(t,h);return i2([PDe(t,u,i,d,g),LDe(t,u,i,d,g)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Ss(e,Kde,(l,u)=>{const d=MDe(t,u.code,u,i,r);if(!d)return;const g=h=>(h(l),[]);return PDe(e,d,u.code,o,g,s)||LDe(e,d,u.code,o,g,s)})}});function MDe(e,t,r,i,o){const s=tJ(e,r);return s&&yQe(e,t,r,i,o)&&kDe(s)?s:void 0}function PDe(e,t,r,i,o,s){const{sourceFile:l,program:u,cancellationToken:d}=e,g=vQe(t,l,d,u,i);if(g){const h=o(y=>{Ye(g.initializers,({expression:E})=>Xde(y,r,l,i,E,s)),s&&g.needsSecondPassForFixAll&&Xde(y,r,l,i,t,s)});return yh("addMissingAwaitToInitializer",h,g.initializers.length===1?[f.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function LDe(e,t,r,i,o,s){const l=o(u=>Xde(u,r,e.sourceFile,i,t,s));return oa(Jde,l,f.Add_await,Jde,f.Fix_all_expressions_possibly_missing_await)}function yQe(e,t,r,i,o){const l=o.getTypeChecker().getDiagnostics(e,i);return yt(l,({start:u,length:d,relatedInformation:g,code:h})=>Qv(u)&&Qv(d)&&nC({start:u,length:d},r)&&h===t&&!!g&&yt(g,y=>y.code===f.Did_you_forget_to_use_await.code))}function vQe(e,t,r,i,o){const s=bQe(e,o);if(!s)return;let l=s.isCompleteFix,u;for(const d of s.identifiers){const g=o.getSymbolAtLocation(d);if(!g)continue;const h=ni(g.valueDeclaration,yi),y=h&&ni(h.name,He),E=GT(h,244);if(!h||!E||h.type||!h.initializer||E.getSourceFile()!==t||di(E,32)||!y||!kDe(h.initializer)){l=!1;continue}const A=i.getSemanticDiagnostics(t,r);if(Ys.Core.eachSymbolReferenceInFile(y,o,t,N=>d!==N&&!TQe(N,A,t,o))){l=!1;continue}(u||(u=[])).push({expression:h.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function bQe(e,t){if(qr(e.parent)&&He(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(He(e))return{identifiers:[e],isCompleteFix:!0};if(Nr(e)){let r,i=!0;for(const o of[e.left,e.right]){const s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!He(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function TQe(e,t,r,i){const o=qr(e.parent)?e.parent.name:Nr(e.parent)?e.parent:e,s=hn(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&jn(Kde,s.code)||i.getTypeAtLocation(o).flags&1}function kDe(e){return e.flags&65536||!!Dn(e,t=>t.parent&&Xs(t.parent)&&t.parent.body===t||ea(t)&&(t.parent.kind===263||t.parent.kind===219||t.parent.kind===220||t.parent.kind===175))}function Xde(e,t,r,i,o,s){if(sw(o.parent)&&!o.parent.awaitModifier){const l=i.getTypeAtLocation(o),u=i.getAnyAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const d=o.parent;e.replaceNode(r,d,L.updateForOfStatement(d,L.createToken(135),d.initializer,d.expression,d.statement));return}}if(Nr(o))for(const l of[o.left,o.right]){if(s&&He(l)){const g=i.getSymbolAtLocation(l);if(g&&s.has(Ta(g)))continue}const u=i.getTypeAtLocation(l),d=i.getPromisedTypeOfPromise(u)?L.createAwaitExpression(l):l;e.replaceNode(r,l,d)}else if(t===CDe&&qr(o.parent)){if(s&&He(o.parent.expression)){const l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o.parent.expression,L.createParenthesizedExpression(L.createAwaitExpression(o.parent.expression))),wDe(e,o.parent.expression,r)}else if(jn(NDe,t)&&Gh(o.parent)){if(s&&He(o)){const l=i.getSymbolAtLocation(o);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o,L.createParenthesizedExpression(L.createAwaitExpression(o))),wDe(e,o,r)}else{if(s&&yi(o.parent)&&He(o.parent.name)){const l=i.getSymbolAtLocation(o.parent.name);if(l&&!rh(s,Ta(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function wDe(e,t,r){const i=Gc(t.pos,r);i&&v7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var Yde="addMissingConst",ODe=[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];Sa({errorCodes:ODe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>WDe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[oa(Yde,r,f.Add_const_to_unresolved_variable,Yde,f.Add_const_to_all_unresolved_variables)]},fixIds:[Yde],getAllCodeActions:e=>{const t=new Set;return Ss(e,ODe,(r,i)=>WDe(r,i.file,i.start,e.program,t))}});function WDe(e,t,r,i,o){const s=Fi(t,r),l=Dn(s,g=>YE(g.parent)?g.parent.initializer===g:SQe(g)?!1:"quit");if(l)return $J(e,l,t,o);const u=s.parent;if(Nr(u)&&u.operatorToken.kind===64&&od(u.parent))return $J(e,s,t,o);if(Cd(u)){const g=i.getTypeChecker();return Vn(u.elements,h=>EQe(h,g))?$J(e,u,t,o):void 0}const d=Dn(s,g=>od(g.parent)?!0:AQe(g)?!1:"quit");if(d){const g=i.getTypeChecker();return FDe(d,g)?$J(e,d,t,o):void 0}}function $J(e,t,r,i){(!i||rh(i,t))&&e.insertModifierBefore(r,87,t)}function SQe(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}function EQe(e,t){const r=He(e)?e:id(e,!0)&&He(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function AQe(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}function FDe(e,t){return Nr(e)?e.operatorToken.kind===28?Vn([e.left,e.right],r=>FDe(r,t)):e.operatorToken.kind===64&&He(e.left)&&!t.getSymbolAtLocation(e.left):!1}var $de="addMissingDeclareProperty",zDe=[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];Sa({errorCodes:zDe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>BDe(i,t.sourceFile,t.span.start));if(r.length>0)return[oa($de,r,f.Prefix_with_declare,$de,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[$de],getAllCodeActions:e=>{const t=new Set;return Ss(e,zDe,(r,i)=>BDe(r,i.file,i.start,t))}});function BDe(e,t,r,i){const o=Fi(t,r);if(!He(o))return;const s=o.parent;s.kind===173&&(!i||rh(i,s))&&e.insertModifierBefore(t,138,s)}var Qde="addMissingInvocationForDecorator",GDe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];Sa({errorCodes:GDe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>VDe(i,t.sourceFile,t.span.start));return[oa(Qde,r,f.Call_decorator_expression,Qde,f.Add_to_all_uncalled_decorators)]},fixIds:[Qde],getAllCodeActions:e=>Ss(e,GDe,(t,r)=>VDe(t,r.file,r.start))});function VDe(e,t,r){const i=Fi(t,r),o=Dn(i,Fc);C.assert(!!o,"Expected position to be owned by a decorator.");const s=L.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var Zde="addMissingResolutionModeImportAttribute",jDe=[f.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,f.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];Sa({errorCodes:jDe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>UDe(i,t.sourceFile,t.span.start,t.program,t.host,t.preferences));return[oa(Zde,r,f.Add_resolution_mode_import_attribute,Zde,f.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[Zde],getAllCodeActions:e=>Ss(e,jDe,(t,r)=>UDe(t,r.file,r.start,e.program,e.host,e.preferences))});function UDe(e,t,r,i,o,s){var l,u,d;const g=Fi(t,r),h=Dn(g,Rp(vl,e_));C.assert(!!h,"Expected position to be owned by an ImportDeclaration or ImportType.");const y=Gp(t,s)===0,E=mI(h),A=!E||((l=C1(E.text,t.fileName,i.getCompilerOptions(),o,i.getModuleResolutionCache(),void 0,99).resolvedModule)==null?void 0:l.resolvedFileName)===((d=(u=i.getResolvedModuleFromModuleSpecifier(E,t))==null?void 0:u.resolvedModule)==null?void 0:d.resolvedFileName),R=h.attributes?L.updateImportAttributes(h.attributes,L.createNodeArray([...h.attributes.elements,L.createImportAttribute(L.createStringLiteral("resolution-mode",y),L.createStringLiteral(A?"import":"require",y))],h.attributes.elements.hasTrailingComma),h.attributes.multiLine):L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode",y),L.createStringLiteral(A?"import":"require",y))]));h.kind===273?e.replaceNode(t,h,L.updateImportDeclaration(h,h.modifiers,h.importClause,h.moduleSpecifier,R)):e.replaceNode(t,h,L.updateImportTypeNode(h,h.argument,R,h.qualifier,h.typeArguments))}var eue="addNameToNamelessParameter",HDe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];Sa({errorCodes:HDe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>qDe(i,t.sourceFile,t.span.start));return[oa(eue,r,f.Add_parameter_name,eue,f.Add_names_to_all_parameters_without_names)]},fixIds:[eue],getAllCodeActions:e=>Ss(e,HDe,(t,r)=>qDe(t,r.file,r.start))});function qDe(e,t,r){const i=Fi(t,r),o=i.parent;if(!to(o))return C.fail("Tried to add a parameter name to a non-parameter: "+C.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);C.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),C.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=L.createTypeReferenceNode(o.name,void 0),d=JDe(t,o);for(;d;)u=L.createArrayTypeNode(u),l=d.getEnd(),d=JDe(t,d);const g=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!ow(u)?L.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,Bf(o.getStart(t),l),g)}function JDe(e,t){const r=ZS(t.name,t.parent,e);if(r&&r.kind===23&&uv(r.parent)&&to(r.parent.parent))return r.parent.parent}var KDe="addOptionalPropertyUndefined",IQe=[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];Sa({errorCodes:IQe,getCodeActions(e){const t=e.program.getTypeChecker(),r=xQe(e.sourceFile,e.span,t);if(!r.length)return;const i=Rr.ChangeTracker.with(e,o=>DQe(o,r));return[yh(KDe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[KDe]});function xQe(e,t,r){var i,o;const s=XDe(tJ(e,t),r);if(!s)return ae;const{source:l,target:u}=s,d=RQe(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=d.symbol)==null?void 0:i.declarations)!=null&&o.some(g=>Wn(g).fileName.match(/\.d\.ts$/))?ae:r.getExactOptionalProperties(d)}function RQe(e,t,r){return qr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function XDe(e,t){var r;if(e){if(Nr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(yi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Zo(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!rI(i.valueDeclaration.kind)||!St(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(He(s))return{source:e,target:s}}else if(Nc(e.parent)&&He(e.parent.name)||Ud(e.parent)){const i=XDe(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:Nc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function DQe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(Tu(i)||Po(i))&&i.type){const o=L.createUnionTypeNode([...i.type.kind===193?i.type.types:[i.type],L.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var tue="annotateWithTypeFromJSDoc",YDe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code];Sa({errorCodes:YDe,getCodeActions(e){const t=$De(e.sourceFile,e.span.start);if(!t)return;const r=Rr.ChangeTracker.with(e,i=>eCe(i,e.sourceFile,t));return[oa(tue,r,f.Annotate_with_type_from_JSDoc,tue,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[tue],getAllCodeActions:e=>Ss(e,YDe,(t,r)=>{const i=$De(r.file,r.start);i&&eCe(t,r.file,i)})});function $De(e,t){const r=Fi(e,t);return ni(to(r.parent)?r.parent.parent:r.parent,QDe)}function QDe(e){return CQe(e)&&ZDe(e)}function ZDe(e){return Ms(e)?e.parameters.some(ZDe)||!e.type&&!!I2(e):!e.type&&!!Yy(e)}function eCe(e,t,r){if(Ms(r)&&(I2(r)||r.parameters.some(i=>!!Yy(i)))){if(!r.typeParameters){const o=c6(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Xs(r)&&!Es(r,21,t);i&&e.insertNodeBefore(t,$a(r.parameters),L.createToken(21));for(const o of r.parameters)if(!o.type){const s=Yy(o);s&&e.tryInsertTypeAnnotation(t,o,st(s,iE,Ri))}if(i&&e.insertNodeAfter(t,Ba(r.parameters),L.createToken(22)),!r.type){const o=I2(r);o&&e.tryInsertTypeAnnotation(t,r,st(o,iE,Ri))}}else{const i=C.checkDefined(Yy(r),"A JSDocType for this declaration should exist");C.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,st(i,iE,Ri))}}function CQe(e){return Ms(e)||e.kind===261||e.kind===172||e.kind===173}function iE(e){switch(e.kind){case 313:case 314:return L.createTypeReferenceNode("any",ae);case 317:return MQe(e);case 316:return iE(e.type);case 315:return PQe(e);case 319:return LQe(e);case 318:return kQe(e);case 184:return OQe(e);case 323:return NQe(e);default:const t=kn(e,iE,void 0);return Cr(t,1),t}}function NQe(e){const t=L.createTypeLiteralNode(Vt(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,He(r.name)?r.name:r.name.right,Jk(r)?L.createToken(58):void 0,r.typeExpression&&st(r.typeExpression.type,iE,Ri)||L.createKeywordTypeNode(133))));return Cr(t,1),t}function MQe(e){return L.createUnionTypeNode([st(e.type,iE,Ri),L.createTypeReferenceNode("undefined",ae)])}function PQe(e){return L.createUnionTypeNode([st(e.type,iE,Ri),L.createTypeReferenceNode("null",ae)])}function LQe(e){return L.createArrayTypeNode(st(e.type,iE,Ri))}function kQe(e){return L.createFunctionTypeNode(ae,e.parameters.map(wQe),e.type??L.createKeywordTypeNode(133))}function wQe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===319&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?L.createToken(26):e.dotDotDotToken;return L.createParameterDeclaration(e.modifiers,o,i,e.questionToken,st(e.type,iE,Ri),e.initializer)}function OQe(e){let t=e.typeName,r=e.typeArguments;if(He(e.typeName)){if(UF(e))return WQe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=L.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=L.createNodeArray([L.createTypeReferenceNode("any",ae)]):r=Xn(e.typeArguments,iE,Ri)}return L.createTypeReferenceNode(t,r)}function WQe(e){const t=L.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,L.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=L.createTypeLiteralNode([L.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Cr(r,1),r}var nue="convertFunctionToEs6Class",tCe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code];Sa({errorCodes:tCe,getCodeActions(e){const t=Rr.ChangeTracker.with(e,r=>nCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[oa(nue,t,f.Convert_function_to_an_ES2015_class,nue,f.Convert_all_constructor_functions_to_classes)]},fixIds:[nue],getAllCodeActions:e=>Ss(e,tCe,(t,r)=>nCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function nCe(e,t,r,i,o,s){const l=i.getSymbolAtLocation(Fi(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(ec(u)||Us(u))e.replaceNode(t,u,h(u));else if(yi(u)){const y=g(u);if(!y)return;const E=u.parent.parent;_d(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,E,y)):e.replaceNode(t,E,y)}function d(y){const E=[];return y.exports&&y.exports.forEach(N=>{if(N.name==="prototype"&&N.declarations){const P=N.declarations[0];if(N.declarations.length===1&&qr(P)&&Nr(P.parent)&&P.parent.operatorToken.kind===64&&Wa(P.parent.right)){const k=P.parent.right;R(k.symbol,void 0,E)}}else R(N,[L.createToken(126)],E)}),y.members&&y.members.forEach((N,P)=>{var k,W,O,G;if(P==="constructor"&&N.valueDeclaration){const j=(G=(O=(W=(k=y.exports)==null?void 0:k.get("prototype"))==null?void 0:W.declarations)==null?void 0:O[0])==null?void 0:G.parent;j&&Nr(j)&&Wa(j.right)&&yt(j.right.properties,ZJ)||e.delete(t,N.valueDeclaration.parent);return}R(N,void 0,E)}),E;function A(N,P){return Ks(N)?qr(N)&&ZJ(N)?!0:Yo(P):Vn(N.properties,k=>!!(Ml(k)||R2(k)||Nc(k)&&Us(k.initializer)&&k.name||ZJ(k)))}function R(N,P,k){if(!(N.flags&8192)&&!(N.flags&4096))return;const W=N.valueDeclaration,O=W.parent,G=O.right;if(!A(W,G)||yt(k,ye=>{const ie=Oo(ye);return!!(ie&&He(ie)&&Kr(ie)===Ol(N))}))return;const j=O.parent&&O.parent.kind===245?O.parent:O;if(e.delete(t,j),!G){k.push(L.createPropertyDeclaration(P,N.name,void 0,void 0,void 0));return}if(Ks(W)&&(Us(G)||Xs(G))){const ye=Gp(t,o),ie=FQe(W,s,ye);ie&&J(k,G,ie);return}else if(Wa(G)){Ye(G.properties,ye=>{(Ml(ye)||R2(ye))&&k.push(ye),Nc(ye)&&Us(ye.initializer)&&J(k,ye.initializer,ye.name),ZJ(ye)});return}else{if(Mu(t)||!qr(W))return;const ye=L.createPropertyDeclaration(P,W.name,void 0,void 0,G);iC(O.parent,ye,t),k.push(ye);return}function J(ye,ie,K){return Us(ie)?Z(ye,ie,K):q(ye,ie,K)}function Z(ye,ie,K){const pe=so(P,QJ(ie,134)),de=L.createMethodDeclaration(pe,void 0,K,void 0,void 0,ie.parameters,void 0,ie.body);iC(O,de,t),ye.push(de)}function q(ye,ie,K){const pe=ie.body;let de;pe.kind===242?de=pe:de=L.createBlock([L.createReturnStatement(pe)]);const fe=so(P,QJ(ie,134)),ve=L.createMethodDeclaration(fe,void 0,K,void 0,void 0,ie.parameters,void 0,de);iC(O,ve,t),ye.push(ve)}}}function g(y){const E=y.initializer;if(!E||!Us(E)||!He(y.name))return;const A=d(y.symbol);E.body&&A.unshift(L.createConstructorDeclaration(void 0,E.parameters,E.body));const R=QJ(y.parent.parent,95);return L.createClassDeclaration(R,y.name,void 0,void 0,A)}function h(y){const E=d(l);y.body&&E.unshift(L.createConstructorDeclaration(void 0,y.parameters,y.body));const A=QJ(y,95);return L.createClassDeclaration(A,y.name,void 0,void 0,E)}}function QJ(e,t){return Tm(e)?Un(e.modifiers,r=>r.kind===t):void 0}function ZJ(e){return e.name?!!(He(e.name)&&e.name.text==="constructor"):!1}function FQe(e,t,r){if(qr(e))return e.name;const i=e.argumentExpression;if(np(i))return i;if(ds(i))return fp(i.text,Ga(t))?L.createIdentifier(i.text):h1(i)?L.createStringLiteral(i.text,r===0):i}var rue="convertToAsyncFunction",rCe=[f.This_may_be_converted_to_an_async_function.code],eK=!0;Sa({errorCodes:rCe,getCodeActions(e){eK=!0;const t=Rr.ChangeTracker.with(e,r=>iCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return eK?[oa(rue,t,f.Convert_to_async_function,rue,f.Convert_all_to_async_functions)]:[]},fixIds:[rue],getAllCodeActions:e=>Ss(e,rCe,(t,r)=>iCe(t,r.file,r.start,e.program.getTypeChecker()))});function iCe(e,t,r,i){const o=Fi(t,r);let s;if(He(o)&&yi(o.parent)&&o.parent.initializer&&Ms(o.parent.initializer)?s=o.parent.initializer:s=ni(df(Fi(t,r)),SJ),!s)return;const l=new Map,u=Ir(s),d=BQe(s,i),g=GQe(s,i,l);if(!bJ(g,i))return;const h=g.body&&ea(g.body)?zQe(g.body,i):ae,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:d,isInJSFile:u};if(!h.length)return;const E=La(t.text,Yh(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(const A of h)if(Jo(A,function R(N){if(Zo(N)){const P=dC(N,N,y,!1);if(yx())return!0;e.replaceNodeWithNodes(t,A,P)}else if(!Yo(N)&&(Jo(N,R),yx()))return!0}),yx())return}function zQe(e,t){const r=[];return gb(e,i=>{L7(i,t)&&r.push(i)}),r}function BQe(e,t){if(!e.body)return new Set;const r=new Set;return Jo(e.body,function i(o){wO(o,t,"then")?(r.add(ls(o)),Ye(o.arguments,i)):wO(o,t,"catch")||wO(o,t,"finally")?(r.add(ls(o)),Jo(o,i)):aCe(o,t)?r.add(ls(o)):Jo(o,i)}),r}function wO(e,t,r){if(!Zo(e))return!1;const o=aO(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function oCe(e,t){return(Hr(e)&4)!==0&&e.target===t}function tK(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(oCe(i,r.getPromiseType())||oCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Yv(e.arguments,0))return Yv(e.typeArguments,0);if(t===Yv(e.arguments,1))return Yv(e.typeArguments,1)}else return Yv(e.typeArguments,0)}function aCe(e,t){return St(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function GQe(e,t,r){const i=new Map,o=cm();return Jo(e,function s(l){if(!He(l)){Jo(l,s);return}const u=t.getSymbolAtLocation(l);if(u){const d=t.getTypeAtLocation(l),g=pCe(d,t),h=Ta(u).toString();if(g&&!to(l.parent)&&!Ms(l.parent)&&!r.has(h)){const y=Ic(g.parameters),E=y?.valueDeclaration&&to(y.valueDeclaration)&&ni(y.valueDeclaration.name,He)||L.createUniqueName("result",16),A=sCe(E,o);r.set(h,A),o.add(E.text,u)}else if(l.parent&&(to(l.parent)||yi(l.parent)||Ha(l.parent))){const y=l.text,E=o.get(y);if(E&&E.some(A=>A!==u)){const A=sCe(l,o);i.set(h,A.identifier),r.set(h,A),o.add(y,u)}else{const A=_s(l);r.set(h,BP(A)),o.add(y,u)}}}}),Yk(e,!0,s=>{if(Ha(s)&&He(s.name)&&ff(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 L.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(He(s)){const l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ta(l)));if(u)return L.createIdentifier(u.text)}})}function sCe(e,t){const r=(t.get(e.text)||ae).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return BP(i)}function yx(){return!eK}function h0(){return eK=!1,ae}function dC(e,t,r,i,o){if(wO(t,r.checker,"then"))return UQe(t,Yv(t.arguments,0),Yv(t.arguments,1),r,i,o);if(wO(t,r.checker,"catch"))return dCe(t,Yv(t.arguments,0),r,i,o);if(wO(t,r.checker,"finally"))return jQe(t,Yv(t.arguments,0),r,i,o);if(qr(t))return dC(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(C.assertNode(yl(t).parent,qr),HQe(e,t,r,i,o)):h0()}function nK({checker:e},t){if(t.kind===106)return!0;if(He(t)&&!pl(t)&&Kr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function VQe(e){const t=L.createUniqueName(e.identifier.text,16);return BP(t)}function lCe(e,t,r){let i;return r&&!WO(e,t)&&(OO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const l=VQe(r);t.synthNamesMap.set(s,l)}})):i=BP(L.createUniqueName("result",16),r.types),sue(i)),i}function cCe(e,t,r,i,o){const s=[];let l;if(i&&!WO(e,t)){l=_s(sue(i));const u=i.types,d=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),h=[L.createVariableDeclaration(l,void 0,g)],y=L.createVariableStatement(void 0,L.createVariableDeclarationList(h,1));s.push(y)}return s.push(r),o&&l&&KQe(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(_Ce(o)),void 0,void 0,l)],2))),s}function jQe(e,t,r,i,o){if(!t||nK(r,t))return dC(e,e.expression.expression,r,i,o);const s=lCe(e,r,o),l=dC(e,e.expression.expression,r,!0,s);if(yx())return h0();const u=oue(t,i,void 0,void 0,e,r);if(yx())return h0();const d=L.createBlock(l),g=L.createBlock(u),h=L.createTryStatement(d,void 0,g);return cCe(e,r,h,s,o)}function dCe(e,t,r,i,o){if(!t||nK(r,t))return dC(e,e.expression.expression,r,i,o);const s=mCe(t,r),l=lCe(e,r,o),u=dC(e,e.expression.expression,r,!0,l);if(yx())return h0();const d=oue(t,i,l,s,e,r);if(yx())return h0();const g=L.createBlock(u),h=L.createCatchClause(s&&_s(Y7(s)),L.createBlock(d)),y=L.createTryStatement(g,h,void 0);return cCe(e,r,y,l,o)}function UQe(e,t,r,i,o,s){if(!t||nK(i,t))return dCe(e,r,i,o,s);if(r&&!nK(i,r))return h0();const l=mCe(t,i),u=dC(e.expression.expression,e.expression.expression,i,!0,l);if(yx())return h0();const d=oue(t,o,s,l,e,i);return yx()?h0():so(u,d)}function HQe(e,t,r,i,o){if(WO(e,r)){let s=_s(t);return i&&(s=L.createAwaitExpression(s)),[L.createReturnStatement(s)]}return rK(o,L.createAwaitExpression(t),void 0)}function rK(e,t,r){return!e||hCe(e)?[L.createExpressionStatement(t)]:OO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(_s(aue(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(Y7(e)),void 0,r,t)],2))]}function iue(e,t){if(t&&e){const r=L.createUniqueName("result",16);return[...rK(BP(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function oue(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 212:case 80:if(!i)break;const u=L.createCallExpression(_s(e),void 0,OO(i)?[aue(i)]:[]);if(WO(o,s))return iue(u,tK(o,e,s.checker));const d=s.checker.getTypeAtLocation(e),g=s.checker.getSignaturesOfType(d,0);if(!g.length)return h0();const h=g[0].getReturnType(),y=rK(r,L.createAwaitExpression(u),tK(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(h)||h),y;case 219:case 220:{const E=e.body,A=(l=pCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(ea(E)){let R=[],N=!1;for(const P of E.statements)if(tf(P))if(N=!0,L7(P,s.checker))R=R.concat(fCe(s,P,t,r));else{const k=A&&P.expression?uCe(s.checker,A,P.expression):P.expression;R.push(...iue(k,tK(o,e,s.checker)))}else{if(t&&gb(P,cS))return h0();R.push(P)}return WO(o,s)?R.map(P=>_s(P)):qQe(R,r,s,N)}else{const R=TJ(E,s.checker)?fCe(s,L.createReturnStatement(E),t,r):ae;if(R.length>0)return R;if(A){const N=uCe(s.checker,A,E);if(WO(o,s))return iue(N,tK(o,e,s.checker));{const P=rK(r,N,void 0);return r&&r.types.push(s.checker.getAwaitedType(A)||A),P}}else return h0()}}default:return h0()}return ae}function uCe(e,t,r){const i=_s(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function pCe(e,t){const r=t.getSignaturesOfType(e,0);return Zs(r)}function qQe(e,t,r,i){const o=[];for(const s of e)if(tf(s)){if(s.expression){const l=aCe(s.expression,r.checker)?L.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(L.createExpressionStatement(l)):OO(t)&&t.hasBeenDeclared?o.push(L.createExpressionStatement(L.createAssignment(aue(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Y7(t),void 0,void 0,l)],2)))}}else o.push(_s(s));return!i&&t!==void 0&&o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Y7(t),void 0,void 0,L.createIdentifier("undefined"))],2))),o}function fCe(e,t,r,i){let o=[];return Jo(t,function s(l){if(Zo(l)){const u=dC(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else Yo(l)||Jo(l,s)}),o}function mCe(e,t){const r=[];let i;if(Ms(e)){if(e.parameters.length>0){const d=e.parameters[0].name;i=o(d)}}else He(e)?i=s(e):qr(e)&&He(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(d){if(He(d))return s(d);const g=Ki(d.elements,h=>Jc(h)?[]:[o(h.name)]);return JQe(d,g)}function s(d){const g=u(d),h=l(g);return h&&t.synthNamesMap.get(Ta(h).toString())||BP(d,r)}function l(d){var g;return((g=ni(d,ah))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(d)}function u(d){return d.original?d.original:d}}function hCe(e){return e?OO(e)?!e.identifier.text:Vn(e.elements,hCe):!0}function BP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function JQe(e,t=ae,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function aue(e){return e.hasBeenReferenced=!0,e.identifier}function Y7(e){return OO(e)?sue(e):_Ce(e)}function _Ce(e){for(const t of e.elements)Y7(t);return e.bindingPattern}function sue(e){return e.hasBeenDeclared=!0,e.identifier}function OO(e){return e.kind===0}function KQe(e){return e.kind===1}function WO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ls(e.original))}Sa({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=Rr.ChangeTracker.with(e,s=>{if(YQe(t,r.getTypeChecker(),s,Ga(r.getCompilerOptions()),Gp(t,i)))for(const u of r.getSourceFiles())XQe(u,t,r,s,Gp(u,i))});return[yh("convertToEsModule",o,f.Convert_to_ES_module)]}});function XQe(e,t,r,i,o){var s;for(const l of e.imports){const u=(s=r.getResolvedModuleFromModuleSpecifier(l,e))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const d=$N(l);switch(d.kind){case 272:i.replaceNode(e,d,Bb(d.name,void 0,l,o));break;case 214:Zu(d,!1)&&i.replaceNode(e,d,L.createPropertyAccessExpression(_s(d),"default"));break}}}function YQe(e,t,r,i,o){const s={original:cZe(e),additional:new Set},l=$Qe(e,t,s);QQe(e,l,r);let u=!1,d;for(const g of Un(e.statements,sc)){const h=yCe(e,g,r,t,s,i,o);h&&yF(h,d??(d=new Map))}for(const g of Un(e.statements,h=>!sc(h))){const h=ZQe(e,g,t,r,s,i,l,d,o);u=u||h}return d?.forEach((g,h)=>{r.replaceNode(e,h,g)}),u}function $Qe(e,t,r){const i=new Map;return gCe(e,o=>{const{text:s}=o.name;!i.has(s)&&(PG(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,iK(`_${s}`,r))}),i}function QQe(e,t,r){gCe(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function gCe(e,t){e.forEachChild(function r(i){if(qr(i)&&qS(e,i.expression)&&He(i.name)){const{parent:o}=i;t(i,Nr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function ZQe(e,t,r,i,o,s,l,u,d){switch(t.kind){case 244:return yCe(e,t,i,r,o,s,d),!1;case 245:{const{expression:g}=t;switch(g.kind){case 214:return Zu(g,!0)&&i.replaceNode(e,t,Bb(void 0,void 0,g.arguments[0],d)),!1;case 227:{const{operatorToken:h}=g;return h.kind===64&&tZe(e,r,g,i,l,u)}}}default:return!1}}function yCe(e,t,r,i,o,s,l){const{declarationList:u}=t;let d=!1;const g=Vt(u.declarations,h=>{const{name:y,initializer:E}=h;if(E){if(qS(e,E))return d=!0,GP([]);if(Zu(E,!0))return d=!0,sZe(y,E.arguments[0],i,o,s,l);if(qr(E)&&Zu(E.expression,!0))return d=!0,eZe(y,E.name.text,E.expression.arguments[0],o,l)}return GP([L.createVariableStatement(void 0,L.createVariableDeclarationList([h],u.flags))])});if(d){r.replaceNodeWithNodes(e,t,Ki(g,y=>y.newImports));let h;return Ye(g,y=>{y.useSitesToUnqualify&&yF(y.useSitesToUnqualify,h??(h=new Map))}),h}}function eZe(e,t,r,i,o){switch(e.kind){case 207:case 208:{const s=iK(t,i);return GP([SCe(s,t,r,o),oK(void 0,e,L.createIdentifier(s))])}case 80:return GP([SCe(e.text,t,r,o)]);default:return C.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function tZe(e,t,r,i,o,s){const{left:l,right:u}=r;if(!qr(l))return!1;if(qS(e,l))if(qS(e,u))i.delete(e,r.parent);else{const d=Wa(u)?nZe(u,s):Zu(u,!0)?iZe(u.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,r.parent,d[0]),d[1]):(i.replaceRangeWithText(e,Bf(l.getStart(e),u.pos),"export default"),!0)}else qS(e,l.expression)&&rZe(e,r,i,o);return!1}function nZe(e,t){const r=RT(e.properties,i=>{switch(i.kind){case 178:case 179:case 305:case 306:return;case 304:return He(i.name)?aZe(i.name.text,i.initializer,t):void 0;case 175:return He(i.name)?TCe(i.name.text,[L.createToken(95)],i,t):void 0;default:C.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function rZe(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const l=[oK(void 0,s,t.right),due([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else oZe(t,e,r)}function iZe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:bt;return o.has("export=")?[[lue(r)],!0]:o.has("default")?o.size>1?[[vCe(r),lue(r)],!0]:[[lue(r)],!0]:[[vCe(r)],!1]}function vCe(e){return due(void 0,e)}function lue(e){return due([L.createExportSpecifier(!1,void 0,"default")],e)}function oZe({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Us(t)||Xs(t)||uc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},L.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);const l=Es(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,Es(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function aZe(e,t,r){const i=[L.createToken(95)];switch(t.kind){case 219:{const{name:s}=t;if(s&&s.text!==e)return o()}case 220:return TCe(e,i,t,r);case 232:return uZe(e,i,t,r);default:return o()}function o(){return oK(i,L.createIdentifier(e),cue(t,r))}}function cue(e,t){if(!t||!yt(Co(t.keys()),i=>tp(e,i)))return e;return Mo(e)?HV(e,!0,r):Yk(e,!0,r);function r(i){if(i.kind===212){const o=t.get(i);return t.delete(i),o}}}function sZe(e,t,r,i,o,s){switch(e.kind){case 207:{const l=RT(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!He(u.propertyName)||!He(u.name)?void 0:ECe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return GP([Bb(void 0,l,t,s)])}case 208:{const l=iK(EO(t.text,o),i);return GP([Bb(L.createIdentifier(l),void 0,t,s),oK(void 0,_s(e),L.createIdentifier(l))])}case 80:return lZe(e,t,r,i,s);default:return C.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function lZe(e,t,r,i,o){const s=r.getSymbolAtLocation(e),l=new Map;let u=!1,d;for(const h of i.original.get(e.text)){if(r.getSymbolAtLocation(h)!==s||h===e)continue;const{parent:y}=h;if(qr(y)){const{name:{text:E}}=y;if(E==="default"){u=!0;const A=h.getText();(d??(d=new Map)).set(y,L.createIdentifier(A))}else{C.assert(y.expression===h,"Didn't expect expression === use");let A=l.get(E);A===void 0&&(A=iK(E,i),l.set(E,A)),(d??(d=new Map)).set(y,L.createIdentifier(A))}}else u=!0}const g=l.size===0?void 0:Co(za(l.entries(),([h,y])=>L.createImportSpecifier(!1,h===y?void 0:L.createIdentifier(h),L.createIdentifier(y))));return g||(u=!0),GP([Bb(u?_s(e):void 0,g,t,o)],d)}function iK(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function cZe(e){const t=cm();return bCe(e,r=>t.add(r.text,r)),t}function bCe(e,t){He(e)&&dZe(e)&&t(e),e.forEachChild(r=>bCe(r,t))}function dZe(e){const{parent:t}=e;switch(t.kind){case 212:return t.name!==e;case 209:return t.propertyName!==e;case 277:return t.propertyName!==e;default:return!0}}function TCe(e,t,r,i){return L.createFunctionDeclaration(so(t,OS(r.modifiers)),_s(r.asteriskToken),e,OS(r.typeParameters),OS(r.parameters),_s(r.type),L.converters.convertToFunctionBlock(cue(r.body,i)))}function uZe(e,t,r,i){return L.createClassDeclaration(so(t,OS(r.modifiers)),e,OS(r.typeParameters),OS(r.heritageClauses),cue(r.members,i))}function SCe(e,t,r,i){return t==="default"?Bb(L.createIdentifier(e),void 0,r,i):Bb(void 0,[ECe(t,e)],r,i)}function ECe(e,t){return L.createImportSpecifier(!1,e!==void 0&&e!==t?L.createIdentifier(e):void 0,L.createIdentifier(t))}function oK(e,t,r){return L.createVariableStatement(e,L.createVariableDeclarationList([L.createVariableDeclaration(t,void 0,void 0,r)],2))}function due(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function GP(e,t){return{newImports:e,useSitesToUnqualify:t}}var uue="correctQualifiedNameToIndexedAccessType",ACe=[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];Sa({errorCodes:ACe,getCodeActions(e){const t=ICe(e.sourceFile,e.span.start);if(!t)return;const r=Rr.ChangeTracker.with(e,o=>xCe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[oa(uue,r,[f.Rewrite_as_the_indexed_access_type_0,i],uue,f.Rewrite_all_as_indexed_access_types)]},fixIds:[uue],getAllCodeActions:e=>Ss(e,ACe,(t,r)=>{const i=ICe(r.file,r.start);i&&xCe(t,r.file,i)})});function ICe(e,t){const r=Dn(Fi(e,t),Lu);return C.assert(!!r,"Expected position to be owned by a qualified name."),He(r.left)?r:void 0}function xCe(e,t,r){const i=r.right.text,o=L.createIndexedAccessTypeNode(L.createTypeReferenceNode(r.left,void 0),L.createLiteralTypeNode(L.createStringLiteral(i)));e.replaceNode(t,r,o)}var pue=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],fue="convertToTypeOnlyExport";Sa({errorCodes:pue,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>DCe(i,RCe(t.span,t.sourceFile),t));if(r.length)return[oa(fue,r,f.Convert_to_type_only_export,fue,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[fue],getAllCodeActions:function(t){const r=new Set;return Ss(t,pue,(i,o)=>{const s=RCe(o,t.sourceFile);s&&gm(r,ls(s.parent.parent))&&DCe(i,s,t)})}});function RCe(e,t){return ni(Fi(t,e.start).parent,iu)}function DCe(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=pZe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=L.updateExportDeclaration(o,o.modifiers,!1,L.updateNamedExports(i,Un(i.elements,d=>!jn(s,d))),o.moduleSpecifier,void 0),u=L.createExportDeclaration(void 0,!0,L.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function pZe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=Qle(Fu(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Un(r.elements,o=>{var s;return o===e||((s=$le(o,i))==null?void 0:s.code)===pue[0]})}var CCe=[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],aK="convertToTypeOnlyImport";Sa({errorCodes:CCe,getCodeActions:function(t){var r;const i=NCe(t.sourceFile,t.span.start);if(i){const o=Rr.ChangeTracker.with(t,u=>$7(u,t.sourceFile,i)),s=i.kind===277&&vl(i.parent.parent.parent)&&MCe(i,t.sourceFile,t.program)?Rr.ChangeTracker.with(t,u=>$7(u,t.sourceFile,i.parent.parent.parent)):void 0,l=oa(aK,o,i.kind===277?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,aK,f.Fix_all_with_type_only_imports);return yt(s)?[yh(aK,s,f.Use_import_type),l]:[l]}},fixIds:[aK],getAllCodeActions:function(t){const r=new Set;return Ss(t,CCe,(i,o)=>{const s=NCe(o.file,o.start);s?.kind===273&&!r.has(s)?($7(i,o.file,s),r.add(s)):s?.kind===277&&vl(s.parent.parent.parent)&&!r.has(s.parent.parent.parent)&&MCe(s,o.file,t.program)?($7(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===277&&$7(i,o.file,s)})}});function NCe(e,t){const{parent:r}=Fi(e,t);return Su(r)||vl(r)&&r.importClause?r:void 0}function MCe(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(Ys.Core.eachSymbolReferenceInFile(s.name,o,t,u=>{const d=o.getSymbolAtLocation(u);return!!d&&o.symbolIsValue(d)||!UT(u)}))return!1;return!0}function $7(e,t,r){var i;if(Su(r))e.replaceNode(t,r,L.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[L.createImportDeclaration(OS(r.modifiers,!0),L.createImportClause(156,_s(o.name,!0),void 0),_s(r.moduleSpecifier,!0),_s(r.attributes,!0)),L.createImportDeclaration(OS(r.modifiers,!0),L.createImportClause(156,void 0,_s(o.namedBindings,!0)),_s(r.moduleSpecifier,!0),_s(r.attributes,!0))]);else{const s=((i=o.namedBindings)==null?void 0:i.kind)===276?L.updateNamedImports(o.namedBindings,Zi(o.namedBindings.elements,u=>L.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=L.updateImportDeclaration(r,r.modifiers,L.updateImportClause(o,156,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var mue="convertTypedefToType",PCe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];Sa({fixIds:[mue],errorCodes:PCe,getCodeActions(e){const t=_y(e.host,e.formatContext.options),r=Fi(e.sourceFile,e.span.start);if(!r)return;const i=Rr.ChangeTracker.with(e,o=>LCe(o,r,e.sourceFile,t));if(i.length>0)return[oa(mue,i,f.Convert_typedef_to_TypeScript_type,mue,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ss(e,PCe,(t,r)=>{const i=_y(e.host,e.formatContext.options),o=Fi(r.file,r.start);o&&LCe(t,o,r.file,i,!0)})});function LCe(e,t,r,i,o=!1){if(!I1(t))return;const s=mZe(t);if(!s)return;const l=t.parent,{leftSibling:u,rightSibling:d}=fZe(t);let g=l.getStart(),h="";!u&&l.comment&&(g=kCe(l,l.getStart(),t.getStart()),h=`${i} */${i}`),u&&(o&&I1(u)?(g=t.getStart(),h=""):(g=kCe(l,u.getStart(),t.getStart()),h=`${i} */${i}`));let y=l.getEnd(),E="";d&&(o&&I1(d)?(y=d.getStart(),E=`${i}${i}`):(y=d.getStart(),E=`${i}/**${i} * `)),e.replaceRange(r,{pos:g,end:y},s,{prefix:h,suffix:E})}function fZe(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]/.test(i.substring(o-1,o)))return t+o;return r}function mZe(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===323)return hZe(i,r);if(r.kind===310)return _Ze(i,r)}}function hZe(e,t){const r=wCe(t);if(yt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function _Ze(e,t){const r=_s(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function wCe(e){const t=e.jsDocPropertyTags;return yt(t)?Ui(t,i=>{var o;const s=gZe(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed;let d;if(l&&A1(l)){const g=wCe(l);d=L.createTypeLiteralNode(g)}else l&&(d=_s(l));if(d&&s){const g=u?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,g,d)}}):void 0}function gZe(e){return e.name.kind===80?e.name.text:e.name.right.text}function yZe(e){return ef(e)?Ki(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>I1(i))}):[]}var hue="convertLiteralTypeToMappedType",OCe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];Sa({errorCodes:OCe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=WCe(r,i.start);if(!o)return;const{name:s,constraint:l}=o,u=Rr.ChangeTracker.with(t,d=>FCe(d,r,o));return[oa(hue,u,[f.Convert_0_to_1_in_0,l,s],hue,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[hue],getAllCodeActions:e=>Ss(e,OCe,(t,r)=>{const i=WCe(r.file,r.start);i&&FCe(t,r.file,i)})});function WCe(e,t){const r=Fi(e,t);if(He(r)){const i=ma(r.parent.parent,Tu),o=r.getText(e);return{container:ma(i.parent,ku),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function FCe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,L.createMappedTypeNode(void 0,L.createTypeParameterDeclaration(void 0,s,L.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var zCe=[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],_ue="fixClassIncorrectlyImplementsInterface";Sa({errorCodes:zCe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=BCe(t,r.start);return Ui(tD(i),o=>{const s=Rr.ChangeTracker.with(e,l=>VCe(e,o,t,i,l,e.preferences));return s.length===0?void 0:oa(_ue,s,[f.Implement_interface_0,o.getText(t)],_ue,f.Implement_all_unimplemented_interfaces)})},fixIds:[_ue],getAllCodeActions(e){const t=new Set;return Ss(e,zCe,(r,i)=>{const o=BCe(i.file,i.start);if(gm(t,ls(o)))for(const s of tD(o))VCe(e,s,i.file,o,r,e.preferences)})}});function BCe(e,t){return C.checkDefined(hd(Fi(e,t)),"There should be a containing class")}function GCe(e){return!e.valueDeclaration||!(Gd(e.valueDeclaration)&2)}function VCe(e,t,r,i,o,s){const l=e.program.getTypeChecker(),u=vZe(i,l),d=l.getTypeAtLocation(t),h=l.getPropertiesOfType(d).filter(M8(GCe,P=>!u.has(P.escapedName))),y=l.getTypeAtLocation(i),E=hn(i.members,P=>Pl(P));y.getNumberIndexType()||R(d,1),y.getStringIndexType()||R(d,0);const A=oE(r,e.program,s,e.host);cpe(i,h,r,e,s,A,P=>N(r,i,P)),A.writeFixes(o);function R(P,k){const W=l.getIndexInfoOfType(P,k);W&&N(r,i,l.indexInfoToIndexSignatureDeclaration(W,i,void 0,void 0,uC(e)))}function N(P,k,W){E?o.insertNodeAfter(P,E,W):o.insertMemberAtStart(P,k,W)}}function vZe(e,t){const r=lh(e);if(!r)return da();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return da(o.filter(GCe))}var jCe="import",UCe="fixMissingImport",HCe=[f.Cannot_find_name_0.code,f.Cannot_find_name_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.Cannot_find_namespace_0.code,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,f.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.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,f.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.code,f.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.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,f.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.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_extend_an_interface_0_Did_you_mean_implements.code,f.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];Sa({errorCodes:HCe,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=$Ce(e,t,o.start,!0);if(l)return l.map(({fix:u,symbolName:d,errorIdentifierText:g})=>vue(e,i,d,u,d!==g,s,r))},fixIds:[UCe],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=qCe(t,r,!0,i,o,s);return gx(e,HCe,u=>l.addImportFromDiagnostic(u,e)),_x(Rr.ChangeTracker.with(e,l.writeFixes))}});function oE(e,t,r,i,o){return qCe(e,t,!1,r,i,o)}function qCe(e,t,r,i,o,s){const l=t.getCompilerOptions(),u=[],d=[],g=new Map,h=new Set,y=new Set,E=new Map;return{addImportFromDiagnostic:N,addImportFromExportedSymbol:P,addImportForModuleSymbol:k,writeFixes:j,hasFixes:Z,addImportForUnresolvedIdentifier:R,addImportForNonExistentExport:W,removeExistingImport:O,addVerbatimImport:A};function A(q){y.add(q)}function R(q,ye,ie){const K=NZe(q,ye,ie);!K||!K.length||G($a(K))}function N(q,ye){const ie=$Ce(ye,q.code,q.start,r);!ie||!ie.length||G($a(ie))}function P(q,ye,ie){var K,pe;const de=C.checkDefined(q.parent,"Expected exported symbol to have module symbol as parent"),fe=A7(q,Ga(l)),ve=t.getTypeChecker(),xe=ve.getMergedSymbol(xd(q,ve)),X=KCe(e,xe,fe,de,!1,t,o,i,s);if(!X){C.assert((K=i.autoImportFileExcludePatterns)==null?void 0:K.length);return}const Ce=FO(e,t);let Je=gue(e,X,t,void 0,!!ye,Ce,o,i);if(Je){const Se=((pe=ni(ie?.name,He))==null?void 0:pe.text)??fe;let re,be;ie&&WR(ie)&&(Je.kind===3||Je.kind===2)&&Je.addAsTypeOnly===1&&(re=2),q.name!==Se&&(be=q.name),Je={...Je,...re===void 0?{}:{addAsTypeOnly:re},...be===void 0?{}:{propertyName:be}},G({fix:Je,symbolName:Se??fe})}}function k(q,ye,ie){var K,pe,de;const fe=t.getTypeChecker(),ve=fe.getAliasedSymbol(q);C.assert(ve.flags&1536,"Expected symbol to be a module");const xe=u0(t,o),X=hy.getModuleSpecifiersWithCacheInfo(ve,fe,l,e,xe,i,void 0,!0),Ce=FO(e,t);let Je=Z7(ye,!0,void 0,q.flags,t.getTypeChecker(),l);Je=Je===1&&WR(ie)?2:1;const Se=vl(ie)?o1(ie)?1:2:Su(ie)?0:Vm(ie)&&ie.name?1:2,re=[{symbol:q,moduleSymbol:ve,moduleFileName:(de=(pe=(K=ve.declarations)==null?void 0:K[0])==null?void 0:pe.getSourceFile())==null?void 0:de.fileName,exportKind:4,targetFlags:q.flags,isFromPackageJson:!1}],be=gue(e,re,t,void 0,!!ye,Ce,o,i);let Ne;be&&Se!==2&&be.kind!==0&&be.kind!==1?Ne={...be,addAsTypeOnly:Je,importKind:Se}:Ne={kind:3,moduleSpecifierKind:be!==void 0?be.moduleSpecifierKind:X.kind,moduleSpecifier:be!==void 0?be.moduleSpecifier:$a(X.moduleSpecifiers),importKind:Se,addAsTypeOnly:Je,useRequire:Ce},G({fix:Ne,symbolName:q.name})}function W(q,ye,ie,K,pe){const de=t.getSourceFile(ye),fe=FO(e,t);if(de&&de.symbol){const{fixes:ve}=Q7([{exportKind:ie,isFromPackageJson:!1,moduleFileName:ye,moduleSymbol:de.symbol,targetFlags:K}],void 0,pe,fe,t,e,o,i);ve.length&&G({fix:ve[0],symbolName:q})}else{const ve=C7(ye,99,t,o),xe=hy.getLocalModuleSpecifierBetweenFileNames(e,ye,l,u0(t,o),i),X=sK(ve,ie,t),Ce=Z7(pe,!0,void 0,K,t.getTypeChecker(),l);G({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:xe,importKind:X,addAsTypeOnly:Ce,useRequire:fe},symbolName:q})}}function O(q){q.kind===274&&C.assertIsDefined(q.name,"ImportClause should have a name if it's being removed"),h.add(q)}function G(q){var ye,ie,K;const{fix:pe,symbolName:de}=q;switch(pe.kind){case 0:u.push(pe);break;case 1:d.push(pe);break;case 2:{const{importClauseOrBindingPattern:X,importKind:Ce,addAsTypeOnly:Je,propertyName:Se}=pe;let re=g.get(X);if(re||g.set(X,re={importClauseOrBindingPattern:X,defaultImport:void 0,namedImports:new Map}),Ce===0){const be=(ye=re?.namedImports.get(de))==null?void 0:ye.addAsTypeOnly;re.namedImports.set(de,{addAsTypeOnly:fe(be,Je),propertyName:Se})}else C.assert(re.defaultImport===void 0||re.defaultImport.name===de,"(Add to Existing) Default import should be missing or match symbolName"),re.defaultImport={name:de,addAsTypeOnly:fe((ie=re.defaultImport)==null?void 0:ie.addAsTypeOnly,Je)};break}case 3:{const{moduleSpecifier:X,importKind:Ce,useRequire:Je,addAsTypeOnly:Se,propertyName:re}=pe,be=ve(X,Ce,Je,Se);switch(C.assert(be.useRequire===Je,"(Add new) Tried to add an `import` and a `require` for the same module"),Ce){case 1:C.assert(be.defaultImport===void 0||be.defaultImport.name===de,"(Add new) Default import should be missing or match symbolName"),be.defaultImport={name:de,addAsTypeOnly:fe((K=be.defaultImport)==null?void 0:K.addAsTypeOnly,Se)};break;case 0:const Ne=(be.namedImports||(be.namedImports=new Map)).get(de);be.namedImports.set(de,[fe(Ne,Se),re]);break;case 3:if(l.verbatimModuleSyntax){const Be=(be.namedImports||(be.namedImports=new Map)).get(de);be.namedImports.set(de,[fe(Be,Se),re])}else C.assert(be.namespaceLikeImport===void 0||be.namespaceLikeImport.name===de,"Namespacelike import shoudl be missing or match symbolName"),be.namespaceLikeImport={importKind:Ce,name:de,addAsTypeOnly:Se};break;case 2:C.assert(be.namespaceLikeImport===void 0||be.namespaceLikeImport.name===de,"Namespacelike import shoudl be missing or match symbolName"),be.namespaceLikeImport={importKind:Ce,name:de,addAsTypeOnly:Se};break}break}case 4:break;default:C.assertNever(pe,`fix wasn't never - got kind ${pe.kind}`)}function fe(X,Ce){return Math.max(X??0,Ce)}function ve(X,Ce,Je,Se){const re=xe(X,!0),be=xe(X,!1),Ne=E.get(re),Be=E.get(be),lt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Je};return Ce===1&&Se===2?Ne||(E.set(re,lt),lt):Se===1&&(Ne||Be)?Ne||Be:Be||(E.set(be,lt),lt)}function xe(X,Ce){return`${Ce?1:0}|${X}`}}function j(q,ye){var ie,K;let pe;e.imports!==void 0&&e.imports.length===0&&ye!==void 0?pe=ye:pe=Gp(e,i);for(const ve of u)bue(q,e,ve);for(const ve of d)aNe(q,e,ve,pe);let de;if(h.size){C.assert(_g(e),"Cannot remove imports from a future source file");const ve=new Set(Ui([...h],Se=>Dn(Se,vl))),xe=new Set(Ui([...h],Se=>Dn(Se,nk))),X=[...ve].filter(Se=>{var re,be,Ne;return!g.has(Se.importClause)&&(!((re=Se.importClause)!=null&&re.name)||h.has(Se.importClause))&&(!ni((be=Se.importClause)==null?void 0:be.namedBindings,Ig)||h.has(Se.importClause.namedBindings))&&(!ni((Ne=Se.importClause)==null?void 0:Ne.namedBindings,n_)||Vn(Se.importClause.namedBindings.elements,Be=>h.has(Be)))}),Ce=[...xe].filter(Se=>(Se.name.kind!==207||!g.has(Se.name))&&(Se.name.kind!==207||Vn(Se.name.elements,re=>h.has(re)))),Je=[...ve].filter(Se=>{var re,be;return((re=Se.importClause)==null?void 0:re.namedBindings)&&X.indexOf(Se)===-1&&!((be=g.get(Se.importClause))!=null&&be.namedImports)&&(Se.importClause.namedBindings.kind===275||Vn(Se.importClause.namedBindings.elements,Ne=>h.has(Ne)))});for(const Se of[...X,...Ce])q.delete(e,Se);for(const Se of Je)q.replaceNode(e,Se.importClause,L.updateImportClause(Se.importClause,Se.importClause.phaseModifier,Se.importClause.name,void 0));for(const Se of h){const re=Dn(Se,vl);re&&X.indexOf(re)===-1&&Je.indexOf(re)===-1?Se.kind===274?q.delete(e,Se.name):(C.assert(Se.kind===277,"NamespaceImport should have been handled earlier"),(ie=g.get(re.importClause))!=null&&ie.namedImports?(de??(de=new Set)).add(Se):q.delete(e,Se)):Se.kind===209?(K=g.get(Se.parent))!=null&&K.namedImports?(de??(de=new Set)).add(Se):q.delete(e,Se):Se.kind===272&&q.delete(e,Se)}}g.forEach(({importClauseOrBindingPattern:ve,defaultImport:xe,namedImports:X})=>{oNe(q,e,ve,xe,Co(X.entries(),([Ce,{addAsTypeOnly:Je,propertyName:Se}])=>({addAsTypeOnly:Je,propertyName:Se,name:Ce})),de,i)});let fe;E.forEach(({useRequire:ve,defaultImport:xe,namedImports:X,namespaceLikeImport:Ce},Je)=>{const Se=Je.slice(2),be=(ve?cNe:lNe)(Se,pe,xe,X&&Co(X.entries(),([Ne,[Be,lt]])=>({addAsTypeOnly:Be,propertyName:lt,name:Ne})),Ce,l,i);fe=qA(fe,be)}),fe=qA(fe,J()),fe&&Fq(q,e,fe,!0,i)}function J(){if(!y.size)return;const q=new Set(Ui([...y],ie=>Dn(ie,vl))),ye=new Set(Ui([...y],ie=>Dn(ie,rk)));return[...Ui([...y],ie=>ie.kind===272?_s(ie,!0):void 0),...[...q].map(ie=>{var K;return y.has(ie)?_s(ie,!0):_s(L.updateImportDeclaration(ie,ie.modifiers,ie.importClause&&L.updateImportClause(ie.importClause,ie.importClause.phaseModifier,y.has(ie.importClause)?ie.importClause.name:void 0,y.has(ie.importClause.namedBindings)?ie.importClause.namedBindings:(K=ni(ie.importClause.namedBindings,n_))!=null&&K.elements.some(pe=>y.has(pe))?L.updateNamedImports(ie.importClause.namedBindings,ie.importClause.namedBindings.elements.filter(pe=>y.has(pe))):void 0),ie.moduleSpecifier,ie.attributes),!0)}),...[...ye].map(ie=>y.has(ie)?_s(ie,!0):_s(L.updateVariableStatement(ie,ie.modifiers,L.updateVariableDeclarationList(ie.declarationList,Ui(ie.declarationList.declarations,K=>y.has(K)?K:L.updateVariableDeclaration(K,K.name.kind===207?L.updateObjectBindingPattern(K.name,K.name.elements.filter(pe=>y.has(pe))):K.name,K.exclamationToken,K.type,K.initializer)))),!0))]}function Z(){return u.length>0||d.length>0||g.size>0||E.size>0||y.size>0||h.size>0}}function bZe(e,t,r,i){const o=oC(e,i,r),s=XCe(e,t);return{getModuleSpecifierForBestExportInfo:l};function l(u,d,g,h){const{fixes:y,computedWithoutCacheCount:E}=Q7(u,d,g,!1,t,e,r,i,s,h),A=ZCe(y,e,t,o,r,i);return A&&{...A,computedWithoutCacheCount:E}}}function TZe(e,t,r,i,o,s,l,u,d,g,h,y){let E;r?(E=IO(i,l,u,h,y).get(i.path,r),C.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=p9(_m(t.name))?[EZe(e,o,t,u,l)]:KCe(i,e,o,t,s,u,l,h,y),C.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));const A=FO(i,u),R=UT(Fi(i,g)),N=C.checkDefined(gue(i,E,u,g,R,A,l,h));return{moduleSpecifier:N.moduleSpecifier,codeAction:JCe(vue({host:l,formatContext:d,preferences:h},i,o,N,!1,u,h))}}function SZe(e,t,r,i,o,s){const l=r.getCompilerOptions(),u=xB(yue(e,r.getTypeChecker(),t,l)),d=rNe(e,t,u,r),g=u!==t.text;return d&&JCe(vue({host:i,formatContext:o,preferences:s},e,u,d,g,r,s))}function gue(e,t,r,i,o,s,l,u){const d=oC(e,u,l);return ZCe(Q7(t,i,o,s,r,e,l,u).fixes,e,r,d,l,u)}function JCe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function KCe(e,t,r,i,o,s,l,u,d){const g=YCe(s,l),h=u.autoImportFileExcludePatterns&&rce(l,u),y=s.getTypeChecker().getMergedSymbol(i),E=h&&y.declarations&&al(y,308),A=E&&h(E);return IO(e,l,s,u,d).search(e.path,o,R=>R===r,R=>{const N=g(R[0].isFromPackageJson);if(N.getMergedSymbol(xd(R[0].symbol,N))===t&&(A||R.some(P=>N.getMergedSymbol(P.moduleSymbol)===i||P.symbol.parent===i)))return R})}function EZe(e,t,r,i,o){var s,l;const u=g(i.getTypeChecker(),!1);if(u)return u;const d=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return C.checkDefined(d&&g(d,!0),"Could not find symbol in specified module for code actions");function g(h,y){const E=N7(r,h);if(E&&xd(E.symbol,h)===e)return{symbol:E.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:E.exportKind,targetFlags:xd(e,h).flags,isFromPackageJson:y};const A=h.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&xd(A,h)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:xd(e,h).flags,isFromPackageJson:y}}}function Q7(e,t,r,i,o,s,l,u,d=_g(s)?XCe(s,o):void 0,g){const h=o.getTypeChecker(),y=d?Ki(e,d.getImportsForExportInfo):ae,E=t!==void 0&&AZe(y,t),A=xZe(y,r,h,o.getCompilerOptions());if(A)return{computedWithoutCacheCount:0,fixes:[...E?[E]:ae,A]};const{fixes:R,computedWithoutCacheCount:N=0}=DZe(e,y,o,s,t,r,i,l,u,g);return{computedWithoutCacheCount:N,fixes:[...E?[E]:ae,...R]}}function AZe(e,t){return Hn(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=IZe(r),l=s&&((o=mI(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:l}})}function IZe(e){var t,r,i;switch(e.kind){case 261:return(t=ni(e.name,He))==null?void 0:t.text;case 272:return e.name.text;case 352:case 273:return(i=ni((r=e.importClause)==null?void 0:r.namedBindings,Ig))==null?void 0:i.name.text;default:return C.assertNever(e)}}function Z7(e,t,r,i,o,s){return e?r&&s.verbatimModuleSyntax&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function xZe(e,t,r,i){let o;for(const l of e){const u=s(l);if(!u)continue;const d=WR(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&d||u.addAsTypeOnly===4&&!d)return u;o??(o=u)}return o;function s({declaration:l,importKind:u,symbol:d,targetFlags:g}){if(u===3||u===2||l.kind===272)return;if(l.kind===261)return(u===0||u===1)&&l.name.kind===207?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifierKind:void 0,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:h}=l;if(!h||!ds(l.moduleSpecifier))return;const{name:y,namedBindings:E}=h;if(h.isTypeOnly&&!(u===0&&E))return;const A=Z7(t,!1,d,g,r,i);if(!(u===1&&(y||A===2&&E))&&!(u===0&&E?.kind===275))return{kind:2,importClauseOrBindingPattern:h,importKind:u,moduleSpecifierKind:void 0,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:A}}}function XCe(e,t){const r=t.getTypeChecker();let i;for(const o of e.imports){const s=$N(o);if(nk(s.parent)){const l=r.resolveExternalModuleName(o);l&&(i||(i=cm())).add(Ta(l),s.parent)}else if(s.kind===273||s.kind===272||s.kind===352){const l=r.getSymbolAtLocation(o);l&&(i||(i=cm())).add(Ta(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{const d=i?.get(Ta(o));if(!d||Mu(e)&&!(l&111551)&&!Vn(d,o_))return ae;const g=sK(e,s,t);return d.map(h=>({declaration:h,importKind:g,symbol:u,targetFlags:l}))}}}function FO(e,t){if(!Tg(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return vu(r)<5;if(Sue(e,t)===1)return!0;if(Sue(e,t)===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!Mu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function YCe(e,t){return Fh(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function RZe(e,t,r,i,o,s,l,u,d){const g=Tg(t.fileName),h=e.getCompilerOptions(),y=u0(e,l),E=YCe(e,l),A=ru(h),R=d7(A),N=d?W=>hy.tryGetModuleSpecifiersFromCache(W.moduleSymbol,t,y,u):(W,O)=>hy.getModuleSpecifiersWithCacheInfo(W.moduleSymbol,O,h,t,y,u,void 0,!0);let P=0;const k=Ki(s,(W,O)=>{const G=E(W.isFromPackageJson),{computedWithoutCache:j,moduleSpecifiers:J,kind:Z}=N(W,G)??{},q=!!(W.targetFlags&111551),ye=Z7(i,!0,W.symbol,W.targetFlags,G,h);return P+=j?1:0,Ui(J,ie=>{if(R&&wb(ie))return;if(!q&&g&&r!==void 0)return{kind:1,moduleSpecifierKind:Z,moduleSpecifier:ie,usagePosition:r,exportInfo:W,isReExport:O>0};const K=sK(t,W.exportKind,e);let pe;if(r!==void 0&&K===3&&W.exportKind===0){const de=G.resolveExternalModuleSymbol(W.moduleSymbol);let fe;de!==W.moduleSymbol&&(fe=M7(de,G,Ga(h),Vs)),fe||(fe=SO(W.moduleSymbol,Ga(h),!1)),pe={namespacePrefix:fe,usagePosition:r}}return{kind:3,moduleSpecifierKind:Z,moduleSpecifier:ie,importKind:K,useRequire:o,addAsTypeOnly:ye,exportInfo:W,isReExport:O>0,qualification:pe}})});return{computedWithoutCacheCount:P,fixes:k}}function DZe(e,t,r,i,o,s,l,u,d,g){const h=Hn(t,y=>CZe(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return h?{fixes:[h]}:RZe(r,i,o,s,l,e,u,d,g)}function CZe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var d;const g=(d=mI(e))==null?void 0:d.text;if(g){const h=s?4:Z7(o,!0,r,i,l,u);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:g,importKind:t,addAsTypeOnly:h,useRequire:s}}}function $Ce(e,t,r,i){const o=Fi(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=kZe(e,o);else if(He(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=xB(yue(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),d=rNe(e.sourceFile,o,u,e.program);return d&&[{fix:d,symbolName:u,errorIdentifierText:o.text}]}else s=nNe(e,o,i);else return;const l=oC(e.sourceFile,e.preferences,e.host);return s&&QCe(s,e.sourceFile,e.program,l,e.host,e.preferences)}function QCe(e,t,r,i,o,s){const l=u=>ks(u,o.getCurrentDirectory(),ay(o));return xp(e,(u,d)=>CT(!!u.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||js(u.fix.kind,d.fix.kind)||eNe(u.fix,d.fix,t,r,s,i.allowsImportingSpecifier,l))}function NZe(e,t,r){const i=nNe(e,t,r),o=oC(e.sourceFile,e.preferences,e.host);return i&&QCe(i,e.sourceFile,e.program,o,e.host,e.preferences)}function ZCe(e,t,r,i,o,s){if(yt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((l,u)=>eNe(u,l,t,r,s,i.allowsImportingSpecifier,d=>ks(d,o.getCurrentDirectory(),ay(o)))===-1?u:l)}function eNe(e,t,r,i,o,s,l){return e.kind!==0&&t.kind!==0?CT(t.moduleSpecifierKind!=="node_modules"||s(t.moduleSpecifier),e.moduleSpecifierKind!=="node_modules"||s(e.moduleSpecifier))||MZe(e,t,o)||LZe(e.moduleSpecifier,t.moduleSpecifier,r,i)||CT(tNe(e,r.path,l),tNe(t,r.path,l))||Vk(e.moduleSpecifier,t.moduleSpecifier):0}function MZe(e,t,r){return r.importModuleSpecifierPreference==="non-relative"||r.importModuleSpecifierPreference==="project-relative"?CT(e.moduleSpecifierKind==="relative",t.moduleSpecifierKind==="relative"):0}function tNe(e,t,r){var i;if(e.isReExport&&((i=e.exportInfo)!=null&&i.moduleFileName)&&PZe(e.exportInfo.moduleFileName)){const o=r(ci(e.exportInfo.moduleFileName));return po(t,o)}return!1}function PZe(e){return xc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function LZe(e,t,r,i){return po(e,"node:")&&!po(t,"node:")?x7(r,i)?-1:1:po(t,"node:")&&!po(e,"node:")?x7(r,i)?1:-1:0}function kZe({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),l=wZe(o,s);if(!l)return;const u=s.getAliasedSymbol(l),d=l.name,g=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],h=FO(e,t);return Q7(g,void 0,!1,h,t,e,r,i).fixes.map(E=>{var A;return{fix:E,symbolName:d,errorIdentifierText:(A=ni(o,He))==null?void 0:A.text}})}function wZe(e,t){const r=He(e)?t.getSymbolAtLocation(e):void 0;if(y6(r))return r;const{parent:i}=e;if(nu(i)&&i.tagName===e||jm(i)){const o=t.resolveName(t.getJsxNamespace(i),nu(i)?e:i,111551,!1);if(y6(o))return o}}function sK(e,t,r,i){if(r.getCompilerOptions().verbatimModuleSyntax&&VZe(e,r)===1)return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return zZe(e,r.getCompilerOptions(),!!i);case 3:return OZe(e,r,!!i);case 4:return 2;default:return C.assertNever(t)}}function OZe(e,t,r){if(CI(t.getCompilerOptions()))return 1;const i=vu(t.getCompilerOptions());switch(i){case 2:case 1:case 3:return Tg(e.fileName)&&(e.externalModuleIndicator||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return Sue(e,t)===99?2:3;default:return C.assertNever(i,`Unexpected moduleKind ${i}`)}}function nNe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){const u=t.getTypeChecker(),d=t.getCompilerOptions();return Ki(yue(e,u,s,d),g=>{if(g==="default")return;const h=UT(s),y=FO(e,t),E=FZe(g,YR(s),w1(s),r,e,t,l,i,o);return Co(lf(E.values(),A=>Q7(A,s.getStart(e),h,y,t,e,i,o).fixes),A=>({fix:A,symbolName:g,errorIdentifierText:s.text,isJsxNamespaceFix:g!==s.text}))})}function rNe(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||Wn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function yue(e,t,r,i){const o=r.parent;if((nu(o)||GS(o))&&o.tagName===r&&aJ(i.jsx)){const s=t.getJsxNamespace(e);if(WZe(s,r,t))return!iD(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function WZe(e,t,r){if(iD(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||yt(i.declarations,$y)&&!(i.flags&111551)}function FZe(e,t,r,i,o,s,l,u,d){var g;const h=cm(),y=oC(o,d,u),E=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),A=Fh(N=>u0(N?u.getPackageJsonAutoImportProvider():s,u));function R(N,P,k,W,O,G){const j=A(G);if(cJ(O,o,P,N,d,y,j,E)){const J=O.getTypeChecker();h.add(jle(k,J).toString(),{symbol:k,moduleSymbol:N,moduleFileName:P?.fileName,exportKind:W,targetFlags:xd(k,J).flags,isFromPackageJson:G})}}return dJ(s,u,d,l,(N,P,k,W)=>{const O=k.getTypeChecker();i.throwIfCancellationRequested();const G=k.getCompilerOptions(),j=N7(N,O);j&&uNe(O.getSymbolFlags(j.symbol),r)&&M7(j.symbol,O,Ga(G),(Z,q)=>(t?q??Z:Z)===e)&&R(N,P,j.symbol,j.exportKind,k,W);const J=O.tryGetMemberInModuleExportsAndProperties(e,N);J&&uNe(O.getSymbolFlags(J),r)&&R(N,P,J,0,k,W)}),h}function zZe(e,t,r){const i=CI(t),o=Tg(e.fileName);if(!o&&vu(t)>=5)return i?1:2;if(o)return e.externalModuleIndicator||r?i?1:2:3;for(const s of e.statements??ae)if(zc(s)&&!Wl(s.moduleReference))return 3;return i?1:3}function vue(e,t,r,i,o,s,l){let u;const d=Rr.ChangeTracker.with(e,g=>{u=BZe(g,t,r,i,o,s,l)});return oa(jCe,d,u,UCe,f.Add_all_missing_imports)}function BZe(e,t,r,i,o,s,l){const u=Gp(t,l);switch(i.kind){case 0:return bue(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return aNe(e,t,i,u),[f.Change_0_to_1,r,sNe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:d,importKind:g,addAsTypeOnly:h,moduleSpecifier:y}=i;oNe(e,t,d,g===1?{name:r,addAsTypeOnly:h}:void 0,g===0?[{name:r,addAsTypeOnly:h}]:ae,void 0,l);const E=_m(y);return o?[f.Import_0_from_1,r,E]:[f.Update_import_from_0,E]}case 3:{const{importKind:d,moduleSpecifier:g,addAsTypeOnly:h,useRequire:y,qualification:E}=i,A=y?cNe:lNe,R=d===1?{name:r,addAsTypeOnly:h}:void 0,N=d===0?[{name:r,addAsTypeOnly:h}]:void 0,P=d===2||d===3?{importKind:d,name:E?.namespacePrefix||r,addAsTypeOnly:h}:void 0;return Fq(e,t,A(g,u,R,N,P,s.getCompilerOptions(),l),!0,l),E&&bue(e,t,E),o?[f.Import_0_from_1,r,g]:[f.Add_import_from_0,g]}case 4:{const{typeOnlyAliasDeclaration:d}=i,g=GZe(e,d,s,t,l);return g.kind===277?[f.Remove_type_from_import_of_0_from_1,r,iNe(g.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,iNe(g)]}default:return C.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function iNe(e){var t,r;return e.kind===272?((r=ni((t=ni(e.moduleReference,uy))==null?void 0:t.expression,ds))==null?void 0:r.text)||e.moduleReference.getText():ma(e.parent.moduleSpecifier,ka).text}function GZe(e,t,r,i,o){const s=r.getCompilerOptions(),l=s.verbatimModuleSyntax;switch(t.kind){case 277:if(t.isTypeOnly){if(t.parent.elements.length>1){const d=L.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:g}=y0.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,o,i),h=y0.getImportSpecifierInsertionIndex(t.parent.elements,d,g);if(h!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,d,t.parent,h),t}return e.deleteRange(i,{pos:hb(t.getFirstToken()),end:hb(t.propertyName??t.name)}),t}else return C.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 274:return u(t),t;case 275:return u(t.parent),t.parent;case 272:return e.deleteRange(i,t.getChildAt(1)),t;default:C.failBadSyntaxKind(t)}function u(d){var g;if(e.delete(i,zq(d,i)),!s.allowImportingTsExtensions){const h=mI(d.parent),y=h&&((g=r.getResolvedModuleFromModuleSpecifier(h,i))==null?void 0:g.resolvedModule);if(y?.resolvedUsingTsExtension){const E=f2(h.text,jw(h.text,s));e.replaceNode(i,h,L.createStringLiteral(E))}}if(l){const h=ni(d.namedBindings,n_);if(h&&h.elements.length>1){y0.getNamedImportSpecifierComparerWithDetection(d.parent,o,i).isSorted!==!1&&t.kind===277&&h.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,h,0));for(const E of h.elements)E!==t&&!E.isTypeOnly&&e.insertModifierBefore(i,156,E)}}}}function oNe(e,t,r,i,o,s,l){var u;if(r.kind===207){if(s&&r.elements.some(y=>s.has(y))){e.replaceNode(t,r,L.createObjectBindingPattern([...r.elements.filter(y=>!s.has(y)),...i?[L.createBindingElement(void 0,"default",i.name)]:ae,...o.map(y=>L.createBindingElement(void 0,y.propertyName,y.name))]));return}i&&h(r,i.name,"default");for(const y of o)h(r,y.name,y.propertyName);return}const d=r.isTypeOnly&&yt([i,...o],y=>y?.addAsTypeOnly===4),g=r.namedBindings&&((u=ni(r.namedBindings,n_))==null?void 0:u.elements);if(i&&(C.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),L.createIdentifier(i.name),{suffix:", "})),o.length){const{specifierComparer:y,isSorted:E}=y0.getNamedImportSpecifierComparerWithDetection(r.parent,l,t),A=xp(o.map(R=>L.createImportSpecifier((!r.isTypeOnly||d)&&lK(R,l),R.propertyName===void 0?void 0:L.createIdentifier(R.propertyName),L.createIdentifier(R.name))),y);if(s)e.replaceNode(t,r.namedBindings,L.updateNamedImports(r.namedBindings,xp([...g.filter(R=>!s.has(R)),...A],y)));else if(g?.length&&E!==!1){const R=d&&g?L.updateNamedImports(r.namedBindings,Zi(g,N=>L.updateImportSpecifier(N,!0,N.propertyName,N.name))).elements:g;for(const N of A){const P=y0.getImportSpecifierInsertionIndex(R,N,y);e.insertImportSpecifierAtIndex(t,N,r.namedBindings,P)}}else if(g?.length)for(const R of A)e.insertNodeInListAfter(t,Ba(g),R,g);else if(A.length){const R=L.createNamedImports(A);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,C.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(d&&(e.delete(t,zq(r,t)),g))for(const y of g)e.insertModifierBefore(t,156,y);function h(y,E,A){const R=L.createBindingElement(void 0,A,E);y.elements.length?e.insertNodeInListAfter(t,Ba(y.elements),R):e.replaceNode(t,y,L.createObjectBindingPattern([R]))}}function bue(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function aNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,sNe(r,o))}function sNe(e,t){const r=Oq(t);return`import(${r}${e}${r}).`}function Tue({addAsTypeOnly:e}){return e===2}function lK(e,t){return Tue(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function lNe(e,t,r,i,o,s,l){const u=RP(e,t);let d;if(r!==void 0||i?.length){const g=(!r||Tue(r))&&Vn(i,Tue)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!yt(i,h=>h.addAsTypeOnly===4);d=qA(d,Bb(r&&L.createIdentifier(r.name),i?.map(h=>L.createImportSpecifier(!g&&lK(h,l),h.propertyName===void 0?void 0:L.createIdentifier(h.propertyName),L.createIdentifier(h.name))),e,t,g))}if(o){const g=o.importKind===3?L.createImportEqualsDeclaration(void 0,lK(o,l),L.createIdentifier(o.name),L.createExternalModuleReference(u)):L.createImportDeclaration(void 0,L.createImportClause(lK(o,l)?156:void 0,void 0,L.createNamespaceImport(L.createIdentifier(o.name))),u,void 0);d=qA(d,g)}return C.checkDefined(d)}function cNe(e,t,r,i,o){const s=RP(e,t);let l;if(r||i?.length){const u=i?.map(({name:g,propertyName:h})=>L.createBindingElement(void 0,h,g))||[];r&&u.unshift(L.createBindingElement(void 0,"default",r.name));const d=dNe(L.createObjectBindingPattern(u),s);l=qA(l,d)}if(o){const u=dNe(o.name,s);l=qA(l,u)}return C.checkDefined(l)}function dNe(e,t){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(typeof e=="string"?L.createIdentifier(e):e,void 0,void 0,L.createCallExpression(L.createIdentifier("require"),void 0,[t]))],2))}function uNe(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}function Sue(e,t){return _g(e)?t.getImpliedNodeFormatForEmit(e):k1(e,t.getCompilerOptions())}function VZe(e,t){return _g(e)?t.getEmitModuleFormatOfFile(e):yP(e,t.getCompilerOptions())}var Eue="addMissingConstraint",pNe=[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];Sa({errorCodes:pNe,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=fNe(i,t,r);if(l===void 0)return;const u=Rr.ChangeTracker.with(e,d=>mNe(d,i,o,s,t,l));return[oa(Eue,u,f.Add_extends_constraint,Eue,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Eue],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Set;return _x(Rr.ChangeTracker.with(e,s=>{gx(e,pNe,l=>{const u=fNe(t,l.file,Id(l.start,l.length));if(u&&gm(o,ls(u.declaration)))return mNe(s,t,r,i,l.file,u)})}))}});function fNe(e,t,r){const i=hn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=hn(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=gpe(o.file,Id(o.start,o.length));if(s!==void 0&&(He(s)&&sl(s.parent)&&(s=s.parent),sl(s))){if(y1(s.parent))return;const l=Fi(t,r.start),u=e.getTypeChecker();return{constraint:UZe(u,l)||jZe(o.messageText),declaration:s,token:l}}}function mNe(e,t,r,i,o,s){const{declaration:l,constraint:u}=s,d=t.getTypeChecker();if(Bo(u))e.insertText(o,l.name.end,` extends ${u}`);else{const g=Ga(t.getCompilerOptions()),h=uC({program:t,host:i}),y=oE(o,t,r,i),E=EK(d,y,u,void 0,g,void 0,void 0,h);E&&(e.replaceNode(o,l,L.updateTypeParameterDeclaration(l,void 0,l.name,E,l.default)),y.writeFixes(e))}}function jZe(e){const[,t]=a_(e,` `,0).match(/`extends (.*)`/)||[];return t}function UZe(e,t){return Ri(t.parent)?e.getTypeArgumentConstraint(t.parent):(St(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var hNe="fixOverrideModifier",zO="fixAddOverrideModifier",ez="fixRemoveOverrideModifier",_Ne=[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],gNe={[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:zO,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:zO,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:ez,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:ez,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:zO,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:zO,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:zO,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:ez,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:ez,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}};Sa({errorCodes:_Ne,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=gNe[r];if(!o)return ae;const{descriptions:s,fixId:l,fixAllDescriptions:u}=o,d=Rr.ChangeTracker.with(t,g=>yNe(g,t,r,i.start));return[Vde(hNe,d,s,l,u)]},fixIds:[hNe,zO,ez],getAllCodeActions:e=>Ss(e,_Ne,(t,r)=>{const{code:i,start:o}=r,s=gNe[i];!s||s.fixId!==e.fixId||yNe(t,e,i,o)})});function yNe(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 qZe(e,t.sourceFile,i);default:C.fail("Unexpected error code: "+r)}}function HZe(e,t,r){const i=bNe(t,r);if(Mu(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}const o=i.modifiers||ae,s=hn(o,BI),l=hn(o,Zre),u=hn(o,y=>xq(y.kind)),d=ga(o,Fc),g=l?l.end:s?s.end:u?u.end:d?La(t.text,d.end):i.getStart(t),h=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,h)}function qZe(e,t,r){const i=bNe(t,r);if(Mu(t)){e.filterJSDocTags(t,i,P8(f4));return}const o=hn(i.modifiers,eie);C.assertIsDefined(o),e.deleteModifier(t,o)}function vNe(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return Np(e,e.parent);default:return!1}}function bNe(e,t){const r=Fi(e,t),i=Dn(r,o=>ui(o)?"quit":vNe(o));return C.assert(i&&vNe(i)),i}var Aue="fixNoPropertyAccessFromIndexSignature",TNe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];Sa({errorCodes:TNe,fixIds:[Aue],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=ENe(t,r.start),s=Rr.ChangeTracker.with(e,l=>SNe(l,e.sourceFile,o,i));return[oa(Aue,s,[f.Use_element_access_for_0,o.name.text],Aue,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ss(e,TNe,(t,r)=>SNe(t,r.file,ENe(r.file,r.start),e.preferences))});function SNe(e,t,r,i){const o=Gp(t,i),s=L.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,nF(r)?L.createElementAccessChain(r.expression,r.questionDotToken,s):L.createElementAccessExpression(r.expression,s))}function ENe(e,t){return ma(Fi(e,t).parent,qr)}var Iue="fixImplicitThis",ANe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];Sa({errorCodes:ANe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const l=Rr.ChangeTracker.with(t,u=>{s=INe(u,r,o.start,i.getTypeChecker())});return s?[oa(Iue,l,s,Iue,f.Fix_all_implicit_this_errors)]:ae},fixIds:[Iue],getAllCodeActions:e=>Ss(e,ANe,(t,r)=>{INe(t,r.file,r.start,e.program.getTypeChecker())})});function INe(e,t,r,i){const o=Fi(t,r);if(!$D(o))return;const s=yu(o,!1,!1);if(!(!ec(s)&&!Us(s))&&!Yi(yu(s,!1,!1))){const l=C.checkDefined(Es(s,100,t)),{name:u}=s,d=C.checkDefined(s.body);return Us(s)?u&&Ys.Core.isSymbolReferencedInFile(u,i,t,d)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,d.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,u?u.text:$q]):(e.replaceNode(t,l,L.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,d.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,u.text])}}var xue="fixImportNonExportedMember",xNe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code];Sa({errorCodes:xNe,fixIds:[xue],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=RNe(t,r.start,i);if(o===void 0)return;const s=Rr.ChangeTracker.with(e,l=>JZe(l,i,o));return[oa(xue,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],xue,f.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return _x(Rr.ChangeTracker.with(e,r=>{const i=new Map;gx(e,xNe,o=>{const s=RNe(o.file,o.start,t);if(s===void 0)return;const{exportName:l,node:u,moduleSourceFile:d}=s;if(cK(d,l.isTypeOnly)===void 0&&qk(u))r.insertExportModifier(d,u);else{const g=i.get(d)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?g.typeOnlyExports.push(l):g.exports.push(l),i.set(d,g)}}),i.forEach((o,s)=>{const l=cK(s,!0);l&&l.isTypeOnly?(Rue(r,t,s,o.typeOnlyExports,l),Rue(r,t,s,o.exports,cK(s,!1))):Rue(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}});function RNe(e,t,r){var i,o;const s=Fi(e,t);if(He(s)){const l=Dn(s,vl);if(l===void 0)return;const u=ka(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;const d=(i=r.getResolvedModuleFromModuleSpecifier(u,e))==null?void 0:i.resolvedModule;if(d===void 0)return;const g=r.getSourceFile(d.resolvedFileName);if(g===void 0||aC(r,g))return;const h=g.symbol,y=(o=ni(h.valueDeclaration,D_))==null?void 0:o.locals;if(y===void 0)return;const E=y.get(s.escapedText);if(E===void 0)return;const A=KZe(E);return A===void 0?void 0:{exportName:{node:s,isTypeOnly:MI(A)},node:A,moduleSourceFile:g,moduleSpecifier:u.text}}}function JZe(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=cK(o,r.isTypeOnly);s?DNe(e,t,o,s,[r]):qk(i)?e.insertExportModifier(o,i):CNe(e,t,o,[r])}function Rue(e,t,r,i,o){et(i)&&(o?DNe(e,t,r,o,i):CNe(e,t,r,i))}function cK(e,t){const r=i=>fc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return ga(e.statements,r)}function DNe(e,t,r,i,o){const s=i.exportClause&&Jf(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),l=!i.isTypeOnly&&!!(ym(t.getCompilerOptions())||hn(s,u=>u.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...s,...NNe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function CNe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(NNe(i,ym(t.getCompilerOptions()))),void 0,void 0))}function NNe(e,t){return L.createNodeArray(Vt(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function KZe(e){if(e.valueDeclaration===void 0)return Ic(e.declarations);const t=e.valueDeclaration,r=yi(t)?ni(t.parent.parent,sc):void 0;return r&&et(r.declarationList.declarations)===1?r:t}var Due="fixIncorrectNamedTupleSyntax",XZe=[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];Sa({errorCodes:XZe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=YZe(r,i.start),s=Rr.ChangeTracker.with(t,l=>$Ze(l,r,o));return[oa(Due,s,f.Move_labeled_tuple_element_modifiers_to_labels,Due,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Due]});function YZe(e,t){const r=Fi(e,t);return Dn(r,i=>i.kind===203)}function $Ze(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===191||i.kind===192||i.kind===197;)i.kind===191?o=!0:i.kind===192&&(s=!0),i=i.type;const l=L.updateNamedTupleMember(r,r.dotDotDotToken||(s?L.createToken(26):void 0),r.name,r.questionToken||(o?L.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var MNe="fixSpelling",PNe=[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];Sa({errorCodes:PNe,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=LNe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,l=Ga(e.host.getCompilationSettings()),u=Rr.ChangeTracker.with(e,d=>kNe(d,t,o,s,l));return[oa("spelling",u,[f.Change_spelling_to_0,Ol(s)],MNe,f.Fix_all_detected_spelling_errors)]},fixIds:[MNe],getAllCodeActions:e=>Ss(e,PNe,(t,r)=>{const i=LNe(r.file,r.start,e,r.code),o=Ga(e.host.getCompilationSettings());i&&kNe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})});function LNe(e,t,r,i){const o=Fi(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)&&!i_(s))return;const l=r.program.getTypeChecker();let u;if(qr(s)&&s.name===o){C.assert(dg(o),"Expected an identifier for spelling (property access)");let d=l.getTypeAtLocation(s.expression);s.flags&64&&(d=l.getNonNullableType(d)),u=l.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Nr(s)&&s.operatorToken.kind===103&&s.left===o&&eo(o)){const d=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Lu(s)&&s.right===o){const d=l.getSymbolAtLocation(s.left);d&&d.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,d))}else if(Su(s)&&s.name===o){C.assertNode(o,He,"Expected an identifier for spelling (import)");const d=Dn(o,vl),g=ZZe(r,d,e);g&&g.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,g.symbol))}else if(i_(s)&&s.name===o){C.assertNode(o,He,"Expected an identifier for JSX attribute");const d=Dn(o,nu),g=l.getContextualTypeForArgumentAtIndex(d,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,g)}else if(d6(s)&&Tc(s)&&s.name===o){const d=Dn(o,ui),g=d?lh(d):void 0,h=g?l.getTypeAtLocation(g):void 0;h&&(u=l.getSuggestedSymbolForNonexistentClassMember(Al(o),h))}else{const d=w1(o),g=Al(o);C.assert(g!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,g,QZe(d))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function kNe(e,t,r,i,o){const s=Ol(i);if(!fp(s,o)&&qr(r.parent)){const l=i.valueDeclaration;l&&nd(l)&&eo(l.name)?e.replaceNode(t,r,L.createIdentifier(s)):e.replaceNode(t,r.parent,L.createElementAccessExpression(r.parent.expression,L.createStringLiteral(s)))}else e.replaceNode(t,r,L.createIdentifier(s))}function QZe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function ZZe(e,t,r){var i;if(!t||!ds(t.moduleSpecifier))return;const o=(i=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,r))==null?void 0:i.resolvedModule;if(o)return e.program.getSourceFile(o.resolvedFileName)}var Cue="returnValueCorrect",Nue="fixAddReturnStatement",Mue="fixRemoveBracesFromArrowFunctionBody",Pue="fixWrapTheBlockWithParen",wNe=[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];Sa({errorCodes:wNe,fixIds:[Nue,Mue,Pue],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=WNe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Bn([tet(t,l.expression,l.statement)],Xs(l.declaration)?net(t,l.declaration,l.expression,l.commentSource):void 0):[ret(t,l.declaration,l.expression)]},getAllCodeActions:e=>Ss(e,wNe,(t,r)=>{const i=WNe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case Nue:FNe(t,r.file,i.expression,i.statement);break;case Mue:if(!Xs(i.declaration))return;zNe(t,r.file,i.declaration,i.expression,i.commentSource);break;case Pue:if(!Xs(i.declaration))return;BNe(t,r.file,i.declaration,i.expression);break;default:C.fail(JSON.stringify(e.fixId))}})});function ONe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=da([i]);return e.createAnonymousType(void 0,o,[],[],[])}function Lue(e,t,r,i){if(!t.body||!ea(t.body)||et(t.body.statements)!==1)return;const o=$a(t.body.statements);if(od(o)&&kue(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(Mb(o)&&od(o.statement)){const s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=ONe(e,o.label,o.statement.expression);if(kue(e,t,l,r,i))return Xs(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(ea(o)&&et(o.statements)===1){const s=$a(o.statements);if(Mb(s)&&od(s.statement)){const l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),u=ONe(e,s.label,s.statement.expression);if(kue(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function kue(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){di(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,da(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function WNe(e,t,r,i){const o=Fi(t,r);if(!o.parent)return;const s=Dn(o.parent,Ms);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||!tp(s.type,o)?void 0:Lue(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!Zo(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?Lue(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!L_(o)||!VN(o.parent)&&!i_(o.parent))return;const d=eet(o.parent);return!d||!Ms(d)||!d.body?void 0:Lue(e,d,e.getTypeAtLocation(o.parent),!0)}}function eet(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(AD(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}function FNe(e,t,r,i){Op(r);const o=bO(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function zNe(e,t,r,i,o,s){const l=_7(i)?L.createParenthesizedExpression(i):i;Op(o),W1(o,l),e.replaceNode(t,r.body,l)}function BNe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function tet(e,t,r){const i=Rr.ChangeTracker.with(e,o=>FNe(o,e.sourceFile,t,r));return oa(Cue,i,f.Add_a_return_statement,Nue,f.Add_all_missing_return_statement)}function net(e,t,r,i){const o=Rr.ChangeTracker.with(e,s=>zNe(s,e.sourceFile,t,r,i));return oa(Cue,o,f.Remove_braces_from_arrow_function_body,Mue,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function ret(e,t,r){const i=Rr.ChangeTracker.with(e,o=>BNe(o,e.sourceFile,t,r));return oa(Cue,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Pue,f.Wrap_all_object_literal_with_parentheses)}var _0="fixMissingMember",dK="fixMissingProperties",uK="fixMissingAttributes",pK="fixMissingFunctionDeclaration",GNe=[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,f.Type_0_does_not_satisfy_the_expected_type_1.code];Sa({errorCodes:GNe,getCodeActions(e){const t=e.program.getTypeChecker(),r=VNe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=Rr.ChangeTracker.with(e,o=>QNe(o,e,r));return[oa(dK,i,f.Add_missing_properties,dK,f.Add_all_missing_properties)]}if(r.kind===4){const i=Rr.ChangeTracker.with(e,o=>$Ne(o,e,r));return[oa(uK,i,f.Add_missing_attributes,uK,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=Rr.ChangeTracker.with(e,o=>YNe(o,e,r));return[oa(pK,i,[f.Add_missing_function_declaration_0,r.token.text],pK,f.Add_all_missing_function_declarations)]}if(r.kind===1){const i=Rr.ChangeTracker.with(e,o=>XNe(o,e.program.getTypeChecker(),r));return[oa(_0,i,[f.Add_missing_enum_member_0,r.token.text],_0,f.Add_all_missing_members)]}return so(cet(e,r),iet(e,r))}},fixIds:[_0,pK,dK,uK],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Set,s=new Map;return _x(Rr.ChangeTracker.with(e,l=>{gx(e,GNe,u=>{const d=VNe(u.file,u.start,u.code,i,e.program);if(d===void 0)return;const g=ls(d.parentDeclaration)+"#"+(d.kind===3?d.identifier||ls(d.token):d.token.text);if(gm(o,g)){if(r===pK&&(d.kind===2||d.kind===5))YNe(l,e,d);else if(r===dK&&d.kind===3)QNe(l,e,d);else if(r===uK&&d.kind===4)$Ne(l,e,d);else if(d.kind===1&&XNe(l,i,d),d.kind===0){const{parentDeclaration:h,token:y}=d,E=HA(s,h,()=>[]);E.some(A=>A.token.text===y.text)||E.push(d)}}}),s.forEach((u,d)=>{const g=ku(d)?void 0:met(d,i);for(const h of u){if(g?.some(k=>{const W=s.get(k);return!!W&&W.some(({token:O})=>O.text===h.token.text)}))continue;const{parentDeclaration:y,declSourceFile:E,modifierFlags:A,token:R,call:N,isJSFile:P}=h;if(N&&!eo(R))KNe(e,l,N,R,A&256,y,E);else if(P&&!gd(y)&&!ku(y))jNe(l,E,y,R,!!(A&256));else{const k=HNe(i,y,R);qNe(l,E,y,R.text,k,A&256)}}})}))}});function VNe(e,t,r,i,o){var s,l;const u=Fi(e,t),d=u.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(u.kind===19&&Wa(d)&&Zo(d.parent)))return;const R=ho(d.parent.arguments,W=>W===d);if(R<0)return;const N=i.getResolvedSignature(d.parent);if(!(N&&N.declaration&&N.parameters[R]))return;const P=N.parameters[R].valueDeclaration;if(!(P&&to(P)&&He(P.name)))return;const k=Co(i.getUnmatchedProperties(i.getTypeAtLocation(d),i.getParameterType(N,R).getNonNullableType(),!1,!1));return et(k)?{kind:3,token:P.name,identifier:P.name.text,properties:k,parentDeclaration:d}:void 0}if(u.kind===19||SD(d)||tf(d)){const R=(SD(d)||tf(d))&&d.expression?d.expression:d;if(Wa(R)){const N=SD(d)?i.getTypeFromTypeNode(d.type):i.getContextualType(R)||i.getTypeAtLocation(R),P=Co(i.getUnmatchedProperties(i.getTypeAtLocation(d),N.getNonNullableType(),!1,!1));return et(P)?{kind:3,token:d,identifier:void 0,properties:P,parentDeclaration:R,indentation:tf(R.parent)||aw(R.parent)?0:void 0}:void 0}}if(!dg(u))return;if(He(u)&&Qy(d)&&d.initializer&&Wa(d.initializer)){const R=(s=i.getContextualType(u)||i.getTypeAtLocation(u))==null?void 0:s.getNonNullableType(),N=Co(i.getUnmatchedProperties(i.getTypeAtLocation(d.initializer),R,!1,!1));return et(N)?{kind:3,token:u,identifier:u.text,properties:N,parentDeclaration:d.initializer}:void 0}if(He(u)&&nu(u.parent)){const R=Ga(o.getCompilerOptions()),N=uet(i,R,u.parent);return et(N)?{kind:4,token:u,attributes:N,parentDeclaration:u.parent}:void 0}if(He(u)){const R=(l=i.getContextualType(u))==null?void 0:l.getNonNullableType();if(R&&Hr(R)&16){const N=Ic(i.getSignaturesOfType(R,0));return N===void 0?void 0:{kind:5,token:u,signature:N,sourceFile:e,parentDeclaration:ZNe(u)}}if(Zo(d)&&d.expression===u)return{kind:2,token:u,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:ZNe(u)}}if(!qr(d))return;const g=Pq(i.getTypeAtLocation(d.expression)),h=g.symbol;if(!h||!h.declarations)return;if(He(u)&&Zo(d.parent)){const R=hn(h.declarations,pc),N=R?.getSourceFile();if(R&&N&&!aC(o,N))return{kind:2,token:u,call:d.parent,sourceFile:N,modifierFlags:32,parentDeclaration:R};const P=hn(h.declarations,Yi);if(e.commonJsModuleIndicator)return;if(P&&!aC(o,P))return{kind:2,token:u,call:d.parent,sourceFile:P,modifierFlags:32,parentDeclaration:P}}const y=hn(h.declarations,ui);if(!y&&eo(u))return;const E=y||hn(h.declarations,R=>gd(R)||ku(R));if(E&&!aC(o,E.getSourceFile())){const R=!ku(E)&&(g.target||g)!==i.getDeclaredTypeOfSymbol(h);if(R&&(eo(u)||gd(E)))return;const N=E.getSourceFile(),P=ku(E)?0:(R?256:0)|(oJ(u.text)?2:0),k=Mu(N),W=ni(d.parent,Zo);return{kind:0,token:u,call:W,modifierFlags:P,parentDeclaration:E,declSourceFile:N,isJSFile:k}}const A=hn(h.declarations,QT);if(A&&!(g.flags&1056)&&!eo(u)&&!aC(o,A.getSourceFile()))return{kind:1,token:u,parentDeclaration:A}}function iet(e,t){return t.isJSFile?$A(oet(e,t)):aet(e,t)}function oet(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(gd(t)||ku(t))return;const s=Rr.ChangeTracker.with(e,u=>jNe(u,r,t,o,!!(i&256)));if(s.length===0)return;const l=i&256?f.Initialize_static_property_0:eo(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return oa(_0,s,[l,o.text],_0,f.Add_all_missing_members)}function jNe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===232)return;const l=r.name.getText(),u=UNe(L.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(eo(i)){const l=L.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=JNe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=yg(r);if(!l)return;const u=UNe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function UNe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),vx()))}function aet(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,l=i&256,u=HNe(e.program.getTypeChecker(),t,o),d=h=>Rr.ChangeTracker.with(e,y=>qNe(y,r,t,s,u,h)),g=[oa(_0,d(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],_0,f.Add_all_missing_members)];return l||eo(o)||(i&2&&g.unshift(yh(_0,d(2),[f.Declare_private_property_0,s])),g.push(set(e,r,t,o.text,u))),g}function HNe(e,t,r){let i;if(r.parent.parent.kind===227){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,8)}else{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1,8):void 0}return i||L.createKeywordTypeNode(133)}function qNe(e,t,r,i,o,s){const l=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,u=ui(r)?L.createPropertyDeclaration(l,i,void 0,o,void 0):L.createPropertySignature(void 0,i,void 0,o),d=JNe(r);d?e.insertNodeAfter(t,d,u):e.insertMemberAtStart(t,r,u)}function JNe(e){let t;for(const r of e.members){if(!Po(r))break;t=r}return t}function set(e,t,r,i,o){const s=L.createKeywordTypeNode(154),l=L.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=L.createIndexSignature(void 0,[l],o),d=Rr.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,r,u));return yh(_0,d,[f.Add_index_signature_for_property_0,i])}function cet(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;const u=s.text,d=h=>Rr.ChangeTracker.with(e,y=>KNe(e,y,l,s,h,r,i)),g=[oa(_0,d(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],_0,f.Add_all_missing_members)];return o&2&&g.unshift(yh(_0,d(2),[f.Declare_private_method_0,u])),g}function KNe(e,t,r,i,o,s,l){const u=oE(l,e.program,e.preferences,e.host),d=ui(s)?175:174,g=dpe(d,e,u,r,i,o,s),h=pet(s,r);h?t.insertNodeAfter(l,h,g):t.insertMemberAtStart(l,s,g),u.writeFixes(t)}function XNe(e,t,{token:r,parentDeclaration:i}){const o=yt(i.members,d=>{const g=t.getTypeAtLocation(d);return!!(g&&g.flags&402653316)}),s=i.getSourceFile(),l=L.createEnumMember(r,o?L.createStringLiteral(r.text):void 0),u=Zs(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function YNe(e,t,r){const i=Gp(t.sourceFile,t.preferences),o=oE(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?dpe(263,t,o,r.call,Kr(r.token),r.modifierFlags,r.parentDeclaration):SK(263,t,i,r.signature,nz(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&C.fail("fixMissingFunctionDeclaration codefix got unexpected error."),tf(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function $Ne(e,t,r){const i=oE(t.sourceFile,t.program,t.preferences,t.host),o=Gp(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=yt(l.properties,KI),d=Vt(r.attributes,y=>{const E=fK(t,s,i,o,s.getTypeOfSymbol(y),r.parentDeclaration),A=L.createIdentifier(y.name),R=L.createJsxAttribute(A,L.createJsxExpression(void 0,E));return ps(A,R),R}),g=L.createJsxAttributes(u?[...d,...l.properties]:[...l.properties,...d]),h={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,g,h),i.writeFixes(e)}function QNe(e,t,r){const i=oE(t.sourceFile,t.program,t.preferences,t.host),o=Gp(t.sourceFile,t.preferences),s=Ga(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Vt(r.properties,g=>{const h=fK(t,l,i,o,l.getTypeOfSymbol(g),r.parentDeclaration);return L.createPropertyAssignment(fet(g,s,o,l),h)}),d={leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,L.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),d),i.writeFixes(e)}function fK(e,t,r,i,o,s){if(o.flags&3)return vx();if(o.flags&134217732)return L.createStringLiteral("",i===0);if(o.flags&8)return L.createNumericLiteral(0);if(o.flags&64)return L.createBigIntLiteral("0n");if(o.flags&16)return L.createFalse();if(o.flags&1056){const l=o.symbol.exports?D8(o.symbol.exports.values()):o.symbol,u=o.symbol.parent&&o.symbol.parent.flags&256?o.symbol.parent:o.symbol,d=t.symbolToExpression(u,111551,void 0,64);return l===void 0||d===void 0?L.createNumericLiteral(0):L.createPropertyAccessExpression(d,t.symbolToString(l))}if(o.flags&256)return L.createNumericLiteral(o.value);if(o.flags&2048)return L.createBigIntLiteral(o.value);if(o.flags&128)return L.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?L.createFalse():L.createTrue();if(o.flags&65536)return L.createNull();if(o.flags&1048576)return Hn(o.types,u=>fK(e,t,r,i,u,s))??vx();if(t.isArrayLikeType(o))return L.createArrayLiteralExpression();if(det(o)){const l=Vt(t.getPropertiesOfType(o),u=>{const d=fK(e,t,r,i,t.getTypeOfSymbol(u),s);return L.createPropertyAssignment(u.name,d)});return L.createObjectLiteralExpression(l,!0)}if(Hr(o)&16){if(hn(o.symbol.declarations||ae,Rp(w_,Gm,Ml))===void 0)return vx();const u=t.getSignaturesOfType(o,0);return u===void 0?vx():SK(219,e,i,u[0],nz(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??vx()}if(Hr(o)&1){const l=cy(o.symbol);if(l===void 0||MS(l))return vx();const u=yg(l);return u&&et(u.parameters)?vx():L.createNewExpression(L.createIdentifier(o.symbol.name),void 0,void 0)}return vx()}function vx(){return L.createIdentifier("undefined")}function det(e){return e.flags&524288&&(Hr(e)&128||e.symbol&&ni(og(e.symbol.declarations),ku))}function uet(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return ae;const o=i.getProperties();if(!et(o))return ae;const s=new Set;for(const l of r.attributes.properties)if(i_(l)&&s.add(CM(l.name)),KI(l)){const u=e.getTypeAtLocation(l.expression);for(const d of u.getProperties())s.add(d.escapedName)}return Un(o,l=>fp(l.name,t,1)&&!(l.flags&16777216||Fl(l)&48||s.has(l.escapedName)))}function pet(e,t){if(ku(e))return;const r=Dn(t,i=>Ml(i)||Pl(i));return r&&r.parent===e?r:void 0}function fet(e,t,r,i){if(pg(e)){const o=i.symbolToNode(e,111551,void 0,void 0,1);if(o&&va(o))return o}return Hk(e.name,t,r===0,!1,!1)}function ZNe(e){if(Dn(e,AD)){const t=Dn(e.parent,tf);if(t)return t}return Wn(e)}function met(e,t){const r=[];for(;e;){const i=xS(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&hn(s.declarations,ui);if(!l)break;r.push(l),e=l}return r}var wue="addMissingNewOperator",eMe=[f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];Sa({errorCodes:eMe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=Rr.ChangeTracker.with(e,o=>tMe(o,t,r));return[oa(wue,i,f.Add_missing_new_operator_to_call,wue,f.Add_missing_new_operator_to_all_calls)]},fixIds:[wue],getAllCodeActions:e=>Ss(e,eMe,(t,r)=>tMe(t,e.sourceFile,r))});function tMe(e,t,r){const i=ma(het(t,r),Zo),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function het(e,t){let r=Fi(e,t.start);const i=Cl(t);for(;r.end_K(u,e.program,e.preferences,e.host,i,o)),[et(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],mK,f.Add_all_missing_parameters)),et(s)&&Bn(l,oa(hK,Rr.ChangeTracker.with(e,u=>_K(u,e.program,e.preferences,e.host,i,s)),[et(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],hK,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>Ss(e,nMe,(t,r)=>{const i=rMe(e.sourceFile,e.program,r.start);if(i){const{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===mK&&_K(t,e.program,e.preferences,e.host,o,s),e.fixId===hK&&_K(t,e.program,e.preferences,e.host,o,l)}})});function rMe(e,t,r){const i=Fi(e,r),o=Dn(i,Zo);if(o===void 0||et(o.arguments)===0)return;const s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=Un(l.symbol.declarations,iMe);if(u===void 0)return;const d=Zs(u);if(d===void 0||d.body===void 0||aC(t,d.getSourceFile()))return;const g=_et(d);if(g===void 0)return;const h=[],y=[],E=et(d.parameters),A=et(o.arguments);if(E>A)return;const R=[d,...yet(d,u)];for(let N=0,P=0,k=0;N{const d=Wn(u),g=oE(d,t,r,i);et(u.parameters)?e.replaceNodeRangeWithNodes(d,$a(u.parameters),Ba(u.parameters),oMe(g,l,u,s),{joiner:", ",indentation:0,leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include}):Ye(oMe(g,l,u,s),(h,y)=>{et(u.parameters)===0&&y===0?e.insertNodeAt(d,u.parameters.end,h):e.insertNodeAtEndOfList(d,u.parameters,h)}),g.writeFixes(e)})}function iMe(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function oMe(e,t,r,i){const o=Vt(r.parameters,s=>L.createParameterDeclaration(s.modifiers,s.dotDotDotToken,s.name,s.questionToken,s.type,s.initializer));for(const{pos:s,declaration:l}of i){const u=s>0?o[s-1]:void 0;o.splice(s,0,L.updateParameterDeclaration(l,l.modifiers,l.dotDotDotToken,l.name,u&&u.questionToken?L.createToken(58):l.questionToken,Tet(e,l.type,t),l.initializer))}return o}function yet(e,t){const r=[];for(const i of t)if(vet(i)){if(et(i.parameters)===et(e.parameters)){r.push(i);continue}if(et(i.parameters)>et(e.parameters))return[]}return r}function vet(e){return iMe(e)&&e.body===void 0}function aMe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function bet(e,t){return et(e)&&yt(e,r=>tSs(e,cMe,(t,r,i)=>{const o=uMe(r.file,r.start);if(o!==void 0)switch(e.fixId){case Oue:{const s=pMe(o,e.host,r.code);s&&i.push(dMe(r.file.fileName,s));break}default:C.fail(`Bad fixId: ${e.fixId}`)}})});function dMe(e,t){return{type:"install package",file:e,packageName:t}}function uMe(e,t){const r=ni(Fi(e,t),ka);if(!r)return;const i=r.text,{packageName:o}=J4(i);return td(o)?void 0:o}function pMe(e,t,r){var i;return r===sMe?hD.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?X4(e):void 0}var fMe=[f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Wue="fixClassDoesntImplementInheritedAbstractMember";Sa({errorCodes:fMe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=Rr.ChangeTracker.with(t,s=>hMe(mMe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[oa(Wue,o,f.Implement_inherited_abstract_class,Wue,f.Implement_all_inherited_abstract_classes)]},fixIds:[Wue],getAllCodeActions:function(t){const r=new Set;return Ss(t,fMe,(i,o)=>{const s=mMe(o.file,o.start);gm(r,ls(s))&&hMe(s,t.sourceFile,t,i,t.preferences)})}});function mMe(e,t){const r=Fi(e,t);return ma(r.parent,ui)}function hMe(e,t,r,i,o){const s=lh(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),d=l.getPropertiesOfType(u).filter(Aet),g=oE(t,r.program,o,r.host);cpe(e,d,t,r,o,g,h=>i.insertMemberAtStart(t,e,h)),g.writeFixes(i)}function Aet(e){const t=tv($a(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Fue="classSuperMustPrecedeThisAccess",_Me=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];Sa({errorCodes:_Me,getCodeActions(e){const{sourceFile:t,span:r}=e,i=yMe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,l=Rr.ChangeTracker.with(e,u=>gMe(u,t,o,s));return[oa(Fue,l,f.Make_super_call_the_first_statement_in_the_constructor,Fue,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Fue],getAllCodeActions(e){const{sourceFile:t}=e,r=new Set;return Ss(e,_Me,(i,o)=>{const s=yMe(o.file,o.start);if(!s)return;const{constructor:l,superCall:u}=s;gm(r,ls(l.parent))&&gMe(i,t,l,u)})}});function gMe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function yMe(e,t){const r=Fi(e,t);if(r.kind!==110)return;const i=df(r),o=vMe(i.body);return o&&!o.expression.arguments.some(s=>qr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function vMe(e){return od(e)&&e1(e.expression)?e:Yo(e)?void 0:Jo(e,vMe)}var zue="constructorForDerivedNeedSuperCall",bMe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code];Sa({errorCodes:bMe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=TMe(t,r.start),o=Rr.ChangeTracker.with(e,s=>SMe(s,t,i));return[oa(zue,o,f.Add_missing_super_call,zue,f.Add_all_missing_super_calls)]},fixIds:[zue],getAllCodeActions:e=>Ss(e,bMe,(t,r)=>SMe(t,e.sourceFile,TMe(r.file,r.start)))});function TMe(e,t){const r=Fi(e,t);return C.assert(Pl(r.parent),"token should be at the constructor declaration"),r.parent}function SMe(e,t,r){const i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,ae));e.insertNodeAtConstructorStart(t,r,i)}var EMe="fixEnableJsxFlag",AMe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];Sa({errorCodes:AMe,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=Rr.ChangeTracker.with(t,o=>IMe(o,r));return[yh(EMe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[EMe],getAllCodeActions:e=>Ss(e,AMe,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&IMe(t,r)})});function IMe(e,t){hpe(e,t,"jsx",L.createStringLiteral("react"))}var Bue="fixNaNEquality",xMe=[f.This_condition_will_always_return_0.code];Sa({errorCodes:xMe,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=RMe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:l,arg:u}=o,d=Rr.ChangeTracker.with(e,g=>DMe(g,t,u,l));return[oa(Bue,d,[f.Use_0,s],Bue,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[Bue],getAllCodeActions:e=>Ss(e,xMe,(t,r)=>{const i=RMe(e.program,r.file,Id(r.start,r.length));i&&DMe(t,r.file,i.arg,i.expression)})});function RMe(e,t,r){const i=hn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=hn(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=gpe(o.file,Id(o.start,o.length));if(s!==void 0&&St(s)&&Nr(s.parent))return{suggestion:Iet(o.messageText),expression:s.parent,arg:s}}function DMe(e,t,r,i){const o=L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("Number"),L.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?L.createPrefixUnaryExpression(54,o):o)}function Iet(e){const[,t]=a_(e,` `,0).match(/'(.*)'/)||[];return t}Sa({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_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_node18_node20_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_node18_node20_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=vu(r);if(s>=5&&s<99){const g=Rr.ChangeTracker.with(t,h=>{hpe(h,i,"module",L.createStringLiteral("esnext"))});o.push(yh("fixModuleOption",g,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=Ga(r);if(u<4||u>99){const g=Rr.ChangeTracker.with(t,h=>{if(!UN(i))return;const E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),mpe(h,i,E)});o.push(yh("fixTargetOption",g,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}});var Gue="fixPropertyAssignment",CMe=[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];Sa({errorCodes:CMe,fixIds:[Gue],getCodeActions(e){const{sourceFile:t,span:r}=e,i=MMe(t,r.start),o=Rr.ChangeTracker.with(e,s=>NMe(s,e.sourceFile,i));return[oa(Gue,o,[f.Change_0_to_1,"=",":"],Gue,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ss(e,CMe,(t,r)=>NMe(t,r.file,MMe(r.file,r.start)))});function NMe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function MMe(e,t){return ma(Fi(e,t).parent,Ud)}var Vue="extendsInterfaceBecomesImplements",PMe=[f.Cannot_extend_an_interface_0_Did_you_mean_implements.code];Sa({errorCodes:PMe,getCodeActions(e){const{sourceFile:t}=e,r=LMe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=Rr.ChangeTracker.with(e,l=>kMe(l,t,i,o));return[oa(Vue,s,f.Change_extends_to_implements,Vue,f.Change_all_extended_interfaces_to_implements)]},fixIds:[Vue],getAllCodeActions:e=>Ss(e,PMe,(t,r)=>{const i=LMe(r.file,r.start);i&&kMe(t,r.file,i.extendsToken,i.heritageClauses)})});function LMe(e,t){const r=Fi(e,t),i=hd(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function kMe(e,t,r,i){if(e.replaceNode(t,r,L.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},L.createToken(28));const l=t.text;let u=o.end;for(;uFMe(o,t,r));return[oa(jue,i,[f.Add_0_to_unresolved_variable,r.className||"this"],jue,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[jue],getAllCodeActions:e=>Ss(e,OMe,(t,r)=>{const i=WMe(r.file,r.start,r.code);i&&FMe(t,e.sourceFile,i)})});function WMe(e,t,r){const i=Fi(e,t);if(He(i)||eo(i))return{node:i,className:r===wMe?hd(i).name.text:void 0}}function FMe(e,t,{node:r,className:i}){Op(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var Uue="fixInvalidJsxCharacters_expression",gK="fixInvalidJsxCharacters_htmlEntity",zMe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code];Sa({errorCodes:zMe,fixIds:[Uue,gK],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=Rr.ChangeTracker.with(e,l=>Hue(l,r,t,i.start,!1)),s=Rr.ChangeTracker.with(e,l=>Hue(l,r,t,i.start,!0));return[oa(Uue,o,f.Wrap_invalid_character_in_an_expression_container,Uue,f.Wrap_all_invalid_characters_in_an_expression_container),oa(gK,s,f.Convert_invalid_character_to_its_html_entity_code,gK,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ss(e,zMe,(t,r)=>Hue(t,e.preferences,r.file,r.start,e.fixId===gK))}});var BMe={">":">","}":"}"};function xet(e){return Rs(BMe,e)}function Hue(e,t,r,i,o){const s=r.getText()[i];if(!xet(s))return;const l=o?BMe[s]:`{${PP(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var yK="deleteUnmatchedParameter",GMe="renameUnmatchedParameter",VMe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];Sa({fixIds:[yK,GMe],errorCodes:VMe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=jMe(r,i.start);if(s)return Bn(o,Ret(t,s)),Bn(o,Det(t,s)),o},getAllCodeActions:function(t){const r=new Map;return _x(Rr.ChangeTracker.with(t,i=>{gx(t,VMe,({file:o,start:s})=>{const l=jMe(o,s);l&&r.set(l.signature,Bn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===yK){const l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}});function Ret(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=Rr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return oa(yK,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],yK,f.Delete_all_unused_param_tags)}function Det(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!et(i.parameters))return;const s=e.sourceFile,l=LT(i),u=new Set;for(const y of l)mf(y)&&He(y.name)&&u.add(y.name.escapedText);const d=Hn(i.parameters,y=>He(y.name)&&!u.has(y.name.escapedText)?y.name.getText(s):void 0);if(d===void 0)return;const g=L.updateJSDocParameterTag(o,o.tagName,L.createIdentifier(d),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),h=Rr.ChangeTracker.with(e,y=>y.replaceJSDocComment(s,r,Vt(l,E=>E===o?g:E)));return yh(GMe,h,[f.Rename_param_tag_name_0_to_1,t.getText(s),d])}function jMe(e,t){const r=Fi(e,t);if(r.parent&&mf(r.parent)&&He(r.parent.name)){const i=r.parent,o=AS(i),s=zT(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var que="fixUnreferenceableDecoratorMetadata",Cet=[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];Sa({errorCodes:Cet,getCodeActions:e=>{const t=Net(e.sourceFile,e.program,e.span.start);if(!t)return;const r=Rr.ChangeTracker.with(e,s=>t.kind===277&&Pet(s,e.sourceFile,t,e.program)),i=Rr.ChangeTracker.with(e,s=>Met(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Bn(o,yh(que,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Bn(o,yh(que,i,f.Use_import_type))),o},fixIds:[que]});function Net(e,t,r){const i=ni(Fi(e,r),He);if(!i||i.parent.kind!==184)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return hn(s?.declarations||ae,Rp(Vm,Su,zc))}function Met(e,t,r,i){if(r.kind===272){e.insertModifierBefore(t,156,r.name);return}const o=r.kind===274?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();Xte(o,u=>{if(xd(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function Pet(e,t,r,i){mx.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var tz="unusedIdentifier",Jue="unusedIdentifier_prefix",Kue="unusedIdentifier_delete",vK="unusedIdentifier_deleteImports",Xue="unusedIdentifier_infer",UMe=[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];Sa({errorCodes:UMe,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=Fi(r,e.span.start);if(bm(u))return[VP(Rr.ChangeTracker.with(e,y=>y.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){const y=Rr.ChangeTracker.with(e,E=>qMe(E,r,u));return[VP(y,f.Remove_type_parameters)]}const d=JMe(u);if(d){const y=Rr.ChangeTracker.with(e,E=>E.delete(r,d));return[oa(tz,y,[f.Remove_import_from_0,kne(d)],vK,f.Delete_all_unused_imports)]}else if(Yue(u)){const y=Rr.ChangeTracker.with(e,E=>bK(r,u,E,s,l,i,o,!1));if(y.length)return[oa(tz,y,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],vK,f.Delete_all_unused_imports)]}if(ff(u.parent)||uv(u.parent)){if(to(u.parent.parent)){const y=u.parent.elements,E=[y.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,Vt(y,A=>A.getText(r)).join(", ")];return[VP(Rr.ChangeTracker.with(e,A=>Let(A,r,u.parent)),E)]}return[VP(Rr.ChangeTracker.with(e,y=>ket(e,y,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(KMe(r,u))return[VP(Rr.ChangeTracker.with(e,y=>XMe(y,r,u.parent)),f.Remove_variable_statement)];if(He(u)&&ec(u.parent))return[VP(Rr.ChangeTracker.with(e,y=>ZMe(y,r,u.parent)),[f.Remove_unused_declaration_for_Colon_0,u.getText(r)])];const g=[];if(u.kind===140){const y=Rr.ChangeTracker.with(e,A=>HMe(A,r,u)),E=ma(u.parent,_1).typeParameter.name.text;g.push(oa(tz,y,[f.Replace_infer_0_with_unknown,E],Xue,f.Replace_all_unused_infer_with_unknown))}else{const y=Rr.ChangeTracker.with(e,E=>bK(r,u,E,s,l,i,o,!1));if(y.length){const E=va(u.parent)?u.parent:u;g.push(VP(y,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}const h=Rr.ChangeTracker.with(e,y=>YMe(y,t,r,u));return h.length&&g.push(oa(tz,h,[f.Prefix_0_with_an_underscore,u.getText(r)],Jue,f.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[Jue,Kue,vK,Xue],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Ss(e,UMe,(l,u)=>{const d=Fi(t,u.start);switch(e.fixId){case Jue:YMe(l,u.code,t,d);break;case vK:{const g=JMe(d);g?l.delete(t,g):Yue(d)&&bK(t,d,l,o,s,r,i,!0);break}case Kue:{if(d.kind===140||Yue(d))break;if(bm(d))l.delete(t,d);else if(d.kind===30)qMe(l,t,d);else if(ff(d.parent)){if(d.parent.parent.initializer)break;(!to(d.parent.parent)||$Me(d.parent.parent,o,s))&&l.delete(t,d.parent.parent)}else{if(uv(d.parent.parent)&&d.parent.parent.parent.initializer)break;KMe(t,d)?XMe(l,t,d.parent):He(d)&&ec(d.parent)?ZMe(l,t,d.parent):bK(t,d,l,o,s,r,i,!0)}break}case Xue:d.kind===140&&HMe(l,t,d);break;default:C.fail(JSON.stringify(e.fixId))}})}});function HMe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function VP(e,t){return oa(tz,e,t,Kue,f.Delete_all_unused_declarations)}function qMe(e,t,r){e.delete(t,C.checkDefined(ma(r.parent,dG).typeParameters,"The type parameter to delete should exist"))}function Yue(e){return e.kind===102||e.kind===80&&(e.parent.kind===277||e.parent.kind===274)}function JMe(e){return e.kind===102?ni(e.parent,vl):void 0}function KMe(e,t){return _d(t.parent)&&$a(t.parent.getChildren(e))===t}function XMe(e,t,r){e.delete(t,r.parent.kind===244?r.parent:r)}function Let(e,t,r){Ye(r.elements,i=>e.delete(t,i))}function ket(e,t,r,{parent:i}){if(yi(i)&&i.initializer&&_S(i.initializer))if(_d(i.parent)&&et(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:_y(e.host,e.formatContext.options)+r.text.slice(h7(r.text,s-1),s),suffix:bO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function YMe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=ma(i.parent,_1).typeParameter.name),He(i)&&wet(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),to(i.parent)&&wR(i.parent).forEach(o=>{He(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function wet(e){switch(e.parent.kind){case 170:case 169:return!0;case 261:switch(e.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}function bK(e,t,r,i,o,s,l,u){Oet(t,r,e,i,o,s,l,u),He(t)&&Ys.Core.eachSymbolReferenceInFile(t,i,e,d=>{qr(d.parent)&&d.parent.name===d&&(d=d.parent),!u&&Bet(d)&&r.delete(e,d.parent.parent)})}function Oet(e,t,r,i,o,s,l,u){const{parent:d}=e;if(to(d))Wet(t,r,d,i,o,s,l,u);else if(!(u&&He(e)&&Ys.Core.isSymbolReferencedInFile(e,i,r))){const g=Vm(d)?e:va(d)?d.parent:d;C.assert(g!==r,"should not delete whole source file"),t.delete(r,g)}}function Wet(e,t,r,i,o,s,l,u=!1){if(Fet(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!He(r.name)||Ys.Core.isSymbolReferencedInFile(r.name,i,t)))for(const d of r.modifiers)Aa(d)&&e.deleteModifier(t,d);else!r.initializer&&$Me(r,i,o)&&e.delete(t,r)}function $Me(e,t,r){const i=e.parent.parameters.indexOf(e);return!Ys.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function Fet(e,t,r,i,o,s,l){const{parent:u}=r;switch(u.kind){case 175:case 177:const d=u.parameters.indexOf(r),g=Ml(u)?u.name:u,h=Ys.Core.getReferencedSymbolsForNode(u.pos,g,o,i,s);if(h){for(const y of h)for(const E of y.references)if(E.kind===Ys.EntryKind.Node){const A=OM(E.node)&&Zo(E.node.parent)&&E.node.parent.arguments.length>d,R=qr(E.node.parent)&&OM(E.node.parent.expression)&&Zo(E.node.parent.parent)&&E.node.parent.parent.arguments.length>d,N=(Ml(E.node.parent)||Gm(E.node.parent))&&E.node.parent!==r.parent&&E.node.parent.parameters.length>d;if(A||R||N)return!1}}return!0;case 263:return u.name&&zet(e,t,u.name)?QMe(u,r,l):!0;case 219:case 220:return QMe(u,r,l);case 179:return!1;case 178:return!0;default:return C.failBadSyntaxKind(u)}}function zet(e,t,r){return!!Ys.Core.eachSymbolReferenceInFile(r,e,t,i=>He(i)&&Zo(i.parent)&&i.parent.arguments.includes(i))}function QMe(e,t,r){const i=e.parameters,o=i.indexOf(t);return C.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>He(s.name)&&!s.symbol.isReferenced):o===i.length-1}function Bet(e){return(Nr(e.parent)&&e.parent.left===e||(sj(e.parent)||XT(e.parent))&&e.parent.operand===e)&&od(e.parent.parent)}function ZMe(e,t,r){const i=r.symbol.declarations;if(i)for(const o of i)e.delete(t,o)}var $ue="fixUnreachableCode",ePe=[f.Unreachable_code_detected.code];Sa({errorCodes:ePe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=Rr.ChangeTracker.with(e,i=>tPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[oa($ue,r,f.Remove_unreachable_code,$ue,f.Remove_all_unreachable_code)]},fixIds:[$ue],getAllCodeActions:e=>Ss(e,ePe,(t,r)=>tPe(t,r.file,r.start,r.length,r.code))});function tPe(e,t,r,i,o){const s=Fi(t,r),l=Dn(s,Vi);if(l.getStart(t)!==s.getStart(t)){const d=JSON.stringify({statementKind:C.formatSyntaxKind(l.kind),tokenKind:C.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});C.fail("Token and statement should start at the same point. "+d)}const u=(ea(l.parent)?l.parent:l).parent;if(!ea(l.parent)||l===$a(l.parent.statements))switch(u.kind){case 246:if(u.elseStatement){if(ea(l.parent))break;e.replaceNode(t,l,L.createBlock(ae));return}case 248:case 249:e.delete(t,u);return}if(ea(l.parent)){const d=r+i,g=C.checkDefined(Get(RV(l.parent.statements,l),h=>h.posrPe(r,e.sourceFile,e.span.start));return[oa(Que,t,f.Remove_unused_label,Que,f.Remove_all_unused_labels)]},fixIds:[Que],getAllCodeActions:e=>Ss(e,nPe,(t,r)=>rPe(t,r.file,r.start))});function rPe(e,t,r){const i=Fi(t,r),o=ma(i.parent,Mb),s=i.getStart(t),l=o.statement.getStart(t),u=Gf(s,l,t)?l:La(t.text,Es(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var iPe="fixJSDocTypes_plain",Zue="fixJSDocTypes_nullable",oPe=[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];Sa({errorCodes:oPe,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=sPe(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,l=o.getText(t),u=[d(s,iPe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===315&&u.push(d(s,Zue,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function d(g,h,y){const E=Rr.ChangeTracker.with(e,A=>aPe(A,t,o,g,r));return oa("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(g)],h,y)}},fixIds:[iPe,Zue],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Ss(e,oPe,(s,l)=>{const u=sPe(l.file,l.start,o);if(!u)return;const{typeNode:d,type:g}=u,h=d.kind===315&&t===Zue?o.getNullableType(g,32768):g;aPe(s,i,d,h,o)})}});function aPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function sPe(e,t,r){const i=Dn(Fi(e,t),Vet),o=i&&i.type;return o&&{typeNode:o,type:jet(r,o)}}function Vet(e){switch(e.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function jet(e,t){if(xD(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Bn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var epe="fixMissingCallParentheses",lPe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];Sa({errorCodes:lPe,fixIds:[epe],getCodeActions(e){const{sourceFile:t,span:r}=e,i=dPe(t,r.start);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>cPe(s,e.sourceFile,i));return[oa(epe,o,f.Add_missing_call_parentheses,epe,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ss(e,lPe,(t,r)=>{const i=dPe(r.file,r.start);i&&cPe(t,r.file,i)})});function cPe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function dPe(e,t){const r=Fi(e,t);if(qr(r.parent)){let i=r.parent;for(;qr(i.parent);)i=i.parent;return i.name}if(He(r))return r}var uPe="fixMissingTypeAnnotationOnExports",tpe="add-annotation",npe="add-type-assertion",Uet="extract-expression",pPe=[f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,f.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,f.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,f.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,f.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,f.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,f.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,f.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,f.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,f.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,f.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,f.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,f.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,f.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],Het=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),fPe=531469,mPe=1;Sa({errorCodes:pPe,fixIds:[uPe],getCodeActions(e){const t=[];return jP(tpe,t,e,0,r=>r.addTypeAnnotation(e.span)),jP(tpe,t,e,1,r=>r.addTypeAnnotation(e.span)),jP(tpe,t,e,2,r=>r.addTypeAnnotation(e.span)),jP(npe,t,e,0,r=>r.addInlineAssertion(e.span)),jP(npe,t,e,1,r=>r.addInlineAssertion(e.span)),jP(npe,t,e,2,r=>r.addInlineAssertion(e.span)),jP(Uet,t,e,0,r=>r.extractAsVariable(e.span)),t},getAllCodeActions:e=>{const t=hPe(e,0,r=>{gx(e,pPe,i=>{r.addTypeAnnotation(i)})});return _x(t.textChanges)}});function jP(e,t,r,i,o){const s=hPe(r,i,o);s.result&&s.textChanges.length&&t.push(oa(e,s.textChanges,s.result,uPe,f.Add_all_missing_type_annotations))}function hPe(e,t,r){const i={typeNode:void 0,mutatedTarget:!1},o=Rr.ChangeTracker.fromContext(e),s=e.sourceFile,l=e.program,u=l.getTypeChecker(),d=Ga(l.getCompilerOptions()),g=oE(e.sourceFile,e.program,e.preferences,e.host),h=new Set,y=new Set,E=Wb({preserveSourceNewlines:!1}),A=r({addTypeAnnotation:R,addInlineAssertion:O,extractAsVariable:G});return g.writeFixes(o),{result:A,textChanges:o.getChanges()};function R(Re){e.cancellationToken.throwIfCancellationRequested();const _e=Fi(s,Re.start),je=j(_e);if(je)return ec(je)?N(je):J(je);const Ge=lt(_e);if(Ge)return J(Ge)}function N(Re){var _e;if(y?.has(Re))return;y?.add(Re);const je=u.getTypeAtLocation(Re),Ge=u.getPropertiesOfType(je);if(!Re.name||Ge.length===0)return;const We=[];for(const cn of Ge)fp(cn.name,Ga(l.getCompilerOptions()))&&(cn.valueDeclaration&&yi(cn.valueDeclaration)||We.push(L.createVariableStatement([L.createModifier(95)],L.createVariableDeclarationList([L.createVariableDeclaration(cn.name,void 0,re(u.getTypeOfSymbol(cn),Re),void 0)]))));if(We.length===0)return;const at=[];(_e=Re.modifiers)!=null&&_e.some(cn=>cn.kind===95)&&at.push(L.createModifier(95)),at.push(L.createModifier(138));const Wt=L.createModuleDeclaration(at,Re.name,L.createModuleBlock(We),101441696);return o.insertNodeAfter(s,Re,Wt),[f.Annotate_types_of_properties_expando_function_in_a_namespace]}function P(Re){return!Ds(Re)&&!Zo(Re)&&!Wa(Re)&&!Cd(Re)}function k(Re,_e){return P(Re)&&(Re=L.createParenthesizedExpression(Re)),L.createAsExpression(Re,_e)}function W(Re,_e){return P(Re)&&(Re=L.createParenthesizedExpression(Re)),L.createAsExpression(L.createSatisfiesExpression(Re,_s(_e)),_e)}function O(Re){e.cancellationToken.throwIfCancellationRequested();const _e=Fi(s,Re.start);if(j(_e))return;const Ge=ce(_e,Re);if(!Ge||a1(Ge)||a1(Ge.parent))return;const We=St(Ge),at=Ud(Ge);if(!at&&rd(Ge)||Dn(Ge,Qo)||Dn(Ge,py)||We&&(Dn(Ge,Fp)||Dn(Ge,Ri))||qf(Ge))return;const Wt=Dn(Ge,yi),cn=Wt&&u.getTypeAtLocation(Wt);if(cn&&cn.flags&8192||!(We||at))return;const{typeNode:gn,mutatedTarget:Kn}=fe(Ge,cn);if(!(!gn||Kn))return at?o.insertNodeAt(s,Ge.end,k(_s(Ge.name),gn),{prefix:": "}):We?o.replaceNode(s,Ge,W(_s(Ge),gn)):C.assertNever(Ge),[f.Add_satisfies_and_an_inline_type_assertion_with_0,Be(gn)]}function G(Re){e.cancellationToken.throwIfCancellationRequested();const _e=Fi(s,Re.start),je=ce(_e,Re);if(!je||a1(je)||a1(je.parent)||!St(je))return;if(Cd(je))return o.replaceNode(s,je,k(je,L.createTypeReferenceNode("const"))),[f.Mark_array_literal_as_const];const We=Dn(je,Nc);if(We){if(We===je.parent&&Ds(je))return;const at=L.createUniqueName(rde(je,s,u,s),16);let Wt=je,cn=je;if(qf(Wt)&&(Wt=zm(Wt.parent),Je(Wt.parent)?cn=Wt=Wt.parent:cn=k(Wt,L.createTypeReferenceNode("const"))),Ds(Wt))return;const gn=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(at,void 0,void 0,cn)],2)),Kn=Dn(je,Vi);return o.insertNodeBefore(s,Kn,gn),o.replaceNode(s,Wt,L.createAsExpression(L.cloneNode(at),L.createTypeQueryNode(L.cloneNode(at)))),[f.Extract_to_variable_and_replace_with_0_as_typeof_0,Be(at)]}}function j(Re){const _e=Dn(Re,je=>Vi(je)?"quit":kI(je));if(_e&&kI(_e)){let je=_e;if(Nr(je)&&(je=je.left,!kI(je)))return;const Ge=u.getTypeAtLocation(je.expression);if(!Ge)return;const We=u.getPropertiesOfType(Ge);if(yt(We,at=>at.valueDeclaration===_e||at.valueDeclaration===_e.parent)){const at=Ge.symbol.valueDeclaration;if(at){if(Ib(at)&&yi(at.parent))return at.parent;if(ec(at))return at}}}}function J(Re){if(!h?.has(Re))switch(h?.add(Re),Re.kind){case 170:case 173:case 261:return Ne(Re);case 220:case 219:case 263:case 175:case 178:return Z(Re,s);case 278:return q(Re);case 264:return ye(Re);case 207:case 208:return ie(Re);default:throw new Error(`Cannot find a fix for the given node ${Re.kind}`)}}function Z(Re,_e){if(Re.type)return;const{typeNode:je}=fe(Re);if(je)return o.tryInsertTypeAnnotation(_e,Re,je),[f.Add_return_type_0,Be(je)]}function q(Re){if(Re.isExportEquals)return;const{typeNode:_e}=fe(Re.expression);if(!_e)return;const je=L.createUniqueName("_default");return o.replaceNodeWithNodes(s,Re,[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(je,void 0,_e,Re.expression)],2)),L.updateExportAssignment(Re,Re?.modifiers,je)]),[f.Extract_default_export_to_variable]}function ye(Re){var _e,je;const Ge=(_e=Re.heritageClauses)==null?void 0:_e.find(_t=>_t.token===96),We=Ge?.types[0];if(!We)return;const{typeNode:at}=fe(We.expression);if(!at)return;const Wt=L.createUniqueName(Re.name?Re.name.text+"Base":"Anonymous",16),cn=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Wt,void 0,at,We.expression)],2));o.insertNodeBefore(s,Re,cn);const gn=ob(s.text,We.end),Kn=((je=gn?.[gn.length-1])==null?void 0:je.end)??We.end;return o.replaceRange(s,{pos:We.getFullStart(),end:Kn},Wt,{prefix:" "}),[f.Extract_base_class_to_variable]}function ie(Re){var _e;const je=Re.parent,Ge=Re.parent.parent.parent;if(!je.initializer)return;let We;const at=[];if(He(je.initializer))We={expression:{kind:3,identifier:je.initializer}};else{const gn=L.createUniqueName("dest",16);We={expression:{kind:3,identifier:gn}},at.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(gn,void 0,void 0,je.initializer)],2)))}const Wt=[];uv(Re)?K(Re,Wt,We):pe(Re,Wt,We);const cn=new Map;for(const gn of Wt){if(gn.element.propertyName&&va(gn.element.propertyName)){const _t=gn.element.propertyName.expression,en=L.getGeneratedNameForNode(_t),ir=L.createVariableDeclaration(en,void 0,void 0,_t),Di=L.createVariableDeclarationList([ir],2),lo=L.createVariableStatement(void 0,Di);at.push(lo),cn.set(_t,en)}const Kn=gn.element.name;if(uv(Kn))K(Kn,Wt,gn);else if(ff(Kn))pe(Kn,Wt,gn);else{const{typeNode:_t}=fe(Kn);let en=de(gn,cn);if(gn.element.initializer){const Di=(_e=gn.element)==null?void 0:_e.propertyName,lo=L.createUniqueName(Di&&He(Di)?Di.text:"temp",16);at.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(lo,void 0,void 0,en)],2))),en=L.createConditionalExpression(L.createBinaryExpression(lo,L.createToken(37),L.createIdentifier("undefined")),L.createToken(58),gn.element.initializer,L.createToken(59),en)}const ir=di(Ge,32)?[L.createToken(95)]:void 0;at.push(L.createVariableStatement(ir,L.createVariableDeclarationList([L.createVariableDeclaration(Kn,void 0,_t,en)],2)))}}return Ge.declarationList.declarations.length>1&&at.push(L.updateVariableStatement(Ge,Ge.modifiers,L.updateVariableDeclarationList(Ge.declarationList,Ge.declarationList.declarations.filter(gn=>gn!==Re.parent)))),o.replaceNodeWithNodes(s,Ge,at),[f.Extract_binding_expressions_to_variable]}function K(Re,_e,je){for(let Ge=0;Ge=0;--We){const at=je[We].expression;at.kind===0?Ge=L.createPropertyAccessChain(Ge,void 0,L.createIdentifier(at.text)):at.kind===1?Ge=L.createElementAccessExpression(Ge,_e.get(at.computed)):at.kind===2&&(Ge=L.createElementAccessExpression(Ge,at.arrayIndex))}return Ge}function fe(Re,_e){if(t===1)return Se(Re);let je;if(a1(Re)){const at=u.getSignatureFromDeclaration(Re);if(at){const Wt=u.getTypePredicateOfSignature(at);if(Wt)return Wt.type?{typeNode:be(Wt,Dn(Re,rd)??s,We(Wt.type)),mutatedTarget:!1}:i;je=u.getReturnTypeOfSignature(at)}}else je=u.getTypeAtLocation(Re);if(!je)return i;if(t===2){_e&&(je=_e);const at=u.getWidenedLiteralType(je);if(u.isTypeAssignableTo(at,je))return i;je=at}const Ge=Dn(Re,rd)??s;return to(Re)&&u.requiresAddingImplicitUndefined(Re,Ge)&&(je=u.getUnionType([u.getUndefinedType(),je],0)),{typeNode:re(je,Ge,We(je)),mutatedTarget:!1};function We(at){return(yi(Re)||Po(Re)&&di(Re,264))&&at.flags&8192?1048576:0}}function ve(Re){return L.createTypeQueryNode(_s(Re))}function xe(Re,_e="temp"){const je=!!Dn(Re,Je);return je?Ce(Re,_e,je,Ge=>Ge.elements,qf,L.createSpreadElement,Ge=>L.createArrayLiteralExpression(Ge,!0),Ge=>L.createTupleTypeNode(Ge.map(L.createRestTypeNode))):i}function X(Re,_e="temp"){const je=!!Dn(Re,Je);return Ce(Re,_e,je,Ge=>Ge.properties,xg,L.createSpreadAssignment,Ge=>L.createObjectLiteralExpression(Ge,!0),L.createIntersectionTypeNode)}function Ce(Re,_e,je,Ge,We,at,Wt,cn){const gn=[],Kn=[];let _t;const en=Dn(Re,Vi);for(const lo of Ge(Re))We(lo)?(Di(),Ds(lo.expression)?(gn.push(ve(lo.expression)),Kn.push(lo)):ir(lo.expression)):(_t??(_t=[])).push(lo);if(Kn.length===0)return i;return Di(),o.replaceNode(s,Re,Wt(Kn)),{typeNode:cn(gn),mutatedTarget:!0};function ir(lo){const zt=L.createUniqueName(_e+"_Part"+(Kn.length+1),16),Zr=je?L.createAsExpression(lo,L.createTypeReferenceNode("const")):lo,Ai=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(zt,void 0,void 0,Zr)],2));o.insertNodeBefore(s,en,Ai),gn.push(ve(zt)),Kn.push(at(zt))}function Di(){_t&&(ir(Wt(_t)),_t=void 0)}}function Je(Re){return gS(Re)&&Om(Re.type)}function Se(Re){if(to(Re))return i;if(Ud(Re))return{typeNode:ve(Re.name),mutatedTarget:!1};if(Ds(Re))return{typeNode:ve(Re),mutatedTarget:!1};if(Je(Re))return Se(Re.expression);if(Cd(Re)){const _e=Dn(Re,yi),je=_e&&He(_e.name)?_e.name.text:void 0;return xe(Re,je)}if(Wa(Re)){const _e=Dn(Re,yi),je=_e&&He(_e.name)?_e.name.text:void 0;return X(Re,je)}if(yi(Re)&&Re.initializer)return Se(Re.initializer);if(v1(Re)){const{typeNode:_e,mutatedTarget:je}=Se(Re.whenTrue);if(!_e)return i;const{typeNode:Ge,mutatedTarget:We}=Se(Re.whenFalse);return Ge?{typeNode:L.createUnionTypeNode([_e,Ge]),mutatedTarget:je||We}:i}return i}function re(Re,_e,je=0){let Ge=!1;const We=WPe(u,Re,_e,fPe|je,mPe,{moduleResolverHost:l,trackSymbol(){return!0},reportTruncationError(){Ge=!0}});if(!We)return;const at=upe(We,g,d);return Ge?L.createKeywordTypeNode(133):at}function be(Re,_e,je=0){let Ge=!1;const We=FPe(u,g,Re,_e,d,fPe|je,mPe,{moduleResolverHost:l,trackSymbol(){return!0},reportTruncationError(){Ge=!0}});return Ge?L.createKeywordTypeNode(133):We}function Ne(Re){const{typeNode:_e}=fe(Re);if(_e)return Re.type?o.replaceNode(Wn(Re),Re.type,_e):o.tryInsertTypeAnnotation(Wn(Re),Re,_e),[f.Add_annotation_of_type_0,Be(_e)]}function Be(Re){Cr(Re,1);const _e=E.printNode(4,Re,s);return _e.length>FN?_e.substring(0,FN-3)+"...":(Cr(Re,0),_e)}function lt(Re){return Dn(Re,_e=>Het.has(_e.kind)&&(!ff(_e)&&!uv(_e)||yi(_e.parent)))}function ce(Re,_e){for(;Re&&Re.end<_e.start+_e.length;)Re=Re.parent;for(;Re.parent.pos===Re.pos&&Re.parent.end===Re.end;)Re=Re.parent;return He(Re)&&Qy(Re.parent)&&Re.parent.initializer?Re.parent.initializer:Re}}var rpe="fixAwaitInSyncFunction",_Pe=[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];Sa({errorCodes:_Pe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=gPe(t,r.start);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>yPe(s,t,i));return[oa(rpe,o,f.Add_async_modifier_to_containing_function,rpe,f.Add_all_missing_async_modifiers)]},fixIds:[rpe],getAllCodeActions:function(t){const r=new Set;return Ss(t,_Pe,(i,o)=>{const s=gPe(o.file,o.start);!s||!gm(r,ls(s.insertBefore))||yPe(i,t.sourceFile,s)})}});function qet(e){if(e.type)return e.type;if(yi(e.parent)&&e.parent.type&&w_(e.parent.type))return e.parent.type.type}function gPe(e,t){const r=Fi(e,t),i=df(r);if(!i)return;let o;switch(i.kind){case 175:o=i.name;break;case 263:case 219:o=Es(i,100,e);break;case 220:const s=i.typeParameters?30:21;o=Es(i,s,e)||$a(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:qet(i)}}function yPe(e,t,{insertBefore:r,returnType:i}){if(i){const o=Z2(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,L.createTypeReferenceNode("Promise",L.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var vPe=[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],ipe="fixPropertyOverrideAccessor";Sa({errorCodes:vPe,getCodeActions(e){const t=bPe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[oa(ipe,t,f.Generate_get_and_set_accessors,ipe,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[ipe],getAllCodeActions:e=>Ss(e,vPe,(t,r)=>{const i=bPe(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})});function bPe(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(),d=Fi(e,t).parent;if(va(d))return;C.assert(ub(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");const g=d.parent;C.assert(ui(g),"erroneous accessors should only be inside classes");const h=lh(g);if(!h)return;const y=us(h.expression),E=uc(y)?y.symbol:u.getSymbolAtLocation(y);if(!E)return;const A=u.getDeclaredTypeOfSymbol(E),R=u.getPropertyOfType(A,Gi(pI(d.name)));if(!R||!R.valueDeclaration)return;s=R.valueDeclaration.pos,l=R.valueDeclaration.end,e=Wn(R.valueDeclaration)}else C.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return jPe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var ope="inferFromUsage",TPe=[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];Sa({errorCodes:TPe,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,d=Fi(t,i);let g;const h=Rr.ChangeTracker.with(e,E=>{g=SPe(E,t,d,o,r,s,cS,l,u)}),y=g&&Oo(g);return!y||h.length===0?void 0:[oa(ope,h,[Jet(o,d),Al(y)],ope,f.Infer_all_types_from_usage)]},fixIds:[ope],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=eC();return Ss(e,TPe,(u,d)=>{SPe(u,t,Fi(d.file,d.start),d.code,r,i,l,o,s)})}});function Jet(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return gp(df(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 Ket(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 SPe(e,t,r,i,o,s,l,u,d){if(!kN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:g}=r,h=oE(t,o,d,u);switch(i=Ket(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(yi(g)&&l(g)||Po(g)||Tu(g))return EPe(e,h,t,g,o,u,s),h.writeFixes(e),g;if(qr(g)){const A=BO(g.name,o,s),R=LP(A,g,o,u);if(R){const N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,ma(g.parent.parent,od),[N])}return h.writeFixes(e),g}return;case f.Variable_0_implicitly_has_an_1_type.code:{const A=o.getTypeChecker().getSymbolAtLocation(r);return A&&A.valueDeclaration&&yi(A.valueDeclaration)&&l(A.valueDeclaration)?(EPe(e,h,Wn(A.valueDeclaration),A.valueDeclaration,o,u,s),h.writeFixes(e),A.valueDeclaration):void 0}}const y=df(r);if(y===void 0)return;let E;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(gp(y)){APe(e,h,t,y,o,u,s),E=y;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){const A=ma(g,to);Xet(e,h,t,A,y,o,u,s),E=A}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:Hf(y)&&He(y.name)&&(TK(e,h,t,y,BO(y.name,o,s),o,u),E=y);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:gp(y)&&(APe(e,h,t,y,o,u,s),E=y);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Rr.isThisTypeAnnotatable(y)&&l(y)&&(Yet(e,t,y,o,u,s),E=y);break;default:return C.fail(String(i))}return h.writeFixes(e),E}function EPe(e,t,r,i,o,s,l){He(i.name)&&TK(e,t,r,i,BO(i.name,o,l),o,s)}function Xet(e,t,r,i,o,s,l,u){if(!He(i.name))return;const d=Zet(o,r,s,u);if(C.assert(o.parameters.length===d.length,"Parameter count and inference count should match"),Ir(o))IPe(e,r,d,s,l);else{const g=Xs(o)&&!Es(o,21,r);g&&e.insertNodeBefore(r,$a(o.parameters),L.createToken(21));for(const{declaration:h,type:y}of d)h&&!h.type&&!h.initializer&&TK(e,t,r,h,y,s,l);g&&e.insertNodeAfter(r,Ba(o.parameters),L.createToken(22))}}function Yet(e,t,r,i,o,s){const l=xPe(r,t,i,s);if(!l||!l.length)return;const u=spe(i,l,s).thisParameter(),d=LP(u,r,i,o);d&&(Ir(r)?$et(e,t,r,d):e.tryInsertThisTypeAnnotation(t,r,d))}function $et(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function APe(e,t,r,i,o,s,l){const u=Ic(i.parameters);if(u&&He(i.name)&&He(u.name)){let d=BO(i.name,o,l);d===o.getTypeChecker().getAnyType()&&(d=BO(u.name,o,l)),Ir(i)?IPe(e,r,[{declaration:u,type:d}],o,s):TK(e,t,r,u,d,o,s)}}function TK(e,t,r,i,o,s,l){const u=LP(o,i,s,l);if(u)if(Ir(r)&&i.kind!==172){const d=yi(i)?ni(i.parent.parent,sc):i;if(!d)return;const g=L.createJSDocTypeExpression(u),h=Hf(i)?L.createJSDocReturnTag(void 0,g,void 0):L.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(r,d,[h])}else Qet(u,i,r,e,t,Ga(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function Qet(e,t,r,i,o,s){const l=aE(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(Ye(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function IPe(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const l=Ui(r,u=>{const d=u.declaration;if(d.initializer||Yy(d)||!He(d.name))return;const g=u.type&&LP(u.type,d,i,o);if(g){const h=L.cloneNode(d.name);return Cr(h,7168),{name:L.cloneNode(d.name),param:d,isOptional:!!u.isOptional,typeNode:g}}});if(l.length)if(Xs(s)||Us(s)){const u=Xs(s)&&!Es(s,21,t);u&&e.insertNodeBefore(t,$a(s.parameters),L.createToken(21)),Ye(l,({typeNode:d,param:g})=>{const h=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(d)),y=L.createJSDocComment(void 0,[h]);e.insertNodeAt(t,g.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,Ba(s.parameters),L.createToken(22))}else{const u=Vt(l,({name:d,typeNode:g,isOptional:h})=>L.createJSDocParameterTag(void 0,d,!!h,L.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,s,u)}}function ape(e,t,r){return Ui(Ys.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Ys.EntryKind.Span?ni(i.node,He):void 0)}function BO(e,t,r){const i=ape(e,t,r);return spe(t,i,r).single()}function Zet(e,t,r,i){const o=xPe(e,t,r,i);return o&&spe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:He(s.name)?BO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function xPe(e,t,r,i){let o;switch(e.kind){case 177:o=Es(e,137,t);break;case 220:case 219:const s=e.parent;o=(yi(s)||Po(s))&&He(s.name)?s.name:e.name;break;case 263:case 175:case 174:o=e.name;break}if(o)return ape(o,r,i)}function spe(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:be=>i.createArrayType(be),Promise:be=>i.createPromiseType(be)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:g,thisParameter:h};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function u(be){const Ne=new Map;for(const lt of be)lt.properties&<.properties.forEach((ce,Re)=>{Ne.has(Re)||Ne.set(Re,[]),Ne.get(Re).push(ce)});const Be=new Map;return Ne.forEach((lt,ce)=>{Be.set(ce,u(lt))}),{isNumber:be.some(lt=>lt.isNumber),isString:be.some(lt=>lt.isString),isNumberOrString:be.some(lt=>lt.isNumberOrString),candidateTypes:Ki(be,lt=>lt.candidateTypes),properties:Be,calls:Ki(be,lt=>lt.calls),constructs:Ki(be,lt=>lt.constructs),numberIndex:Ye(be,lt=>lt.numberIndex),stringIndex:Ye(be,lt=>lt.stringIndex),candidateThisTypes:Ki(be,lt=>lt.candidateThisTypes),inferredTypes:void 0}}function d(){return ye(y(t))}function g(be){if(t.length===0||!be.parameters)return;const Ne=l();for(const lt of t)r.throwIfCancellationRequested(),E(lt,Ne);const Be=[...Ne.constructs||[],...Ne.calls||[]];return be.parameters.map((lt,ce)=>{const Re=[],_e=C_(lt);let je=!1;for(const We of Be)if(We.argumentTypes.length<=ce)je=Ir(be),Re.push(i.getUndefinedType());else if(_e)for(let at=ce;atBe.every(ce=>!ce(lt)))}function q(be){return ye(K(be))}function ye(be){if(!be.length)return i.getAnyType();const Ne=i.getUnionType([i.getStringType(),i.getNumberType()]);let lt=Z(be,[{high:Re=>Re===i.getStringType()||Re===i.getNumberType(),low:Re=>Re===Ne},{high:Re=>!(Re.flags&16385),low:Re=>!!(Re.flags&16385)},{high:Re=>!(Re.flags&114689)&&!(Hr(Re)&16),low:Re=>!!(Hr(Re)&16)}]);const ce=lt.filter(Re=>Hr(Re)&16);return ce.length&&(lt=lt.filter(Re=>!(Hr(Re)&16)),lt.push(ie(ce))),i.getWidenedType(i.getUnionType(lt.map(i.getBaseTypeOfLiteralType),2))}function ie(be){if(be.length===1)return be[0];const Ne=[],Be=[],lt=[],ce=[];let Re=!1,_e=!1;const je=cm();for(const at of be){for(const gn of i.getPropertiesOfType(at))je.add(gn.escapedName,gn.valueDeclaration?i.getTypeOfSymbolAtLocation(gn,gn.valueDeclaration):i.getAnyType());Ne.push(...i.getSignaturesOfType(at,0)),Be.push(...i.getSignaturesOfType(at,1));const Wt=i.getIndexInfoOfType(at,0);Wt&&(lt.push(Wt.type),Re=Re||Wt.isReadonly);const cn=i.getIndexInfoOfType(at,1);cn&&(ce.push(cn.type),_e=_e||cn.isReadonly)}const Ge=TQ(je,(at,Wt)=>{const cn=Wt.lengthi.getBaseTypeOfLiteralType(je)),_e=(lt=be.calls)!=null&<.length?pe(be):void 0;return _e&&Re?ce.push(i.getUnionType([_e,...Re],2)):(_e&&ce.push(_e),et(Re)&&ce.push(...Re)),ce.push(...de(be)),ce}function pe(be){const Ne=new Map;be.properties&&be.properties.forEach((Re,_e)=>{const je=i.createSymbol(4,_e);je.links.type=q(Re),Ne.set(_e,je)});const Be=be.calls?[Je(be.calls)]:[],lt=be.constructs?[Je(be.constructs)]:[],ce=be.stringIndex?[i.createIndexInfo(i.getStringType(),q(be.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Ne,Be,lt,ce)}function de(be){if(!be.properties||!be.properties.size)return[];const Ne=s.filter(Be=>fe(Be,be));return 0ve(Be,be)):[]}function fe(be,Ne){return Ne.properties?!Hc(Ne.properties,(Be,lt)=>{const ce=i.getTypeOfPropertyOfType(be,lt);return ce?Be.calls?!i.getSignaturesOfType(ce,0).length||!i.isTypeAssignableTo(ce,Ce(Be.calls)):!i.isTypeAssignableTo(ce,q(Be)):!0}):!1}function ve(be,Ne){if(!(Hr(be)&4)||!Ne.properties)return be;const Be=be.target,lt=og(Be.typeParameters);if(!lt)return be;const ce=[];return Ne.properties.forEach((Re,_e)=>{const je=i.getTypeOfPropertyOfType(Be,_e);C.assert(!!je,"generic should have all the properties of its reference."),ce.push(...xe(je,q(Re),lt))}),o[be.symbol.escapedName](ye(ce))}function xe(be,Ne,Be){if(be===Be)return[Ne];if(be.flags&3145728)return Ki(be.types,Re=>xe(Re,Ne,Be));if(Hr(be)&4&&Hr(Ne)&4){const Re=i.getTypeArguments(be),_e=i.getTypeArguments(Ne),je=[];if(Re&&_e)for(let Ge=0;Gece.argumentTypes.length));for(let ce=0;ce_e.argumentTypes[ce]||i.getUndefinedType())),be.some(_e=>_e.argumentTypes[ce]===void 0)&&(Re.flags|=16777216),Ne.push(Re)}const lt=q(u(be.map(ce=>ce.return_)));return i.createSignature(void 0,void 0,void 0,Ne,lt,void 0,Be,0)}function Se(be,Ne){Ne&&!(Ne.flags&1)&&!(Ne.flags&131072)&&(be.candidateTypes||(be.candidateTypes=[])).push(Ne)}function re(be,Ne){Ne&&!(Ne.flags&1)&&!(Ne.flags&131072)&&(be.candidateThisTypes||(be.candidateThisTypes=[])).push(Ne)}}var lpe="fixReturnTypeInAsyncFunction",RPe=[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];Sa({errorCodes:RPe,fixIds:[lpe],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=DPe(r,i.getTypeChecker(),o.start);if(!l)return;const{returnTypeNode:u,returnType:d,promisedTypeNode:g,promisedType:h}=l,y=Rr.ChangeTracker.with(t,E=>CPe(E,r,u,g));return[oa(lpe,y,[f.Replace_0_with_Promise_1,s.typeToString(d),s.typeToString(h)],lpe,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ss(e,RPe,(t,r)=>{const i=DPe(r.file,e.program.getTypeChecker(),r.start);i&&CPe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})});function DPe(e,t,r){if(Ir(e))return;const i=Fi(e,r),o=Dn(i,Ms),s=o?.type;if(!s)return;const l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),d=t.typeToTypeNode(u,s,void 0);if(d)return{returnTypeNode:s,returnType:l,promisedTypeNode:d,promisedType:u}}function CPe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var NPe="disableJsDiagnostics",MPe="disableJsDiagnostics",PPe=Ui(Object.keys(f),e=>{const t=f[e];return t.category===1?t.code:void 0});Sa({errorCodes:PPe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!Ir(r)||!SM(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":_y(s,l.options),d=[yh(NPe,[TDe(r.fileName,[pO(r.checkJsDirective?oc(r.checkJsDirective.pos,r.checkJsDirective.end):Id(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return Rr.isValidLocationToAddComment(r,o.start)&&d.unshift(oa(NPe,Rr.ChangeTracker.with(t,g=>LPe(g,r,o.start)),f.Ignore_this_error_message,MPe,f.Add_ts_ignore_to_all_error_messages)),d},fixIds:[MPe],getAllCodeActions:e=>{const t=new Set;return Ss(e,PPe,(r,i)=>{Rr.isValidLocationToAddComment(i.file,i.start)&&LPe(r,i.file,i.start,t)})}});function LPe(e,t,r,i){const{line:o}=ca(t,r);(!i||rh(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}function cpe(e,t,r,i,o,s,l){const u=e.symbol.members;for(const d of t)u.has(d.escapedName)||wPe(d,e,r,i,o,s,l,void 0)}function uC(e){return{trackSymbol:()=>!1,moduleResolverHost:kq(e.program,e.host)}}var kPe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(kPe||{});function wPe(e,t,r,i,o,s,l,u,d=3,g=!1){const h=e.getDeclarations(),y=Ic(h),E=i.program.getTypeChecker(),A=Ga(i.program.getCompilerOptions()),R=y?.kind??172,N=fe(e,y),P=y?Gd(y):0;let k=P&256;k|=P&1?1:P&4?4:0,y&&Yu(y)&&(k|=512);const W=ye(),O=E.getWidenedType(E.getTypeOfSymbolAtLocation(e,t)),G=!!(e.flags&16777216),j=!!(t.flags&33554432)||g,J=Gp(r,o),Z=1|(J===0?268435456:0);switch(R){case 172:case 173:let ve=E.typeToTypeNode(O,t,Z,8,uC(i));if(s){const X=aE(ve,A);X&&(ve=X.typeNode,z1(s,X.symbols))}l(L.createPropertyDeclaration(W,y?K(N):e.getName(),G&&d&2?L.createToken(58):void 0,ve,void 0));break;case 178:case 179:{C.assertIsDefined(h);let X=E.typeToTypeNode(O,t,Z,void 0,uC(i));const Ce=NS(h,y),Je=Ce.secondAccessor?[Ce.firstAccessor,Ce.secondAccessor]:[Ce.firstAccessor];if(s){const Se=aE(X,A);Se&&(X=Se.typeNode,z1(s,Se.symbols))}for(const Se of Je)if(Hf(Se))l(L.createGetAccessorDeclaration(W,K(N),ae,de(X),pe(u,J,j)));else{C.assertNode(Se,gp,"The counterpart to a getter should be a setter");const re=lM(Se),be=re&&He(re.name)?Kr(re.name):void 0;l(L.createSetAccessorDeclaration(W,K(N),ppe(1,[be],[de(X)],1,!1),pe(u,J,j)))}break}case 174:case 175:C.assertIsDefined(h);const xe=O.isUnion()?Ki(O.types,X=>X.getCallSignatures()):O.getCallSignatures();if(!yt(xe))break;if(h.length===1){C.assert(xe.length===1,"One declaration implies one signature");const X=xe[0];q(J,X,W,K(N),pe(u,J,j));break}for(const X of xe)X.declaration&&X.declaration.flags&33554432||q(J,X,W,K(N));if(!j)if(h.length>xe.length){const X=E.getSignatureFromDeclaration(h[h.length-1]);q(J,X,W,K(N),pe(u,J))}else C.assert(h.length===xe.length,"Declarations and signatures should match count"),l(itt(E,i,t,xe,K(N),G&&!!(d&1),W,J,u));break}function q(ve,xe,X,Ce,Je){const Se=SK(175,i,ve,xe,Je,Ce,X,G&&!!(d&1),t,s);Se&&l(Se)}function ye(){let ve;return k&&(ve=qA(ve,L.createModifiersFromModifierFlags(k))),ie()&&(ve=Bn(ve,L.createToken(164))),ve&&L.createNodeArray(ve)}function ie(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&MS(y))}function K(ve){return He(ve)&&ve.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(Kr(ve),J===0)):_s(ve,!1)}function pe(ve,xe,X){return X?void 0:_s(ve,!1)||fpe(xe)}function de(ve){return _s(ve,!1)}function fe(ve,xe){if(Fl(ve)&262144){const X=ve.links.nameType;if(X&&jf(X))return L.createIdentifier(Gi(Uf(X)))}return _s(Oo(xe),!1)}}function SK(e,t,r,i,o,s,l,u,d,g){const h=t.program,y=h.getTypeChecker(),E=Ga(h.getCompilerOptions()),A=Ir(d),R=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,d,R,8,uC(t));if(!N)return;let P=A?void 0:N.typeParameters,k=N.parameters,W=A?void 0:_s(N.type);if(g){if(P){const J=Zi(P,Z=>{let q=Z.constraint,ye=Z.default;if(q){const ie=aE(q,E);ie&&(q=ie.typeNode,z1(g,ie.symbols))}if(ye){const ie=aE(ye,E);ie&&(ye=ie.typeNode,z1(g,ie.symbols))}return L.updateTypeParameterDeclaration(Z,Z.modifiers,Z.name,q,ye)});P!==J&&(P=vt(L.createNodeArray(J,P.hasTrailingComma),P))}const j=Zi(k,J=>{let Z=A?void 0:J.type;if(Z){const q=aE(Z,E);q&&(Z=q.typeNode,z1(g,q.symbols))}return L.updateParameterDeclaration(J,J.modifiers,J.dotDotDotToken,J.name,A?void 0:J.questionToken,Z,J.initializer)});if(k!==j&&(k=vt(L.createNodeArray(j,k.hasTrailingComma),k)),W){const J=aE(W,E);J&&(W=J.typeNode,z1(g,J.symbols))}}const O=u?L.createToken(58):void 0,G=N.asteriskToken;if(Us(N))return L.updateFunctionExpression(N,l,N.asteriskToken,ni(s,He),P,k,W,o??N.body);if(Xs(N))return L.updateArrowFunction(N,l,P,k,W,N.equalsGreaterThanToken,o??N.body);if(Ml(N))return L.updateMethodDeclaration(N,l,G,s??L.createIdentifier(""),O,P,k,W,o);if(ec(N))return L.updateFunctionDeclaration(N,l,N.asteriskToken,ni(s,He),P,k,W,o??N.body)}function dpe(e,t,r,i,o,s,l){const u=Gp(t.sourceFile,t.preferences),d=Ga(t.program.getCompilerOptions()),g=uC(t),h=t.program.getTypeChecker(),y=Ir(l),{typeArguments:E,arguments:A,parent:R}=i,N=y?void 0:h.getContextualType(i),P=Vt(A,ye=>He(ye)?ye.text:qr(ye)&&He(ye.name)?ye.name.text:void 0),k=y?[]:Vt(A,ye=>h.getTypeAtLocation(ye)),{argumentTypeNodes:W,argumentTypeParameters:O}=ntt(h,r,k,l,d,1,8,g),G=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,j=aw(R)?L.createToken(42):void 0,J=y?void 0:ett(h,O,E),Z=ppe(A.length,P,W,void 0,y),q=y||N===void 0?void 0:h.typeToTypeNode(N,l,void 0,void 0,g);switch(e){case 175:return L.createMethodDeclaration(G,j,o,void 0,J,Z,q,fpe(u));case 174:return L.createMethodSignature(G,o,void 0,J,Z,q===void 0?L.createKeywordTypeNode(159):q);case 263:return C.assert(typeof o=="string"||He(o),"Unexpected name"),L.createFunctionDeclaration(G,j,o,J,Z,q,nz(f.Function_not_implemented.message,u));default:C.fail("Unexpected kind")}}function ett(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(d=>{var g;return e.getTypeAtLocation(u)===((g=d[1])==null?void 0:g.argumentType)})),l=i.size+s.length;for(let u=0;i.size{var l;return L.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function OPe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function EK(e,t,r,i,o,s,l,u){const d=e.typeToTypeNode(r,i,s,l,u);if(d)return upe(d,t,o)}function upe(e,t,r){const i=aE(e,r);return i&&(z1(t,i.symbols),e=i.typeNode),_s(e)}function ttt(e,t){var r;C.assert(t.typeArguments);const i=t.typeArguments,o=t.target;for(let s=0;sd===i[g]))return s}return i.length}function WPe(e,t,r,i,o,s){let l=e.typeToTypeNode(t,r,i,o,s);if(l){if(Wp(l)){const u=t;if(u.typeArguments&&l.typeArguments){const d=ttt(e,u);if(d=i?L.createToken(58):void 0,o?void 0:r?.[u]||L.createKeywordTypeNode(159),void 0);s.push(h)}return s}function itt(e,t,r,i,o,s,l,u,d){let g=i[0],h=i[0].minArgumentCount,y=!1;for(const N of i)h=Math.min(N.minArgumentCount,h),au(N)&&(y=!0),N.parameters.length>=g.parameters.length&&(!au(N)||au(g))&&(g=N);const E=g.parameters.length-(au(g)?1:0),A=g.parameters.map(N=>N.name),R=ppe(E,A,void 0,h,!1);if(y){const N=L.createParameterDeclaration(void 0,L.createToken(26),A[E]||"rest",E>=h?L.createToken(58):void 0,L.createArrayTypeNode(L.createKeywordTypeNode(159)),void 0);R.push(N)}return att(l,o,s,void 0,R,ott(i,e,t,r),u,d)}function ott(e,t,r,i){if(et(e)){const o=t.getUnionType(Vt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,8,uC(r))}}function att(e,t,r,i,o,s,l,u){return L.createMethodDeclaration(e,void 0,t,r?L.createToken(58):void 0,i,o,s,u||fpe(l))}function fpe(e){return nz(f.Method_not_implemented.message,e)}function nz(e,t){return L.createBlock([L.createThrowStatement(L.createNewExpression(L.createIdentifier("Error"),void 0,[L.createStringLiteral(e,t===0)]))],!0)}function mpe(e,t,r){const i=UN(t);if(!i)return;const o=GPe(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,_pe("compilerOptions",L.createObjectLiteralExpression(r.map(([l,u])=>_pe(l,u)),!0)));return}const s=o.initializer;if(Wa(s))for(const[l,u]of r){const d=GPe(s,l);d===void 0?e.insertNodeAtObjectStart(t,s,_pe(l,u)):e.replaceNode(t,d.initializer,u)}}function hpe(e,t,r,i){mpe(e,t,[[r,i]])}function _pe(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function GPe(e,t){return hn(e.properties,r=>Nc(r)&&!!r.name&&ka(r.name)&&r.name.text===t)}function aE(e,t){let r;const i=st(e,o,Ri);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(ry(s)&&s.qualifier){const l=Pu(s.qualifier);if(!l.symbol)return kn(s,o,void 0);const u=A7(l.symbol,t),d=u!==l.text?VPe(s.qualifier,L.createIdentifier(u)):s.qualifier;r=Bn(r,l.symbol);const g=Xn(s.typeArguments,o,Ri);return L.createTypeReferenceNode(d,g)}return kn(s,o,void 0)}}function VPe(e,t){return e.kind===80?t:L.createQualifiedName(VPe(e.left,t),e.right)}function z1(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function gpe(e,t){const r=Cl(t);let i=Fi(e,t.start);for(;i.ends.replaceNode(t,r,i));return yh(KPe,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}Sa({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:vtt});function vtt(e){const t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?214:215,i=Dn(Fi(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return YPe(e,o)}Sa({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:btt});function btt(e){const t=e.sourceFile,r=Dn(Fi(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?YPe(e,r):[]}function YPe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&pg(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(Qu(o)||Xr(i,ytt(e,o)),St(t)&&!(nd(t.parent)&&t.parent.name===t)){const s=e.sourceFile,l=Rr.ChangeTracker.with(e,u=>u.replaceNode(s,t,L.createPropertyAccessExpression(t,"default"),{}));i.push(yh(KPe,l,f.Use_synthetic_default_member))}return i}var ype="strictClassInitialization",vpe="addMissingPropertyDefiniteAssignmentAssertions",bpe="addMissingPropertyUndefinedType",Tpe="addMissingPropertyInitializer",$Pe=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];Sa({errorCodes:$Pe,getCodeActions:function(t){const r=QPe(t.sourceFile,t.span.start);if(!r)return;const i=[];return Bn(i,Stt(t,r)),Bn(i,Ttt(t,r)),Bn(i,Ett(t,r)),i},fixIds:[vpe,bpe,Tpe],getAllCodeActions:e=>Ss(e,$Pe,(t,r)=>{const i=QPe(r.file,r.start);if(i)switch(e.fixId){case vpe:ZPe(t,r.file,i.prop);break;case bpe:eLe(t,r.file,i);break;case Tpe:const o=e.program.getTypeChecker(),s=nLe(o,i.prop);if(!s)return;tLe(t,r.file,i.prop,s);break;default:C.fail(JSON.stringify(e.fixId))}})});function QPe(e,t){const r=Fi(e,t);if(He(r)&&Po(r.parent)){const i=Rc(r.parent);if(i)return{type:i,prop:r.parent,isJs:Ir(r.parent)}}}function Ttt(e,t){if(t.isJs)return;const r=Rr.ChangeTracker.with(e,i=>ZPe(i,e.sourceFile,t.prop));return oa(ype,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],vpe,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function ZPe(e,t,r){Op(r);const i=L.updatePropertyDeclaration(r,r.modifiers,r.name,L.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function Stt(e,t){const r=Rr.ChangeTracker.with(e,i=>eLe(i,e.sourceFile,t));return oa(ype,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],bpe,f.Add_undefined_type_to_all_uninitialized_properties)}function eLe(e,t,r){const i=L.createKeywordTypeNode(157),o=cv(r.type)?r.type.types.concat(i):[r.type,i],s=L.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function Ett(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=nLe(r,t.prop);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>tLe(s,e.sourceFile,t.prop,i));return oa(ype,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],Tpe,f.Add_initializers_to_all_uninitialized_properties)}function tLe(e,t,r,i){Op(r);const o=L.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function nLe(e,t){return rLe(e,e.getTypeFromTypeNode(t.type))}function rLe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?L.createFalse():L.createTrue();if(t.isStringLiteral())return L.createStringLiteral(t.value);if(t.isNumberLiteral())return L.createNumericLiteral(t.value);if(t.flags&2048)return L.createBigIntLiteral(t.value);if(t.isUnion())return Hn(t.types,r=>rLe(e,r));if(t.isClass()){const r=cy(t.symbol);if(!r||di(r,64))return;const i=yg(r);return i&&i.parameters.length?void 0:L.createNewExpression(L.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return L.createArrayLiteralExpression()}var Spe="requireInTs",iLe=[f.require_call_may_be_converted_to_an_import.code];Sa({errorCodes:iLe,getCodeActions(e){const t=aLe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const r=Rr.ChangeTracker.with(e,i=>oLe(i,e.sourceFile,t));return[oa(Spe,r,f.Convert_require_to_import,Spe,f.Convert_all_require_to_import)]},fixIds:[Spe],getAllCodeActions:e=>Ss(e,iLe,(t,r)=>{const i=aLe(r.file,e.program,r.start,e.preferences);i&&oLe(t,e.sourceFile,i)})});function oLe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,moduleSpecifier:u}=r;e.replaceNode(t,l,o&&!i?L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(u)):L.createImportDeclaration(void 0,L.createImportClause(void 0,o,s),u,void 0))}function aLe(e,t,r,i){const{parent:o}=Fi(e,r);Zu(o,!0)||C.failBadSyntaxKind(o);const s=ma(o.parent,yi),l=Gp(e,i),u=ni(s.name,He),d=ff(s.name)?Att(s.name):void 0;if(u||d){const g=$a(o.arguments);return{allowSyntheticDefaults:CI(t.getCompilerOptions()),defaultImportName:u,namedImports:d,statement:ma(s.parent.parent,sc),moduleSpecifier:h1(g)?L.createStringLiteral(g.text,l===0):g}}}function Att(e){const t=[];for(const r of e.elements){if(!He(r.name)||r.initializer)return;t.push(L.createImportSpecifier(!1,ni(r.propertyName,He),r.name))}if(t.length)return L.createNamedImports(t)}var Epe="useDefaultImport",sLe=[f.Import_may_be_converted_to_a_default_import.code];Sa({errorCodes:sLe,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=lLe(t,r);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>cLe(s,t,i,e.preferences));return[oa(Epe,o,f.Convert_to_default_import,Epe,f.Convert_all_to_default_imports)]},fixIds:[Epe],getAllCodeActions:e=>Ss(e,sLe,(t,r)=>{const i=lLe(r.file,r.start);i&&cLe(t,r.file,i,e.preferences)})});function lLe(e,t){const r=Fi(e,t);if(!He(r))return;const{parent:i}=r;if(zc(i)&&uy(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Ig(i)&&vl(i.parent.parent)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function cLe(e,t,r,i){e.replaceNode(t,r.importNode,Bb(r.name,void 0,r.moduleSpecifier,Gp(t,i)))}var Ape="useBigintLiteral",dLe=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];Sa({errorCodes:dLe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>uLe(i,t.sourceFile,t.span));if(r.length>0)return[oa(Ape,r,f.Convert_to_a_bigint_numeric_literal,Ape,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[Ape],getAllCodeActions:e=>Ss(e,dLe,(t,r)=>uLe(t,r.file,r))});function uLe(e,t,r){const i=ni(Fi(t,r.start),np);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(o))}var Itt="fixAddModuleReferTypeMissingTypeof",Ipe=Itt,pLe=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];Sa({errorCodes:pLe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=fLe(r,i.start),s=Rr.ChangeTracker.with(t,l=>mLe(l,r,o));return[oa(Ipe,s,f.Add_missing_typeof,Ipe,f.Add_missing_typeof)]},fixIds:[Ipe],getAllCodeActions:e=>Ss(e,pLe,(t,r)=>mLe(t,e.sourceFile,fLe(r.file,r.start)))});function fLe(e,t){const r=Fi(e,t);return C.assert(r.kind===102,"This token should be an ImportKeyword"),C.assert(r.parent.kind===206,"Token parent should be an ImportType"),r.parent}function mLe(e,t,r){const i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var xpe="wrapJsxInFragment",hLe=[f.JSX_expressions_must_have_one_parent_element.code];Sa({errorCodes:hLe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=_Le(r,i.start);if(!o)return;const s=Rr.ChangeTracker.with(t,l=>gLe(l,r,o));return[oa(xpe,s,f.Wrap_in_JSX_fragment,xpe,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[xpe],getAllCodeActions:e=>Ss(e,hLe,(t,r)=>{const i=_Le(e.sourceFile,r.start);i&&gLe(t,e.sourceFile,i)})});function _Le(e,t){let o=Fi(e,t).parent.parent;if(!(!Nr(o)&&(o=o.parent,!Nr(o)))&&Wl(o.operatorToken))return o}function gLe(e,t,r){const i=xtt(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function xtt(e){const t=[];let r=e;for(;;)if(Nr(r)&&Wl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),W2(r.right))return t.push(r.right),t;if(Nr(r.right)){r=r.right;continue}else return}else return}var Rpe="wrapDecoratorInParentheses",yLe=[f.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];Sa({errorCodes:yLe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>vLe(i,t.sourceFile,t.span.start));return[oa(Rpe,r,f.Wrap_in_parentheses,Rpe,f.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Rpe],getAllCodeActions:e=>Ss(e,yLe,(t,r)=>vLe(t,r.file,r.start))});function vLe(e,t,r){const i=Fi(t,r),o=Dn(i,Fc);C.assert(!!o,"Expected position to be owned by a decorator.");const s=L.createParenthesizedExpression(o.expression);e.replaceNode(t,o.expression,s)}var Dpe="fixConvertToMappedObjectType",bLe=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];Sa({errorCodes:bLe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=TLe(r,i.start);if(!o)return;const s=Rr.ChangeTracker.with(t,u=>SLe(u,r,o)),l=Kr(o.container.name);return[oa(Dpe,s,[f.Convert_0_to_mapped_object_type,l],Dpe,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[Dpe],getAllCodeActions:e=>Ss(e,bLe,(t,r)=>{const i=TLe(r.file,r.start);i&&SLe(t,r.file,i)})});function TLe(e,t){const r=Fi(e,t),i=ni(r.parent.parent,Cb);if(!i)return;const o=gd(i.parent)?i.parent:ni(i.parent.parent,vm);if(o)return{indexSignature:i,container:o}}function Rtt(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function SLe(e,t,{indexSignature:r,container:i}){const s=(gd(i)?i.members:i.type.members).filter(h=>!Cb(h)),l=$a(r.parameters),u=L.createTypeParameterDeclaration(void 0,ma(l.name,He),l.type),d=L.createMappedTypeNode(c1(r)?L.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),g=L.createIntersectionTypeNode([...eM(i),d,...s.length?[L.createTypeLiteralNode(s)]:ae]);e.replaceNode(t,i,Rtt(i,g))}var ELe="removeAccidentalCallParentheses",Dtt=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];Sa({errorCodes:Dtt,getCodeActions(e){const t=Dn(Fi(e.sourceFile,e.span.start),Zo);if(!t)return;const r=Rr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[yh(ELe,r,f.Remove_parentheses)]},fixIds:[ELe]});var Cpe="removeUnnecessaryAwait",ALe=[f.await_has_no_effect_on_the_type_of_this_expression.code];Sa({errorCodes:ALe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>ILe(i,t.sourceFile,t.span));if(r.length>0)return[oa(Cpe,r,f.Remove_unnecessary_await,Cpe,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[Cpe],getAllCodeActions:e=>Ss(e,ALe,(t,r)=>ILe(t,r.file,r))});function ILe(e,t,r){const i=ni(Fi(t,r.start),u=>u.kind===135),o=i&&ni(i.parent,Nb);if(!o)return;let s=o;if(wu(o.parent)){const u=dD(o.expression,!1);if(He(u)){const d=Gc(o.parent.pos,t);d&&d.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var xLe=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Npe="splitTypeOnlyImport";Sa({errorCodes:xLe,fixIds:[Npe],getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>DLe(i,RLe(t.sourceFile,t.span),t));if(r.length)return[oa(Npe,r,f.Split_into_two_separate_import_declarations,Npe,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ss(e,xLe,(t,r)=>{DLe(t,RLe(e.sourceFile,r),e)})});function RLe(e,t){return Dn(Fi(e,t.start),vl)}function DLe(e,t,r){if(!t)return;const i=C.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,L.updateImportDeclaration(t,t.modifiers,L.updateImportClause(i,i.phaseModifier,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,L.createImportDeclaration(void 0,L.updateImportClause(i,i.phaseModifier,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var Mpe="fixConvertConstToLet",CLe=[f.Cannot_assign_to_0_because_it_is_a_constant.code];Sa({errorCodes:CLe,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=NLe(r,i.start,o);if(s===void 0)return;const l=Rr.ChangeTracker.with(t,u=>MLe(u,r,s.token));return[Vde(Mpe,l,f.Convert_const_to_let,Mpe,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Set;return _x(Rr.ChangeTracker.with(e,i=>{gx(e,CLe,o=>{const s=NLe(o.file,o.start,t);if(s&&gm(r,Ta(s.symbol)))return MLe(i,o.file,s.token)})}))},fixIds:[Mpe]});function NLe(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(Fi(e,t));if(s===void 0)return;const l=ni((i=s?.valueDeclaration)==null?void 0:i.parent,_d);if(l===void 0)return;const u=Es(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function MLe(e,t,r){e.replaceNode(t,r,L.createToken(121))}var Ppe="fixExpectedComma",Ctt=f._0_expected.code,PLe=[Ctt];Sa({errorCodes:PLe,getCodeActions(e){const{sourceFile:t}=e,r=LLe(t,e.span.start,e.errorCode);if(!r)return;const i=Rr.ChangeTracker.with(e,o=>kLe(o,t,r));return[oa(Ppe,i,[f.Change_0_to_1,";",","],Ppe,[f.Change_0_to_1,";",","])]},fixIds:[Ppe],getAllCodeActions:e=>Ss(e,PLe,(t,r)=>{const i=LLe(r.file,r.start,r.code);i&&kLe(t,e.sourceFile,i)})});function LLe(e,t,r){const i=Fi(e,t);return i.kind===27&&i.parent&&(Wa(i.parent)||Cd(i.parent))?{node:i}:void 0}function kLe(e,t,{node:r}){const i=L.createToken(28);e.replaceNode(t,r,i)}var Ntt="addVoidToPromise",wLe="addVoidToPromise",OLe=[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];Sa({errorCodes:OLe,fixIds:[wLe],getCodeActions(e){const t=Rr.ChangeTracker.with(e,r=>WLe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[oa(Ntt,t,f.Add_void_to_Promise_resolved_without_a_value,wLe,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ss(e,OLe,(t,r)=>WLe(t,r.file,r,e.program,new Set))}});function WLe(e,t,r,i,o){const s=Fi(t,r.start);if(!He(s)||!Zo(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),d=u?.valueDeclaration;if(!d||!to(d)||!BS(d.parent.parent)||o?.has(d))return;o?.add(d);const g=Mtt(d.parent.parent);if(yt(g)){const h=g[0],y=!cv(h)&&!g1(h)&&g1(L.createUnionTypeNode([h,L.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,h.pos,"("),e.insertText(t,h.end,y?") | void":" | void")}else{const h=l.getResolvedSignature(s.parent),y=h?.parameters[0],E=y&&l.getTypeOfSymbolAtLocation(y,d.parent.parent);Ir(d)?(!E||E.flags&3)&&(e.insertText(t,d.parent.parent.end,")"),e.insertText(t,La(t.text,d.parent.parent.pos),"/** @type {Promise} */(")):(!E||E.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"")}}function Mtt(e){var t;if(Ir(e)){if(wu(e.parent)){const r=(t=PT(e.parent))==null?void 0:t.typeExpression.type;if(r&&Wp(r)&&He(r.typeName)&&Kr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var bx={};x(bx,{CompletionKind:()=>e2e,CompletionSource:()=>zLe,SortText:()=>Hd,StringCompletions:()=>wK,SymbolOriginInfoKind:()=>BLe,createCompletionDetails:()=>oz,createCompletionDetailsForSymbol:()=>Gpe,getCompletionEntriesFromSymbols:()=>zpe,getCompletionEntryDetails:()=>lnt,getCompletionEntrySymbol:()=>dnt,getCompletionsAtPosition:()=>ztt,getDefaultCommitCharacters:()=>B1,getPropertiesForObjectExpression:()=>PK,moduleSpecifierResolutionCacheAttemptLimit:()=>FLe,moduleSpecifierResolutionLimit:()=>Lpe});var Lpe=100,FLe=1e3,Hd={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},l_=[".",",",";"],AK=[".",";"],zLe=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(zLe||{}),BLe=(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))(BLe||{});function Ptt(e){return!!(e.kind&1)}function Ltt(e){return!!(e.kind&2)}function rz(e){return!!(e&&e.kind&4)}function UP(e){return!!(e&&e.kind===32)}function ktt(e){return rz(e)||UP(e)||kpe(e)}function wtt(e){return(rz(e)||UP(e))&&!!e.isFromPackageJson}function Ott(e){return!!(e.kind&8)}function Wtt(e){return!!(e.kind&16)}function GLe(e){return!!(e&&e.kind&64)}function VLe(e){return!!(e&&e.kind&128)}function Ftt(e){return!!(e&&e.kind&256)}function kpe(e){return!!(e&&e.kind&512)}function jLe(e,t,r,i,o,s,l,u,d){var g,h,y,E;const A=Ls(),R=l||wk(i.getCompilerOptions())||((g=s.autoImportSpecifierExcludeRegexes)==null?void 0:g.length);let N=!1,P=0,k=0,W=0,O=0;const G=d({tryResolve:J,skippedAny:()=>N,resolvedAny:()=>k>0,resolvedBeyondLimit:()=>k>Lpe}),j=O?` (${(W/O*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${k} module specifiers, plus ${P} ambient and ${W} from cache${j}`),(y=t.log)==null||y.call(t,`${e}: response is ${N?"incomplete":"complete"}`),(E=t.log)==null||E.call(t,`${e}: ${Ls()-A}`),G;function J(Z,q){if(q){const pe=r.getModuleSpecifierForBestExportInfo(Z,o,u);return pe&&P++,pe||"failed"}const ye=R||s.allowIncompleteCompletions&&k{const R=Ui(d.entries,N=>{var P;if(!N.hasAction||!N.source||!N.data||ULe(N.data))return N;if(!_2e(N.name,h))return;const{origin:k}=C.checkDefined(n2e(N.name,N.data,i,o)),W=y.get(t.path,N.data.exportMapKey),O=W&&A.tryResolve(W,!td(_m(k.moduleSymbol.name)));if(O==="skipped")return N;if(!O||O==="failed"){(P=o.log)==null||P.call(o,`Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`);return}const G={...k,kind:32,moduleSpecifier:O.moduleSpecifier};return N.data=QLe(G),N.source=Fpe(G),N.sourceDisplay=[yf(G.moduleSpecifier)],N});return A.skippedAny()||(d.isIncomplete=void 0),R});return d.entries=E,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=KLe(g),d}function wpe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:B1(!1)}}function HLe(e,t,r,i,o,s){const l=Fi(e,t);if(!GR(l)&&!mh(l))return[];const u=mh(l)?l:l.parent;if(!mh(u))return[];const d=u.parent;if(!Yo(d))return[];const g=Mu(e),h=o.includeCompletionsWithSnippetText||void 0,y=Io(u.tags,E=>mf(E)&&E.getEnd()<=t);return Ui(d.parameters,E=>{if(!wR(E).length){if(He(E.name)){const A={tabstop:1},R=E.name.text;let N=GO(R,E.initializer,E.dotDotDotToken,g,!1,!1,r,i,o),P=h?GO(R,E.initializer,E.dotDotDotToken,g,!1,!0,r,i,o,A):void 0;return s&&(N=N.slice(1),P&&(P=P.slice(1))),{name:N,kind:"parameter",sortText:Hd.LocationPriority,insertText:h?P:void 0,isSnippet:h}}else if(E.parent.parameters.indexOf(E)===y){const A=`param${y}`,R=qLe(A,E.name,E.initializer,E.dotDotDotToken,g,!1,r,i,o),N=h?qLe(A,E.name,E.initializer,E.dotDotDotToken,g,!0,r,i,o):void 0;let P=R.join(rv(i)+"* "),k=N?.join(rv(i)+"* ");return s&&(P=P.slice(1),k&&(k=k.slice(1))),{name:P,kind:"parameter",sortText:Hd.LocationPriority,insertText:h?k:void 0,isSnippet:h}}}})}function qLe(e,t,r,i,o,s,l,u,d){if(!o)return[GO(e,r,i,o,!1,s,l,u,d,{tabstop:1})];return g(e,t,r,i,{tabstop:1});function g(y,E,A,R,N){if(ff(E)&&!R){const k={tabstop:N.tabstop},W=GO(y,A,R,o,!0,s,l,u,d,k);let O=[];for(const G of E.elements){const j=h(y,G,k);if(j)O.push(...j);else{O=void 0;break}}if(O)return N.tabstop=k.tabstop,[W,...O]}return[GO(y,A,R,o,!1,s,l,u,d,N)]}function h(y,E,A){if(!E.propertyName&&He(E.name)||He(E.name)){const R=E.propertyName?GN(E.propertyName):E.name.text;if(!R)return;const N=`${y}.${R}`;return[GO(N,E.initializer,E.dotDotDotToken,o,!1,s,l,u,d,A)]}else if(E.propertyName){const R=GN(E.propertyName);return R&&g(`${y}.${R}`,E.name,E.initializer,E.dotDotDotToken,A)}}}function GO(e,t,r,i,o,s,l,u,d,g){if(s&&C.assertIsDefined(g),t&&(e=Gtt(e,t)),s&&(e=wS(e)),i){let h="*";if(o)C.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),h="Object";else{if(t){const A=l.getTypeAtLocation(t.parent);if(!(A.flags&16385)){const R=t.getSourceFile(),P=Gp(R,d)===0?268435456:0,k=l.typeToTypeNode(A,Dn(t,Yo),P);if(k){const W=s?RK({removeComments:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target}):Wb({removeComments:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target});Cr(k,1),h=W.printNode(4,k,R)}}}s&&h==="*"&&(h=`\${${g.tabstop++}:${h}}`)}const y=!o&&r?"...":"",E=s?`\${${g.tabstop++}}`:"";return`@param {${y}${h}} ${e} ${E}`}else{const h=s?`\${${g.tabstop++}}`:"";return`@param ${e} ${h}`}}function Gtt(e,t){const r=t.getText().trim();return r.includes(` `)||r.length>80?`[${e}]`:`[${e}=${r}]`}function Vtt(e){return{name:_a(e),kind:"keyword",kindModifiers:"",sortText:Hd.GlobalsOrKeywords}}function jtt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:B1(t)}}function JLe(e,t,r){return{kind:4,keywordCompletions:i2e(e,t),isNewIdentifierLocation:r}}function Utt(e){switch(e){case 156:return 8;default:C.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function KLe(e){return e?.kind===80?Fu(e):void 0}function Htt(e,t,r,i,o,s,l,u,d,g){const{symbols:h,contextToken:y,completionKind:E,isInSnippetScope:A,isNewIdentifierLocation:R,location:N,propertyAccessToConvert:P,keywordFilters:k,symbolToOriginInfoMap:W,recommendedCompletion:O,isJsxInitializer:G,isTypeOnlyLocation:j,isJsxIdentifierExpected:J,isRightOfOpenTag:Z,isRightOfDotOrQuestionDot:q,importStatementCompletion:ye,insideJsDocTagTypeExpression:ie,symbolToSortTextMap:K,hasUnresolvedAutoImports:pe,defaultCommitCharacters:de}=s;let fe=s.literals;const ve=r.getTypeChecker();if(Lk(e.scriptKind)===1){const re=Jtt(N,e);if(re)return re}const xe=Dn(y,ID);if(xe&&(tie(y)||IS(y,xe.expression))){const re=D7(ve,xe.parent.clauses);fe=fe.filter(be=>!re.hasValue(be)),h.forEach((be,Ne)=>{if(be.valueDeclaration&&py(be.valueDeclaration)){const Be=ve.getConstantValue(be.valueDeclaration);Be!==void 0&&re.hasValue(Be)&&(W[Ne]={kind:256})}})}const X=SB(),Ce=XLe(e,i);if(Ce&&!R&&(!h||h.length===0)&&k===0)return;const Je=zpe(h,X,void 0,y,N,d,e,t,r,Ga(i),o,E,l,i,u,j,P,J,G,ye,O,W,K,J,Z,g);if(k!==0)for(const re of i2e(k,!ie&&Mu(e)))(j&&xP(jE(re.name))||!j&&Nnt(re.name)||!Je.has(re.name))&&(Je.add(re.name),Xv(X,re,iz,void 0,!0));for(const re of _nt(y,d))Je.has(re.name)||(Je.add(re.name),Xv(X,re,iz,void 0,!0));for(const re of fe){const be=Xtt(e,l,re);Je.add(be.name),Xv(X,be,iz,void 0,!0)}Ce||Ktt(e,N.pos,Je,Ga(i),X);let Se;if(l.includeCompletionsWithInsertText&&y&&!Z&&!q&&(Se=Dn(y,VM))){const re=YLe(Se,e,l,i,t,r,u);re&&X.push(re.entry)}return{flags:s.flags,isGlobalCompletion:A,isIncomplete:l.allowIncompleteCompletions&&pe?!0:void 0,isMemberCompletion:qtt(E),isNewIdentifierLocation:R,optionalReplacementSpan:KLe(N),entries:X,defaultCommitCharacters:de??B1(R)}}function XLe(e,t){return!Mu(e)||!!SM(e,t)}function YLe(e,t,r,i,o,s,l){const u=e.clauses,d=s.getTypeChecker(),g=d.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Vn(g.types,h=>h.isLiteral())){const h=D7(d,u),y=Ga(i),E=Gp(t,r),A=lu.createImportAdder(t,s,r,o),R=[];for(const j of g.types)if(j.flags&1024){C.assert(j.symbol,"An enum member type should have a symbol"),C.assert(j.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const J=j.symbol.valueDeclaration&&d.getConstantValue(j.symbol.valueDeclaration);if(J!==void 0){if(h.hasValue(J))continue;h.addValue(J)}const Z=lu.typeToAutoImportableTypeNode(d,A,j,e,y);if(!Z)return;const q=IK(Z,y,E);if(!q)return;R.push(q)}else if(!h.hasValue(j.value))switch(typeof j.value){case"object":R.push(j.value.negative?L.createPrefixUnaryExpression(41,L.createBigIntLiteral({negative:!1,base10Value:j.value.base10Value})):L.createBigIntLiteral(j.value));break;case"number":R.push(j.value<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-j.value)):L.createNumericLiteral(j.value));break;case"string":R.push(L.createStringLiteral(j.value,E===0));break}if(R.length===0)return;const N=Vt(R,j=>L.createCaseClause(j,[])),P=_y(o,l?.options),k=RK({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,newLine:AO(P)}),W=l?j=>k.printAndFormatNode(4,j,t,l):j=>k.printNode(4,j,t),O=Vt(N,(j,J)=>r.includeCompletionsWithSnippetText?`${W(j)}$${J+1}`:`${W(j)}`).join(P);return{entry:{name:`${k.printNode(4,N[0],t)} ...`,kind:"",sortText:Hd.GlobalsOrKeywords,insertText:O,hasAction:A.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:A}}}function IK(e,t,r){switch(e.kind){case 184:const i=e.typeName;return xK(i,t,r);case 200:const o=IK(e.objectType,t,r),s=IK(e.indexType,t,r);return o&&s&&L.createElementAccessExpression(o,s);case 202:const l=e.literal;switch(l.kind){case 11:return L.createStringLiteral(l.text,r===0);case 9:return L.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 197:const u=IK(e.type,t,r);return u&&(He(u)?u:L.createParenthesizedExpression(u));case 187:return xK(e.exprName,t,r);case 206:C.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function xK(e,t,r){if(He(e))return e;const i=Gi(e.right.escapedText);return LV(i,t)?L.createPropertyAccessExpression(xK(e.left,t,r),i):L.createElementAccessExpression(xK(e.left,t,r),L.createStringLiteral(i,r===0))}function qtt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Jtt(e,t){const r=Dn(e,i=>{switch(i.kind){case 288:return!0;case 44:case 32:case 80:case 212:return!1;default:return"quit"}});if(r){const i=!!Es(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Fu(r.tagName),d={name:l,kind:"class",kindModifiers:void 0,sortText:Hd.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[d],defaultCommitCharacters:B1(!1)}}}function Ktt(e,t,r,i,o){KJ(e).forEach((s,l)=>{if(s===t)return;const u=Gi(l);!r.has(u)&&fp(u,i)&&(r.add(u),Xv(o,{name:u,kind:"warning",kindModifiers:"",sortText:Hd.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},iz))})}function Ope(e,t,r){return typeof r=="object"?kS(r)+"n":Bo(r)?PP(e,t,r):JSON.stringify(r)}function Xtt(e,t,r){return{name:Ope(e,t,r),kind:"string",kindModifiers:"",sortText:Hd.LocationPriority,commitCharacters:[]}}function Ytt(e,t,r,i,o,s,l,u,d,g,h,y,E,A,R,N,P,k,W,O,G,j,J,Z){var q,ye;let ie,K,pe=Dq(r,s),de,fe,ve=Fpe(y),xe,X,Ce;const Je=d.getTypeChecker(),Se=y&&Wtt(y),re=y&&Ltt(y)||h;if(y&&Ptt(y))ie=h?`this${Se?"?.":""}[${Wpe(l,W,g)}]`:`this${Se?"?.":"."}${g}`;else if((re||Se)&&A){ie=re?h?`[${Wpe(l,W,g)}]`:`[${g}]`:g,(Se||A.questionDotToken)&&(ie=`?.${ie}`);const lt=Es(A,25,l)||Es(A,29,l);if(!lt)return;const ce=po(g,A.name.text)?A.name.end:lt.end;pe=oc(lt.getStart(l),ce)}if(R&&(ie===void 0&&(ie=g),ie=`{${ie}}`,typeof R!="boolean"&&(pe=Fu(R,l))),y&&Ott(y)&&A){ie===void 0&&(ie=g);const lt=Gc(A.pos,l);let ce="";lt&&v7(lt.end,lt.parent,l)&&(ce=";"),ce+=`(await ${A.expression.getText()})`,ie=h?`${ce}${ie}`:`${ce}${Se?"?.":"."}${ie}`;const _e=ni(A.parent,Nb)?A.parent:A.expression;pe=oc(_e.getStart(l),A.end)}if(UP(y)&&(xe=[yf(y.moduleSpecifier)],N&&({insertText:ie,replacementSpan:pe}=int(g,N,y,P,l,d,W),fe=W.includeCompletionsWithSnippetText?!0:void 0)),y?.kind===64&&(X=!0),O===0&&i&&((q=Gc(i.pos,l,i))==null?void 0:q.kind)!==28&&(Ml(i.parent.parent)||Hf(i.parent.parent)||gp(i.parent.parent)||xg(i.parent)||((ye=Dn(i.parent,Nc))==null?void 0:ye.getLastToken(l))===i||Ud(i.parent)&&ca(l,i.getEnd()).line!==ca(l,s).line)&&(ve="ObjectLiteralMemberWithComma/",X=!0),W.includeCompletionsWithClassMemberSnippets&&W.includeCompletionsWithInsertText&&O===3&&Qtt(e,o,l)){let lt;const ce=$Le(u,d,k,W,g,e,o,s,i,G);if(ce)({insertText:ie,filterText:K,isSnippet:fe,importAdder:lt}=ce),(lt?.hasFixes()||ce.eraseRange)&&(X=!0,ve="ClassMemberSnippet/");else return}if(y&&VLe(y)&&({insertText:ie,isSnippet:fe,labelDetails:Ce}=y,W.useLabelDetailsInCompletionEntries||(g=g+Ce.detail,Ce=void 0),ve="ObjectLiteralMethodSnippet/",t=Hd.SortBelow(t)),j&&!J&&W.includeCompletionsWithSnippetText&&W.jsxAttributeCompletionStyle&&W.jsxAttributeCompletionStyle!=="none"&&!(i_(o.parent)&&o.parent.initializer)){let lt=W.jsxAttributeCompletionStyle==="braces";const ce=Je.getTypeOfSymbolAtLocation(e,o);W.jsxAttributeCompletionStyle==="auto"&&!(ce.flags&528)&&!(ce.flags&1048576&&hn(ce.types,Re=>!!(Re.flags&528)))&&(ce.flags&402653316||ce.flags&1048576&&Vn(ce.types,Re=>!!(Re.flags&402686084||Dle(Re)))?(ie=`${wS(g)}=${PP(l,W,"$1")}`,fe=!0):lt=!0),lt&&(ie=`${wS(g)}={$1}`,fe=!0)}if(ie!==void 0&&!W.includeCompletionsWithInsertText)return;(rz(y)||UP(y))&&(de=QLe(y),X=!N);const be=Dn(o,v6);if(be){const lt=Ga(u.getCompilationSettings());if(!fp(g,lt))ie=Wpe(l,W,g),be.kind===276&&(yd.setText(l.text),yd.resetTokenState(s),yd.scan()===130&&yd.scan()===80||(ie+=" as "+$tt(g,lt)));else if(be.kind===276){const ce=jE(g);ce&&(ce===135||MG(ce))&&(ie=`${g} as ${g}_`)}}const Ne=yv.getSymbolKind(Je,e,o),Be=Ne==="warning"||Ne==="string"?[]:void 0;return{name:g,kind:Ne,kindModifiers:yv.getSymbolModifiers(Je,e),sortText:t,source:ve,hasAction:X?!0:void 0,isRecommended:ont(e,E,Je)||void 0,insertText:ie,filterText:K,replacementSpan:pe,sourceDisplay:xe,labelDetails:Ce,isSnippet:fe,isPackageJsonImport:wtt(y)||void 0,isImportStatementCompletion:!!N||void 0,data:de,commitCharacters:Be,...Z?{symbol:e}:void 0}}function $tt(e,t){let r=!1,i="",o;for(let s=0;s=65536?2:1)o=e.codePointAt(s),o!==void 0&&(s===0?R_(o,t):ey(o,t))?(r&&(i+="_"),i+=String.fromCodePoint(o),r=!1):r=!0;return r&&(i+="_"),i||"_"}function Qtt(e,t,r){return Ir(t)?!1:!!(e.flags&106500)&&(ui(t)||t.parent&&t.parent.parent&&Tc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ui(t.parent.parent)||t.parent&&CD(t)&&ui(t.parent))}function $Le(e,t,r,i,o,s,l,u,d,g){const h=Dn(l,ui);if(!h)return;let y,E=o;const A=o,R=t.getTypeChecker(),N=l.getSourceFile(),P=RK({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,omitTrailingSemicolon:!1,newLine:AO(_y(e,g?.options))}),k=lu.createImportAdder(N,t,i,e);let W;if(i.includeCompletionsWithSnippetText){y=!0;const ye=L.createEmptyStatement();W=L.createBlock([ye],!0),QV(ye,{kind:0,order:0})}else W=L.createBlock([],!0);let O=0;const{modifiers:G,range:j,decorators:J}=Ztt(d,N,u),Z=G&64&&h.modifierFlagsCache&64;let q=[];if(lu.addNewNodeForMemberSymbol(s,h,N,{program:t,host:e},i,k,ye=>{let ie=0;Z&&(ie|=64),Tc(ye)&&R.getMemberOverrideModifierStatus(h,ye,s)===1&&(ie|=16),q.length||(O=ye.modifierFlagsCache|ie),ye=L.replaceModifiers(ye,O),q.push(ye)},W,lu.PreserveOptionalFlags.Property,!!Z),q.length){const ye=s.flags&8192;let ie=O|16|1;ye?ie|=1024:ie|=136;const K=G&ie;if(G&~ie)return;if(O&4&&K&1&&(O&=-5),K!==0&&!(K&1)&&(O&=-2),O|=K,q=q.map(de=>L.replaceModifiers(de,O)),J?.length){const de=q[q.length-1];HS(de)&&(q[q.length-1]=L.replaceDecoratorsAndModifiers(de,J.concat(fS(de)||[])))}const pe=131073;g?E=P.printAndFormatSnippetList(pe,L.createNodeArray(q),N,g):E=P.printSnippetList(pe,L.createNodeArray(q),N)}return{insertText:E,filterText:A,isSnippet:y,importAdder:k,eraseRange:j}}function Ztt(e,t,r){if(!e||ca(t,r).line>ca(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;const l={pos:r,end:r};if(Po(e.parent)&&(s=ent(e))){e.parent.modifiers&&(i|=Xh(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Fc)||[],l.pos=Math.min(...e.parent.modifiers.map(d=>d.getStart(t))));const u=SI(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.getStart(t))),e.parent.name!==e&&(l.end=e.parent.name.getStart(t))}return{modifiers:i,decorators:o,range:l.posu.getSignaturesOfType(O,0).length>0);if(W.length===1)A=W[0];else return}if(u.getSignaturesOfType(A,0).length!==1)return;const N=u.typeToTypeNode(A,t,E,void 0,lu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!N||!w_(N))return;let P;if(s.includeCompletionsWithSnippetText){const W=L.createEmptyStatement();P=L.createBlock([W],!0),QV(W,{kind:0,order:0})}else P=L.createBlock([],!0);const k=N.parameters.map(W=>L.createParameterDeclaration(void 0,W.dotDotDotToken,W.name,void 0,void 0,W.initializer));return L.createMethodDeclaration(void 0,void 0,g,void 0,void 0,k,void 0,P)}default:return}}function RK(e){let t;const r=Rr.createWriter(rv(e)),i=Wb(e,r),o={...r,write:E=>s(E,()=>r.write(E)),nonEscapingWrite:r.write,writeLiteral:E=>s(E,()=>r.writeLiteral(E)),writeStringLiteral:E=>s(E,()=>r.writeStringLiteral(E)),writeSymbol:(E,A)=>s(E,()=>r.writeSymbol(E,A)),writeParameter:E=>s(E,()=>r.writeParameter(E)),writeComment:E=>s(E,()=>r.writeComment(E)),writeProperty:E=>s(E,()=>r.writeProperty(E))};return{printSnippetList:l,printAndFormatSnippetList:d,printNode:g,printAndFormatNode:y};function s(E,A){const R=wS(E);if(R!==E){const N=r.getTextPos();A();const P=r.getTextPos();t=Bn(t||(t=[]),{newText:R,span:{start:N,length:P-N}})}else A()}function l(E,A,R){const N=u(E,A,R);return t?Rr.applyChanges(N,t):N}function u(E,A,R){return t=void 0,o.clear(),i.writeList(E,A,R,o),o.getText()}function d(E,A,R,N){const P={text:u(E,A,R),getLineAndCharacterOfPosition(G){return ca(this,G)}},k=R7(N,R),W=Ki(A,G=>{const j=Rr.assignPositionsToNode(G);return Mc.formatNodeGivenIndentation(j,P,R.languageVariant,0,0,{...N,options:k})}),O=t?xp(so(W,t),(G,j)=>C8(G.span,j.span)):W;return Rr.applyChanges(P.text,O)}function g(E,A,R){const N=h(E,A,R);return t?Rr.applyChanges(N,t):N}function h(E,A,R){return t=void 0,o.clear(),i.writeNode(E,A,R,o),o.getText()}function y(E,A,R,N){const P={text:h(E,A,R),getLineAndCharacterOfPosition(j){return ca(this,j)}},k=R7(N,R),W=Rr.assignPositionsToNode(A),O=Mc.formatNodeGivenIndentation(W,P,R.languageVariant,0,0,{...N,options:k}),G=t?xp(so(O,t),(j,J)=>C8(j.span,J.span)):O;return Rr.applyChanges(P.text,G)}}function QLe(e){const t=e.fileName?void 0:_m(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return UP(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:_m(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function rnt(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return ULe(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 int(e,t,r,i,o,s,l){const u=t.replacementSpan,d=wS(PP(o,l,r.moduleSpecifier)),g=r.isDefaultExport?1:r.exportName==="export="?2:0,h=l.includeCompletionsWithSnippetText?"$1":"",y=lu.getImportKind(o,g,s,!0),E=t.couldBeTypeOnlyImportSpecifier,A=t.isTopLevelTypeOnly?` ${_a(156)} `:" ",R=E?`${_a(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${A}${wS(e)}${h} = require(${d})${N}`};case 1:return{replacementSpan:u,insertText:`import${A}${wS(e)}${h} from ${d}${N}`};case 2:return{replacementSpan:u,insertText:`import${A}* as ${wS(e)} from ${d}${N}`};case 0:return{replacementSpan:u,insertText:`import${A}{ ${R}${wS(e)}${h} } from ${d}${N}`}}}function Wpe(e,t,r){return/^\d+$/.test(r)?r:PP(e,t,r)}function ont(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Fpe(e){if(rz(e))return _m(e.moduleSymbol.name);if(UP(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function zpe(e,t,r,i,o,s,l,u,d,g,h,y,E,A,R,N,P,k,W,O,G,j,J,Z,q,ye=!1){const ie=Ls(),K=xnt(i,o),pe=bO(l),de=d.getTypeChecker(),fe=new Map;for(let X=0;XRe.getSourceFile()===o.getSourceFile()));fe.set(re,ce),Xv(t,lt,iz,void 0,!0)}return h("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ls()-ie)),{has:X=>fe.has(X),add:X=>fe.set(X,!0)};function ve(X,Ce){var Je;let Se=X.flags;if(o.parent&&ll(o.parent))return!0;if(K&&ni(K,yi)&&(X.valueDeclaration===K||Qo(K.name)&&K.name.elements.some(Ne=>Ne===X.valueDeclaration)))return!1;const re=X.valueDeclaration??((Je=X.declarations)==null?void 0:Je[0]);if(K&&re){if(to(K)&&to(re)){const Ne=K.parent.parameters;if(re.pos>=K.pos&&re.pos=K.pos&&re.posOpe(r,l,O)===o.name);return W!==void 0?{type:"literal",literal:W}:Hn(g,(O,G)=>{const j=A[G],J=CK(O,Ga(u),j,E,d.isJsxIdentifierExpected);return J&&J.name===o.name&&(o.source==="ClassMemberSnippet/"&&O.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&O.flags&8196||Fpe(j)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:O,location:y,origin:j,contextToken:R,previousToken:N,isJsxInitializer:P,isTypeOnlyLocation:k}:void 0})||{type:"none"}}function lnt(e,t,r,i,o,s,l,u,d){const g=e.getTypeChecker(),h=e.getCompilerOptions(),{name:y,source:E,data:A}=o,{previousToken:R,contextToken:N}=DK(i,r);if(cx(r,i,R))return wK.getStringLiteralCompletionDetails(y,r,i,R,e,s,d,u);const P=ZLe(e,t,r,i,o,s,u);switch(P.type){case"request":{const{request:k}=P;switch(k.kind){case 1:return g0.getJSDocTagNameCompletionDetails(y);case 2:return g0.getJSDocTagCompletionDetails(y);case 3:return g0.getJSDocParameterNameCompletionDetails(y);case 4:return yt(k.keywordCompletions,W=>W.name===y)?Bpe(y,"keyword",5):void 0;default:return C.assertNever(k)}}case"symbol":{const{symbol:k,location:W,contextToken:O,origin:G,previousToken:j}=P,{codeActions:J,sourceDisplay:Z}=cnt(y,W,O,G,k,e,s,h,r,i,j,l,u,A,E,d),q=kpe(G)?G.symbolName:k.name;return Gpe(k,q,g,r,W,d,J,Z)}case"literal":{const{literal:k}=P;return Bpe(Ope(r,u,k),"string",typeof k=="string"?8:7)}case"cases":{const k=YLe(N.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(k?.importAdder.hasFixes()){const{entry:W,importAdder:O}=k,G=Rr.ChangeTracker.with({host:s,formatContext:l,preferences:u},O.writeFixes);return{name:W.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:G,description:eE([f.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return r2e().some(k=>k.name===y)?Bpe(y,"keyword",5):void 0;default:C.assertNever(P)}}function Bpe(e,t,r){return oz(e,"",t,[yp(e,r)])}function Gpe(e,t,r,i,o,s,l,u){const{displayParts:d,documentation:g,symbolKind:h,tags:y}=r.runWithCancellationToken(s,E=>yv.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return oz(t,yv.getSymbolModifiers(r,e),h,d,g,y,l,u)}function oz(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 cnt(e,t,r,i,o,s,l,u,d,g,h,y,E,A,R,N){if(A?.moduleSpecifier&&h&&u2e(r||h,d).replacementSpan)return{codeActions:void 0,sourceDisplay:[yf(A.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){const{importAdder:J,eraseRange:Z}=$Le(l,s,u,E,e,o,t,g,r,y);if(J?.hasFixes()||Z)return{sourceDisplay:void 0,codeActions:[{changes:Rr.ChangeTracker.with({host:l,formatContext:y,preferences:E},ye=>{J&&J.writeFixes(ye),Z&&ye.deleteRange(d,Z)}),description:J?.hasFixes()?eE([f.Includes_imports_of_types_referenced_by_0,e]):eE([f.Update_modifiers_of_0,e])}]}}if(GLe(i)){const J=lu.getPromoteTypeOnlyCompletionAction(d,i.declaration.name,s,l,y,E);return C.assertIsDefined(J,"Expected to have a code action for promoting type-only alias"),{codeActions:[J],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){const J=Rr.ChangeTracker.with({host:l,formatContext:y,preferences:E},Z=>Z.insertText(d,r.end,","));if(J)return{sourceDisplay:void 0,codeActions:[{changes:J,description:eE([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(rz(i)||UP(i)))return{codeActions:void 0,sourceDisplay:void 0};const P=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:k}=i,W=P.getMergedSymbol(xd(o.exportSymbol||o,P)),O=r?.kind===30&&nu(r.parent),{moduleSpecifier:G,codeAction:j}=lu.getImportCompletionAction(W,k,A?.exportMapKey,d,e,O,l,s,y,h&&He(h)?h.getStart(d):g,E,N);return C.assert(!A?.moduleSpecifier||G===A.moduleSpecifier),{sourceDisplay:[yf(G)],codeActions:[j]}}function dnt(e,t,r,i,o,s,l){const u=ZLe(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}var e2e=(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))(e2e||{});function unt(e,t,r){return Hn(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!Lne(o)?Vpe(o,e,r):void 0})}function pnt(e,t,r,i){const{parent:o}=e;switch(e.kind){case 80:return g7(e,i);case 64:switch(o.kind){case 261:return i.getContextualType(o.initializer);case 227:return i.getTypeAtLocation(o.left);case 292:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:const s=ni(o,ID);return s?Yq(s,i):void 0;case 19:return AD(o)&&!r_(o.parent)&&!ZT(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const l=KO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):y7(e.kind)&&Nr(o)&&y7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Vpe(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?$a(i):e.parent&&(fnt(e.parent)?e:Vpe(e.parent,t,r))}function fnt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===308))}function t2e(e,t,r,i,o,s,l,u,d,g){const h=e.getTypeChecker(),y=XLe(r,i);let E=Ls(),A=Fi(r,o);t("getCompletionData: Get current token: "+(Ls()-E)),E=Ls();const R=fv(r,o,A);t("getCompletionData: Is inside comment: "+(Ls()-E));let N=!1,P=!1,k=!1;if(R){if(Ile(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const gt=Em(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(gt,o)))return{kind:2}}}const Pe=gnt(A,o);if(Pe){if(Pe.tagName.pos<=o&&o<=Pe.tagName.end)return{kind:1};if(o_(Pe))P=!0;else{const gt=gn(Pe);if(gt&&(A=Fi(r,o),(!A||!L_(A)&&(A.parent.kind!==349||A.parent.name!==A))&&(N=Xt(gt))),!N&&mf(Pe)&&(Wl(Pe.name)||Pe.name.pos<=o&&o<=Pe.name.end))return{kind:3,tag:Pe}}}if(!N&&!P){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}E=Ls();const W=!N&&!P&&Mu(r),O=DK(o,r),G=O.previousToken;let j=O.contextToken;t("getCompletionData: Get previous token: "+(Ls()-E));let J=A,Z,q=!1,ye=!1,ie=!1,K=!1,pe=!1,de=!1,fe,ve=ip(r,o),xe=0,X=!1,Ce=0,Je;if(j){const Pe=u2e(j,r);if(Pe.keywordCompletion){if(Pe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Vtt(Pe.keywordCompletion)],isNewIdentifierLocation:Pe.isNewIdentifierLocation};xe=Utt(Pe.keywordCompletion)}if(Pe.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(Ce|=2,fe=Pe,X=Pe.isNewIdentifierLocation),!Pe.replacementSpan&&$o(j))return t("Returning an empty list because completion was requested in an invalid position."),xe?JLe(xe,W,Mn().isNewIdentifierLocation):void 0;let gt=j.parent;if(j.kind===25||j.kind===29)switch(q=j.kind===25,ye=j.kind===29,gt.kind){case 212:Z=gt,J=Z.expression;const Bt=cD(Z);if(Wl(Bt)||(Zo(J)||Yo(J))&&J.end===j.pos&&J.getChildCount(r)&&Ba(J.getChildren(r)).kind!==22)return;break;case 167:J=gt.left;break;case 268:J=gt.name;break;case 206:J=gt;break;case 237:J=gt.getFirstToken(r),C.assert(J.kind===102||J.kind===105);break;default:return}else if(!fe){if(gt&>.kind===212&&(j=gt,gt=gt.parent),A.parent===ve)switch(A.kind){case 32:(A.parent.kind===285||A.parent.kind===287)&&(ve=A);break;case 44:A.parent.kind===286&&(ve=A);break}switch(gt.kind){case 288:j.kind===44&&(K=!0,ve=j);break;case 227:if(!d2e(gt))break;case 286:case 285:case 287:de=!0,j.kind===30&&(ie=!0,ve=j);break;case 295:case 294:(G.kind===20||G.kind===80&&G.parent.kind===292)&&(de=!0);break;case 292:if(gt.initializer===G&&G.endu0(Pe?u.getPackageJsonAutoImportProvider():e,u));if(q||ye)Kn();else if(ie)Ne=h.getJsxIntrinsicTagNamesAt(ve),C.assertEachIsDefined(Ne,"getJsxIntrinsicTagNames() should all be defined"),Di(),re=1,xe=0;else if(K){const Pe=j.parent.parent.openingElement.tagName,gt=h.getSymbolAtLocation(Pe);gt&&(Ne=[gt]),re=1,xe=0}else if(!Di())return xe?JLe(xe,W,X):void 0;t("getCompletionData: Semantic work: "+(Ls()-Se));const Ge=G&&pnt(G,o,r,h),at=!ni(G,ds)&&!de?Ui(Ge&&(Ge.isUnion()?Ge.types:[Ge]),Pe=>Pe.isLiteral()&&!(Pe.flags&1024)?Pe.value:void 0):[],Wt=G&&Ge&&unt(G,Ge,h);return{kind:0,symbols:Ne,completionKind:re,isInSnippetScope:k,propertyAccessToConvert:Z,isNewIdentifierLocation:X,location:ve,keywordFilters:xe,literals:at,symbolToOriginInfoMap:lt,recommendedCompletion:Wt,previousToken:G,contextToken:j,isJsxInitializer:pe,insideJsDocTagTypeExpression:N,symbolToSortTextMap:ce,isTypeOnlyLocation:_e,isJsxIdentifierExpected:de,isRightOfOpenTag:ie,isRightOfDotOrQuestionDot:q||ye,importStatementCompletion:fe,hasUnresolvedAutoImports:be,flags:Ce,defaultCommitCharacters:Je};function cn(Pe){switch(Pe.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!Pe.constraint;default:return!1}}function gn(Pe){if(cn(Pe)){const gt=bm(Pe)?Pe.constraint:Pe.typeExpression;return gt&>.kind===310?gt:void 0}if(XI(Pe)||h4(Pe))return Pe.class}function Kn(){re=2;const Pe=ry(J),gt=Pe&&!J.isTypeOf||Hh(J.parent)||dO(j,r,h),Bt=K3(J);if(Nu(J)||Pe||qr(J)){const gr=pc(J.parent);gr&&(X=!0,Je=[]);let tr=h.getSymbolAtLocation(J);if(tr&&(tr=xd(tr,h),tr.flags&1920)){const Jn=h.getExportsOfModule(tr);C.assertEachIsDefined(Jn,"getExportsOfModule() should all be defined");const ft=Qt=>h.isValidPropertyAccess(Pe?J:J.parent,Qt.name),Mt=Qt=>Upe(Qt,h),jt=gr?Qt=>{var In;return!!(Qt.flags&1920)&&!((In=Qt.declarations)!=null&&In.every(yn=>yn.parent===J.parent))}:Bt?Qt=>Mt(Qt)||ft(Qt):gt||N?Mt:ft;for(const Qt of Jn)jt(Qt)&&Ne.push(Qt);if(!gt&&!N&&tr.declarations&&tr.declarations.some(Qt=>Qt.kind!==308&&Qt.kind!==268&&Qt.kind!==267)){let Qt=h.getTypeOfSymbolAtLocation(tr,J).getNonOptionalType(),In=!1;if(Qt.isNullableType()){const yn=q&&!ye&&s.includeAutomaticOptionalChainCompletions!==!1;(yn||ye)&&(Qt=Qt.getNonNullableType(),yn&&(In=!0))}_t(Qt,!!(J.flags&65536),In)}return}}if(!gt||bI(J)){h.tryGetThisTypeAt(J,!1);let gr=h.getTypeAtLocation(J).getNonOptionalType();if(gt)_t(gr.getNonNullableType(),!1,!1);else{let tr=!1;if(gr.isNullableType()){const Jn=q&&!ye&&s.includeAutomaticOptionalChainCompletions!==!1;(Jn||ye)&&(gr=gr.getNonNullableType(),Jn&&(tr=!0))}_t(gr,!!(J.flags&65536),tr)}}}function _t(Pe,gt,Bt){Pe.getStringIndexType()&&(X=!0,Je=[]),ye&&yt(Pe.getCallSignatures())&&(X=!0,Je??(Je=l_));const gr=J.kind===206?J:J.parent;if(y)for(const tr of Pe.getApparentProperties())h.isValidPropertyAccessForCompletions(gr,Pe,tr)&&en(tr,!1,Bt);else Ne.push(...Un(LK(Pe,h),tr=>h.isValidPropertyAccessForCompletions(gr,Pe,tr)));if(gt&&s.includeCompletionsWithInsertText){const tr=h.getPromisedTypeOfPromise(Pe);if(tr)for(const Jn of tr.getApparentProperties())h.isValidPropertyAccessForCompletions(gr,tr,Jn)&&en(Jn,!0,Bt)}}function en(Pe,gt,Bt){var gr;const tr=Hn(Pe.declarations,jt=>ni(Oo(jt),va));if(tr){const jt=ir(tr.expression),Qt=jt&&h.getSymbolAtLocation(jt),In=Qt&&Vpe(Qt,j,h),yn=In&&Ta(In);if(yn&&gm(Re,yn)){const wt=Ne.length;Ne.push(In),ce[Ta(In)]=Hd.GlobalsOrKeywords;const En=In.parent;if(!En||!sI(En)||h.tryGetMemberInModuleExportsAndProperties(In.name,En)!==In)lt[wt]={kind:Mt(2)};else{const xn=td(_m(En.name))?(gr=z2(En))==null?void 0:gr.fileName:void 0,{moduleSpecifier:Ln}=(Be||(Be=lu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:xn,isFromPackageJson:!1,moduleSymbol:En,symbol:In,targetFlags:xd(In,h).flags}],o,UT(ve))||{};if(Ln){const ln={kind:Mt(6),moduleSymbol:En,isDefaultExport:!1,symbolName:In.name,exportName:In.name,fileName:xn,moduleSpecifier:Ln};lt[wt]=ln}}}else if(s.includeCompletionsWithInsertText){if(yn&&Re.has(yn))return;ft(Pe),Jn(Pe),Ne.push(Pe)}}else ft(Pe),Jn(Pe),Ne.push(Pe);function Jn(jt){Ent(jt)&&(ce[Ta(jt)]=Hd.LocalDeclarationPriority)}function ft(jt){s.includeCompletionsWithInsertText&&(gt&&gm(Re,Ta(jt))?lt[Ne.length]={kind:Mt(8)}:Bt&&(lt[Ne.length]={kind:16}))}function Mt(jt){return Bt?jt|16:jt}}function ir(Pe){return He(Pe)?Pe:qr(Pe)?ir(Pe.expression):void 0}function Di(){return(ot()||Ft()||Zr()||le()||ht()||ne()||lo()||Fe()||zt()||(Ai(),1))===1}function lo(){return dt(j)?(re=5,X=!0,xe=4,1):0}function zt(){const Pe=Ue(j),gt=Pe&&h.getContextualType(Pe.attributes);if(!gt)return 0;const Bt=Pe&&h.getContextualType(Pe.attributes,4);return Ne=so(Ne,xt(PK(gt,Bt,Pe.attributes,h),Pe.attributes.properties)),he(),re=3,X=!1,1}function Zr(){return fe?(X=!0,mn(),1):0}function Ai(){xe=Lt(j)?5:1,re=1,{isNewIdentifierLocation:X,defaultCommitCharacters:Je}=Mn(),G!==j&&C.assert(!!G,"Expected 'contextToken' to be defined when different from 'previousToken'.");const Pe=G!==j?G.getStart():o,gt=qi(j,Pe,r)||r;k=Pr(gt);const Bt=(_e?0:111551)|788968|1920|2097152,gr=G&&!UT(G);Ne=so(Ne,h.getSymbolsInScope(gt,Bt)),C.assertEachIsDefined(Ne,"getSymbolsInScope() should all be defined");for(let tr=0;trft.getSourceFile()===r)&&(ce[Ta(Jn)]=Hd.GlobalsOrKeywords),gr&&!(Jn.flags&111551)){const ft=Jn.declarations&&hn(Jn.declarations,WR);if(ft){const Mt={kind:64,declaration:ft};lt[tr]=Mt}}}if(s.includeCompletionsWithInsertText&>.kind!==308){const tr=h.tryGetThisTypeAt(gt,!1,ui(gt.parent)?gt:void 0);if(tr&&!Snt(tr,r,h))for(const Jn of LK(tr,h))lt[Ne.length]={kind:1},Ne.push(Jn),ce[Ta(Jn)]=Hd.SuggestedClassMembers}mn(),_e&&(xe=j&&gS(j.parent)?6:7)}function Ni(){var Pe;return fe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||Lq(e.getCompilerOptions())?!0:((Pe=e.getSymlinkCache)==null?void 0:Pe.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||Mle(e):!1}function Pr(Pe){switch(Pe.kind){case 308:case 229:case 295:case 242:return!0;default:return Vi(Pe)}}function Ci(){return N||P||!!fe&&$y(ve.parent)||!$e(j)&&(dO(j,r,h)||Hh(ve)||At(j))}function $e(Pe){return Pe&&(Pe.kind===114&&(Pe.parent.kind===187||bD(Pe.parent))||Pe.kind===131&&Pe.parent.kind===183)}function At(Pe){if(Pe){const gt=Pe.parent.kind;switch(Pe.kind){case 59:return gt===173||gt===172||gt===170||gt===261||rI(gt);case 64:return gt===266||gt===169;case 130:return gt===235;case 30:return gt===184||gt===217;case 96:return gt===169;case 152:return gt===239}}return!1}function mn(){var Pe,gt;if(!Ni()||(C.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;Ce|=1;const gr=G===j&&fe?"":G&&He(G)?G.text.toLowerCase():"",tr=(Pe=u.getModuleSpecifierCache)==null?void 0:Pe.call(u),Jn=IO(r,u,e,s,g),ft=(gt=u.getPackageJsonAutoImportProvider)==null?void 0:gt.call(u),Mt=l?void 0:oC(r,s,u);jLe("collectAutoImports",u,Be||(Be=lu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!fe,UT(ve),Qt=>{Jn.search(r.path,ie,(In,yn)=>{if(!fp(In,Ga(u.getCompilationSettings()))||!l&&vI(In)||!_e&&!fe&&!(yn&111551)||_e&&!(yn&790504))return!1;const wt=In.charCodeAt(0);return ie&&(wt<65||wt>90)?!1:l?!0:_2e(In,gr)},(In,yn,wt,En)=>{if(l&&!yt(In,sa=>l.source===_m(sa.moduleSymbol.name))||(In=Un(In,jt),!In.length))return;const xn=Qt.tryResolve(In,wt)||{};if(xn==="failed")return;let Ln=In[0],ln;xn!=="skipped"&&({exportInfo:Ln=In[0],moduleSpecifier:ln}=xn);const Ii=Ln.exportKind===1,ra=Ii&&uM(C.checkDefined(Ln.symbol))||C.checkDefined(Ln.symbol);dr(ra,{kind:ln?32:4,moduleSpecifier:ln,symbolName:yn,exportMapKey:En,exportName:Ln.exportKind===2?"export=":C.checkDefined(Ln.symbol).name,fileName:Ln.moduleFileName,isDefaultExport:Ii,moduleSymbol:Ln.moduleSymbol,isFromPackageJson:Ln.isFromPackageJson})}),be=Qt.skippedAny(),Ce|=Qt.resolvedAny()?8:0,Ce|=Qt.resolvedBeyondLimit()?16:0});function jt(Qt){return cJ(Qt.isFromPackageJson?ft:e,r,ni(Qt.moduleSymbol.valueDeclaration,Yi),Qt.moduleSymbol,s,Mt,je(Qt.isFromPackageJson),tr)}}function dr(Pe,gt){const Bt=Ta(Pe);ce[Bt]!==Hd.GlobalsOrKeywords&&(lt[Ne.length]=gt,ce[Bt]=fe?Hd.LocationPriority:Hd.AutoImportSuggestions,Ne.push(Pe))}function ri(Pe,gt){Ir(ve)||Pe.forEach(Bt=>{if(!ai(Bt))return;const gr=CK(Bt,Ga(i),void 0,0,!1);if(!gr)return;const{name:tr}=gr,Jn=tnt(Bt,tr,gt,e,u,i,s,d);if(!Jn)return;const ft={kind:128,...Jn};Ce|=32,lt[Ne.length]=ft,Ne.push(Bt)})}function ai(Pe){return!!(Pe.flags&8196)}function qi(Pe,gt,Bt){let gr=Pe;for(;gr&&!yq(gr,gt,Bt);)gr=gr.parent;return gr}function $o(Pe){const gt=Ls(),Bt=Uo(Pe)||It(Pe)||Kt(Pe)||Ia(Pe)||gD(Pe);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Ls()-gt)),Bt}function Ia(Pe){if(Pe.kind===12)return!0;if(Pe.kind===32&&Pe.parent){if(ve===Pe.parent&&(ve.kind===287||ve.kind===286))return!1;if(Pe.parent.kind===287)return ve.parent.kind!==287;if(Pe.parent.kind===288||Pe.parent.kind===286)return!!Pe.parent.parent&&Pe.parent.parent.kind===285}return!1}function Mn(){if(j){const Pe=j.parent.kind,gt=MK(j);switch(gt){case 28:switch(Pe){case 214:case 215:{const Bt=j.parent.expression;return ca(r,Bt.end).line!==ca(r,o).line?{defaultCommitCharacters:AK,isNewIdentifierLocation:!0}:{defaultCommitCharacters:l_,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:AK,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:l_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:l_,isNewIdentifierLocation:!1}}case 21:switch(Pe){case 214:case 215:{const Bt=j.parent.expression;return ca(r,Bt.end).line!==ca(r,o).line?{defaultCommitCharacters:AK,isNewIdentifierLocation:!0}:{defaultCommitCharacters:l_,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:AK,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:l_,isNewIdentifierLocation:!1}}case 23:switch(Pe){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:l_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:l_,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:switch(Pe){case 268:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:l_,isNewIdentifierLocation:!1}}case 19:switch(Pe){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:l_,isNewIdentifierLocation:!1}}case 64:switch(Pe){case 261:case 227:return{defaultCommitCharacters:l_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:l_,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:l_,isNewIdentifierLocation:Pe===229};case 17:return{defaultCommitCharacters:l_,isNewIdentifierLocation:Pe===240};case 134:return Pe===175||Pe===305?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:l_,isNewIdentifierLocation:!1};case 42:return Pe===175?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:l_,isNewIdentifierLocation:!1}}if(az(gt))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:l_,isNewIdentifierLocation:!1}}function Uo(Pe){return(ej(Pe)||w9(Pe))&&(lO(Pe,o)||o===Pe.end&&(!!Pe.isUnterminated||ej(Pe)))}function ot(){const Pe=bnt(j);if(!Pe)return 0;const Bt=(UI(Pe.parent)?Pe.parent:void 0)||Pe,gr=c2e(Bt,h);if(!gr)return 0;const tr=h.getTypeFromTypeNode(Bt),Jn=LK(gr,h),ft=LK(tr,h),Mt=new Set;return ft.forEach(jt=>Mt.add(jt.escapedName)),Ne=so(Ne,Un(Jn,jt=>!Mt.has(jt.escapedName))),re=0,X=!0,1}function Ft(){if(j?.kind===26)return 0;const Pe=Ne.length,gt=mnt(j,o,r);if(!gt)return 0;re=0;let Bt,gr;if(gt.kind===211){const tr=Ant(gt,h);if(tr===void 0)return gt.flags&67108864?2:0;const Jn=h.getContextualType(gt,4),ft=(Jn||tr).getStringIndexType(),Mt=(Jn||tr).getNumberIndexType();if(X=!!ft||!!Mt,Bt=PK(tr,Jn,gt,h),gr=gt.properties,Bt.length===0&&!Mt)return 0}else{C.assert(gt.kind===207),X=!1;const tr=Jh(gt.parent);if(!VN(tr))return C.fail("Root declaration is not variable-like.");let Jn=Qy(tr)||!!Rc(tr)||tr.parent.parent.kind===251;if(!Jn&&tr.kind===170&&(St(tr.parent)?Jn=!!h.getContextualType(tr.parent):(tr.parent.kind===175||tr.parent.kind===179)&&(Jn=St(tr.parent.parent)&&!!h.getContextualType(tr.parent.parent))),Jn){const ft=h.getTypeAtLocation(gt);if(!ft)return 2;Bt=h.getPropertiesOfType(ft).filter(Mt=>h.isPropertyAccessible(gt,!1,!1,ft,Mt)),gr=gt.elements}}if(Bt&&Bt.length>0){const tr=Oe(Bt,C.checkDefined(gr));Ne=so(Ne,tr),he(),gt.kind===211&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Ae(Pe),ri(tr,gt))}return 1}function le(){if(!j)return 0;const Pe=j.kind===19||j.kind===28?ni(j.parent,v6):c7(j)?ni(j.parent.parent,v6):void 0;if(!Pe)return 0;c7(j)||(xe=8);const{moduleSpecifier:gt}=Pe.kind===276?Pe.parent.parent:Pe.parent;if(!gt)return X=!0,Pe.kind===276?2:0;const Bt=h.getSymbolAtLocation(gt);if(!Bt)return X=!0,2;re=3,X=!1;const gr=h.getExportsAndPropertiesOfModule(Bt),tr=new Set(Pe.elements.filter(ft=>!Xt(ft)).map(ft=>vS(ft.propertyName||ft.name))),Jn=gr.filter(ft=>ft.escapedName!=="default"&&!tr.has(ft.escapedName));return Ne=so(Ne,Jn),Jn.length||(xe=0),1}function ht(){if(j===void 0)return 0;const Pe=j.kind===19||j.kind===28?ni(j.parent,S1):j.kind===59?ni(j.parent.parent,S1):void 0;if(Pe===void 0)return 0;const gt=new Set(Pe.elements.map(U6));return Ne=Un(h.getTypeAtLocation(Pe).getApparentProperties(),Bt=>!gt.has(Bt.escapedName)),1}function ne(){var Pe;const gt=j&&(j.kind===19||j.kind===28)?ni(j.parent,Jf):void 0;if(!gt)return 0;const Bt=Dn(gt,Rp(Yi,pc));return re=5,X=!1,(Pe=Bt.locals)==null||Pe.forEach((gr,tr)=>{var Jn,ft;Ne.push(gr),(ft=(Jn=Bt.symbol)==null?void 0:Jn.exports)!=null&&ft.has(tr)&&(ce[Ta(gr)]=Hd.OptionalMember)}),1}function Fe(){const Pe=vnt(r,j,ve,o);if(!Pe)return 0;if(re=3,X=!0,xe=j.kind===42?0:ui(Pe)?2:3,!ui(Pe))return 1;const gt=j.kind===27?j.parent.parent:j.parent;let Bt=Tc(gt)?Gd(gt):0;if(j.kind===80&&!Xt(j))switch(j.getText()){case"private":Bt=Bt|2;break;case"static":Bt=Bt|256;break;case"override":Bt=Bt|16;break}if(Zl(gt)&&(Bt|=256),!(Bt&2)){const gr=ui(Pe)&&Bt&16?$A(lh(Pe)):eM(Pe),tr=Ki(gr,Jn=>{const ft=h.getTypeAtLocation(Jn);return Bt&256?ft?.symbol&&h.getPropertiesOfType(h.getTypeOfSymbolAtLocation(ft.symbol,Pe)):ft&&h.getPropertiesOfType(ft)});Ne=so(Ne,te(tr,Pe.members,Bt)),Ye(Ne,(Jn,ft)=>{const Mt=Jn?.valueDeclaration;if(Mt&&Tc(Mt)&&Mt.name&&va(Mt.name)){const jt={kind:512,symbolName:h.symbolToString(Jn)};lt[ft]=jt}})}return 1}function it(Pe){return!!Pe.parent&&to(Pe.parent)&&Pl(Pe.parent.parent)&&(kN(Pe.kind)||L_(Pe))}function dt(Pe){if(Pe){const gt=Pe.parent;switch(Pe.kind){case 21:case 28:return Pl(Pe.parent)?Pe.parent:void 0;default:if(it(Pe))return gt.parent}}}function Lt(Pe){if(Pe){let gt;const Bt=Dn(Pe.parent,gr=>ui(gr)?"quit":Ms(gr)&>===gr.body?!0:(gt=gr,!1));return Bt&&Bt}}function Ue(Pe){if(Pe){const gt=Pe.parent;switch(Pe.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(gt&&(gt.kind===286||gt.kind===287)){if(Pe.kind===32){const Bt=Gc(Pe.pos,r,void 0);if(!gt.typeArguments||Bt&&Bt.kind===44)break}return gt}else if(gt.kind===292)return gt.parent.parent;break;case 11:if(gt&&(gt.kind===292||gt.kind===294))return gt.parent.parent;break;case 20:if(gt&>.kind===295&>.parent&>.parent.kind===292)return gt.parent.parent.parent;if(gt&>.kind===294)return gt.parent.parent;break}}}function Rt(Pe,gt){return r.getLineEndOfPosition(Pe.getEnd())=Pe.pos;case 25:return Bt===208;case 59:return Bt===209;case 23:return Bt===208;case 21:return Bt===300||nt(Bt);case 19:return Bt===267;case 30:return Bt===264||Bt===232||Bt===265||Bt===266||rI(Bt);case 126:return Bt===173&&!ui(gt.parent);case 26:return Bt===170||!!gt.parent&>.parent.kind===208;case 125:case 123:case 124:return Bt===170&&!Pl(gt.parent);case 130:return Bt===277||Bt===282||Bt===275;case 139:case 153:return!kK(Pe);case 80:{if((Bt===277||Bt===282)&&Pe===gt.name&&Pe.text==="type"||Dn(Pe.parent,yi)&&Rt(Pe,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 Bt!==277;case 42:return Yo(Pe.parent)&&!Ml(Pe.parent)}if(az(MK(Pe))&&kK(Pe)||it(Pe)&&(!He(Pe)||kN(MK(Pe))||Xt(Pe)))return!1;switch(MK(Pe)){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 Po(Pe.parent)}if(Dn(Pe.parent,ui)&&Pe===G&&Ot(Pe,o))return!1;const tr=GT(Pe.parent,173);if(tr&&Pe!==G&&ui(G.parent.parent)&&o<=G.end){if(Ot(Pe,G.end))return!1;if(Pe.kind!==64&&(ww(tr)||mF(tr)))return!0}return L_(Pe)&&!Ud(Pe.parent)&&!i_(Pe.parent)&&!((ui(Pe.parent)||gd(Pe.parent)||sl(Pe.parent))&&(Pe!==G||o>G.end))}function Ot(Pe,gt){return Pe.kind!==64&&(Pe.kind===27||!Gf(Pe.end,gt,r))}function nt(Pe){return rI(Pe)&&Pe!==177}function Kt(Pe){if(Pe.kind===9){const gt=Pe.getFullText();return gt.charAt(gt.length-1)==="."}return!1}function Tr(Pe){return Pe.parent.kind===262&&!dO(Pe,r,h)}function Oe(Pe,gt){if(gt.length===0)return Pe;const Bt=new Set,gr=new Set;for(const Jn of gt){if(Jn.kind!==304&&Jn.kind!==305&&Jn.kind!==209&&Jn.kind!==175&&Jn.kind!==178&&Jn.kind!==179&&Jn.kind!==306||Xt(Jn))continue;let ft;if(xg(Jn))Nt(Jn,Bt);else if(Ha(Jn)&&Jn.propertyName)Jn.propertyName.kind===80&&(ft=Jn.propertyName.escapedText);else{const Mt=Oo(Jn);ft=Mt&&qh(Mt)?rM(Mt):void 0}ft!==void 0&&gr.add(ft)}const tr=Pe.filter(Jn=>!gr.has(Jn.escapedName));return B(Bt,tr),tr}function Nt(Pe,gt){const Bt=Pe.expression,gr=h.getSymbolAtLocation(Bt),tr=gr&&h.getTypeOfSymbolAtLocation(gr,Bt),Jn=tr&&tr.properties;Jn&&Jn.forEach(ft=>{gt.add(ft.name)})}function he(){Ne.forEach(Pe=>{if(Pe.flags&16777216){const gt=Ta(Pe);ce[gt]=ce[gt]??Hd.OptionalMember}})}function B(Pe,gt){if(Pe.size!==0)for(const Bt of gt)Pe.has(Bt.name)&&(ce[Ta(Bt)]=Hd.MemberDeclaredBySpreadAssignment)}function Ae(Pe){for(let gt=Pe;gt!gr.has(tr.escapedName)&&!!tr.declarations&&!(Vf(tr)&2)&&!(tr.valueDeclaration&&tu(tr.valueDeclaration)))}function xt(Pe,gt){const Bt=new Set,gr=new Set;for(const Jn of gt)Xt(Jn)||(Jn.kind===292?Bt.add(CM(Jn.name)):KI(Jn)&&Nt(Jn,gr));const tr=Pe.filter(Jn=>!Bt.has(Jn.escapedName));return B(gr,tr),tr}function Xt(Pe){return Pe.getStart(r)<=o&&o<=Pe.getEnd()}}function mnt(e,t,r){var i;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(Wa(o)||ff(o))return o;break;case 42:return Ml(o)?ni(o.parent,Wa):void 0;case 134:return ni(o.parent,Wa);case 80:if(e.text==="async"&&Ud(e.parent))return e.parent.parent;{if(Wa(e.parent.parent)&&(xg(e.parent)||Ud(e.parent)&&ca(r,e.getEnd()).line!==ca(r,t).line))return e.parent.parent;const l=Dn(o,Nc);if(l?.getLastToken(r)===e&&Wa(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Ml(o.parent)||Hf(o.parent)||gp(o.parent))&&Wa(o.parent.parent))return o.parent.parent;if(xg(o)&&Wa(o.parent))return o.parent;const s=Dn(o,Nc);if(e.kind!==59&&s?.getLastToken(r)===e&&Wa(s.parent))return s.parent}}}function DK(e,t){const r=Gc(e,t);return r&&e<=r.end&&(dg(r)||ep(r.kind))?{contextToken:Gc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function n2e(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(C.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"&&uM(u)||u,{symbol:u,origin:rnt(t,e,l)}):void 0}function CK(e,t,r,i,o){if(Ftt(r))return;const s=ktt(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&ik(s.charCodeAt(0))||iM(e))return;const l={name:s,needsConvertPropertyAccess:!1};if(fp(s,t,o?1:0)||e.valueDeclaration&&tu(e.valueDeclaration))return l;if(e.flags&2097152)return{name:s,needsConvertPropertyAccess:!0};switch(i){case 3:return kpe(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:C.assertNever(i)}}var NK=[],r2e=Cu(()=>{const e=[];for(let t=83;t<=166;t++)e.push({name:_a(t),kind:"keyword",kindModifiers:"",sortText:Hd.GlobalsOrKeywords});return e});function i2e(e,t){if(!t)return o2e(e);const r=e+8+1;return NK[r]||(NK[r]=o2e(e).filter(i=>!hnt(jE(i.name))))}function o2e(e){return NK[e]||(NK[e]=r2e().filter(t=>{const r=jE(t.name);switch(e){case 0:return!1;case 1:return s2e(r)||r===138||r===144||r===156||r===145||r===128||xP(r)&&r!==157;case 5:return s2e(r);case 2:return az(r);case 3:return a2e(r);case 4:return kN(r);case 6:return xP(r)||r===87;case 7:return xP(r);case 8:return r===156;default:return C.assertNever(e)}}))}function hnt(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 a2e(e){return e===148}function az(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return O9(e)}}function s2e(e){return e===134||e===135||e===160||e===130||e===152||e===156||!$F(e)&&!az(e)}function MK(e){return He(e)?HE(e)??0:e.kind}function _nt(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(vl(o)||fc(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:_a(132),kind:"keyword",kindModifiers:"",sortText:Hd.GlobalsOrKeywords})}return r}function gnt(e,t){return Dn(e,r=>GR(r)&&QD(r,t)?!0:mh(r)?"quit":!1)}function PK(e,t,r,i){const o=t&&t!==e,s=i.getUnionType(Un(e.flags&1048576?e.types:[e],g=>!i.getPromisedTypeOfPromise(g))),l=o&&!(t.flags&3)?i.getUnionType([s,t]):s,u=ynt(l,r,i);return l.isClass()&&l2e(u)?[]:o?Un(u,d):u;function d(g){return et(g.declarations)?yt(g.declarations,h=>h.parent!==r):!0}}function ynt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Un(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&l2e(i.getApparentProperties())))):e.getApparentProperties()}function l2e(e){return yt(e,t=>!!(Vf(t)&6))}function LK(e,t){return e.isUnion()?C.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):C.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function vnt(e,t,r,i){switch(r.kind){case 353:return ni(r.parent,II);case 1:const o=ni(Zs(ma(r.parent,Yi).statements),II);if(o&&!Es(o,20,e))return o;break;case 81:if(ni(r.parent,Po))return Dn(r,ui);break;case 80:{if(HE(r)||Po(r.parent)&&r.parent.initializer===r)return;if(kK(r))return Dn(r,II)}}if(t){if(r.kind===137||He(t)&&Po(t.parent)&&ui(r))return Dn(t,ui);switch(t.kind){case 64:return;case 27:case 20:return kK(r)&&r.parent.name===r?r.parent.parent:ni(r,II);case 19:case 28:return ni(t.parent,II);default:if(II(r)){if(ca(e,t.getEnd()).line!==ca(e,i).line)return r;const o=ui(t.parent.parent)?az:a2e;return o(t.kind)||t.kind===42||He(t)&&o(HE(t)??0)?t.parent.parent:void 0}return}}}function bnt(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(ku(t))return t;break;case 27:case 28:case 80:if(t.kind===172&&ku(t.parent))return t.parent;break}}function c2e(e,t){if(!e)return;if(Ri(e)&&hF(e.parent))return t.getTypeArgumentConstraint(e);const r=c2e(e.parent,t);if(r)switch(e.kind){case 172:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 194:case 188:case 193:return r}}function kK(e){return e.parent&&sF(e.parent)&&II(e.parent.parent)}function Tnt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&qle(r)&&i===r.getStart(e)+1;case"#":return!!r&&eo(r)&&!!hd(r);case"<":return!!r&&r.kind===30&&(!Nr(r.parent)||d2e(r.parent));case"/":return!!r&&(ds(r)?!!dk(r):r.kind===44&&GS(r.parent));case" ":return!!r&&WM(r)&&r.parent.kind===308;default:return C.assertNever(t)}}function d2e({left:e}){return Wl(e)}function Snt(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 Ent(e){return!!(e.valueDeclaration&&Gd(e.valueDeclaration)&256&&ui(e.valueDeclaration.parent))}function Ant(e,t){const r=t.getContextualType(e);if(r)return r;const i=zm(e.parent);if(Nr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(St(i))return t.getContextualType(i)}function u2e(e,t){var r,i,o;let s,l=!1;const u=d();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ni(u,vl))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ni(u,zc))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&f2e(u,e),replacementSpan:Int(u)};function d(){const g=e.parent;if(zc(g)){const h=g.getLastToken(t);if(He(e)&&h!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,jpe(g.moduleReference)?g:void 0}if(f2e(g,e)&&m2e(g.parent))return g;if(n_(g)||Ig(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),m2e(g))if(e.kind===20||e.kind===80)l=!0,s=161;else return g.parent.parent;return}if(fc(g)&&e.kind===42||Jf(g)&&e.kind===20){l=!0,s=161;return}if(WM(e)&&Yi(g))return s=156,e;if(WM(e)&&vl(g))return s=156,jpe(g.moduleSpecifier)?g:void 0}}function Int(e){var t;if(!e)return;const r=Dn(e,Rp(vl,zc,o_))??e,i=r.getSourceFile();if(d1(r,i))return Fu(r,i);C.assert(r.kind!==102&&r.kind!==277);const o=r.kind===273||r.kind===352?p2e((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(d1(s,i))return hv(s)}function p2e(e){var t;return hn((t=ni(e,n_))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&vI(r.name.text)&&((i=Gc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function f2e(e,t){return Su(e)&&(e.isTypeOnly||t===e.name&&c7(t))}function m2e(e){if(!jpe(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(n_(e)){const t=p2e(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function jpe(e){var t;return Wl(e)?!0:!((t=ni(uy(e)?e.expression:e,ds))!=null&&t.text)}function xnt(e,t){if(!e)return;let r=Dn(e,i=>TS(i)||h2e(i)||Qo(i)?"quit":(to(i)||sl(i))&&!Cb(i.parent));return r||(r=Dn(t,i=>TS(i)||h2e(i)||Qo(i)?"quit":yi(i))),r}function Rnt(e){if(!e)return!1;let t=e,r=e.parent;for(;r;){if(sl(r))return r.default===t||t.kind===64;t=r,r=r.parent}return!1}function h2e(e){return e.parent&&Xs(e.parent)&&(e.parent.body===e||e.kind===39)}function Upe(e,t,r=new Set){return i(e)||i(xd(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&gm(r,o)&&t.getExportsOfModule(o).some(s=>Upe(s,t,r))}}function Dnt(e,t){const r=xd(e,t).declarations;return!!et(r)&&Vn(r,I7)}function _2e(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let l=0;lLnt,getStringLiteralCompletions:()=>Mnt});var g2e={directory:0,script:1,"external module name":2};function Hpe(){const e=new Map;function t(r){const i=e.get(r.name);(!i||g2e[i.kind]({name:k_(A.value,y),kindModifiers:"",kind:"string",sortText:Hd.LocationPriority,replacementSpan:Dq(t,d),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:h,entries:E,defaultCommitCharacters:B1(e.isNewIdentifier)}}default:return C.assertNever(e)}}function Lnt(e,t,r,i,o,s,l,u){if(!i||!ds(i))return;const d=b2e(t,i,r,o,s,u);return d&&knt(e,i,d,t,o.getTypeChecker(),l)}function knt(e,t,r,i,o,s){switch(r.kind){case 0:{const l=hn(r.paths,u=>u.name===e);return l&&oz(e,v2e(l.extension),l.kind,[yf(e)])}case 1:{const l=hn(r.symbols,u=>u.name===e);return l&&Gpe(l,l.name,o,i,t,s)}case 2:return hn(r.types,l=>l.value===e)?oz(e,"","string",[yf(e)]):void 0;default:return C.assertNever(r)}}function y2e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:v2e(u),sortText:Hd.LocationPriority,replacementSpan:l})),defaultCommitCharacters:B1(!0)}}function v2e(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 C.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return C.assertNever(e)}}function b2e(e,t,r,i,o,s){const l=i.getTypeChecker(),u=qpe(t.parent);switch(u.kind){case 202:{const G=qpe(u.parent);return G.kind===206?{kind:0,paths:E2e(e,t,i,o,s)}:d(G)}case 304:return Wa(u.parent)&&u.name===t?Wnt(l,u.parent):g()||g(0);case 213:{const{expression:G,argumentExpression:j}=u;return t===us(j)?T2e(l.getTypeAtLocation(G)):void 0}case 214:case 215:case 292:if(!Znt(t)&&!Qu(u)){const G=KO.getArgumentInfoForCompletions(u.kind===292?u.parent:t,r,e,l);return G&&Ont(G.invocation,t,G,l)||g(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:E2e(e,t,i,o,s)};case 297:const h=D7(l,u.parent.clauses),y=g();return y?{kind:2,types:y.types.filter(G=>!h.hasValue(G.value)),isNewIdentifier:!1}:void 0;case 277:case 282:const A=u;if(A.propertyName&&t!==A.propertyName)return;const R=A.parent,{moduleSpecifier:N}=R.kind===276?R.parent.parent:R.parent;if(!N)return;const P=l.getSymbolAtLocation(N);if(!P)return;const k=l.getExportsAndPropertiesOfModule(P),W=new Set(R.elements.map(G=>vS(G.propertyName||G.name)));return{kind:1,symbols:k.filter(G=>G.escapedName!=="default"&&!W.has(G.escapedName)),hasIndexSignature:!1};case 227:if(u.operatorToken.kind===103){const G=l.getTypeAtLocation(u.right);return{kind:1,symbols:(G.isUnion()?l.getAllPossiblePropertiesOfTypes(G.types):G.getApparentProperties()).filter(J=>!J.valueDeclaration||!tu(J.valueDeclaration)),hasIndexSignature:!1}}return g(0);default:return g()||g(0)}function d(h){switch(h.kind){case 234:case 184:{const A=Dn(u,R=>R.parent===h);return A?{kind:2,types:OK(l.getTypeArgumentConstraint(A)),isNewIdentifier:!1}:void 0}case 200:const{indexType:y,objectType:E}=h;return QD(y,r)?T2e(l.getTypeFromTypeNode(E)):void 0;case 193:{const A=d(qpe(h.parent));if(!A)return;const R=wnt(h,u);return A.kind===1?{kind:1,symbols:A.symbols.filter(N=>!jn(R,N.name)),hasIndexSignature:A.hasIndexSignature}:{kind:2,types:A.types.filter(N=>!jn(R,N.value)),isNewIdentifier:!1}}default:return}}function g(h=4){const y=OK(g7(t,l,h));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function qpe(e){switch(e.kind){case 197:return hk(e);case 218:return zm(e);default:return e}}function wnt(e,t){return Ui(e.types,r=>r!==t&&dv(r)&&ka(r.literal)?r.literal.text:void 0)}function Ont(e,t,r,i){let o=!1;const s=new Set,l=nu(e)?C.checkDefined(Dn(t.parent,i_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),d=Ki(u,g=>{if(!au(g)&&r.argumentCount>g.parameters.length)return;let h=g.getTypeParameterAtPosition(r.argumentIndex);if(nu(e)){const y=i.getTypeOfPropertyOfType(h,Kk(l.name));y&&(h=y)}return o=o||!!(h.flags&4),OK(h,s)});return et(d)?{kind:2,types:d,isNewIdentifier:o}:void 0}function T2e(e){return e&&{kind:1,symbols:Un(e.getApparentProperties(),t=>!(t.valueDeclaration&&tu(t.valueDeclaration))),hasIndexSignature:Xq(e)}}function Wnt(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:PK(r,i,t,e),hasIndexSignature:Xq(r)}}function OK(e,t=new Set){return e?(e=Pq(e),e.isUnion()?Ki(e.types,r=>OK(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&gm(t,e.value)?[e]:ae):ae}function HP(e,t,r){return{name:e,kind:t,extension:r}}function Jpe(e){return HP(e,"directory",void 0)}function S2e(e,t,r){const i=Xnt(e,t),o=e.length===0?void 0:Id(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(Js)||s.includes(G8)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function E2e(e,t,r,i,o){return S2e(t.text,t.getStart(e)+1,Fnt(e,t,r,i,o))}function Fnt(e,t,r,i,o){const s=Bd(t.text),l=ds(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,d=ci(u),g=r.getCompilerOptions(),h=r.getTypeChecker(),y=u0(r,i),E=Kpe(g,1,e,h,o,l);return Ynt(s)||!g.baseUrl&&!g.paths&&(Cp(s)||QZ(s))?znt(s,d,r,i,y,u,E):jnt(s,d,l,r,i,y,E)}function Kpe(e,t,r,i,o,s){return{extensionsToSearch:la(Bnt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function znt(e,t,r,i,o,s,l){const u=r.getCompilerOptions();return u.rootDirs?Vnt(u.rootDirs,e,t,l,r,i,o,s):Co(VO(e,t,l,r,i,o,!0,s).values())}function Bnt(e,t){const r=t?Ui(t.getAmbientModules(),s=>{const l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...vM(e),r],o=ru(e);return d7(o)?Gk(e,i):i}function Gnt(e,t,r,i){e=e.map(s=>Uc(ya(Cp(s)?s:Qr(t,s))));const o=Hn(e,s=>um(s,r,t,i)?r.substr(s.length):void 0);return lS([...e.map(s=>Qr(s,o)),r].map(s=>Xy(s)),uS,Wd)}function Vnt(e,t,r,i,o,s,l,u){const g=o.getCompilerOptions().project||s.getCurrentDirectory(),h=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),y=Gnt(e,g,r,h);return lS(Ki(y,E=>Co(VO(t,E,i,o,s,l,!0,u).values())),(E,A)=>E.name===A.name&&E.kind===A.kind&&E.extension===A.extension)}function VO(e,t,r,i,o,s,l,u,d=Hpe()){var g;e===void 0&&(e=""),e=Bd(e),rb(e)||(e=ci(e)),e===""&&(e="."+Js),e=Uc(e);const h=ib(t,e),y=rb(h)?h:ci(h);if(!l){const N=Yle(y,o);if(N){const k=sD(N,o).typesVersions;if(typeof k=="object"){const W=(g=V4(k))==null?void 0:g.paths;if(W){const O=ci(N),G=h.slice(Uc(O).length);if(I2e(d,G,O,r,i,o,s,W))return d}}}}const E=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames());if(!T7(o,y))return d;const A=Qq(o,y,r.extensionsToSearch,void 0,["./*"]);if(A)for(let N of A){if(N=ya(N),u&&Zg(N,u,t,E)===0)continue;const{name:P,extension:k}=A2e(xc(N),i,r,!1);d.add(HP(P,"script",k))}const R=b7(o,y);if(R)for(const N of R){const P=xc(ya(N));P!=="@types"&&d.add(Jpe(P))}return d}function A2e(e,t,r,i){const o=hy.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Sg(o)};if(r.referenceKind===0)return{name:e,extension:Sg(e)};let s=hy.getModuleSpecifierPreferences({importModuleSpecifierEnding:r.endingPreference},t,t.getCompilerOptions(),r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Ql(e,Bk))return{name:e,extension:Sg(e)};const u=hy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return u?{name:ov(e,u),extension:u}:{name:e,extension:Sg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Ql(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:bu(e),extension:Sg(e)};const l=hy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return l?{name:ov(e,l),extension:l}:{name:e,extension:Sg(e)}}function I2e(e,t,r,i,o,s,l,u){const d=h=>u[h],g=(h,y)=>{const E=NI(h),A=NI(y),R=typeof E=="object"?E.prefix.length:h.length,N=typeof A=="object"?A.prefix.length:y.length;return js(N,R)};return x2e(e,!1,!1,t,r,i,o,s,l,Wh(u),d,g)}function x2e(e,t,r,i,o,s,l,u,d,g,h,y){let E=[],A;for(const R of g){if(R===".")continue;const N=R.replace(/^\.\//,"")+((t||r)&&el(R,"/")?"*":""),P=h(R);if(P){const k=NI(N);if(!k)continue;const W=typeof k=="object"&&N8(k,i);W&&(A===void 0||y(N,A)===-1)&&(A=N,E=E.filter(G=>!G.matchedPattern)),(typeof k=="string"||A===void 0||y(N,A)!==1)&&E.push({matchedPattern:W,results:Unt(N,P,i,o,s,t,r,l,u,d).map(({name:G,kind:j,extension:J})=>HP(G,j,J))})}}return E.forEach(R=>R.results.forEach(N=>e.add(N))),A!==void 0}function jnt(e,t,r,i,o,s,l){const u=i.getTypeChecker(),d=i.getCompilerOptions(),{baseUrl:g,paths:h}=d,y=Hpe(),E=ru(d);if(g){const N=ya(Qr(o.getCurrentDirectory(),g));VO(e,N,l,i,o,s,!1,void 0,y)}if(h){const N=o6(d,o);I2e(y,e,N,l,i,o,s,h)}const A=D2e(e);for(const N of qnt(e,A,u))y.add(HP(N,"external module name",void 0));if(M2e(i,o,s,t,A,l,y),d7(E)){let N=!1;if(A===void 0)for(const P of Knt(o,t)){const k=HP(P,"external module name",void 0);y.has(k.name)||(N=!0,y.add(k))}if(!N){const P=wk(d),k=Ok(d);let W=!1;const O=j=>{if(k&&!W){const J=Qr(j,"package.json");if(W=kP(o,J)){const Z=sD(J,o);R(Z.imports,e,j,!1,!0)}}};let G=j=>{const J=Qr(j,"node_modules");T7(o,J)&&VO(e,J,l,i,o,s,!1,void 0,y),O(j)};if(A&&P){const j=G;G=J=>{const Z=zd(e);Z.shift();let q=Z.shift();if(!q)return j(J);if(po(q,"@")){const K=Z.shift();if(!K)return j(J);q=Qr(q,K)}if(k&&po(q,"#"))return O(J);const ye=Qr(J,"node_modules",q),ie=Qr(ye,"package.json");if(kP(o,ie)){const K=sD(ie,o),pe=Z.join("/")+(Z.length&&rb(e)?"/":"");R(K.exports,pe,ye,!0,!1);return}return j(J)}}W_(o,t,G)}}return Co(y.values());function R(N,P,k,W,O){if(typeof N!="object"||N===null)return;const G=Wh(N),j=kb(d,r);x2e(y,W,O,P,k,l,i,o,s,G,J=>{const Z=R2e(N[J],j);if(Z!==void 0)return $A(el(J,"/")&&el(Z,"/")?Z+"*":Z)},pU)}}function R2e(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Mo(e)){for(const r in e)if(r==="default"||t.includes(r)||Mw(t,r)){const i=e[r];return R2e(i,t)}}}function D2e(e){return Xpe(e)?rb(e)?e:ci(e):void 0}function Unt(e,t,r,i,o,s,l,u,d,g){const h=NI(e);if(!h)return ae;if(typeof h=="string")return E(e,"script");const y=FB(r,h.prefix);if(y===void 0)return el(e,"/*")?E(h.prefix,"directory"):Ki(t,R=>{var N;return(N=C2e("",i,R,o,s,l,u,d,g))==null?void 0:N.map(({name:P,...k})=>({name:h.prefix+P+h.suffix,...k}))});return Ki(t,A=>C2e(y,i,A,o,s,l,u,d,g));function E(A,R){return po(A,r)?[{name:Xy(A),kind:R,extension:void 0}]:ae}}function C2e(e,t,r,i,o,s,l,u,d){if(!u.readDirectory)return;const g=NI(r);if(g===void 0||Bo(g))return;const h=ib(g.prefix),y=rb(g.prefix)?h:ci(h),E=rb(g.prefix)?"":xc(h),A=Xpe(e),R=A?rb(e)?e:ci(e):void 0,N=()=>d.getCommonSourceDirectory(),P=!l1(d),k=l.getCompilerOptions().outDir,W=l.getCompilerOptions().declarationDir,O=A?Qr(y,E+R):y,G=ya(Qr(t,O)),j=s&&k&&HG(G,P,k,N),J=s&&W&&HG(G,P,W,N),Z=ya(g.suffix),q=Z&&i6("_"+Z),ye=Z?UG("_"+Z):void 0,ie=[q&&ov(Z,q),...ye?ye.map(X=>ov(Z,X)):[],Z].filter(Bo),K=Z?ie.map(X=>"**/*"+X):["./*"],pe=(o||s)&&el(r,"/*");let de=fe(G);return j&&(de=so(de,fe(j))),J&&(de=so(de,fe(J))),Z||(de=so(de,ve(G)),j&&(de=so(de,ve(j))),J&&(de=so(de,ve(J)))),de;function fe(X){const Ce=A?X:Uc(X)+E;return Ui(Qq(u,X,i.extensionsToSearch,void 0,K),Je=>{const Se=xe(Je,Ce);if(Se){if(Xpe(Se))return Jpe(zd(N2e(Se))[1]);const{name:re,extension:be}=A2e(Se,l,i,pe);return HP(re,"script",be)}})}function ve(X){return Ui(b7(u,X),Ce=>Ce==="node_modules"?void 0:Jpe(Ce))}function xe(X,Ce){return Hn(ie,Je=>{const Se=Hnt(ya(X),Ce,Je);return Se===void 0?void 0:N2e(Se)})}}function Hnt(e,t,r){return po(e,t)&&el(e,r)?e.slice(t.length,e.length-r.length):void 0}function N2e(e){return e[0]===Js?e.slice(1):e}function qnt(e,t,r){const o=r.getAmbientModules().map(s=>_m(s.name)).filter(s=>po(s,e)&&!s.includes("*"));if(t!==void 0){const s=Uc(t);return o.map(l=>pN(l,s))}return o}function Jnt(e,t,r,i,o){const s=r.getCompilerOptions(),l=Fi(e,t),u=lg(e.text,l.pos),d=u&&hn(u,P=>t>=P.pos&&t<=P.end);if(!d)return;const g=e.text.slice(d.pos,t),h=$nt.exec(g);if(!h)return;const[,y,E,A]=h,R=ci(e.path),N=E==="path"?VO(A,R,Kpe(s,0,e),r,i,o,!0,e.path):E==="types"?M2e(r,i,o,R,D2e(A),Kpe(s,1,e)):C.fail();return S2e(A,d.pos+y.length,Co(N.values()))}function M2e(e,t,r,i,o,s,l=Hpe()){const u=e.getCompilerOptions(),d=new Map,g=S7(()=>ZM(u,t))||ae;for(const y of g)h(y);for(const y of Zq(i,t)){const E=Qr(ci(y),"node_modules/@types");h(E)}return l;function h(y){if(T7(t,y))for(const E of b7(t,y)){const A=Pw(E);if(!(u.types&&!jn(u.types,A)))if(o===void 0)d.has(A)||(l.add(HP(A,"external module name",void 0)),d.set(A,!0));else{const R=Qr(y,E),N=bV(o,A,ay(t));N!==void 0&&VO(N,R,s,e,t,r,!1,void 0,l)}}}}function Knt(e,t){if(!e.readFile||!e.fileExists)return ae;const r=[];for(const i of Zq(t,e)){const o=sD(i,e);for(const s of Qnt){const l=o[s];if(l)for(const u in l)Rs(l,u)&&!po(u,"@types/")&&r.push(u)}}return r}function Xnt(e,t){const r=Math.max(e.lastIndexOf(Js),e.lastIndexOf(G8)),i=r!==-1?r+1:0,o=e.length-i;return o===0||fp(e.substr(i,o),99)?void 0:Id(t+i,o)}function Ynt(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}var $nt=/^(\/\/\/\s*Tx,DefinitionKind:()=>F2e,EntryKind:()=>z2e,ExportKind:()=>P2e,FindReferencesUse:()=>B2e,ImportExport:()=>L2e,createImportTracker:()=>Ype,findModuleReferences:()=>k2e,findReferenceOrRenameEntries:()=>frt,findReferencedSymbols:()=>drt,getContextNode:()=>G1,getExportInfo:()=>$pe,getImplementationsAtPosition:()=>prt,getImportOrExportSymbol:()=>W2e,getReferenceEntriesForNode:()=>V2e,isContextWithStartAndEndNode:()=>Zpe,isDeclarationOfSymbol:()=>J2e,isWriteAccessForReference:()=>tfe,toContextSpan:()=>efe,toHighlightSpan:()=>brt,toReferenceEntry:()=>H2e,toRenameLocation:()=>hrt});function Ype(e,t,r,i){const o=rrt(e,r,i);return(s,l,u)=>{const{directImports:d,indirectUsers:g}=ert(e,t,o,l,r,i);return{indirectUsers:g,...trt(d,s,l.exportKind,r,u)}}}var P2e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(P2e||{}),L2e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(L2e||{});function ert(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){const u=eC(),d=eC(),g=[],h=!!i.globalExports,y=h?void 0:[];return A(i),{directImports:g,indirectUsers:E()};function E(){if(h)return e;if(i.declarations)for(const O of i.declarations)bS(O)&&t.has(O.getSourceFile().fileName)&&k(O);return y.map(Wn)}function A(O){const G=W(O);if(G){for(const j of G)if(u(j))switch(l&&l.throwIfCancellationRequested(),j.kind){case 214:if(Qu(j)){R(j);break}if(!h){const Z=j.parent;if(o===2&&Z.kind===261){const{name:q}=Z;if(q.kind===80){g.push(q);break}}}break;case 80:break;case 272:P(j,j.name,di(j,32),!1);break;case 273:case 352:g.push(j);const J=j.importClause&&j.importClause.namedBindings;J&&J.kind===275?P(j,J.name,!1,!0):!h&&o1(j)&&k(sz(j));break;case 279:j.exportClause?j.exportClause.kind===281?k(sz(j),!0):g.push(j):A(lrt(j,s));break;case 206:!h&&j.isTypeOf&&!j.qualifier&&N(j)&&k(j.getSourceFile(),!0),g.push(j);break;default:C.failBadSyntaxKind(j,"Unexpected import kind.")}}}function R(O){const G=Dn(O,WK)||O.getSourceFile();k(G,!!N(O,!0))}function N(O,G=!1){return Dn(O,j=>G&&WK(j)?"quit":Tm(j)&&yt(j.modifiers,zI))}function P(O,G,j,J){if(o===2)J||g.push(O);else if(!h){const Z=sz(O);C.assert(Z.kind===308||Z.kind===268),j||nrt(Z,G,s)?k(Z,!0):k(Z)}}function k(O,G=!1){if(C.assert(!h),!d(O)||(y.push(O),!G))return;const J=s.getMergedSymbol(O.symbol);if(!J)return;C.assert(!!(J.flags&1536));const Z=W(J);if(Z)for(const q of Z)e_(q)||k(sz(q),!0)}function W(O){return r.get(Ta(O).toString())}}function trt(e,t,r,i,o){const s=[],l=[];function u(E,A){s.push([E,A])}if(e)for(const E of e)d(E);return{importSearches:s,singleReferences:l};function d(E){if(E.kind===272){Qpe(E)&&g(E.name);return}if(E.kind===80){g(E);return}if(E.kind===206){if(E.qualifier){const N=Pu(E.qualifier);N.escapedText===Ol(t)&&l.push(N)}else r===2&&l.push(E.argument.literal);return}if(E.moduleSpecifier.kind!==11)return;if(E.kind===279){E.exportClause&&Jf(E.exportClause)&&h(E.exportClause);return}const{name:A,namedBindings:R}=E.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 275:g(R.name);break;case 276:(r===0||r===1)&&h(R);break;default:C.assertNever(R)}if(A&&(r===1||r===2)&&(!o||A.escapedText===u7(t))){const N=i.getSymbolAtLocation(A);u(A,N)}}function g(E){r===2&&(!o||y(E.escapedText))&&u(E,i.getSymbolAtLocation(E))}function h(E){if(E)for(const A of E.elements){const{name:R,propertyName:N}=A;if(y(vS(N||R)))if(N)l.push(N),(!o||vS(R)===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{const P=A.kind===282&&A.propertyName?i.getExportSpecifierLocalTargetSymbol(A):i.getSymbolAtLocation(R);u(R,P)}}}function y(E){return E===t.escapedName||r!==0&&E==="default"}}function nrt(e,t,r){const i=r.getSymbolAtLocation(t);return!!w2e(e,o=>{if(!fc(o))return;const{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Jf(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function k2e(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if(u?.kind===308){for(const d of l.referencedFiles)e.getSourceFileFromReference(l,d)===u&&o.push({kind:"reference",referencingFile:l,ref:d});for(const d of l.typeReferenceDirectives){const g=(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(d,l))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:d})}}O2e(l,(d,g)=>{s.getSymbolAtLocation(g)===r&&o.push(Os(d)?{kind:"implicit",literal:g,referencingFile:l}:{kind:"import",literal:g})})}return o}function rrt(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),O2e(o,(s,l)=>{const u=t.getSymbolAtLocation(l);if(u){const d=Ta(u).toString();let g=i.get(d);g||i.set(d,g=[]),g.push(s)}});return i}function w2e(e,t){return Ye(e.kind===308?e.statements:e.body.statements,r=>t(r)||WK(r)&&Ye(r.body&&r.body.statements,t))}function O2e(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t($N(r),r);else w2e(e,r=>{switch(r.kind){case 279:case 273:{const i=r;i.moduleSpecifier&&ka(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 272:{const i=r;Qpe(i)&&t(i,i.moduleReference.expression);break}}})}function W2e(e,t,r,i){return i?o():o()||s();function o(){var d;const{parent:g}=e,h=g.parent;if(t.exportSymbol)return g.kind===212?(d=t.declarations)!=null&&d.some(A=>A===g)&&Nr(h)?E(h,!1):void 0:l(t.exportSymbol,u(g));{const A=ort(g,e);if(A&&di(A,32))return zc(A)&&A.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(A.name)}:l(t,u(A));if(O_(g))return l(t,0);if(ll(g))return y(g);if(ll(h))return y(h);if(Nr(g))return E(g,!0);if(Nr(h))return E(h,!0);if(I1(g)||pj(g))return l(t,0)}function y(A){if(!A.symbol.parent)return;const R=A.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:A.symbol.parent,exportKind:R}}}function E(A,R){let N;switch(ac(A)){case 1:N=0;break;case 2:N=2;break;default:return}const P=R?r.getSymbolAtLocation(pV(ma(A.left,Ks))):t;return P&&l(P,N)}}function s(){if(!art(e))return;let g=r.getImmediateAliasedSymbol(t);if(!g||(g=srt(g,r),g.escapedName==="export="&&(g=irt(g,r),g===void 0)))return;const h=u7(g);if(h===void 0||h==="default"||h===t.escapedName)return{kind:0,symbol:g}}function l(d,g){const h=$pe(d,g,r);return h&&{kind:1,symbol:d,exportInfo:h}}function u(d){return di(d,2048)?1:0}}function irt(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=C.checkDefined(e.valueDeclaration);if(ll(o))return(r=ni(o.expression,ah))==null?void 0:r.symbol;if(Nr(o))return(i=ni(o.right,ah))==null?void 0:i.symbol;if(Yi(o))return o.symbol}function ort(e,t){const r=yi(e)?e:Ha(e)?UE(e):void 0;return r?e.name!==t||jS(r.parent)?void 0:sc(r.parent.parent)?r.parent.parent:void 0:e}function art(e){const{parent:t}=e;switch(t.kind){case 272:return t.name===e&&Qpe(t);case 277:return!t.propertyName;case 274:case 275:return C.assert(t.name===e),!0;case 209:return Ir(e)&&SS(t.parent.parent);default:return!1}}function $pe(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return sI(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function srt(e,t){if(e.declarations)for(const r of e.declarations){if(iu(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(qr(r)&&gg(r.expression)&&!eo(r.name))return t.getSymbolAtLocation(r);if(Ud(r)&&Nr(r.parent.parent)&&ac(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function lrt(e,t){return t.getMergedSymbol(sz(e).symbol)}function sz(e){if(e.kind===214||e.kind===352)return e.getSourceFile();const{parent:t}=e;return t.kind===308?t:(C.assert(t.kind===269),ma(t.parent,WK))}function WK(e){return e.kind===268&&e.name.kind===11}function Qpe(e){return e.moduleReference.kind===284&&e.moduleReference.expression.kind===11}var F2e=(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))(F2e||{}),z2e=(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))(z2e||{});function yy(e,t=1){return{kind:t,node:e.name||e,context:crt(e)}}function Zpe(e){return e&&e.kind===void 0}function crt(e){if(rd(e))return G1(e);if(e.parent){if(!rd(e.parent)&&!ll(e.parent)){if(Ir(e)){const r=Nr(e.parent)?e.parent:Ks(e.parent)&&Nr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&ac(r)!==0)return G1(r)}if(ph(e.parent)||GS(e.parent))return e.parent.parent;if(E1(e.parent)||Mb(e.parent)||MN(e.parent))return e.parent;if(ds(e)){const r=dk(e);if(r){const i=Dn(r,o=>rd(o)||Vi(o)||GR(o));return rd(i)?G1(i):i}}const t=Dn(e,va);return t?G1(t.parent):void 0}if(e.parent.name===e||Pl(e.parent)||ll(e.parent)||(cb(e.parent)||Ha(e.parent))&&e.parent.propertyName===e||e.kind===90&&di(e.parent,2080))return G1(e.parent)}}function G1(e){if(e)switch(e.kind){case 261:return!_d(e.parent)||e.parent.declarations.length!==1?e:sc(e.parent.parent)?e.parent.parent:YE(e.parent.parent)?G1(e.parent.parent):e.parent;case 209:return G1(e.parent.parent);case 277:return e.parent.parent.parent;case 282:case 275:return e.parent.parent;case 274:case 281:return e.parent;case 227:return od(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return mv(e.parent)?G1(Dn(e.parent,t=>Nr(t)||YE(t))):e;case 256:return{start:hn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function efe(e,t,r){if(!r)return;const i=Zpe(r)?cz(r.start,t,r.end):cz(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}var B2e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(B2e||{});function drt(e,t,r,i,o){const s=ip(i,o),l={use:1},u=Tx.getReferencedSymbolsForNode(o,s,e,r,t,l),d=e.getTypeChecker(),g=Tx.getAdjustedNode(s,l),h=urt(g)?d.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:Ui(u,({definition:y,references:E})=>y&&{definition:d.runWithCancellationToken(t,A=>mrt(y,A,s)),references:E.map(A=>_rt(A,h))})}function urt(e){return e.kind===90||!!ZN(e)||_k(e)||e.kind===137&&Pl(e.parent)}function prt(e,t,r,i,o){const s=ip(i,o);let l;const u=G2e(e,t,r,s,o);if(s.parent.kind===212||s.parent.kind===209||s.parent.kind===213||s.kind===108)l=u&&[...u];else if(u){const g=s2(u),h=new Set;for(;!g.isEmpty();){const y=g.dequeue();if(!gm(h,ls(y.node)))continue;l=Bn(l,y);const E=G2e(e,t,r,y.node,y.node.pos);E&&g.enqueue(...E)}}const d=e.getTypeChecker();return Vt(l,g=>yrt(g,d))}function G2e(e,t,r,i,o){if(i.kind===308)return;const s=e.getTypeChecker();if(i.parent.kind===305){const l=[];return Tx.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(yy(u))),l}else if(i.kind===108||mp(i.parent)){const l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[yy(l.valueDeclaration)]}else return V2e(o,i,e,r,t,{implementations:!0,use:1})}function frt(e,t,r,i,o,s,l){return Vt(j2e(Tx.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function V2e(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return j2e(Tx.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function j2e(e){return e&&Ki(e,t=>t.references)}function mrt(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:h}=e,{displayParts:y,kind:E}=U2e(h,t,r),A=y.map(P=>P.text).join(""),R=h.declarations&&Ic(h.declarations),N=R?Oo(R)||R:r;return{...lz(N),name:A,kind:E,displayParts:y,context:G1(R)}}case 1:{const{node:h}=e;return{...lz(h),name:h.text,kind:"label",displayParts:[yp(h.text,17)]}}case 2:{const{node:h}=e,y=_a(h.kind);return{...lz(h),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:h}=e,y=t.getSymbolAtLocation(h),E=y&&yv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,h.getSourceFile(),O1(h),h).displayParts||[yf("this")];return{...lz(h),name:"this",kind:"var",displayParts:E}}case 4:{const{node:h}=e;return{...lz(h),name:h.text,kind:"var",displayParts:[yp(Al(h),8)]}}case 5:return{textSpan:hv(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[yp(`"${e.reference.fileName}"`,8)]};default:return C.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:d,context:g}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:d,...efe(s,o,g)}}function lz(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:cz(va(e)?e.expression:e,t)}}function U2e(e,t,r){const i=Tx.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Ic(e.declarations)||r,{displayParts:s,symbolKind:l}=yv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function hrt(e,t,r,i,o){return{...FK(e),...i&&grt(e,t,r,o)}}function _rt(e,t){const r=H2e(e);return t?{...r,isDefinition:e.kind!==0&&J2e(e.node,t)}:r}function H2e(e){const t=FK(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:tfe(i),isInString:r===2?!0:void 0}}function FK(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=cz(e.node,t);return{textSpan:r,fileName:t.fileName,...efe(r,t,e.context)}}}function grt(e,t,r,i){if(e.kind!==0&&(He(t)||ds(t))){const{node:o,kind:s}=e,l=o.parent,u=t.text,d=Ud(l);if(d||hO(l)&&l.name===o&&l.dotDotDotToken===void 0){const g={prefixText:u+": "},h={suffixText:": "+u};if(s===3)return g;if(s===4)return h;if(d){const y=l.parent;return Wa(y)&&Nr(y.parent)&&gg(y.parent.left)?g:h}else return g}else if(Su(l)&&!l.propertyName){const g=iu(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return jn(g.declarations,l)?{prefixText:u+" as "}:Sm}else if(iu(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&np(e.node)&&Ks(e.node.parent)){const o=Oq(i);return{prefixText:o,suffixText:o}}return Sm}function yrt(e,t){const r=FK(e);if(e.kind!==0){const{node:i}=e;return{...r,...vrt(i,t)}}else return{...r,kind:"",displayParts:[]}}function vrt(e,t){const r=t.getSymbolAtLocation(rd(e)&&e.name?e.name:e);return r?U2e(r,t,e):e.kind===211?{kind:"interface",displayParts:[su(21),yf("object literal"),su(22)]}:e.kind===232?{kind:"local class",displayParts:[su(21),yf("anonymous local class"),su(22)]}:{kind:QS(e),displayParts:[]}}function brt(e){const t=FK(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=tfe(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 cz(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return ds(e)&&o-i>2&&(C.assert(r===void 0),i+=1,o-=1),r?.kind===270&&(o=r.getFullStart()),oc(i,o)}function q2e(e){return e.kind===0?e.textSpan:cz(e.node,e.node.getSourceFile())}function tfe(e){const t=ZN(e);return!!t&&Trt(t)||e.kind===90||AI(e)}function J2e(e,t){var r;if(!t)return!1;const i=ZN(e)||(e.kind===90?e.parent:_k(e)||e.kind===137&&Pl(e.parent)?e.parent.parent:void 0),o=i&&Nr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function Trt(e){if(e.flags&33554432)return!0;switch(e.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!mv(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||jS(e.parent);case 174:case 172:case 349:case 342:return!1;default:return C.failBadSyntaxKind(e)}}var Tx;(e=>{function t(ot,Ft,le,ht,ne,Fe={},it=new Set(ht.map(dt=>dt.fileName))){var dt,Lt;if(Ft=r(Ft,Fe),Yi(Ft)){const Tr=pC.getReferenceAtPosition(Ft,ot,le);if(!Tr?.file)return;const Oe=le.getTypeChecker().getMergedSymbol(Tr.file.symbol);if(Oe)return g(le,Oe,!1,ht,it);const Nt=le.getFileIncludeReasons();return Nt?[{definition:{type:5,reference:Tr.reference,file:Ft},references:o(Tr.file,Nt,le)||ae}]:void 0}if(!Fe.implementations){const Tr=y(Ft,ht,ne);if(Tr)return Tr}const Ue=le.getTypeChecker(),Rt=Ue.getSymbolAtLocation(Pl(Ft)&&Ft.parent.name||Ft);if(!Rt){if(!Fe.implementations&&ds(Ft)){if(p7(Ft)){const Tr=le.getFileIncludeReasons(),Oe=(Lt=(dt=le.getResolvedModuleFromModuleSpecifier(Ft))==null?void 0:dt.resolvedModule)==null?void 0:Lt.resolvedFileName,Nt=Oe?le.getSourceFile(Oe):void 0;if(Nt)return[{definition:{type:4,node:Ft},references:o(Nt,Tr,le)||ae}]}return Ni(Ft,ht,Ue,ne)}return}if(Rt.escapedName==="export=")return g(le,Rt.parent,!1,ht,it);const It=l(Rt,le,ht,ne,Fe,it);if(It&&!(Rt.flags&33554432))return It;const Ot=s(Ft,Rt,Ue),nt=Ot&&l(Ot,le,ht,ne,Fe,it),Kt=E(Rt,Ft,ht,it,Ue,ne,Fe);return u(le,It,Kt,nt)}e.getReferencedSymbolsForNode=t;function r(ot,Ft){return Ft.use===1?ot=Tq(ot):Ft.use===2&&(ot=n7(ot)),ot}e.getAdjustedNode=r;function i(ot,Ft,le,ht=new Set(le.map(ne=>ne.fileName))){var ne,Fe;const it=(ne=Ft.getSourceFile(ot))==null?void 0:ne.symbol;if(it)return((Fe=g(Ft,it,!1,le,ht)[0])==null?void 0:Fe.references)||ae;const dt=Ft.getFileIncludeReasons(),Lt=Ft.getSourceFile(ot);return Lt&&dt&&o(Lt,dt,Ft)||ae}e.getReferencesForFileName=i;function o(ot,Ft,le){let ht;const ne=Ft.get(ot.path)||ae;for(const Fe of ne)if(c0(Fe)){const it=le.getSourceFileByPath(Fe.file),dt=gP(le,Fe);HD(dt)&&(ht=Bn(ht,{kind:0,fileName:it.fileName,textSpan:hv(dt)}))}return ht}function s(ot,Ft,le){if(ot.parent&&lw(ot.parent)){const ht=le.getAliasedSymbol(Ft),ne=le.getMergedSymbol(ht);if(ht!==ne)return ne}}function l(ot,Ft,le,ht,ne,Fe){const it=ot.flags&1536&&ot.declarations&&hn(ot.declarations,Yi);if(!it)return;const dt=ot.exports.get("export="),Lt=g(Ft,ot,!!dt,le,Fe);if(!dt||!Fe.has(it.fileName))return Lt;const Ue=Ft.getTypeChecker();return ot=xd(dt,Ue),u(Ft,Lt,E(ot,void 0,le,Fe,Ue,ht,ne))}function u(ot,...Ft){let le;for(const ht of Ft)if(!(!ht||!ht.length)){if(!le){le=ht;continue}for(const ne of ht){if(!ne.definition||ne.definition.type!==0){le.push(ne);continue}const Fe=ne.definition.symbol,it=ho(le,Lt=>!!Lt.definition&&Lt.definition.type===0&&Lt.definition.symbol===Fe);if(it===-1){le.push(ne);continue}const dt=le[it];le[it]={definition:dt.definition,references:dt.references.concat(ne.references).sort((Lt,Ue)=>{const Rt=d(ot,Lt),It=d(ot,Ue);if(Rt!==It)return js(Rt,It);const Ot=q2e(Lt),nt=q2e(Ue);return Ot.start!==nt.start?js(Ot.start,nt.start):js(Ot.length,nt.length)})}}}return le}function d(ot,Ft){const le=Ft.kind===0?ot.getSourceFile(Ft.fileName):Ft.node.getSourceFile();return ot.getSourceFiles().indexOf(le)}function g(ot,Ft,le,ht,ne){C.assert(!!Ft.valueDeclaration);const Fe=Ui(k2e(ot,ht,Ft),dt=>{if(dt.kind==="import"){const Lt=dt.literal.parent;if(dv(Lt)){const Ue=ma(Lt.parent,e_);if(le&&!Ue.qualifier)return}return yy(dt.literal)}else if(dt.kind==="implicit"){const Lt=dt.literal.text!==fb&&$I(dt.referencingFile,Ue=>Ue.transformFlags&2?r_(Ue)||E1(Ue)||ZT(Ue)?Ue:void 0:"skip")||dt.referencingFile.statements[0]||dt.referencingFile;return yy(Lt)}else return{kind:0,fileName:dt.referencingFile.fileName,textSpan:hv(dt.ref)}});if(Ft.declarations)for(const dt of Ft.declarations)switch(dt.kind){case 308:break;case 268:ne.has(dt.getSourceFile().fileName)&&Fe.push(yy(dt.name));break;default:C.assert(!!(Ft.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const it=Ft.exports.get("export=");if(it?.declarations)for(const dt of it.declarations){const Lt=dt.getSourceFile();if(ne.has(Lt.fileName)){const Ue=Nr(dt)&&qr(dt.left)?dt.left.expression:ll(dt)?C.checkDefined(Es(dt,95,Lt)):Oo(dt)||dt;Fe.push(yy(Ue))}}return Fe.length?[{definition:{type:0,symbol:Ft},references:Fe}]:ae}function h(ot){return ot.kind===148&&JT(ot.parent)&&ot.parent.operator===148}function y(ot,Ft,le){if(xP(ot.kind))return ot.kind===116&&HI(ot.parent)||ot.kind===148&&!h(ot)?void 0:Je(Ft,ot.kind,le,ot.kind===148?h:void 0);if(JR(ot.parent)&&ot.parent.name===ot)return Ce(Ft,le);if(BI(ot)&&Zl(ot.parent))return[{definition:{type:2,node:ot},references:[yy(ot)]}];if(sO(ot)){const ht=Y3(ot.parent,ot.text);return ht&&xe(ht.parent,ht)}else if(pq(ot))return xe(ot.parent,ot);if($D(ot))return Ai(ot,Ft,le);if(ot.kind===108)return zt(ot)}function E(ot,Ft,le,ht,ne,Fe,it){const dt=Ft&&N(ot,Ft,ne,!Uo(it))||ot,Lt=Ft&&it.use!==2?ri(Ft,dt):7,Ue=[],Rt=new W(le,ht,Ft?R(Ft):0,ne,Fe,Lt,it,Ue),It=!Uo(it)||!dt.declarations?void 0:hn(dt.declarations,iu);if(It)lt(It.name,dt,It,Rt.createSearch(Ft,ot,void 0),Rt,!0,!0);else if(Ft&&Ft.kind===90&&dt.escapedName==="default"&&dt.parent)Ge(Ft,dt,Rt),O(Ft,dt,{exportingModuleSymbol:dt.parent,exportKind:1},Rt);else{const Ot=Rt.createSearch(Ft,dt,void 0,{allSearchSymbols:Ft?Ci(dt,Ft,ne,it.use===2,!!it.providePrefixAndSuffixTextForRename,!!it.implementations):[dt]});A(dt,Rt,Ot)}return Ue}function A(ot,Ft,le){const ht=ye(ot);if(ht)re(ht,ht.getSourceFile(),le,Ft,!(Yi(ht)&&!jn(Ft.sourceFiles,ht)));else for(const ne of Ft.sourceFiles)Ft.cancellationToken.throwIfCancellationRequested(),Z(ne,le,Ft)}function R(ot){switch(ot.kind){case 177:case 137:return 1;case 80:if(ui(ot.parent))return C.assert(ot.parent.name===ot),2;default:return 0}}function N(ot,Ft,le,ht){const{parent:ne}=Ft;return iu(ne)&&ht?ce(Ft,ot,ne,le):Hn(ot.declarations,Fe=>{if(!Fe.parent){if(ot.flags&33554432)return;C.fail(`Unexpected symbol at ${C.formatSyntaxKind(Ft.kind)}: ${C.formatSymbol(ot)}`)}return ku(Fe.parent)&&cv(Fe.parent.parent)?le.getPropertyOfType(le.getTypeFromTypeNode(Fe.parent.parent),ot.name):void 0})}let P;(ot=>{ot[ot.None=0]="None",ot[ot.Constructor=1]="Constructor",ot[ot.Class=2]="Class"})(P||(P={}));function k(ot){if(!(ot.flags&33555968))return;const Ft=ot.declarations&&hn(ot.declarations,le=>!Yi(le)&&!pc(le));return Ft&&Ft.symbol}class W{constructor(Ft,le,ht,ne,Fe,it,dt,Lt){this.sourceFiles=Ft,this.sourceFilesSet=le,this.specialSearchKind=ht,this.checker=ne,this.cancellationToken=Fe,this.searchMeaning=it,this.options=dt,this.result=Lt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=eC(),this.markSeenReExportRHS=eC(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Ft){return this.sourceFilesSet.has(Ft.fileName)}getImportSearches(Ft,le){return this.importTracker||(this.importTracker=Ype(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Ft,le,this.options.use===2)}createSearch(Ft,le,ht,ne={}){const{text:Fe=_m(Ol(uM(le)||k(le)||le)),allSearchSymbols:it=[le]}=ne,dt=Nl(Fe),Lt=this.options.implementations&&Ft?Mn(Ft,le,this.checker):void 0;return{symbol:le,comingFrom:ht,text:Fe,escapedText:dt,parents:Lt,allSearchSymbols:it,includes:Ue=>jn(it,Ue)}}referenceAdder(Ft){const le=Ta(Ft);let ht=this.symbolIdToReferences[le];return ht||(ht=this.symbolIdToReferences[le]=[],this.result.push({definition:{type:0,symbol:Ft},references:ht})),(ne,Fe)=>ht.push(yy(ne,Fe))}addStringOrCommentReference(Ft,le){this.result.push({definition:void 0,references:[{kind:0,fileName:Ft,textSpan:le}]})}markSearchedSymbols(Ft,le){const ht=ls(Ft),ne=this.sourceFileToSeenSymbols[ht]||(this.sourceFileToSeenSymbols[ht]=new Set);let Fe=!1;for(const it of le)Fe=rh(ne,Ta(it))||Fe;return Fe}}function O(ot,Ft,le,ht){const{importSearches:ne,singleReferences:Fe,indirectUsers:it}=ht.getImportSearches(Ft,le);if(Fe.length){const dt=ht.referenceAdder(Ft);for(const Lt of Fe)j(Lt,ht)&&dt(Lt)}for(const[dt,Lt]of ne)Se(dt.getSourceFile(),ht.createSearch(dt,Lt,1),ht);if(it.length){let dt;switch(le.exportKind){case 0:dt=ht.createSearch(ot,Ft,1);break;case 1:dt=ht.options.use===2?void 0:ht.createSearch(ot,Ft,1,{text:"default"});break}if(dt)for(const Lt of it)Z(Lt,dt,ht)}}function G(ot,Ft,le,ht,ne,Fe,it,dt){const Lt=Ype(ot,new Set(ot.map(Ot=>Ot.fileName)),Ft,le),{importSearches:Ue,indirectUsers:Rt,singleReferences:It}=Lt(ht,{exportKind:it?1:0,exportingModuleSymbol:ne},!1);for(const[Ot]of Ue)dt(Ot);for(const Ot of It)He(Ot)&&e_(Ot.parent)&&dt(Ot);for(const Ot of Rt)for(const nt of fe(Ot,it?"default":Fe)){const Kt=Ft.getSymbolAtLocation(nt),Tr=yt(Kt?.declarations,Oe=>!!ni(Oe,ll));He(nt)&&!cb(nt.parent)&&(Kt===ht||Tr)&&dt(nt)}}e.eachExportReference=G;function j(ot,Ft){return be(ot,Ft)?Ft.options.use!==2?!0:!He(ot)&&!cb(ot.parent)?!1:!(cb(ot.parent)&&N_(ot)):!1}function J(ot,Ft){if(ot.declarations)for(const le of ot.declarations){const ht=le.getSourceFile();Se(ht,Ft.createSearch(le,ot,0),Ft,Ft.includesSourceFile(ht))}}function Z(ot,Ft,le){KJ(ot).get(Ft.escapedText)!==void 0&&Se(ot,Ft,le)}function q(ot,Ft){return mv(ot.parent.parent)?Ft.getPropertySymbolOfDestructuringAssignment(ot):void 0}function ye(ot){const{declarations:Ft,flags:le,parent:ht,valueDeclaration:ne}=ot;if(ne&&(ne.kind===219||ne.kind===232))return ne;if(!Ft)return;if(le&8196){const dt=hn(Ft,Lt=>wp(Lt,2)||tu(Lt));return dt?GT(dt,264):void 0}if(Ft.some(hO))return;const Fe=ht&&!(ot.flags&262144);if(Fe&&!(sI(ht)&&!ht.globalExports))return;let it;for(const dt of Ft){const Lt=O1(dt);if(it&&it!==Lt||!Lt||Lt.kind===308&&!Pp(Lt))return;if(it=Lt,Us(it)){let Ue;for(;Ue=AG(it);)it=Ue}}return Fe?it.getSourceFile():it}function ie(ot,Ft,le,ht=le){return K(ot,Ft,le,()=>!0,ht)||!1}e.isSymbolReferencedInFile=ie;function K(ot,Ft,le,ht,ne=le){const Fe=Np(ot.parent,ot.parent.parent)?$a(Ft.getSymbolsOfParameterPropertyDeclaration(ot.parent,ot.text)):Ft.getSymbolAtLocation(ot);if(Fe)for(const it of fe(le,Fe.name,ne)){if(!He(it)||it===ot||it.escapedText!==ot.escapedText)continue;const dt=Ft.getSymbolAtLocation(it);if(dt===Fe||Ft.getShorthandAssignmentValueSymbol(it.parent)===Fe||iu(it.parent)&&ce(it,dt,it.parent,Ft)===Fe){const Lt=ht(it);if(Lt)return Lt}}}e.eachSymbolReferenceInFile=K;function pe(ot,Ft){return Un(fe(Ft,ot),ne=>!!ZN(ne)).reduce((ne,Fe)=>{const it=ht(Fe);return!yt(ne.declarationNames)||it===ne.depth?(ne.declarationNames.push(Fe),ne.depth=it):itRt===ne)&&ht(it,Lt))return!0}return!1}e.someSignatureUsage=de;function fe(ot,Ft,le=ot){return Ui(ve(ot,Ft,le),ht=>{const ne=ip(ot,ht);return ne===ot?void 0:ne})}function ve(ot,Ft,le=ot){const ht=[];if(!Ft||!Ft.length)return ht;const ne=ot.text,Fe=ne.length,it=Ft.length;let dt=ne.indexOf(Ft,le.pos);for(;dt>=0&&!(dt>le.end);){const Lt=dt+it;(dt===0||!ey(ne.charCodeAt(dt-1),99))&&(Lt===Fe||!ey(ne.charCodeAt(Lt),99))&&ht.push(dt),dt=ne.indexOf(Ft,dt+it+1)}return ht}function xe(ot,Ft){const le=ot.getSourceFile(),ht=Ft.text,ne=Ui(fe(le,ht,ot),Fe=>Fe===Ft||sO(Fe)&&Y3(Fe,ht)===Ft?yy(Fe):void 0);return[{definition:{type:1,node:Ft},references:ne}]}function X(ot,Ft){switch(ot.kind){case 81:if(t0(ot.parent))return!0;case 80:return ot.text.length===Ft.length;case 15:case 11:{const le=ot;return le.text.length===Ft.length&&($3(le)||_q(ot)||gle(ot)||Zo(ot.parent)&&r1(ot.parent)&&ot.parent.arguments[1]===ot||cb(ot.parent))}case 9:return $3(ot)&&ot.text.length===Ft.length;case 90:return Ft.length===7;default:return!1}}function Ce(ot,Ft){const le=Ki(ot,ht=>(Ft.throwIfCancellationRequested(),Ui(fe(ht,"meta",ht),ne=>{const Fe=ne.parent;if(JR(Fe))return yy(Fe)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function Je(ot,Ft,le,ht){const ne=Ki(ot,Fe=>(le.throwIfCancellationRequested(),Ui(fe(Fe,_a(Ft),Fe),it=>{if(it.kind===Ft&&(!ht||ht(it)))return yy(it)})));return ne.length?[{definition:{type:2,node:ne[0].node},references:ne}]:void 0}function Se(ot,Ft,le,ht=!0){return le.cancellationToken.throwIfCancellationRequested(),re(ot,ot,Ft,le,ht)}function re(ot,Ft,le,ht,ne){if(ht.markSearchedSymbols(Ft,le.allSearchSymbols))for(const Fe of ve(Ft,le.text,ot))Ne(Ft,Fe,le,ht,ne)}function be(ot,Ft){return!!(w1(ot)&Ft.searchMeaning)}function Ne(ot,Ft,le,ht,ne){const Fe=ip(ot,Ft);if(!X(Fe,le.text)){!ht.options.implementations&&(ht.options.findInStrings&&cx(ot,Ft)||ht.options.findInComments&&Nle(ot,Ft))&&ht.addStringOrCommentReference(ot.fileName,Id(Ft,le.text.length));return}if(!be(Fe,ht))return;let it=ht.checker.getSymbolAtLocation(Fe);if(!it)return;const dt=Fe.parent;if(Su(dt)&&dt.propertyName===Fe)return;if(iu(dt)){C.assert(Fe.kind===80||Fe.kind===11),lt(Fe,it,dt,le,ht,ne);return}if(PN(dt)&&dt.isNameFirst&&dt.typeExpression&&A1(dt.typeExpression.type)&&dt.typeExpression.type.jsDocPropertyTags&&et(dt.typeExpression.type.jsDocPropertyTags)){Be(dt.typeExpression.type.jsDocPropertyTags,Fe,le,ht);return}const Lt=dr(le,it,Fe,ht);if(!Lt){je(it,le,ht);return}switch(ht.specialSearchKind){case 0:ne&&Ge(Fe,Lt,ht);break;case 1:We(Fe,ot,le,ht);break;case 2:at(Fe,le,ht);break;default:C.assertNever(ht.specialSearchKind)}Ir(Fe)&&Ha(Fe.parent)&&SS(Fe.parent.parent.parent)&&(it=Fe.parent.symbol,!it)||_e(Fe,it,le,ht)}function Be(ot,Ft,le,ht){const ne=ht.referenceAdder(le.symbol);Ge(Ft,le.symbol,ht),Ye(ot,Fe=>{Lu(Fe.name)&&ne(Fe.name.left)})}function lt(ot,Ft,le,ht,ne,Fe,it){C.assert(!it||!!ne.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:dt,propertyName:Lt,name:Ue}=le,Rt=dt.parent,It=ce(ot,Ft,le,ne.checker);if(!it&&!ht.includes(It))return;if(Lt?ot===Lt?(Rt.moduleSpecifier||Ot(),Fe&&ne.options.use!==2&&ne.markSeenReExportRHS(Ue)&&Ge(Ue,C.checkDefined(le.symbol),ne)):ne.markSeenReExportRHS(ot)&&Ot():ne.options.use===2&&N_(Ue)||Ot(),!Uo(ne.options)||it){const Kt=N_(ot)||N_(le.name)?1:0,Tr=C.checkDefined(le.symbol),Oe=$pe(Tr,Kt,ne.checker);Oe&&O(ot,Tr,Oe,ne)}if(ht.comingFrom!==1&&Rt.moduleSpecifier&&!Lt&&!Uo(ne.options)){const nt=ne.checker.getExportSpecifierLocalTargetSymbol(le);nt&&J(nt,ne)}function Ot(){Fe&&Ge(ot,It,ne)}}function ce(ot,Ft,le,ht){return Re(ot,le)&&ht.getExportSpecifierLocalTargetSymbol(le)||Ft}function Re(ot,Ft){const{parent:le,propertyName:ht,name:ne}=Ft;return C.assert(ht===ot||ne===ot),ht?ht===ot:!le.parent.moduleSpecifier}function _e(ot,Ft,le,ht){const ne=W2e(ot,Ft,ht.checker,le.comingFrom===1);if(!ne)return;const{symbol:Fe}=ne;ne.kind===0?Uo(ht.options)||J(Fe,ht):O(ot,Fe,ne.exportInfo,ht)}function je({flags:ot,valueDeclaration:Ft},le,ht){const ne=ht.checker.getShorthandAssignmentValueSymbol(Ft),Fe=Ft&&Oo(Ft);!(ot&33554432)&&Fe&&le.includes(ne)&&Ge(Fe,ne,ht)}function Ge(ot,Ft,le){const{kind:ht,symbol:ne}="kind"in Ft?Ft:{kind:void 0,symbol:Ft};if(le.options.use===2&&ot.kind===90)return;const Fe=le.referenceAdder(ne);le.options.implementations?en(ot,Fe,le):Fe(ot,ht)}function We(ot,Ft,le,ht){SP(ot)&&Ge(ot,le.symbol,ht);const ne=()=>ht.referenceAdder(le.symbol);if(ui(ot.parent))C.assert(ot.kind===90||ot.parent.name===ot),Wt(le.symbol,Ft,ne());else{const Fe=Ia(ot);Fe&&(gn(Fe,ne()),_t(Fe,ht))}}function at(ot,Ft,le){Ge(ot,Ft.symbol,le);const ht=ot.parent;if(le.options.use===2||!ui(ht))return;C.assert(ht.name===ot);const ne=le.referenceAdder(Ft.symbol);for(const Fe of ht.members)iI(Fe)&&ua(Fe)&&Fe.body&&Fe.body.forEachChild(function it(dt){dt.kind===110?ne(dt):!Yo(dt)&&!ui(dt)&&dt.forEachChild(it)})}function Wt(ot,Ft,le){const ht=cn(ot);if(ht&&ht.declarations)for(const ne of ht.declarations){const Fe=Es(ne,137,Ft);C.assert(ne.kind===177&&!!Fe),le(Fe)}ot.exports&&ot.exports.forEach(ne=>{const Fe=ne.valueDeclaration;if(Fe&&Fe.kind===175){const it=Fe.body;it&&$o(it,110,dt=>{SP(dt)&&le(dt)})}})}function cn(ot){return ot.members&&ot.members.get("__constructor")}function gn(ot,Ft){const le=cn(ot.symbol);if(le&&le.declarations)for(const ht of le.declarations){C.assert(ht.kind===177);const ne=ht.body;ne&&$o(ne,108,Fe=>{cq(Fe)&&Ft(Fe)})}}function Kn(ot){return!!cn(ot.symbol)}function _t(ot,Ft){if(Kn(ot))return;const le=ot.symbol,ht=Ft.createSearch(void 0,le,void 0);A(le,Ft,ht)}function en(ot,Ft,le){if(L_(ot)&&ai(ot.parent)){Ft(ot);return}if(ot.kind!==80)return;ot.parent.kind===305&&qi(ot,le.checker,Ft);const ht=ir(ot);if(ht){Ft(ht);return}const ne=Dn(ot,dt=>!Lu(dt.parent)&&!Ri(dt.parent)&&!hS(dt.parent)),Fe=ne.parent;if(mF(Fe)&&Fe.type===ne&&le.markSeenContainingTypeReference(Fe))if(Qy(Fe))it(Fe.initializer);else if(Yo(Fe)&&Fe.body){const dt=Fe.body;dt.kind===242?gb(dt,Lt=>{Lt.expression&&it(Lt.expression)}):it(dt)}else(gS(Fe)||SD(Fe))&&it(Fe.expression);function it(dt){Di(dt)&&Ft(dt)}}function ir(ot){return He(ot)||qr(ot)?ir(ot.parent):dy(ot)?ni(ot.parent.parent,Rp(ui,gd)):void 0}function Di(ot){switch(ot.kind){case 218:return Di(ot.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function lo(ot,Ft,le,ht){if(ot===Ft)return!0;const ne=Ta(ot)+","+Ta(Ft),Fe=le.get(ne);if(Fe!==void 0)return Fe;le.set(ne,!1);const it=!!ot.declarations&&ot.declarations.some(dt=>eM(dt).some(Lt=>{const Ue=ht.getTypeAtLocation(Lt);return!!Ue&&!!Ue.symbol&&lo(Ue.symbol,Ft,le,ht)}));return le.set(ne,it),it}function zt(ot){let Ft=$2(ot,!1);if(!Ft)return;let le=256;switch(Ft.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:le&=tv(Ft),Ft=Ft.parent;break;default:return}const ht=Ft.getSourceFile(),ne=Ui(fe(ht,"super",Ft),Fe=>{if(Fe.kind!==108)return;const it=$2(Fe,!1);return it&&ua(it)===!!le&&it.parent.symbol===Ft.symbol?yy(Fe):void 0});return[{definition:{type:0,symbol:Ft.symbol},references:ne}]}function Zr(ot){return ot.kind===80&&ot.parent.kind===170&&ot.parent.name===ot}function Ai(ot,Ft,le){let ht=yu(ot,!1,!1),ne=256;switch(ht.kind){case 175:case 174:if(mm(ht)){ne&=tv(ht),ht=ht.parent;break}case 173:case 172:case 177:case 178:case 179:ne&=tv(ht),ht=ht.parent;break;case 308:if(Bc(ht)||Zr(ot))return;case 263:case 219:break;default:return}const Fe=Ki(ht.kind===308?Ft:[ht.getSourceFile()],dt=>(le.throwIfCancellationRequested(),fe(dt,"this",Yi(ht)?dt:ht).filter(Lt=>{if(!$D(Lt))return!1;const Ue=yu(Lt,!1,!1);if(!ah(Ue))return!1;switch(ht.kind){case 219:case 263:return ht.symbol===Ue.symbol;case 175:case 174:return mm(ht)&&ht.symbol===Ue.symbol;case 232:case 264:case 211:return Ue.parent&&ah(Ue.parent)&&ht.symbol===Ue.parent.symbol&&ua(Ue)===!!ne;case 308:return Ue.kind===308&&!Bc(Ue)&&!Zr(Lt)}}))).map(dt=>yy(dt));return[{definition:{type:3,node:Hn(Fe,dt=>to(dt.node.parent)?dt.node:void 0)||ot},references:Fe}]}function Ni(ot,Ft,le,ht){const ne=t7(ot,le),Fe=Ki(Ft,it=>(ht.throwIfCancellationRequested(),Ui(fe(it,ot.text),dt=>{if(ds(dt)&&dt.text===ot.text)if(ne){const Lt=t7(dt,le);if(ne!==le.getStringType()&&(ne===Lt||Pr(dt,le)))return yy(dt,2)}else return h1(dt)&&!d1(dt,it)?void 0:yy(dt,2)})));return[{definition:{type:4,node:ot},references:Fe}]}function Pr(ot,Ft){if(Tu(ot.parent))return Ft.getPropertyOfType(Ft.getTypeAtLocation(ot.parent.parent),ot.text)}function Ci(ot,Ft,le,ht,ne,Fe){const it=[];return $e(ot,Ft,le,ht,!(ht&&ne),(dt,Lt,Ue)=>{Ue&&mn(ot)!==mn(Ue)&&(Ue=void 0),it.push(Ue||Lt||dt)},()=>!Fe),it}function $e(ot,Ft,le,ht,ne,Fe,it){const dt=LO(Ft);if(dt){const Kt=le.getShorthandAssignmentValueSymbol(Ft.parent);if(Kt&&ht)return Fe(Kt,void 0,void 0,3);const Tr=le.getContextualType(dt.parent),Oe=Tr&&Hn(X7(dt,le,Tr,!0),Ae=>Ot(Ae,4));if(Oe)return Oe;const Nt=q(Ft,le),he=Nt&&Fe(Nt,void 0,void 0,4);if(he)return he;const B=Kt&&Fe(Kt,void 0,void 0,3);if(B)return B}const Lt=s(Ft,ot,le);if(Lt){const Kt=Fe(Lt,void 0,void 0,1);if(Kt)return Kt}const Ue=Ot(ot);if(Ue)return Ue;if(ot.valueDeclaration&&Np(ot.valueDeclaration,ot.valueDeclaration.parent)){const Kt=le.getSymbolsOfParameterPropertyDeclaration(ma(ot.valueDeclaration,to),ot.name);return C.assert(Kt.length===2&&!!(Kt[0].flags&1)&&!!(Kt[1].flags&4)),Ot(ot.flags&1?Kt[1]:Kt[0])}const Rt=al(ot,282);if(!ht||Rt&&!Rt.propertyName){const Kt=Rt&&le.getExportSpecifierLocalTargetSymbol(Rt);if(Kt){const Tr=Fe(Kt,void 0,void 0,1);if(Tr)return Tr}}if(!ht){let Kt;return ne?Kt=hO(Ft.parent)?f7(le,Ft.parent):void 0:Kt=nt(ot,le),Kt&&Ot(Kt,4)}if(C.assert(ht),ne){const Kt=nt(ot,le);return Kt&&Ot(Kt,4)}function Ot(Kt,Tr){return Hn(le.getRootSymbols(Kt),Oe=>Fe(Kt,Oe,void 0,Tr)||(Oe.parent&&Oe.parent.flags&96&&it(Oe)?At(Oe.parent,Oe.name,le,Nt=>Fe(Kt,Oe,Nt,Tr)):void 0))}function nt(Kt,Tr){const Oe=al(Kt,209);if(Oe&&hO(Oe))return f7(Tr,Oe)}}function At(ot,Ft,le,ht){const ne=new Set;return Fe(ot);function Fe(it){if(!(!(it.flags&96)||!gm(ne,it)))return Hn(it.declarations,dt=>Hn(eM(dt),Lt=>{const Ue=le.getTypeAtLocation(Lt),Rt=Ue.symbol&&le.getPropertyOfType(Ue,Ft);return Rt&&Hn(le.getRootSymbols(Rt),ht)||Ue.symbol&&Fe(Ue.symbol)}))}}function mn(ot){return ot.valueDeclaration?!!(Gd(ot.valueDeclaration)&256):!1}function dr(ot,Ft,le,ht){const{checker:ne}=ht;return $e(Ft,le,ne,!1,ht.options.use!==2||!!ht.options.providePrefixAndSuffixTextForRename,(Fe,it,dt,Lt)=>(dt&&mn(Ft)!==mn(dt)&&(dt=void 0),ot.includes(dt||it||Fe)?{symbol:it&&!(Fl(Fe)&6)?it:Fe,kind:Lt}:void 0),Fe=>!(ot.parents&&!ot.parents.some(it=>lo(Fe.parent,it,ht.inheritsFromCache,ne))))}function ri(ot,Ft){let le=w1(ot);const{declarations:ht}=Ft;if(ht){let ne;do{ne=le;for(const Fe of ht){const it=J3(Fe);it&le&&(le|=it)}}while(le!==ne)}return le}e.getIntersectingMeaningFromDeclarations=ri;function ai(ot){return ot.flags&33554432?!(gd(ot)||vm(ot)):VN(ot)?Qy(ot):Ms(ot)?!!ot.body:ui(ot)||w2(ot)}function qi(ot,Ft,le){const ht=Ft.getSymbolAtLocation(ot),ne=Ft.getShorthandAssignmentValueSymbol(ht.valueDeclaration);if(ne)for(const Fe of ne.getDeclarations())J3(Fe)&1&&le(Fe)}e.getReferenceEntriesForShorthandPropertyAssignment=qi;function $o(ot,Ft,le){Jo(ot,ht=>{ht.kind===Ft&&le(ht),$o(ht,Ft,le)})}function Ia(ot){return ZG(X3(ot).parent)}function Mn(ot,Ft,le){const ht=YD(ot)?ot.parent:void 0,ne=ht&&le.getTypeAtLocation(ht.expression),Fe=Ui(ne&&(ne.isUnionOrIntersection()?ne.types:ne.symbol===Ft.parent?void 0:[ne]),it=>it.symbol&&it.symbol.flags&96?it.symbol:void 0);return Fe.length===0?void 0:Fe}function Uo(ot){return ot.use===2&&ot.providePrefixAndSuffixTextForRename}})(Tx||(Tx={}));var pC={};x(pC,{createDefinitionInfo:()=>UO,getDefinitionAndBoundSpan:()=>Drt,getDefinitionAtPosition:()=>K2e,getReferenceAtPosition:()=>Y2e,getTypeDefinitionAtPosition:()=>xrt});function K2e(e,t,r,i,o){var s;const l=Y2e(t,r,e),u=l&&[Lrt(l.reference.fileName,l.fileName,l.unverified)]||ae;if(l?.file)return u;const d=ip(t,r);if(d===t)return;const{parent:g}=d,h=e.getTypeChecker();if(d.kind===164||He(d)&&f4(g)&&g.tagName===d){const k=Ert(h,d);if(k!==void 0||d.kind!==164)return k||ae}if(sO(d)){const k=Y3(d.parent,d.text);return k?[nfe(h,k,"label",d.text,void 0)]:void 0}switch(d.kind){case 90:if(!jM(d.parent))break;case 84:const k=Dn(d.parent,GM);if(k)return[Prt(k,t)];break}let y;switch(d.kind){case 107:case 135:case 127:y=Ms;const k=Dn(d,y);return k?[ife(h,k)]:void 0}if(BI(d)&&Zl(d.parent)){const k=d.parent.parent,{symbol:W,failedAliasResolution:O}=zK(k,h,o),G=Un(k.members,Zl),j=W?h.symbolToString(W,k):"",J=d.getSourceFile();return Vt(G,Z=>{let{pos:q}=Yh(Z);return q=La(J.text,q),nfe(h,Z,"constructor","static {}",j,!1,O,{start:q,length:6})})}let{symbol:E,failedAliasResolution:A}=zK(d,h,o),R=d;if(i&&A){const k=Ye([d,...E?.declarations||ae],O=>Dn(O,vte)),W=k&&mI(k);W&&({symbol:E,failedAliasResolution:A}=zK(W,h,o),R=W)}if(!E&&p7(R)){const k=(s=e.getResolvedModuleFromModuleSpecifier(R,t))==null?void 0:s.resolvedModule;if(k)return[{name:R.text,fileName:k.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Id(0,0),failedAliasResolution:A,isAmbient:ad(k.resolvedFileName),unverified:R!==d}]}if(Aa(d)&&(Tc(g)||nd(g))&&(E=g.symbol),!E)return so(u,Crt(d,h));if(i&&Vn(E.declarations,k=>k.getSourceFile().fileName===t.fileName))return;const N=wrt(h,d);if(N&&!(nu(d.parent)&&Ort(N))){const k=ife(h,N,A);let W=G=>G!==N;if(h.getRootSymbols(E).some(G=>Srt(G,N))){if(!Pl(N))return[k];W=G=>G!==N&&(Cc(G)||uc(G))}const O=qP(h,E,d,A,W)||ae;return d.kind===108?[k,...O]:[...O,k]}if(d.parent.kind===305){const k=h.getShorthandAssignmentValueSymbol(E.valueDeclaration),W=k?.declarations?k.declarations.map(O=>UO(O,h,k,d,!1,A)):ae;return so(W,X2e(h,d))}if(bc(d)&&Ha(g)&&ff(g.parent)&&d===(g.propertyName||g.name)){const k=mO(d),W=h.getTypeAtLocation(g.parent);return k===void 0?ae:Ki(W.isUnion()?W.types:[W],O=>{const G=O.getProperty(k);return G&&qP(h,G,d)})}const P=X2e(h,d);return so(u,P.length?P:qP(h,E,d,A))}function Srt(e,t){var r;return e===t.symbol||e===t.symbol.parent||id(t.parent)||!_S(t.parent)&&e===((r=ni(t.parent,ah))==null?void 0:r.symbol)}function X2e(e,t){const r=LO(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Ki(X7(r,e,i,!1),o=>qP(e,o,t))}return ae}function Ert(e,t){const r=Dn(t,Tc);if(!(r&&r.name))return;const i=Dn(r,ui);if(!i)return;const o=lh(i);if(!o)return;const s=us(o.expression),l=uc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;const u=Oc(r)?e.getTypeOfSymbol(l):e.getDeclaredTypeOfSymbol(l);let d;if(va(r.name)){const g=e.getSymbolAtLocation(r.name);if(!g)return;iM(g)?d=hn(e.getPropertiesOfType(u),h=>h.escapedName===g.escapedName):d=e.getPropertyOfType(u,Gi(g.escapedName))}else d=e.getPropertyOfType(u,Gi(pI(r.name)));if(d)return qP(e,d,t)}function Y2e(e,t,r){var i,o;const s=HO(e.referencedFiles,t);if(s){const d=r.getSourceFileFromReference(e,s);return d&&{reference:s,fileName:d.fileName,file:d,unverified:!1}}const l=HO(e.typeReferenceDirectives,t);if(l){const d=(i=r.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(l,e))==null?void 0:i.resolvedTypeReferenceDirective,g=d&&r.getSourceFile(d.resolvedFileName);return g&&{reference:l,fileName:g.fileName,file:g,unverified:!1}}const u=HO(e.libReferenceDirectives,t);if(u){const d=r.getLibFileFromReference(u);return d&&{reference:u,fileName:d.fileName,file:d,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const d=ZD(e,t);let g;if(p7(d)&&td(d.text)&&(g=r.getResolvedModuleFromModuleSpecifier(d,e))){const h=(o=g.resolvedModule)==null?void 0:o.resolvedFileName,y=h||ib(ci(e.fileName),d.text);return{file:r.getSourceFile(y),fileName:y,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!h}}}}var $2e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Art(e,t){const r=t.symbol.name;if(!$2e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function Q2e(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!$2e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function Irt(e,t,r,i){var o,s;if(Hr(t)&4&&Art(e,t))return jO(e.getTypeArguments(t)[0],e,r,i);if(Q2e(e,t)&&t.aliasTypeArguments)return jO(t.aliasTypeArguments[0],e,r,i);if(Hr(t)&32&&t.target&&Q2e(e,t.target)){const l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&vm(l)&&Wp(l.type)&&l.type.typeArguments)return jO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function xrt(e,t,r){const i=ip(t,r);if(i===t)return;if(JR(i.parent)&&i.parent.name===i)return jO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=zK(i,e,!1);if(Aa(i)&&(Tc(i.parent)||nd(i.parent))&&(o=i.parent.symbol,s=!1),!o)return;const l=e.getTypeOfSymbolAtLocation(o,i),u=Rrt(o,l,e),d=u&&jO(u,e,i,s),[g,h]=d&&d.length!==0?[u,d]:[l,jO(l,e,i,s)];return h.length?[...Irt(e,g,i,s),...h]:!(o.flags&111551)&&o.flags&788968?qP(e,xd(o,e),i,s):void 0}function jO(e,t,r,i){return Ki(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&qP(t,o.symbol,r,i))}function Rrt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&yi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature($a(i))}}function Drt(e,t,r){const i=K2e(e,t,r);if(!i||i.length===0)return;const o=HO(t.referencedFiles,r)||HO(t.typeReferenceDirectives,r)||HO(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:hv(o)};const s=ip(t,r),l=Id(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function Crt(e,t){return Ui(t.getIndexInfosAtLocation(e),r=>r.declaration&&ife(t,r.declaration))}function zK(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i?.declarations&&i.flags&2097152&&!r&&Nrt(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function Nrt(e,t){return e.kind!==80&&(e.kind!==11||!cb(e.parent))?!1:e.parent===t?!0:t.kind!==275}function Mrt(e){if(!KN(e))return!1;const t=Dn(e,r=>id(r)?!0:KN(r)?!1:"quit");return!!t&&ac(t)===5}function qP(e,t,r,i,o){const s=o!==void 0?Un(t.declarations,o):t.declarations,l=!o&&(g()||h());if(l)return l;const u=Un(s,E=>!Mrt(E)),d=yt(u)?u:s;return Vt(d,E=>UO(E,e,t,r,!1,i));function g(){if(t.flags&32&&!(t.flags&19)&&(SP(r)||r.kind===137)){const E=hn(s,ui);return E&&y(E.members,!0)}}function h(){return dq(r)||gq(r)?y(s,!1):void 0}function y(E,A){if(!E)return;const R=E.filter(A?Pl:Yo),N=R.filter(P=>!!P.body);return R.length?N.length!==0?N.map(P=>UO(P,e,t,r)):[UO(Ba(R),e,t,r,!1,i)]:void 0}}function UO(e,t,r,i,o,s){const l=t.symbolToString(r),u=yv.getSymbolKind(t,r,i),d=r.parent?t.symbolToString(r.parent,i):"";return nfe(t,e,u,l,d,o,s)}function nfe(e,t,r,i,o,s,l,u){const d=t.getSourceFile();if(!u){const g=Oo(t)||t;u=Fu(g,d)}return{fileName:d.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Ys.toContextSpan(u,d,Ys.getContextNode(t)),isLocal:!rfe(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function Prt(e,t){const r=Ys.getContextNode(e),i=Fu(Zpe(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Ys.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function rfe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Qy(t.parent)&&t.parent.initializer===t)return rfe(e,t.parent);switch(t.kind){case 173:case 178:case 179:case 175:if(wp(t,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return rfe(e,t.parent);default:return!1}}function ife(e,t,r){return UO(t,e,t.symbol,t,!1,r)}function HO(e,t){return hn(e,r=>b2(r,t))}function Lrt(e,t,r){return{fileName:t,textSpan:oc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function krt(e){const t=Dn(e,i=>!YD(i)),r=t?.parent;return r&&_S(r)&&zF(r)===t?r:void 0}function wrt(e,t){const r=krt(t),i=r&&e.getResolvedSignature(r);return ni(i&&i.declaration,o=>Yo(o)&&!w_(o))}function Ort(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}var BK={};x(BK,{provideInlayHints:()=>Brt});var Wrt=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Frt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function zrt(e){return e.includeInlayParameterNameHints==="literals"}function ofe(e){return e.interactiveInlayHints===!0}function Brt(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),d=Gp(t,s),g=r.getTypeChecker(),h=[];return y(t),h;function y(Se){if(!(!Se||Se.getFullWidth()===0)){switch(Se.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:o.throwIfCancellationRequested()}if(T2(i,Se.pos,Se.getFullWidth())&&!(Ri(Se)&&!dy(Se)))return s.includeInlayVariableTypeHints&&yi(Se)||s.includeInlayPropertyDeclarationTypeHints&&Po(Se)?W(Se):s.includeInlayEnumMemberValueHints&&py(Se)?P(Se):Frt(s)&&(Zo(Se)||BS(Se))?O(Se):(s.includeInlayFunctionParameterTypeHints&&Ms(Se)&&B6(Se)&&ye(Se),s.includeInlayFunctionLikeReturnTypeHints&&E(Se)&&Z(Se)),Jo(Se,y)}}function E(Se){return Xs(Se)||Us(Se)||ec(Se)||Ml(Se)||Hf(Se)}function A(Se,re,be,Ne){let Be=`${Ne?"...":""}${Se}`,lt;ofe(s)?(lt=[Je(Be,re),{text:":"}],Be=""):Be+=":",h.push({text:Be,position:be,kind:"Parameter",whitespaceAfter:!0,displayParts:lt})}function R(Se,re){h.push({text:typeof Se=="string"?`: ${Se}`:"",displayParts:typeof Se=="string"?void 0:[{text:": "},...Se],position:re,kind:"Type",whitespaceBefore:!0})}function N(Se,re){h.push({text:`= ${Se}`,position:re,kind:"Enum",whitespaceBefore:!0})}function P(Se){if(Se.initializer)return;const re=g.getConstantValue(Se);re!==void 0&&N(re.toString(),Se.end)}function k(Se){return Se.symbol&&Se.symbol.flags&1536}function W(Se){if(Se.initializer===void 0&&!(Po(Se)&&!(g.getTypeAtLocation(Se).flags&1))||Qo(Se.name)||yi(Se)&&!Ce(Se)||Rc(Se))return;const be=g.getTypeAtLocation(Se);if(k(be))return;const Ne=fe(be);if(Ne){const Be=typeof Ne=="string"?Ne:Ne.map(ce=>ce.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&tb(Se.name.getText(),Be))return;R(Ne,Se.name.end)}}function O(Se){const re=Se.arguments;if(!re||!re.length)return;const be=g.getResolvedSignature(Se);if(be===void 0)return;let Ne=0;for(const Be of re){const lt=us(Be);if(zrt(s)&&!J(lt)){Ne++;continue}let ce=0;if(qf(lt)){const _e=g.getTypeAtLocation(lt.expression);if(g.isTupleType(_e)){const{elementFlags:je,fixedLength:Ge}=_e.target;if(Ge===0)continue;const We=ho(je,Wt=>!(Wt&1));(We<0?Ge:We)>0&&(ce=We<0?Ge:We)}}const Re=g.getParameterIdentifierInfoAtPosition(be,Ne);if(Ne=Ne+(ce||1),Re){const{parameter:_e,parameterName:je,isRestParameter:Ge}=Re;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!G(lt,je))&&!Ge)continue;const at=Gi(je);if(j(lt,at))continue;A(at,_e,Be.getStart(),Ge)}}}function G(Se,re){return He(Se)?Se.text===re:qr(Se)?Se.name.text===re:!1}function j(Se,re){if(!fp(re,Ga(u),Lk(t.scriptKind)))return!1;const be=lg(l,Se.pos);if(!be?.length)return!1;const Ne=Wrt(re);return yt(be,Be=>Ne.test(l.substring(Be.pos,Be.end)))}function J(Se){switch(Se.kind){case 225:{const re=Se.operand;return JE(re)||He(re)&&RM(re.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{const re=Se.escapedText;return X(re)||RM(re)}}return JE(Se)}function Z(Se){if(Xs(Se)&&!Es(Se,21,t)||kp(Se)||!Se.body)return;const be=g.getSignatureFromDeclaration(Se);if(!be)return;const Ne=g.getTypePredicateOfSignature(be);if(Ne?.type){const ce=ve(Ne);if(ce){R(ce,q(Se));return}}const Be=g.getReturnTypeOfSignature(be);if(k(Be))return;const lt=fe(Be);lt&&R(lt,q(Se))}function q(Se){const re=Es(Se,22,t);return re?re.end:Se.parameters.end}function ye(Se){const re=g.getSignatureFromDeclaration(Se);if(!re)return;let be=0;for(const Ne of Se.parameters)Ce(Ne)&&ie(Ne,bb(Ne)?re.thisParameter:re.parameters[be]),!bb(Ne)&&be++}function ie(Se,re){if(Rc(Se)||re===void 0)return;const Ne=K(re);Ne!==void 0&&R(Ne,Se.questionToken?Se.questionToken.end:Se.name.end)}function K(Se){const re=Se.valueDeclaration;if(!re||!to(re))return;const be=g.getTypeOfSymbolAtLocation(Se,re);if(!k(be))return fe(be)}function pe(Se){const be=XS();return VR(Ne=>{const Be=g.typeToTypeNode(Se,void 0,71286784);C.assertIsDefined(Be,"should always get typenode"),be.writeNode(4,Be,t,Ne)})}function de(Se){const be=XS();return VR(Ne=>{const Be=g.typePredicateToTypePredicateNode(Se,void 0,71286784);C.assertIsDefined(Be,"should always get typePredicateNode"),be.writeNode(4,Be,t,Ne)})}function fe(Se){if(!ofe(s))return pe(Se);const be=g.typeToTypeNode(Se,void 0,71286784);return C.assertIsDefined(be,"should always get typeNode"),xe(be)}function ve(Se){if(!ofe(s))return de(Se);const be=g.typePredicateToTypePredicateNode(Se,void 0,71286784);return C.assertIsDefined(be,"should always get typenode"),xe(be)}function xe(Se){const re=[];return be(Se),re;function be(ce){var Re,_e;if(!ce)return;const je=_a(ce.kind);if(je){re.push({text:je});return}if(JE(ce)){re.push({text:lt(ce)});return}switch(ce.kind){case 80:C.assertNode(ce,He);const Ge=Kr(ce),We=ce.symbol&&ce.symbol.declarations&&ce.symbol.declarations.length&&Oo(ce.symbol.declarations[0]);We?re.push(Je(Ge,We)):re.push({text:Ge});break;case 167:C.assertNode(ce,Lu),be(ce.left),re.push({text:"."}),be(ce.right);break;case 183:C.assertNode(ce,VI),ce.assertsModifier&&re.push({text:"asserts "}),be(ce.parameterName),ce.type&&(re.push({text:" is "}),be(ce.type));break;case 184:C.assertNode(ce,Wp),be(ce.typeName),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 169:C.assertNode(ce,sl),ce.modifiers&&Be(ce.modifiers," "),be(ce.name),ce.constraint&&(re.push({text:" extends "}),be(ce.constraint)),ce.default&&(re.push({text:" = "}),be(ce.default));break;case 170:C.assertNode(ce,to),ce.modifiers&&Be(ce.modifiers," "),ce.dotDotDotToken&&re.push({text:"..."}),be(ce.name),ce.questionToken&&re.push({text:"?"}),ce.type&&(re.push({text:": "}),be(ce.type));break;case 186:C.assertNode(ce,yD),re.push({text:"new "}),Ne(ce),re.push({text:" => "}),be(ce.type);break;case 187:C.assertNode(ce,WS),re.push({text:"typeof "}),be(ce.exprName),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 188:C.assertNode(ce,ku),re.push({text:"{"}),ce.members.length&&(re.push({text:" "}),Be(ce.members,"; "),re.push({text:" "})),re.push({text:"}"});break;case 189:C.assertNode(ce,ow),be(ce.elementType),re.push({text:"[]"});break;case 190:C.assertNode(ce,jI),re.push({text:"["}),Be(ce.elements,", "),re.push({text:"]"});break;case 203:C.assertNode(ce,vD),ce.dotDotDotToken&&re.push({text:"..."}),be(ce.name),ce.questionToken&&re.push({text:"?"}),re.push({text:": "}),be(ce.type);break;case 191:C.assertNode(ce,o4),be(ce.type),re.push({text:"?"});break;case 192:C.assertNode(ce,a4),re.push({text:"..."}),be(ce.type);break;case 193:C.assertNode(ce,cv),Be(ce.types," | ");break;case 194:C.assertNode(ce,UI),Be(ce.types," & ");break;case 195:C.assertNode(ce,FS),be(ce.checkType),re.push({text:" extends "}),be(ce.extendsType),re.push({text:" ? "}),be(ce.trueType),re.push({text:" : "}),be(ce.falseType);break;case 196:C.assertNode(ce,_1),re.push({text:"infer "}),be(ce.typeParameter);break;case 197:C.assertNode(ce,g1),re.push({text:"("}),be(ce.type),re.push({text:")"});break;case 199:C.assertNode(ce,JT),re.push({text:`${_a(ce.operator)} `}),be(ce.type);break;case 200:C.assertNode(ce,zS),be(ce.objectType),re.push({text:"["}),be(ce.indexType),re.push({text:"]"});break;case 201:C.assertNode(ce,y1),re.push({text:"{ "}),ce.readonlyToken&&(ce.readonlyToken.kind===40?re.push({text:"+"}):ce.readonlyToken.kind===41&&re.push({text:"-"}),re.push({text:"readonly "})),re.push({text:"["}),be(ce.typeParameter),ce.nameType&&(re.push({text:" as "}),be(ce.nameType)),re.push({text:"]"}),ce.questionToken&&(ce.questionToken.kind===40?re.push({text:"+"}):ce.questionToken.kind===41&&re.push({text:"-"}),re.push({text:"?"})),re.push({text:": "}),ce.type&&be(ce.type),re.push({text:"; }"});break;case 202:C.assertNode(ce,dv),be(ce.literal);break;case 185:C.assertNode(ce,w_),Ne(ce),re.push({text:" => "}),be(ce.type);break;case 206:C.assertNode(ce,e_),ce.isTypeOf&&re.push({text:"typeof "}),re.push({text:"import("}),be(ce.argument),ce.assertions&&(re.push({text:", { assert: "}),Be(ce.assertions.assertClause.elements,", "),re.push({text:" }"})),re.push({text:")"}),ce.qualifier&&(re.push({text:"."}),be(ce.qualifier)),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 172:C.assertNode(ce,Tu),(Re=ce.modifiers)!=null&&Re.length&&(Be(ce.modifiers," "),re.push({text:" "})),be(ce.name),ce.questionToken&&re.push({text:"?"}),ce.type&&(re.push({text:": "}),be(ce.type));break;case 182:C.assertNode(ce,Cb),re.push({text:"["}),Be(ce.parameters,", "),re.push({text:"]"}),ce.type&&(re.push({text:": "}),be(ce.type));break;case 174:C.assertNode(ce,Gm),(_e=ce.modifiers)!=null&&_e.length&&(Be(ce.modifiers," "),re.push({text:" "})),be(ce.name),ce.questionToken&&re.push({text:"?"}),Ne(ce),ce.type&&(re.push({text:": "}),be(ce.type));break;case 180:C.assertNode(ce,GI),Ne(ce),ce.type&&(re.push({text:": "}),be(ce.type));break;case 181:C.assertNode(ce,FM),re.push({text:"new "}),Ne(ce),ce.type&&(re.push({text:": "}),be(ce.type));break;case 208:C.assertNode(ce,uv),re.push({text:"["}),Be(ce.elements,", "),re.push({text:"]"});break;case 207:C.assertNode(ce,ff),re.push({text:"{"}),ce.elements.length&&(re.push({text:" "}),Be(ce.elements,", "),re.push({text:" "})),re.push({text:"}"});break;case 209:C.assertNode(ce,Ha),be(ce.name);break;case 225:C.assertNode(ce,XT),re.push({text:_a(ce.operator)}),be(ce.operand);break;case 204:C.assertNode(ce,nie),be(ce.head),ce.templateSpans.forEach(be);break;case 16:C.assertNode(ce,FI),re.push({text:lt(ce)});break;case 205:C.assertNode(ce,aj),be(ce.type),be(ce.literal);break;case 17:C.assertNode(ce,tj),re.push({text:lt(ce)});break;case 18:C.assertNode(ce,t4),re.push({text:lt(ce)});break;case 198:C.assertNode(ce,zM),re.push({text:"this"});break;case 168:C.assertNode(ce,va),re.push({text:"["}),be(ce.expression),re.push({text:"]"});break;default:C.failBadSyntaxKind(ce)}}function Ne(ce){ce.typeParameters&&(re.push({text:"<"}),Be(ce.typeParameters,", "),re.push({text:">"})),re.push({text:"("}),Be(ce.parameters,", "),re.push({text:")"})}function Be(ce,Re){ce.forEach((_e,je)=>{je>0&&re.push({text:Re}),be(_e)})}function lt(ce){switch(ce.kind){case 11:return d===0?`'${k_(ce.text,39)}'`:`"${k_(ce.text,34)}"`;case 16:case 17:case 18:{const Re=ce.rawText??FG(k_(ce.text,96));switch(ce.kind){case 16:return"`"+Re+"${";case 17:return"}"+Re+"${";case 18:return"}"+Re+"`"}}}return ce.text}}function X(Se){return Se==="undefined"}function Ce(Se){if((VT(Se)||yi(Se)&&qR(Se))&&Se.initializer){const re=us(Se.initializer);return!(J(re)||BS(re)||Wa(re)||gS(re))}return!0}function Je(Se,re){const be=re.getSourceFile();return{text:Se,span:Fu(re,be),file:be.fileName}}}var g0={};x(g0,{getDocCommentTemplateAtPosition:()=>$rt,getJSDocParameterNameCompletionDetails:()=>Yrt,getJSDocParameterNameCompletions:()=>Xrt,getJSDocTagCompletionDetails:()=>oke,getJSDocTagCompletions:()=>Krt,getJSDocTagNameCompletionDetails:()=>Jrt,getJSDocTagNameCompletions:()=>qrt,getJsDocCommentsFromDeclarations:()=>Grt,getJsDocTagsFromDeclarations:()=>Urt});var Z2e=["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","import","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"],eke,tke;function Grt(e,t){const r=[];return Vq(e,i=>{for(const o of jrt(i)){const s=mh(o)&&o.tags&&hn(o.tags,u=>u.kind===328&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||mh(o)&&i.kind!==347&&i.kind!==339&&o.tags&&o.tags.some(u=>u.kind===347||u.kind===339)&&!o.tags.some(u=>u.kind===342||u.kind===343))continue;let l=o.comment?fC(o.comment,t):[];s&&s.comment&&(l=l.concat(fC(s.comment,t))),jn(r,l,Vrt)||r.push(l)}}),la(bo(r,[rC()]))}function Vrt(e,t){return Qp(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function jrt(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(DD(e.parent))return[e.parent.parent];default:return EG(e)}}function Urt(e,t){const r=[];return Vq(e,i=>{const o=LT(i);if(!(o.some(s=>s.kind===347||s.kind===339)&&!o.some(s=>s.kind===342||s.kind===343)))for(const s of o)r.push({name:s.tagName.text,text:ike(s,t)}),r.push(...nke(rke(s),t))}),r}function nke(e,t){return Ki(e,r=>so([{name:r.tagName.text,text:ike(r,t)}],nke(rke(r),t)))}function rke(e){return PN(e)&&e.isNameFirst&&e.typeExpression&&A1(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function fC(e,t){return typeof e=="string"?[yf(e)]:Ki(e,r=>r.kind===322?[yf(r.text)]:Gle(r,t))}function ike(e,t){const{comment:r,kind:i}=e,o=Hrt(i);switch(i){case 350:const u=e.typeExpression;return u?s(u):r===void 0?void 0:fC(r,t);case 330:return s(e.class);case 329:return s(e.class);case 346:const d=e,g=[];if(d.constraint&&g.push(yf(d.constraint.getText())),et(d.typeParameters)){et(g)&&g.push(Bl());const y=d.typeParameters[d.typeParameters.length-1];Ye(d.typeParameters,E=>{g.push(o(E.getText())),y!==E&&g.push(su(28),Bl())})}return r&&g.push(Bl(),...fC(r,t)),g;case 345:case 351:return s(e.typeExpression);case 347:case 339:case 349:case 342:case 348:const{name:h}=e;return h?s(h):r===void 0?void 0:fC(r,t);default:return r===void 0?void 0:fC(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[yf(u),...fC(r,t)]:[o(u),Bl(),...fC(r,t)]:[yf(u)]}}function Hrt(e){switch(e){case 342:return Ole;case 349:return Wle;case 346:return zle;case 347:case 339:return Fle;default:return yf}}function qrt(){return eke||(eke=Vt(Z2e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:bx.SortText.LocationPriority})))}var Jrt=oke;function Krt(){return tke||(tke=Vt(Z2e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:bx.SortText.LocationPriority})))}function oke(e){return{name:e,kind:"",kindModifiers:"",displayParts:[yf(e)],documentation:ae,tags:void 0,codeActions:void 0}}function Xrt(e){if(!He(e.name))return ae;const t=e.name.text,r=e.parent,i=r.parent;return Yo(i)?Ui(i.parameters,o=>{if(!He(o.name))return;const s=o.name.text;if(!(r.tags.some(l=>l!==e&&mf(l)&&He(l.name)&&l.name.escapedText===s)||t!==void 0&&!po(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:bx.SortText.LocationPriority}}):[]}function Yrt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[yf(e)],documentation:ae,tags:void 0,codeActions:void 0}}function $rt(e,t,r,i){const o=Fi(t,r),s=Dn(o,mh);if(s&&(s.comment!==void 0||et(s.tags)))return;const l=o.getStart(t);if(!s&&l0;if(N&&!W){const O=P+e+A+" * ",G=l===r?e+A:"";return{newText:O+e+N+A+k+G,caretOffset:O.length}}return{newText:P+k,caretOffset:3}}function Qrt(e,t){const{text:r}=e,i=Em(t,e);let o=i;for(;o<=t&&Bh(r.charCodeAt(o));o++);return r.slice(i,o)}function Zrt(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 eit(e,t){return`${e} * @returns${t}`}function tit(e,t){return ste(e,r=>afe(r,t))}function afe(e,t){switch(e.kind){case 263:case 219:case 175:case 177:case 174:case 220:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:dz(r,t)};case 304:return afe(e.initializer,t);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{const o=e;return o.type&&w_(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:dz(o.type,t)}:{commentOwner:e}}case 244:{const s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?nit(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:dz(l,t)}:{commentOwner:e}}case 308:return"quit";case 268:return e.parent.kind===268?void 0:{commentOwner:e};case 245:return afe(e.expression,t);case 227:{const o=e;return ac(o)===0?"quit":Yo(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:dz(o.right,t)}:{commentOwner:e}}case 173:const i=e.initializer;if(i&&(Us(i)||Xs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:dz(i,t)}}}function dz(e,t){return!!t?.generateReturnInDocTemplate&&(w_(e)||Xs(e)&&St(e.body)||Ms(e)&&e.body&&ea(e.body)&&!!gb(e.body,r=>r))}function nit(e){for(;e.kind===218;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return hn(e.members,Pl)}}var GK={};x(GK,{mapCode:()=>rit});function rit(e,t,r,i,o,s){return Rr.ChangeTracker.with({host:i,formatContext:o,preferences:s},l=>{const u=t.map(g=>iit(e,g)),d=r&&la(r);for(const g of u)oit(e,l,g,d)})}function iit(e,t){const r=[{parse:()=>QI("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:s=>s.statements},{parse:()=>QI("__mapcode_class_content_nodes.ts",`class __class { ${t} }`,e.languageVersion,!0,e.scriptKind),body:s=>s.statements[0].members}],i=[];for(const{parse:s,body:l}of r){const u=s(),d=l(u);if(d.length&&u.parseDiagnostics.length===0)return d;d.length&&i.push({sourceFile:u,body:d})}i.sort((s,l)=>s.sourceFile.parseDiagnostics.length-l.sourceFile.parseDiagnostics.length);const{body:o}=i[0];return o}function oit(e,t,r,i){Tc(r[0])||hS(r[0])?ait(e,t,r,i):sit(e,t,r,i)}function ait(e,t,r,i){let o;if(!i||!i.length?o=hn(e.statements,Rp(ui,gd)):o=Ye(i,l=>Dn(Fi(e,l.start),Rp(ui,gd))),!o)return;const s=o.members.find(l=>r.some(u=>uz(u,l)));if(s){const l=ga(o.members,u=>r.some(d=>uz(d,u)));Ye(r,VK),t.replaceNodeRangeWithNodes(e,s,l,r);return}Ye(r,VK),t.insertNodesAfter(e,o.members[o.members.length-1],r)}function sit(e,t,r,i){if(!i?.length){t.insertNodesAtEndOfFile(e,r,!1);return}for(const s of i){const l=Dn(Fi(e,s.start),u=>Rp(ea,Yi)(u)&&yt(u.statements,d=>r.some(g=>uz(g,d))));if(l){const u=l.statements.find(d=>r.some(g=>uz(g,d)));if(u){const d=ga(l.statements,g=>r.some(h=>uz(h,g)));Ye(r,VK),t.replaceNodeRangeWithNodes(e,u,d,r);return}}}let o=e.statements;for(const s of i){const l=Dn(Fi(e,s.start),ea);if(l){o=l.statements;break}}Ye(r,VK),t.insertNodesAfter(e,o[o.length-1],r)}function uz(e,t){var r,i,o,s,l,u;return e.kind!==t.kind?!1:e.kind===177?e.kind===t.kind:nd(e)&&nd(t)?e.name.getText()===t.name.getText():YT(e)&&YT(t)||cj(e)&&cj(t)?e.expression.getText()===t.expression.getText():$T(e)&&$T(t)?((r=e.initializer)==null?void 0:r.getText())===((i=t.initializer)==null?void 0:i.getText())&&((o=e.incrementor)==null?void 0:o.getText())===((s=t.incrementor)==null?void 0:s.getText())&&((l=e.condition)==null?void 0:l.getText())===((u=t.condition)==null?void 0:u.getText()):YE(e)&&YE(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():Mb(e)&&Mb(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function VK(e){ake(e),e.parent=void 0}function ake(e){e.pos=-1,e.end=-1,e.forEachChild(ake)}var y0={};x(y0,{compareImportsOrRequireStatements:()=>mfe,compareModuleSpecifiers:()=>xit,getImportDeclarationInsertionIndex:()=>Sit,getImportSpecifierInsertionIndex:()=>Eit,getNamedImportSpecifierComparerWithDetection:()=>Tit,getOrganizeImportsStringComparerWithDetection:()=>bit,organizeImports:()=>lit,testCoalesceExports:()=>Iit,testCoalesceImports:()=>Ait});function lit(e,t,r,i,o,s){const l=Rr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",d=u,g=s==="RemoveUnused"||s==="All",h=e.statements.filter(vl),y=lfe(e,h),{comparersToTest:E,typeOrdersToTest:A}=sfe(o),R=E[0],N={moduleSpecifierComparer:typeof o.organizeImportsIgnoreCase=="boolean"?R:void 0,namedImportComparer:typeof o.organizeImportsIgnoreCase=="boolean"?R:void 0,typeOrder:o.organizeImportsTypeOrder};if(typeof o.organizeImportsIgnoreCase!="boolean"&&({comparer:N.moduleSpecifierComparer}=cke(y,E)),!N.typeOrder||typeof o.organizeImportsIgnoreCase!="boolean"){const O=pfe(h,E,A);if(O){const{namedImportComparer:G,typeOrder:j}=O;N.namedImportComparer=N.namedImportComparer??G,N.typeOrder=N.typeOrder??j}}y.forEach(O=>k(O,N)),s!=="RemoveUnused"&&dit(e).forEach(O=>W(O,N.namedImportComparer));for(const O of e.statements.filter(gu)){if(!O.body)continue;if(lfe(e,O.body.statements.filter(vl)).forEach(j=>k(j,N)),s!=="RemoveUnused"){const j=O.body.statements.filter(fc);W(j,N.namedImportComparer)}}return l.getChanges();function P(O,G){if(et(O)===0)return;Cr(O[0],1024);const j=d?AR(O,q=>pz(q.moduleSpecifier)):[O],J=u?xp(j,(q,ye)=>dfe(q[0].moduleSpecifier,ye[0].moduleSpecifier,N.moduleSpecifierComparer??R)):j,Z=Ki(J,q=>pz(q[0].moduleSpecifier)||q[0].moduleSpecifier===void 0?G(q):q);if(Z.length===0)l.deleteNodes(e,O,{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Include},!0);else{const q={leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Include,suffix:_y(r,t.options)};l.replaceNodeWithNodes(e,O[0],Z,q);const ye=l.nodeHasTrailingComment(e,O[0],q);l.deleteNodes(e,O.slice(1),{trailingTriviaOption:Rr.TrailingTriviaOption.Include},ye)}}function k(O,G){const j=G.moduleSpecifierComparer??R,J=G.namedImportComparer??R,Z=G.typeOrder??"last",q=JO({organizeImportsTypeOrder:Z},J);P(O,ie=>(g&&(ie=uit(ie,e,i)),d&&(ie=ske(ie,j,q,e)),u&&(ie=xp(ie,(K,pe)=>mfe(K,pe,j))),ie))}function W(O,G){const j=JO(o,G);P(O,J=>lke(J,j))}}function sfe(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[ffe(e,e.organizeImportsIgnoreCase)]:[ffe(e,!0),ffe(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function lfe(e,t){const r=cg(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&cit(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function cit(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 dit(e){const t=[],r=e.statements,i=et(r);let o=0,s=0;for(;olfe(e,l))}function uit(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),d=[];for(const h of e){const{importClause:y,moduleSpecifier:E}=h;if(!y){d.push(h);continue}let{name:A,namedBindings:R}=y;if(A&&!g(A)&&(A=void 0),R)if(Ig(R))g(R.name)||(R=void 0);else{const N=R.elements.filter(P=>g(P.name));N.length{if(l.attributes){let u=l.attributes.token+" ";for(const d of xp(l.attributes.elements,(g,h)=>Wd(g.name.text,h.name.text)))u+=d.name.text+":",u+=ds(d.value)?`"${d.value.text}"`:d.value.getText()+" ";return u}return""}),s=[];for(const l in o){const u=o[l],{importWithoutClause:d,typeOnlyImports:g,regularImports:h}=pit(u);d&&s.push(d);for(const y of[h,g]){const E=y===g,{defaultImports:A,namespaceImports:R,namedImports:N}=y;if(!E&&A.length===1&&R.length===1&&N.length===0){const q=A[0];s.push(qO(q,q.importClause.name,R[0].importClause.namedBindings));continue}const P=xp(R,(q,ye)=>t(q.importClause.namedBindings.name.text,ye.importClause.namedBindings.name.text));for(const q of P)s.push(qO(q,void 0,q.importClause.namedBindings));const k=Ic(A),W=Ic(N),O=k??W;if(!O)continue;let G;const j=[];if(A.length===1)G=A[0].importClause.name;else for(const q of A)j.push(L.createImportSpecifier(!1,L.createIdentifier("default"),q.importClause.name));j.push(...hit(N));const J=L.createNodeArray(xp(j,r),W?.importClause.namedBindings.elements.hasTrailingComma),Z=J.length===0?G?void 0:L.createNamedImports(ae):W?L.updateNamedImports(W.importClause.namedBindings,J):L.createNamedImports(J);i&&Z&&W?.importClause.namedBindings&&!d1(W.importClause.namedBindings,i)&&Cr(Z,2),E&&G&&Z?(s.push(qO(O,G,void 0)),s.push(qO(W??O,void 0,Z))):s.push(qO(O,G,Z))}}return s}function lke(e,t){if(e.length===0)return e;const{exportWithoutClause:r,namedExports:i,typeOnlyExports:o}=l(e),s=[];r&&s.push(r);for(const u of[i,o]){if(u.length===0)continue;const d=[];d.push(...Ki(u,y=>y.exportClause&&Jf(y.exportClause)?y.exportClause.elements:ae));const g=xp(d,t),h=u[0];s.push(L.updateExportDeclaration(h,h.modifiers,h.isTypeOnly,h.exportClause&&(Jf(h.exportClause)?L.updateNamedExports(h.exportClause,g):L.updateNamespaceExport(h.exportClause,h.exportClause.name)),h.moduleSpecifier,h.attributes))}return s;function l(u){let d;const g=[],h=[];for(const y of u)y.exportClause===void 0?d=d||y:y.isTypeOnly?h.push(y):g.push(y);return{exportWithoutClause:d,namedExports:g,typeOnlyExports:h}}}function qO(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.phaseModifier,t,r),e.moduleSpecifier,e.attributes)}function cfe(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return CT(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return CT(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function dfe(e,t,r){const i=e===void 0?void 0:pz(e),o=t===void 0?void 0:pz(t);return CT(i===void 0,o===void 0)||CT(td(i),td(o))||r(i,o)}function fit(e){return e.map(t=>pz(ufe(t))||"")}function ufe(e){var t;switch(e.kind){case 272:return(t=ni(e.moduleReference,uy))==null?void 0:t.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function mit(e,t){const r=ka(t)&&t.text;return Bo(r)&&yt(e.moduleAugmentations,i=>ka(i)&&i.text===r)}function hit(e){return Ki(e,t=>Vt(_it(t),r=>r.name&&r.propertyName&&vS(r.name)===vS(r.propertyName)?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function _it(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&n_(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function cke(e,t){const r=[];return e.forEach(i=>{r.push(fit(i))}),uke(r,t)}function pfe(e,t,r){let i=!1;const o=e.filter(d=>{var g,h;const y=(h=ni((g=d.importClause)==null?void 0:g.namedBindings,n_))==null?void 0:h.elements;return y?.length?(!i&&y.some(E=>E.isTypeOnly)&&y.some(E=>!E.isTypeOnly)&&(i=!0),!0):!1});if(o.length===0)return;const s=o.map(d=>{var g,h;return(h=ni((g=d.importClause)==null?void 0:g.namedBindings,n_))==null?void 0:h.elements}).filter(d=>d!==void 0);if(!i||r.length===0){const d=uke(s.map(g=>g.map(h=>h.name.text)),t);return{namedImportComparer:d.comparer,typeOrder:r.length===1?r[0]:void 0,isSorted:d.isSorted}}const l={first:1/0,last:1/0,inline:1/0},u={first:t[0],last:t[0],inline:t[0]};for(const d of t){const g={first:0,last:0,inline:0};for(const h of s)for(const y of r)g[y]=(g[y]??0)+dke(h,(E,A)=>cfe(E,A,d,{organizeImportsTypeOrder:y}));for(const h of r){const y=h;g[y]0&&r++;return r}function uke(e,t){let r,i=1/0;for(const o of t){let s=0;for(const l of e){if(l.length<=1)continue;const u=dke(l,o);s+=u}scfe(i,o,r,e)}function Tit(e,t,r){const{comparersToTest:i,typeOrdersToTest:o}=sfe(t),s=pfe([e],i,o);let l=JO(t,i[0]),u;if(typeof t.organizeImportsIgnoreCase!="boolean"||!t.organizeImportsTypeOrder){if(s){const{namedImportComparer:d,typeOrder:g,isSorted:h}=s;u=h,l=JO({organizeImportsTypeOrder:g},d)}else if(r){const d=pfe(r.statements.filter(vl),i,o);if(d){const{namedImportComparer:g,typeOrder:h,isSorted:y}=d;u=y,l=JO({organizeImportsTypeOrder:h},g)}}}return{specifierComparer:l,isSorted:u}}function Sit(e,t,r){const i=$v(e,t,Vs,(o,s)=>mfe(o,s,r));return i<0?~i:i}function Eit(e,t,r){const i=$v(e,t,Vs,r);return i<0?~i:i}function mfe(e,t,r){return dfe(ufe(e),ufe(t),r)||git(e,t)}function Ait(e,t,r,i){const o=fz(t),s=JO({organizeImportsTypeOrder:i?.organizeImportsTypeOrder},o);return ske(e,o,s,r)}function Iit(e,t,r){return lke(e,(o,s)=>cfe(o,s,fz(t),{organizeImportsTypeOrder:r?.organizeImportsTypeOrder??"last"}))}function xit(e,t,r){const i=fz(!!r);return dfe(e,t,i)}var jK={};x(jK,{collectElements:()=>Rit});function Rit(e,t){const r=[];return Dit(e,t,r),Cit(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start),r}function Dit(e,t,r){let i=40,o=0;const s=e.statements,l=s.length;for(;o1&&i.push(mz(s,l,"comment"))}}function mke(e,t,r,i){WI(e)||hfe(e.pos,t,r,i)}function mz(e,t,r){return Sx(oc(e,t),r)}function Mit(e,t){switch(e.kind){case 242:if(Yo(e.parent))return Pit(e.parent,e,t);switch(e.parent.kind){case 247:case 250:case 251:case 249:case 246:case 248:case 255:case 300:return h(e.parent);case 259:const A=e.parent;if(A.tryBlock===e)return h(e.parent);if(A.finallyBlock===e){const R=Es(A,98,t);if(R)return h(R)}default:return Sx(Fu(e,t),"code")}case 269:return h(e.parent);case 264:case 232:case 265:case 267:case 270:case 188:case 207:return h(e);case 190:return h(e,!1,!jI(e.parent),23);case 297:case 298:return y(e.statements);case 211:return g(e);case 210:return g(e,23);case 285:return s(e);case 289:return l(e);case 286:case 287:return u(e.attributes);case 229:case 15:return d(e);case 208:return h(e,!1,!Ha(e.parent),23);case 220:return o(e);case 214:return i(e);case 218:return E(e);case 276:case 280:case 301:return r(e)}function r(A){if(!A.elements.length)return;const R=Es(A,19,t),N=Es(A,20,t);if(!(!R||!N||Gf(R.pos,N.pos,t)))return UK(R,N,A,t,!1,!1)}function i(A){if(!A.arguments.length)return;const R=Es(A,21,t),N=Es(A,22,t);if(!(!R||!N||Gf(R.pos,N.pos,t)))return UK(R,N,A,t,!1,!0)}function o(A){if(ea(A.body)||wu(A.body)||Gf(A.body.getFullStart(),A.body.getEnd(),t))return;const R=oc(A.body.getFullStart(),A.body.getEnd());return Sx(R,"code",Fu(A))}function s(A){const R=oc(A.openingElement.getStart(t),A.closingElement.getEnd()),N=A.openingElement.tagName.getText(t),P="<"+N+">...";return Sx(R,"code",R,!1,P)}function l(A){const R=oc(A.openingFragment.getStart(t),A.closingFragment.getEnd());return Sx(R,"code",R,!1,"<>...")}function u(A){if(A.properties.length!==0)return mz(A.getStart(t),A.getEnd(),"code")}function d(A){if(!(A.kind===15&&A.text.length===0))return mz(A.getStart(t),A.getEnd(),"code")}function g(A,R=19){return h(A,!1,!Cd(A.parent)&&!Zo(A.parent),R)}function h(A,R=!1,N=!0,P=19,k=P===19?20:24){const W=Es(e,P,t),O=Es(e,k,t);return W&&O&&UK(W,O,A,t,R,N)}function y(A){return A.length?Sx(hv(A),"code"):void 0}function E(A){if(Gf(A.getStart(),A.getEnd(),t))return;const R=oc(A.getStart(),A.getEnd());return Sx(R,"code",Fu(A))}}function Pit(e,t,r){const i=Lit(e,t,r),o=Es(t,20,r);return i&&o&&UK(i,o,e,r,e.kind!==220)}function UK(e,t,r,i,o=!1,s=!0){const l=oc(s?e.getFullStart():e.getStart(i),t.getEnd());return Sx(l,"code",Fu(r,i),o)}function Sx(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function Lit(e,t,r){if(Nne(e.parameters,r)){const i=Es(e,21,r);if(i)return i}return Es(t,19,r)}var hz={};x(hz,{getRenameInfo:()=>kit,nodeIsEligibleForRename:()=>_ke});function kit(e,t,r,i){const o=n7(ip(t,r));if(_ke(o)){const s=wit(o,e.getTypeChecker(),t,e,i);if(s)return s}return HK(f.You_cannot_rename_this_element)}function wit(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(ds(e)){const E=t7(e,t);if(E&&(E.flags&128||E.flags&1048576&&Vn(E.types,A=>!!(A.flags&128))))return _fe(e.text,e.text,"string","",e,r)}else if(fq(e)){const E=Al(e);return _fe(E,E,"label","",e,r)}return}const{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>Oit(i,E)))return HK(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(He(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(ds(e)&&dk(e))return o.allowRenameOfImportPath?Fit(e,r,s):void 0;const u=Wit(r,s,t,o);if(u)return HK(u);const d=yv.getSymbolKind(t,s,e),g=Vle(e)||uf(e)&&e.parent.kind===168?_m(zf(e)):void 0,h=g||t.symbolToString(s),y=g||t.getFullyQualifiedName(s);return _fe(h,y,d,yv.getSymbolModifiers(t,s),e,r)}function Oit(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&El(r.fileName,".d.ts")}function Wit(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&hn(t.declarations,u=>Su(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=hke(e.path);if(s===void 0)return yt(o,l=>TO(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=hke(l.getSourceFile().path);if(u){const d=Math.min(s.length,u.length);for(let g=0;g<=d;g++)if(Wd(s[g],u[g])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function hke(e){const t=zd(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function Fit(e,t,r){if(!td(e.text))return HK(f.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&hn(r.declarations,Yi);if(!i)return;const o=el(e.text,"/index")||el(e.text,"/index.js")?void 0:LQ(bu(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,d=Id(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:d}}function _fe(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:zit(o,s)}}function HK(e){return{canRename:!1,localizedErrorMessage:Ho(e)}}function zit(e,t){let r=e.getStart(t),i=e.getWidth(t);return ds(e)&&(r+=1,i-=2),Id(r,i)}function _ke(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return $3(e);default:return!1}}var KO={};x(KO,{getArgumentInfoForCompletions:()=>Uit,getSignatureHelpItems:()=>Bit});function Bit(e,t,r,i,o){const s=e.getTypeChecker(),l=AP(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(cx(t,r,l)||fv(t,r)))return;const d=!!i&&i.kind==="invoked",g=rot(l,r,t,s,d);if(!g)return;o.throwIfCancellationRequested();const h=Git(g,s,t,l,u);return o.throwIfCancellationRequested(),h?s.runWithCancellationToken(o,y=>h.kind===0?Ake(h.candidates,h.resolvedSignature,g,t,y):oot(h.symbol,g,t,y)):Mu(t)?jit(g,e,o):void 0}function Git({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Vit(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&&!gke(o,i,He(l)?l.parent:l))return;const u=Eq(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:$a(u)};const d=r.getSymbolAtLocation(l);return d&&{kind:1,symbol:d}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return C.assertNever(e)}}function Vit(e,t,r){if(!Gh(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return jn(i,e);case 28:{const o=e7(e);return!!o&&jn(i,o)}case 30:return gke(e,r,t.expression);default:return!1}}function jit(e,t,r){if(e.invocation.kind===2)return;const i=Ske(e.invocation),o=qr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Hn(t.getSourceFiles(),l=>Hn(l.getNamedDeclarations().get(o),u=>{const d=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),g=d&&d.getCallSignatures();if(g&&g.length)return s.runWithCancellationToken(r,h=>Ake(g,g[0],e,l,h,!0))}))}function gke(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Gc(i,t,o,!0);if(s)return tp(r,s);o=o.parent}return C.fail("Could not find preceding token")}function Uit(e,t,r,i){const o=vke(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 yke(e,t,r,i){const o=Hit(e,r,i);if(!o)return;const{list:s,argumentIndex:l}=o,u=Zit(i,s),d=tot(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:d}}function Hit(e,t,r){if(e.kind===30||e.kind===21)return{list:iot(e.parent,e,t),argumentIndex:0};{const i=e7(e);return i&&{list:i,argumentIndex:Qit(r,i,e)}}}function vke(e,t,r,i){const{parent:o}=e;if(Gh(o)){const s=o,l=yke(e,t,r,i);if(!l)return;const{list:u,argumentIndex:d,argumentCount:g,argumentsSpan:h}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:h,argumentIndex:d,argumentCount:g}}else{if(h1(e)&&KT(o))return uO(e,t,r)?yfe(o,0,r):void 0;if(FI(e)&&o.parent.kind===216){const s=o,l=s.parent;C.assert(s.kind===229);const u=uO(e,t,r)?0:1;return yfe(l,u,r)}else if(ED(o)&&KT(o.parent.parent)){const s=o,l=o.parent.parent;if(t4(e)&&!uO(e,t,r))return;const u=s.parent.templateSpans.indexOf(s),d=eot(u,e,t,r);return yfe(l,d,r)}else if(nu(o)){const s=o.attributes.pos,l=La(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:Id(s,l-s),argumentIndex:0,argumentCount:1}}else{const s=Aq(e,r);if(s){const{called:l,nTypeArguments:u}=s,d={kind:1,called:l},g=oc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:d,argumentsSpan:g,argumentIndex:u,argumentCount:u+1}}return}}}function qit(e,t,r,i){return Jit(e,t,r,i)||vke(e,t,r,i)}function bke(e){return Nr(e.parent)?bke(e.parent):e}function gfe(e){return Nr(e.left)?gfe(e.left)+1:2}function Jit(e,t,r,i){const o=Kit(e);if(o===void 0)return;const s=Xit(o,r,t,i);if(s===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:d,argumentsSpan:g}=s,h=l.getNonNullableType(),y=h.symbol;if(y===void 0)return;const E=Zs(h.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:Yit(y)},argumentsSpan:g,argumentIndex:u,argumentCount:d}}function Kit(e){switch(e.kind){case 21:case 28:return e;default:return Dn(e.parent,t=>to(t)?!0:Ha(t)||ff(t)||uv(t)?!1:"quit")}}function Xit(e,t,r,i){const{parent:o}=e;switch(o.kind){case 218:case 175:case 219:case 220:const s=yke(e,r,t,i);if(!s)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:d}=s,g=Ml(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return g&&{contextualType:g,argumentIndex:l,argumentCount:u,argumentsSpan:d};case 227:{const h=bke(o),y=i.getContextualType(h),E=e.kind===21?0:gfe(o)-1,A=gfe(h);return y&&{contextualType:y,argumentIndex:E,argumentCount:A,argumentsSpan:Fu(o)}}default:return}}function Yit(e){return e.name==="__type"&&Hn(e.declarations,t=>{var r;return w_(t)?(r=ni(t.parent,ah))==null?void 0:r.symbol:void 0})||e}function $it(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=ho(i,l=>!(l&1));return s<0?o:s}return 0}function Qit(e,t,r){return Tke(e,t,r)}function Zit(e,t){return Tke(e,t,void 0)}function Tke(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(qf(l)){o+=$it(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ba(i).kind===28?o+1:o}function eot(e,t,r,i){return C.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Wee(t)?uO(t,r,i)?0:e+2:e+1}function yfe(e,t,r){const i=h1(e.template)?1:e.template.templateSpans.length+1;return t!==0&&C.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:not(e,r),argumentIndex:t,argumentCount:i}}function tot(e,t){const r=e.getFullStart(),i=La(t.text,e.getEnd(),!1);return Id(r,i-r)}function not(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===229&&Ba(r.templateSpans).literal.getFullWidth()===0&&(o=La(t.text,o,!1)),Id(i,o-i)}function rot(e,t,r,i,o){for(let s=e;!Yi(s)&&(o||!ea(s));s=s.parent){C.assert(tp(s.parent,s),"Not a subspan",()=>`Child: ${C.formatSyntaxKind(s.kind)}, parent: ${C.formatSyntaxKind(s.parent.kind)}`);const l=qit(s,t,r,i);if(l)return l}}function iot(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return C.assert(o>=0&&i.length>o+1),i[o+1]}function Ske(e){return e.kind===0?zF(e.node):e.called}function Eke(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var _z=70246400;function Ake(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,d,g){var h;const y=Eke(s),E=s.kind===2?s.symbol:d.getSymbolAtLocation(Ske(s))||g&&((h=t.declaration)==null?void 0:h.symbol),A=E?NP(d,E,g?u:void 0,void 0):ae,R=Vt(e,O=>sot(O,A,r,d,y,u));let N=0,P=0;for(let O=0;O1)){let j=0;for(const J of G){if(J.isVariadic||J.parameters.length>=i){N=P+j;break}j++}}P+=G.length}C.assert(N!==-1);const k={items:vc(R,Vs),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},W=k.items[N];if(W.isVariadic){const O=ho(W.parameters,G=>!!G.isRest);-1xke(y,r,i,o,l)),d=e.getDocumentationComment(r),g=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,su(30)],suffixDisplayParts:[su(32)],separatorDisplayParts:Ike,parameters:u,documentation:d,tags:g}}var Ike=[su(28),Bl()];function sot(e,t,r,i,o,s){const l=(r?cot:dot)(e,i,o,s);return Vt(l,({isVariadic:u,parameters:d,prefix:g,suffix:h})=>{const y=[...t,...g],E=[...h,...lot(e,o,i)],A=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:E,separatorDisplayParts:Ike,parameters:d,documentation:A,tags:R}})}function lot(e,t,r){return Gb(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 cot(e,t,r,i){const o=(e.target||e).typeParameters,s=XS(),l=(o||ae).map(d=>xke(d,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,_z)]:[];return t.getExpandedParameters(e).map(d=>{const g=L.createNodeArray([...u,...Vt(d,y=>t.symbolToParameterDeclaration(y,r,_z))]),h=Gb(y=>{s.writeList(2576,g,i,y)});return{isVariadic:!1,parameters:l,prefix:[su(30)],suffix:[su(32),...h]}})}function dot(e,t,r,i){const o=XS(),s=Gb(d=>{if(e.typeParameters&&e.typeParameters.length){const g=L.createNodeArray(e.typeParameters.map(h=>t.typeParameterToDeclaration(h,r,_z)));o.writeList(53776,g,i,d)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?d=>!0:d=>{var g;return!!(d.length&&((g=ni(d[d.length-1],pg))==null?void 0:g.links.checkFlags)&32768)}:d=>!1;return l.map(d=>({isVariadic:u(d),parameters:d.map(g=>uot(g,t,r,i,o)),prefix:[...s,su(21)],suffix:[su(22)]}))}function uot(e,t,r,i,o){const s=Gb(d=>{const g=t.symbolToParameterDeclaration(e,r,_z);o.writeNode(4,g,i,d)}),l=t.isOptionalParameter(e.valueDeclaration),u=pg(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function xke(e,t,r,i,o){const s=Gb(l=>{const u=t.typeParameterToDeclaration(e,r,_z);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var qK={};x(qK,{getSmartSelectionRange:()=>pot});function pot(e,t){var r,i;let o={textSpan:oc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const d=hot(s);if(!d.length)break;for(let g=0;ge)break e;const A=og(ob(t.text,y.end));if(A&&A.kind===2&&u(A.pos,A.end),fot(t,e,y)){if(V9(y)&&Ms(s)&&!Gf(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),ea(y)||ED(y)||FI(y)||t4(y)||h&&FI(h)||_d(y)&&sc(s)||CD(y)&&_d(s)||yi(y)&&CD(s)&&d.length===1||e0(y)||pv(y)||A1(y)){s=y;break}if(ED(s)&&E&&aF(E)){const k=y.getFullStart()-2,W=E.getStart()+1;l(k,W)}const R=CD(y)&&_ot(h)&&got(E)&&!Gf(h.getStart(),E.getStart(),t);let N=R?h.getEnd():y.getStart();const P=R?E.getStart():yot(t,y);if(ef(y)&&((r=y.jsDoc)!=null&&r.length)&&l($a(y.jsDoc).getStart(),P),CD(y)){const k=y.getChildren()[0];k&&ef(k)&&((i=k.jsDoc)!=null&&i.length)&&k.getStart()!==y.pos&&(N=Math.min(N,$a(k.jsDoc).getStart()))}l(N,P),(ka(y)||oI(y))&&l(N+1,P-1),s=y;break}if(g===d.length-1)break e}}return o;function l(d,g){if(d!==g){const h=oc(d,g);(!o||!nC(h,o.textSpan)&&mee(h,e))&&(o={textSpan:h,...o&&{parent:o}})}}function u(d,g){l(d,g);let h=d;for(;t.text.charCodeAt(h)===47;)h++;l(h,g)}}function fot(e,t,r){return C.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=XO(s,({kind:u})=>u===23||u===169||u===24);return[r,YO(JK(l,({kind:u})=>u===59)),o]}if(Tu(e)){const r=XO(e.getChildren(),l=>l===e.name||jn(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===321?r[0]:void 0,o=i?r.slice(1):r,s=JK(o,({kind:l})=>l===59);return i?[i,YO(s)]:s}if(to(e)){const r=XO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=XO(r,o=>o===r[0]||o===e.questionToken);return JK(i,({kind:o})=>o===64)}return Ha(e)?JK(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function XO(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(YO(i)),i=void 0),r.push(o));return i&&r.push(YO(i)),r}function JK(e,t,r=!0){if(e.length<2)return e;const i=ho(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],l=Ba(e),u=r&&l.kind===27,d=e.slice(i+1,u?e.length-1:void 0),g=i2([o.length?YO(o):void 0,s,d.length?YO(d):void 0]);return u?g.concat(l):g}function YO(e){return C.assertGreaterThanOrEqual(e.length,1),uh(r0.createSyntaxList(e),e[0].pos,Ba(e).end)}function _ot(e){const t=e&&e.kind;return t===19||t===23||t===21||t===287}function got(e){const t=e&&e.kind;return t===20||t===24||t===22||t===288}function yot(e,t){switch(t.kind){case 342:case 339:case 349:case 347:case 344:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var yv={};x(yv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>bot,getSymbolKind:()=>Dke,getSymbolModifiers:()=>vot});var Rke=70246400;function Dke(e,t,r){const i=Cke(e,t,r);if(i!=="")return i;const o=lD(t);return o&32?al(t,232)?"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 Cke(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&$a(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&&St(r)||CS(r))return"parameter";const o=lD(t);if(o&3)return Uq(t)?"parameter":t.valueDeclaration&&qR(t.valueDeclaration)?"const":t.valueDeclaration&&K2(t.valueDeclaration)?"using":t.valueDeclaration&&J2(t.valueDeclaration)?"await using":Ye(t.declarations,CF)?"let":Pke(t)?"local var":"var";if(o&16)return Pke(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=Ye(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function Nke(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=et(r)&&I7(t)&&yt(r,s=>!I7(s))?65536:0,o=IP(t,i);if(o)return o.split(",")}return[]}function vot(e,t){if(!t)return"";const r=new Set(Nke(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Ye(Nke(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Co(r.values()).join(","):""}function Mke(e,t,r,i,o,s,l,u,d,g){var h;const y=[];let E=[],A=[];const R=lD(t);let N=l&1?Cke(e,t,o):"",P=!1;const k=o.kind===110&&BF(o)||CS(o);let W,O,G=!1;const j={canIncreaseExpansionDepth:!1,truncated:!1};let J=!1;if(o.kind===110&&!k)return{displayParts:[Vp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(N!==""||R&32||R&2097152){if(N==="getter"||N==="setter"){const be=hn(t.declarations,Ne=>Ne.name===o&&Ne.kind!==212);if(be)switch(be.kind){case 178:N="getter";break;case 179:N="setter";break;case 173:N="accessor";break;default:C.assertNever(be)}else N="property"}let Se;if(s??(s=k?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===212){const be=o.parent.name;(be===o||be&&be.getFullWidth()===0)&&(o=o.parent)}let re;if(Gh(o)?re=o:(cq(o)||SP(o)||o.parent&&(nu(o.parent)||KT(o.parent))&&Yo(t.valueDeclaration))&&(re=o.parent),re){Se=e.getResolvedSignature(re);const be=re.kind===215||Zo(re)&&re.expression.kind===108,Ne=be?s.getConstructSignatures():s.getCallSignatures();if(Se&&!jn(Ne,Se.target)&&!jn(Ne,Se)&&(Se=Ne.length?Ne[0]:void 0),Se){switch(be&&R&32?(N="constructor",xe(s.symbol,N)):R&2097152?(N="alias",X(N),y.push(Bl()),be&&(Se.flags&4&&(y.push(Vp(128)),y.push(Bl())),y.push(Vp(105)),y.push(Bl())),ve(t)):xe(t,N),N){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(su(59)),y.push(Bl()),!(Hr(s)&16)&&s.symbol&&(Xr(y,NP(e,s.symbol,i,void 0,5)),y.push(rC())),be&&(Se.flags&4&&(y.push(Vp(128)),y.push(Bl())),y.push(Vp(105)),y.push(Bl())),Ce(Se,Ne,262144);break;default:Ce(Se,Ne)}P=!0,G=Ne.length>1}}else if(gq(o)&&!(R&98304)||o.kind===137&&o.parent.kind===177){const be=o.parent;if(t.declarations&&hn(t.declarations,Be=>Be===(o.kind===137?be.parent:be))){const Be=be.kind===177?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(be)?Se=Be[0]:Se=e.getSignatureFromDeclaration(be),be.kind===177?(N="constructor",xe(s.symbol,N)):xe(be.kind===180&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,N),Se&&Ce(Se,Be),P=!0,G=Be.length>1}}}if(R&32&&!P&&!k){ie();const Se=al(t,232);Se&&(X("local class"),y.push(Bl())),fe(t,l)||(Se||(y.push(Vp(86)),y.push(Bl())),ve(t),Je(t,r))}if(R&64&&l&2&&(ye(),fe(t,l)||(y.push(Vp(120)),y.push(Bl()),ve(t),Je(t,r))),R&524288&&l&2&&(ye(),y.push(Vp(156)),y.push(Bl()),ve(t),Je(t,r),y.push(Bl()),y.push(CP(64)),y.push(Bl()),Xr(y,gO(e,o.parent&&Om(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608,d,g,j))),R&384&&(ye(),fe(t,l)||(yt(t.declarations,Se=>QT(Se)&&wT(Se))&&(y.push(Vp(87)),y.push(Bl())),y.push(Vp(94)),y.push(Bl()),ve(t,void 0))),R&1536&&!k&&(ye(),!fe(t,l))){const Se=al(t,268),re=Se&&Se.name&&Se.name.kind===80;y.push(Vp(re?145:144)),y.push(Bl()),ve(t)}if(R&262144&&l&2)if(ye(),y.push(su(21)),y.push(yf("type parameter")),y.push(su(22)),y.push(Bl()),ve(t),t.parent)K(),ve(t.parent,i),Je(t.parent,i);else{const Se=al(t,169);if(Se===void 0)return C.fail();const re=Se.parent;if(re)if(Yo(re)){K();const be=e.getSignatureFromDeclaration(re);re.kind===181?(y.push(Vp(105)),y.push(Bl())):re.kind!==180&&re.name&&ve(re.symbol),Xr(y,qq(e,be,r,32))}else vm(re)&&(K(),y.push(Vp(156)),y.push(Bl()),ve(re.symbol),Je(re.symbol,r))}if(R&8){N="enum member",xe(t,"enum member");const Se=(h=t.declarations)==null?void 0:h[0];if(Se?.kind===307){const re=e.getConstantValue(Se);re!==void 0&&(y.push(Bl()),y.push(CP(64)),y.push(Bl()),y.push(yp(_te(re),typeof re=="number"?7:8)))}}if(t.flags&2097152){if(ye(),!P||E.length===0&&A.length===0){const Se=e.getAliasedSymbol(t);if(Se!==t&&Se.declarations&&Se.declarations.length>0){const re=Se.declarations[0],be=Oo(re);if(be&&!P){const Ne=IF(re)&&di(re,128),Be=t.name!=="default"&&!Ne,lt=Mke(e,Se,Wn(re),i,be,s,l,Be?t:Se,d,g);y.push(...lt.displayParts),y.push(rC()),W=lt.documentation,O=lt.tags,j&<.canIncreaseVerbosityLevel&&(j.canIncreaseExpansionDepth=!0)}else W=Se.getContextualDocumentationComment(re,e),O=Se.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 271:y.push(Vp(95)),y.push(Bl()),y.push(Vp(145));break;case 278:y.push(Vp(95)),y.push(Bl()),y.push(Vp(t.declarations[0].isExportEquals?64:90));break;case 282:y.push(Vp(95));break;default:y.push(Vp(102))}y.push(Bl()),ve(t),Ye(t.declarations,Se=>{if(Se.kind===272){const re=Se;if(WT(re))y.push(Bl()),y.push(CP(64)),y.push(Bl()),y.push(Vp(149)),y.push(su(21)),y.push(yp(Al(qN(re)),8)),y.push(su(22));else{const be=e.getSymbolAtLocation(re.moduleReference);be&&(y.push(Bl()),y.push(CP(64)),y.push(Bl()),ve(be,i))}return!0}})}if(!P)if(N!==""){if(s){if(k?(ye(),y.push(Vp(110))):xe(t,N),N==="property"||N==="accessor"||N==="getter"||N==="setter"||N==="JSX attribute"||R&3||N==="local var"||N==="index"||N==="using"||N==="await using"||k){if(y.push(su(59)),y.push(Bl()),s.symbol&&s.symbol.flags&262144&&N!=="index"){const Se=Gb(re=>{const be=e.typeParameterToDeclaration(s,i,Rke,void 0,void 0,d,g,j);q().writeNode(4,be,Wn(jo(i)),re)},d);Xr(y,Se)}else Xr(y,gO(e,s,i,void 0,d,g,j));if(pg(t)&&t.links.target&&pg(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const Se=t.links.target.links.tupleLabelDeclaration;C.assertNode(Se.name,He),y.push(Bl()),y.push(su(21)),y.push(yf(Kr(Se.name))),y.push(su(22))}}else if(R&16||R&8192||R&16384||R&131072||R&98304||N==="method"){const Se=s.getNonNullableType().getCallSignatures();Se.length&&(Ce(Se[0],Se),G=Se.length>1)}}}else N=Dke(e,t,o);if(E.length===0&&!G&&(E=t.getContextualDocumentationComment(i,e)),E.length===0&&R&4&&t.parent&&t.declarations&&Ye(t.parent.declarations,Se=>Se.kind===308))for(const Se of t.declarations){if(!Se.parent||Se.parent.kind!==227)continue;const re=e.getSymbolAtLocation(Se.parent.right);if(re&&(E=re.getDocumentationComment(e),A=re.getJsDocTags(e),E.length>0))break}if(E.length===0&&He(o)&&t.valueDeclaration&&Ha(t.valueDeclaration)){const Se=t.valueDeclaration,re=Se.parent,be=Se.propertyName||Se.name;if(He(be)&&ff(re)){const Ne=zf(be),Be=e.getTypeAtLocation(re);E=Hn(Be.isUnion()?Be.types:[Be],lt=>{const ce=lt.getProperty(Ne);return ce?ce.getDocumentationComment(e):void 0})||ae}}A.length===0&&!G&&!JN(o)&&(A=t.getContextualJsDocTags(i,e)),E.length===0&&W&&(E=W),A.length===0&&O&&(A=O);const Z=!j.truncated&&j.canIncreaseExpansionDepth;return{displayParts:y,documentation:E,symbolKind:N,tags:A.length===0?void 0:A,canIncreaseVerbosityLevel:g!==void 0?Z:void 0};function q(){return XS()}function ye(){y.length&&y.push(rC()),ie()}function ie(){u&&(X("alias"),y.push(Bl()))}function K(){y.push(Bl()),y.push(Vp(103)),y.push(Bl())}function pe(Se,re){if(g===void 0)return!1;const be=Se.flags&96?e.getDeclaredTypeOfSymbol(Se):e.getTypeOfSymbolAtLocation(Se,o);return!be||e.isLibType(be)?!1:0{const lt=e.getEmitResolver().symbolToDeclarations(Se,be,17408,d,g!==void 0?g-1:void 0,j),ce=q(),Re=Se.valueDeclaration&&Wn(Se.valueDeclaration);lt.forEach((_e,je)=>{je>0&&Be.writeLine(),ce.writeNode(4,_e,Re,Be)})},d);return Xr(y,Ne),J=!0,!0}return!1}function ve(Se,re){let be;u&&Se===t&&(Se=u),N==="index"&&(be=e.getIndexInfosOfIndexSymbol(Se));let Ne=[];Se.flags&131072&&be?(Se.parent&&(Ne=NP(e,Se.parent)),Ne.push(su(23)),be.forEach((Be,lt)=>{Ne.push(...gO(e,Be.keyType)),lt!==be.length-1&&(Ne.push(Bl()),Ne.push(su(52)),Ne.push(Bl()))}),Ne.push(su(24))):Ne=NP(e,Se,re||r,void 0,7),Xr(y,Ne),t.flags&16777216&&y.push(su(58))}function xe(Se,re){ye(),re&&(X(re),Se&&!yt(Se.declarations,be=>Xs(be)||(Us(be)||uc(be))&&!be.name)&&(y.push(Bl()),ve(Se)))}function X(Se){switch(Se){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":y.push(Hq(Se));return;default:y.push(su(21)),y.push(Hq(Se)),y.push(su(22));return}}function Ce(Se,re,be=0){Xr(y,qq(e,Se,i,be|32,d,g,j)),re.length>1&&(y.push(Bl()),y.push(su(21)),y.push(CP(40)),y.push(yp((re.length-1).toString(),7)),y.push(Bl()),y.push(yf(re.length===2?"overload":"overloads")),y.push(su(22))),E=Se.getDocumentationComment(e),A=Se.getJsDocTags(),re.length>1&&E.length===0&&A.length===0&&(E=re[0].getDocumentationComment(e),A=re[0].getJsDocTags().filter(Ne=>Ne.name!=="deprecated"))}function Je(Se,re){const be=Gb(Ne=>{const Be=e.symbolToTypeParameterDeclarations(Se,re,Rke);q().writeList(53776,Be,Wn(jo(re)),Ne)});Xr(y,be)}}function bot(e,t,r,i,o,s=w1(o),l,u,d){return Mke(e,t,r,i,o,void 0,s,l,u,d)}function Pke(e){return e.parent?!1:Ye(e.declarations,t=>{if(t.kind===219)return!0;if(t.kind!==261&&t.kind!==263)return!1;for(let r=t.parent;!TS(r);r=r.parent)if(r.kind===308||r.kind===269)return!1;return!0})}var Rr={};x(Rr,{ChangeTracker:()=>Eot,LeadingTriviaOption:()=>wke,TrailingTriviaOption:()=>Oke,applyChanges:()=>Efe,assignPositionsToNode:()=>$K,createWriter:()=>Fke,deleteNode:()=>vy,getAdjustedEndPosition:()=>Ex,isThisTypeAnnotatable:()=>Sot,isValidLocationToAddComment:()=>zke});function Lke(e){const t=e.__pos;return C.assert(typeof t=="number"),t}function vfe(e,t){C.assert(typeof t=="number"),e.__pos=t}function kke(e){const t=e.__end;return C.assert(typeof t=="number"),t}function bfe(e,t){C.assert(typeof t=="number"),e.__end=t}var wke=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(wke||{}),Oke=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Oke||{});function Wke(e,t){return La(e,t,!1,!0)}function Tot(e,t){let r=t;for(;r0?1:0;let E=mb(sM(e,g)+y,e);return E=Wke(e.text,E),mb(sM(e,E),e)}function Tfe(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=ob(e.text,i);if(s){const l=sM(e,t.end);for(const u of s){if(u.kind===2||sM(e,u.pos)>l)break;if(sM(e,u.end)>l)return La(e.text,u.end,!0,!0)}}}}function Ex(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const d=so(ob(e.text,o),lg(e.text,o)),g=(i=d?.[d.length-1])==null?void 0:i.end;return g||o}const l=Tfe(e,t,r);if(l)return l;const u=La(e.text,o,!0);return u!==o&&(s===2||Zd(e.text.charCodeAt(u-1)))?u:o}function KK(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===211)}function Sot(e){return Us(e)||ec(e)}var Eot=class Aye{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Aye(_y(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=Aye.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){C.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:s7(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,QO(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(const s of r){const l=V1(t,s,i,o),u=Ex(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!Tfe(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:La(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){const s=V1(t,r,o),l=Ex(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){const s=V1(t,r,o),l=i===void 0?t.text.length:V1(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=$O){this.replaceRange(t,QO(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=$O){this.replaceRange(t,QO(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=$O){this.replaceRangeWithNodes(t,QO(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,QO(t,r,r,$O),i)}replaceNodeRangeWithNodes(t,r,i,o,s=$O){this.replaceRangeWithNodes(t,QO(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=$O){return!!Tfe(t,r,i)}nextCommaToken(t,r){const i=ZS(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,Bf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Bf(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=Mot(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Zd(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Mo(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=cm()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const o=Ic(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,V1(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,V1(t,r,s),i,this.getOptionsForInsertNodeBefore(r,$a(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,L.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){const s=mb(r,t),l=Ule(t.text,s),u=zke(t,l),d=ZD(t,u?l:i),g=t.text.slice(s,l),h=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${g}`;this.insertText(t,d.getStart(t),h)}insertJsdocCommentBefore(t,r,i){const o=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:Em(u.getStart(t),t),end:Ex(t,u,{})});const s=h7(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=Ki(r.jsDoc,s=>Bo(s.comment)?L.createJSDocText(s.comment):s.comment),o=og(r.jsDoc);return o&&Gf(o.pos,o.end,t)&&et(i)===0?void 0:L.createNodeArray(bo(i,L.createJSDocText(` `)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,Aot(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){const o=vc(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,d)=>{const g=Iot(u,l);return g&&(o[d]=g),!!g}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Un(vc(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,Bf(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(Yo(r)){if(o=Es(r,22,t),!o){if(!Xs(r))return!1;o=$a(r.parameters)}}else o=(r.kind===261?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const o=Es(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=(Es(r,21,t)||$a(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Vi(t)||Tc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:yi(t)?{suffix:", "}:to(t)?to(r)?{suffix:", "}:{}:ka(t)&&vl(t.parent)||n_(t)?{suffix:", "}:Su(t)?{suffix:","+(i?this.newLineCharacter:" ")}:C.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const o=Ic(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=hn(r.body.statements,s=>od(s)&&e1(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=Zs(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,L.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const o=V1(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Zd(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,XK(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(const s of XK(r)){if(_6(o,s,t))return;const l=s.getStart(t),u=Mc.SmartIndenter.findFirstNonWhitespaceColumn(Em(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 Mc.SmartIndenter.findFirstNonWhitespaceColumn(Em(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){const s=XK(r).length===0,l=!this.classesWithNodesInsertedAtStart.has(ls(r));l&&this.classesWithNodesInsertedAtStart.set(ls(r),{node:r,sourceFile:t});const u=Wa(r)&&(!Ff(t)||!s),d=Wa(r)&&Ff(t)&&s&&!l;return{indentation:i,prefix:(d?",":"")+this.newLineCharacter,suffix:u?",":gd(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,$a(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return Pot(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Bf(r.end),L.createToken(27)),Ex(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Vi(r)?i.prefix?` ${i.prefix}`:` `:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return C.assert(Vi(t)||sF(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(C.assert(!r.name),r.kind===220){const o=Es(r,39,t),s=Es(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[L.createToken(100),L.createIdentifier(i)],{joiner:" "}),vy(this,t,o)):(this.insertText(t,$a(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,L.createToken(22))),r.body.kind!==242&&(this.insertNodesAt(t,r.body.getStart(t),[L.createToken(19),L.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[L.createToken(27),L.createToken(20)],{joiner:" "}))}else{const o=Es(r,r.kind===219?100:86,t).end;this.insertNodeAt(t,o,L.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){const s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Gf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=Mc.SmartIndenter.getContainingList(r,t)){if(!o){C.fail("node is not a list element");return}const s=jR(o,r);if(s<0)return;const l=r.getEnd();if(s!==o.length-1){const u=Fi(t,r.end);if(u&&KK(r,u)){const d=o[s+1],g=Wke(t.text,d.getFullStart()),h=`${_a(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:h})}}else{const u=r.getStart(t),d=Em(u,t);let g,h=!1;if(o.length===1)g=28;else{const y=Gc(r.pos,t);g=KK(r,y)?y.kind:28,h=Em(o[s-1].getStart(t),t)!==d}if((Tot(t.text,r.end)||!Gf(o.pos,o.end,t))&&(h=!0),h){this.replaceRange(t,Bf(l),L.createToken(g));const y=Mc.SmartIndenter.findFirstNonWhitespaceColumn(d,u,t,this.formatContext.options);let E=La(t.text,l,!0,!1);for(;E!==l&&Zd(t.text.charCodeAt(E-1));)E--;this.replaceRange(t,Bf(E),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Bf(l),i,{prefix:`${_a(g)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,DV(r),L.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,o]=Rot(t,r);if(i!==void 0&&o!==void 0){const s=XK(t).length===0,l=Gf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Bf(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&&yle(o.node,i))||(Mo(i)?this.deleteRange(r,CV(r,i)):Afe.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),o=Mc.SmartIndenter.getContainingList(r,i);if(r!==Ba(o))return;const s=gl(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:Sfe(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=YK.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(YK.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}};function Aot(e){if(e.kind!==220)return e;const t=e.parent.kind===173?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function Iot(e,t){if(e.kind===t.kind)switch(e.kind){case 342:{const r=e,i=t;return He(r.name)&&He(i.name)&&r.name.escapedText===i.name.escapedText?L.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 343:return L.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 345:return L.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function Sfe(e,t){return La(e.text,V1(e,t,{leadingTriviaOption:1}),!1,!0)}function xot(e,t,r,i){const o=Sfe(e,i);if(r===void 0||Gf(Ex(e,t,{}),o,e))return o;const s=Gc(i.getStart(e),e);if(KK(t,s)){const l=Gc(t.getStart(e),e);if(KK(r,l)){const u=La(e.text,s.getEnd(),!0,!0);if(Gf(l.getStart(e),s.getStart(e),e))return Zd(e.text.charCodeAt(u-1))?u-1:u;if(Zd(e.text.charCodeAt(u)))return u}}return o}function Rot(e,t){const r=Es(e,19,t),i=Es(e,20,t);return[r?.end,i?.end]}function XK(e){return Wa(e)?e.properties:e.members}var YK;(e=>{function t(u,d,g,h){return Ui(AR(u,y=>y.sourceFile.path),y=>{const E=y[0].sourceFile,A=xp(y,(N,P)=>N.range.pos-P.range.pos||N.range.end-P.range.end);for(let N=0;N`${JSON.stringify(A[N].range)} and ${JSON.stringify(A[N+1].range)}`);const R=Ui(A,N=>{const P=hv(N.range),k=N.kind===1?Wn(yl(N.node))??N.sourceFile:N.kind===2?Wn(yl(N.nodes[0]))??N.sourceFile:N.sourceFile,W=o(N,k,E,d,g,h);if(!(P.length===W.length&&Zle(k.text,W,P.start)))return pO(P,W)});return R.length>0?{fileName:E.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,d,g,h){const y=i(L6(u),d,g,h);return{fileName:u,textChanges:[pO(Id(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(u,d,g,h){const y=Ki(d,R=>R.statements.map(N=>N===4?"":l(N,R.oldFile,g).text)).join(g),E=QI("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,u),A=Mc.formatDocument(E,h);return Efe(y,A)+g}e.newFileChangesWorker=i;function o(u,d,g,h,y,E){var A;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:R={},range:{pos:N}}=u,P=O=>s(O,d,g,N,R,h,y,E),k=u.kind===2?u.nodes.map(O=>xR(P(O),h)).join(((A=u.options)==null?void 0:A.joiner)||h):P(u.node),W=R.indentation!==void 0||Em(N,d)===N?k:k.replace(/^\s+/,"");return(R.prefix||"")+W+(!R.suffix||el(W,R.suffix)?"":R.suffix)}function s(u,d,g,h,{indentation:y,prefix:E,delta:A},R,N,P){const{node:k,text:W}=l(u,d,R);P&&P(k,W);const O=R7(N,d),G=y!==void 0?y:Mc.SmartIndenter.getIndentation(h,g,O,E===R||Em(h,d)===h);A===void 0&&(A=Mc.SmartIndenter.shouldIndentChildNode(O,u)&&O.indentSize||0);const j={text:W,getLineAndCharacterOfPosition(Z){return ca(this,Z)}},J=Mc.formatNodeGivenIndentation(k,j,d.languageVariant,G,A,{...N,options:O});return Efe(W,J)}function l(u,d,g){const h=Fke(g),y=AO(g);return Wb({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},h).writeNode(4,u,d,h),{text:h.getText(),node:$K(u)}}e.getNonformattedText=l})(YK||(YK={}));function Efe(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(Cl(i))}`}return e}function Dot(e){return La(e,0)===e.length}var Cot={...Vw,factory:$k(Vw.factory.flags|1,Vw.factory.baseFactory)};function $K(e){const t=kn(e,$K,Cot,Not,$K),r=Os(t)?t:Object.create(t);return uh(r,Lke(e),kke(e)),r}function Not(e,t,r,i,o){const s=Xn(e,t,r,i,o);if(!s)return s;C.assert(e);const l=s===e?L.createNodeArray(s.slice(0)):s;return uh(l,Lke(e),kke(e)),l}function Fke(e){let t=0;const r=Ak(e),i=X=>{X&&vfe(X,t)},o=X=>{X&&bfe(X,t)},s=X=>{X&&vfe(X,t)},l=X=>{X&&bfe(X,t)},u=X=>{X&&vfe(X,t)},d=X=>{X&&bfe(X,t)};function g(X,Ce){if(Ce||!Dot(X)){t=r.getTextPos();let Je=0;for(;sg(X.charCodeAt(X.length-Je-1));)Je++;t-=Je}}function h(X){r.write(X),g(X,!1)}function y(X){r.writeComment(X)}function E(X){r.writeKeyword(X),g(X,!1)}function A(X){r.writeOperator(X),g(X,!1)}function R(X){r.writePunctuation(X),g(X,!1)}function N(X){r.writeTrailingSemicolon(X),g(X,!1)}function P(X){r.writeParameter(X),g(X,!1)}function k(X){r.writeProperty(X),g(X,!1)}function W(X){r.writeSpace(X),g(X,!1)}function O(X){r.writeStringLiteral(X),g(X,!1)}function G(X,Ce){r.writeSymbol(X,Ce),g(X,!1)}function j(X){r.writeLine(X)}function J(){r.increaseIndent()}function Z(){r.decreaseIndent()}function q(){return r.getText()}function ye(X){r.rawWrite(X),g(X,!1)}function ie(X){r.writeLiteral(X),g(X,!0)}function K(){return r.getTextPos()}function pe(){return r.getLine()}function de(){return r.getColumn()}function fe(){return r.getIndent()}function ve(){return r.isAtStartOfLine()}function xe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:d,write:h,writeComment:y,writeKeyword:E,writeOperator:A,writePunctuation:R,writeTrailingSemicolon:N,writeParameter:P,writeProperty:k,writeSpace:W,writeStringLiteral:O,writeSymbol:G,writeLine:j,increaseIndent:J,decreaseIndent:Z,getText:q,rawWrite:ye,writeLiteral:ie,getTextPos:K,getLine:pe,getColumn:de,getIndent:fe,isAtStartOfLine:ve,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:xe}}function Mot(e){let t;for(const g of e.statements)if(Uh(g))t=g;else break;let r=0;const i=e.text;if(t)return r=t.end,d(),r;const o=X8(i);o!==void 0&&(r=o.length,d());const s=lg(i,r);if(!s)return r;let l,u;for(const g of s){if(g.kind===3){if(EF(i,g.pos)){l={range:g,pinnedOrTripleSlash:!0};continue}}else if(Q9(i,g.pos,g.end)){l={range:g,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const h=e.getLineAndCharacterOfPosition(g.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(h>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const h=e.getLineAndCharacterOfPosition(g.end).line;if(u{function t(s,l,u,d){switch(d.kind){case 170:{const A=d.parent;Xs(A)&&A.parameters.length===1&&!Es(A,21,u)?s.replaceNodeWithText(u,d,"()"):ZO(s,l,u,d);break}case 273:case 272:const g=u.imports.length&&d===$a(u.imports).parent||d===hn(u.statements,uI);vy(s,u,d,{leadingTriviaOption:g?0:ef(d)?2:3});break;case 209:const h=d.parent;h.kind===208&&d!==Ba(h.elements)?vy(s,u,d):ZO(s,l,u,d);break;case 261:o(s,l,u,d);break;case 169:ZO(s,l,u,d);break;case 277:const E=d.parent;E.elements.length===1?i(s,u,E):ZO(s,l,u,d);break;case 275:i(s,u,d);break;case 27:vy(s,u,d,{trailingTriviaOption:0});break;case 100:vy(s,u,d,{leadingTriviaOption:0});break;case 264:case 263:vy(s,u,d,{leadingTriviaOption:ef(d)?2:3});break;default:d.parent?Vm(d.parent)&&d.parent.name===d?r(s,u,d.parent):Zo(d.parent)&&jn(d.parent.arguments,d)?ZO(s,l,u,d):vy(s,u,d):vy(s,u,d)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)vy(s,l,u.parent);else{const d=u.name.getStart(l),g=Fi(l,u.name.end);if(g&&g.kind===28){const h=La(l.text,g.end,!1,!0);s.deleteRange(l,{pos:d,end:h})}else vy(s,l,u.name)}}function i(s,l,u){if(u.parent.name){const d=C.checkDefined(Fi(l,u.pos-1));s.deleteRange(l,{pos:d.getStart(l),end:u.end})}else{const d=GT(u,273);vy(s,l,d)}}function o(s,l,u,d){const{parent:g}=d;if(g.kind===300){s.deleteNodeRange(u,Es(g,21,u),Es(g,22,u));return}if(g.declarations.length!==1){ZO(s,l,u,d);return}const h=g.parent;switch(h.kind){case 251:case 250:s.replaceNode(u,d,L.createObjectLiteralExpression());break;case 249:vy(s,u,g);break;case 244:vy(s,u,h,{leadingTriviaOption:ef(h)?2:3});break;default:C.assertNever(h)}}})(Afe||(Afe={}));function vy(e,t,r,i={leadingTriviaOption:1}){const o=V1(t,r,i),s=Ex(t,r,i);e.deleteRange(t,{pos:o,end:s})}function ZO(e,t,r,i){const o=C.checkDefined(Mc.SmartIndenter.getContainingList(i,r)),s=jR(o,i);if(C.assert(s!==-1),o.length===1){vy(e,r,i);return}C.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:Sfe(r,i),end:s===o.length-1?Ex(r,i,{}):xot(r,i,o[s-1],o[s+1])})}var Mc={};x(Mc,{FormattingContext:()=>Gke,FormattingRequestKind:()=>Bke,RuleAction:()=>Vke,RuleFlags:()=>jke,SmartIndenter:()=>d_,anyContext:()=>QK,createTextRangeWithKind:()=>nX,formatDocument:()=>Eat,formatNodeGivenIndentation:()=>Nat,formatOnClosingCurly:()=>Sat,formatOnEnter:()=>vat,formatOnOpeningCurly:()=>Tat,formatOnSemicolon:()=>bat,formatSelection:()=>Aat,getAllRules:()=>Uke,getFormatContext:()=>uat,getFormattingScanner:()=>Ife,getIndentationString:()=>zfe,getRangeOfEnclosingComment:()=>hwe});var Bke=(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))(Bke||{}),Gke=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=C.checkDefined(e),this.currentTokenParent=C.checkDefined(t),this.nextTokenSpan=C.checkDefined(r),this.nextTokenParent=C.checkDefined(i),this.contextNode=C.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=Es(e,19,this.sourceFile),r=Es(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}},Lot=cg(99,!1,0),kot=cg(99,!1,1);function Ife(e,t,r,i,o){const s=t===1?kot:Lot;s.setText(e),s.resetTokenState(r);let l=!0,u,d,g,h,y;const E=o({advance:A,readTokenInfo:j,readEOFTokenRange:Z,isOnToken:q,isOnEOF:ye,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:K,skipToStartOf:pe,getTokenFullStart:()=>y?.token.pos??s.getTokenStart(),getStartPos:()=>y?.token.pos??s.getTokenStart()});return y=void 0,s.setText(void 0),E;function A(){y=void 0,s.getTokenFullStart()!==r?l=!!d&&Ba(d).kind===4:s.scan(),u=void 0,d=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))(Vke||{}),jke=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(jke||{});function Uke(){const e=[];for(let J=0;J<=166;J++)J!==1&&e.push(J);function t(...J){return{tokens:e.filter(Z=>!J.some(q=>q===Z)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=JP([...e,3]),o=JP([...e,1]),s=qke(83,166),l=qke(30,79),u=[103,104,165,130,142,152],d=[46,47,55,54],g=[9,10,80,21,23,19,110,105],h=[80,21,110,105],y=[80,22,24,105],E=[80,21,110,105],A=[80,22,24,105],R=[2,3],N=[80,...Mq],P=i,k=JP([80,32,3,86,95,102]),W=JP([22,3,92,113,98,93,85]),O=[oi("IgnoreBeforeComment",r,R,QK,1),oi("IgnoreAfterLineComment",2,r,QK,1),oi("NotSpaceBeforeColon",r,59,[no,gz,Xke],16),oi("SpaceAfterColon",59,r,[no,gz,$ot],4),oi("NoSpaceBeforeQuestionMark",r,58,[no,gz,Xke],16),oi("SpaceAfterQuestionMarkInConditionalOperator",58,r,[no,Fot],4),oi("NoSpaceAfterQuestionMark",58,r,[no,Wot],16),oi("NoSpaceBeforeDot",r,[25,29],[no,dat],16),oi("NoSpaceAfterDot",[25,29],r,[no],16),oi("NoSpaceBetweenImportParenInImportType",102,21,[no,Xot],16),oi("NoSpaceAfterUnaryPrefixOperator",d,g,[no,gz],16),oi("NoSpaceAfterUnaryPreincrementOperator",46,h,[no],16),oi("NoSpaceAfterUnaryPredecrementOperator",47,E,[no],16),oi("NoSpaceBeforeUnaryPostincrementOperator",y,46,[no,uwe],16),oi("NoSpaceBeforeUnaryPostdecrementOperator",A,47,[no,uwe],16),oi("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[no,Vb],4),oi("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[no,Vb],4),oi("SpaceAfterAddWhenFollowedByPreincrement",40,46,[no,Vb],4),oi("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[no,Vb],4),oi("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[no,Vb],4),oi("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[no,Vb],4),oi("NoSpaceAfterCloseBrace",20,[28,27],[no],16),oi("NewLineBeforeCloseBraceInBlockContext",i,20,[$ke],8),oi("SpaceAfterCloseBrace",20,t(22),[no,Got],4),oi("SpaceBetweenCloseBraceAndElse",20,93,[no],4),oi("SpaceBetweenCloseBraceAndWhile",20,117,[no],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[no,rwe],16),oi("SpaceAfterConditionalClosingParen",22,23,[yz],4),oi("NoSpaceBetweenFunctionKeywordAndStar",100,42,[ewe],16),oi("SpaceAfterStarInGeneratorDeclaration",42,80,[ewe],4),oi("SpaceAfterFunctionInFuncDecl",100,r,[j1],4),oi("NewLineAfterOpenBraceInBlockContext",19,r,[$ke],8),oi("SpaceAfterGetSetInMember",[139,153],80,[j1],4),oi("NoSpaceBetweenYieldKeywordAndStar",127,42,[no,dwe],16),oi("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[no,dwe],4),oi("NoSpaceBetweenReturnAndSemicolon",107,27,[no],16),oi("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[no],4),oi("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[no,eat],4),oi("NoSpaceBeforeOpenParenInFuncCall",r,21,[no,Uot,Hot],16),oi("SpaceBeforeBinaryKeywordOperator",r,u,[no,Vb],4),oi("SpaceAfterBinaryKeywordOperator",u,r,[no,Vb],4),oi("SpaceAfterVoidOperator",116,r,[no,oat],4),oi("SpaceBetweenAsyncAndOpenParen",134,21,[Kot,no],4),oi("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[no],4),oi("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[no],16),oi("SpaceBeforeJsxAttribute",r,80,[Yot,no],4),oi("SpaceBeforeSlashInJsxOpeningElement",r,44,[swe,no],4),oi("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[swe,no],16),oi("NoSpaceBeforeEqualInJsxAttribute",r,64,[owe,no],16),oi("NoSpaceAfterEqualInJsxAttribute",64,r,[owe,no],16),oi("NoSpaceBeforeJsxNamespaceColon",80,59,[awe],16),oi("NoSpaceAfterJsxNamespaceColon",59,80,[awe],16),oi("NoSpaceAfterModuleImport",[144,149],21,[no],16),oi("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,[no],4),oi("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[no],4),oi("SpaceAfterModuleName",11,19,[tat],4),oi("SpaceBeforeArrow",r,39,[no],4),oi("SpaceAfterArrow",39,r,[no],4),oi("NoSpaceAfterEllipsis",26,80,[no],16),oi("NoSpaceAfterOptionalParameters",58,[22,28],[no,gz],16),oi("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[no,nat],16),oi("NoSpaceBeforeOpenAngularBracket",N,30,[no,vz],16),oi("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[no,vz],16),oi("NoSpaceAfterOpenAngularBracket",30,r,[no,vz],16),oi("NoSpaceBeforeCloseAngularBracket",r,32,[no,vz],16),oi("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[no,vz,Bot,iat],16),oi("SpaceBeforeAt",[22,80],60,[no],4),oi("NoSpaceAfterAt",60,r,[no],16),oi("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Zot],4),oi("NoSpaceBeforeNonNullAssertionOperator",r,54,[no,aat],16),oi("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[no,rat],16),oi("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[no],4)],G=[oi("SpaceAfterConstructor",137,21,[vf("insertSpaceAfterConstructor"),no],4),oi("NoSpaceAfterConstructor",137,21,[c_("insertSpaceAfterConstructor"),no],16),oi("SpaceAfterComma",28,r,[vf("insertSpaceAfterCommaDelimiter"),no,Pfe,qot,Jot],4),oi("NoSpaceAfterComma",28,r,[c_("insertSpaceAfterCommaDelimiter"),no,Pfe],16),oi("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[vf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),j1],4),oi("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[c_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),j1],16),oi("SpaceAfterKeywordInControl",s,21,[vf("insertSpaceAfterKeywordsInControlFlowStatements"),yz],4),oi("NoSpaceAfterKeywordInControl",s,21,[c_("insertSpaceAfterKeywordsInControlFlowStatements"),yz],16),oi("SpaceAfterOpenParen",21,r,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],4),oi("SpaceBeforeCloseParen",r,22,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],4),oi("SpaceBetweenOpenParens",21,21,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],4),oi("NoSpaceBetweenParens",21,22,[no],16),oi("NoSpaceAfterOpenParen",21,r,[c_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],16),oi("NoSpaceBeforeCloseParen",r,22,[c_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],16),oi("SpaceAfterOpenBracket",23,r,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],4),oi("SpaceBeforeCloseBracket",r,24,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],4),oi("NoSpaceBetweenBrackets",23,24,[no],16),oi("NoSpaceAfterOpenBracket",23,r,[c_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],16),oi("NoSpaceBeforeCloseBracket",r,24,[c_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],16),oi("SpaceAfterOpenBrace",19,r,[Kke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yke],4),oi("SpaceBeforeCloseBrace",r,20,[Kke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yke],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[no,rwe],16),oi("NoSpaceAfterOpenBrace",19,r,[xfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),no],16),oi("NoSpaceBeforeCloseBrace",r,20,[xfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),no],16),oi("SpaceBetweenEmptyBraceBrackets",19,20,[vf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[xfe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),no],16),oi("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[vf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),iwe],4,1),oi("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[vf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),no],4),oi("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[c_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),iwe],16,1),oi("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[c_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),no],16),oi("SpaceAfterOpenBraceInJsxExpression",19,r,[vf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,eX],4),oi("SpaceBeforeCloseBraceInJsxExpression",r,20,[vf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,eX],4),oi("NoSpaceAfterOpenBraceInJsxExpression",19,r,[c_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,eX],16),oi("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[c_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,eX],16),oi("SpaceAfterSemicolonInFor",27,r,[vf("insertSpaceAfterSemicolonInForStatements"),no,Dfe],4),oi("NoSpaceAfterSemicolonInFor",27,r,[c_("insertSpaceAfterSemicolonInForStatements"),no,Dfe],16),oi("SpaceBeforeBinaryOperator",r,l,[vf("insertSpaceBeforeAndAfterBinaryOperators"),no,Vb],4),oi("SpaceAfterBinaryOperator",l,r,[vf("insertSpaceBeforeAndAfterBinaryOperators"),no,Vb],4),oi("NoSpaceBeforeBinaryOperator",r,l,[c_("insertSpaceBeforeAndAfterBinaryOperators"),no,Vb],16),oi("NoSpaceAfterBinaryOperator",l,r,[c_("insertSpaceBeforeAndAfterBinaryOperators"),no,Vb],16),oi("SpaceBeforeOpenParenInFuncDecl",r,21,[vf("insertSpaceBeforeFunctionParenthesis"),no,j1],4),oi("NoSpaceBeforeOpenParenInFuncDecl",r,21,[c_("insertSpaceBeforeFunctionParenthesis"),no,j1],16),oi("NewLineBeforeOpenBraceInControl",W,19,[vf("placeOpenBraceOnNewLineForControlBlocks"),yz,Mfe],8,1),oi("NewLineBeforeOpenBraceInFunction",P,19,[vf("placeOpenBraceOnNewLineForFunctions"),j1,Mfe],8,1),oi("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",k,19,[vf("placeOpenBraceOnNewLineForFunctions"),twe,Mfe],8,1),oi("SpaceAfterTypeAssertion",32,r,[vf("insertSpaceAfterTypeAssertion"),no,kfe],4),oi("NoSpaceAfterTypeAssertion",32,r,[c_("insertSpaceAfterTypeAssertion"),no,kfe],16),oi("SpaceBeforeTypeAnnotation",r,[58,59],[vf("insertSpaceBeforeTypeAnnotation"),no,Cfe],4),oi("NoSpaceBeforeTypeAnnotation",r,[58,59],[c_("insertSpaceBeforeTypeAnnotation"),no,Cfe],16),oi("NoOptionalSemicolon",27,o,[Jke("semicolons","remove"),lat],32),oi("OptionalSemicolon",r,o,[Jke("semicolons","insert"),cat],64)],j=[oi("NoSpaceBeforeSemicolon",r,27,[no],16),oi("SpaceBeforeOpenBraceInControl",W,19,[Rfe("placeOpenBraceOnNewLineForControlBlocks"),yz,Lfe,Nfe],4,1),oi("SpaceBeforeOpenBraceInFunction",P,19,[Rfe("placeOpenBraceOnNewLineForFunctions"),j1,ZK,Lfe,Nfe],4,1),oi("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",k,19,[Rfe("placeOpenBraceOnNewLineForFunctions"),twe,Lfe,Nfe],4,1),oi("NoSpaceBeforeComma",r,28,[no],16),oi("NoSpaceBeforeOpenBracket",t(134,84),23,[no],16),oi("NoSpaceAfterCloseBracket",24,r,[no,Qot],16),oi("SpaceAfterSemicolon",27,r,[no],4),oi("SpaceBetweenForAndAwaitKeyword",99,135,[no],4),oi("SpaceBetweenDotDotDotAndTypeName",26,N,[no],16),oi("SpaceBetweenStatements",[22,92,93,84],r,[no,Pfe,wot],4),oi("SpaceAfterTryCatchFinally",[113,85,98],19,[no],4)];return[...O,...G,...j]}function oi(e,t,r,i,o,s=0){return{leftTokenRange:Hke(t),rightTokenRange:Hke(r),rule:{debugName:e,context:i,action:o,flags:s}}}function JP(e){return{tokens:e,isSpecific:!0}}function Hke(e){return typeof e=="number"?JP([e]):Mo(e)?JP(e):e}function qke(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)jn(r,o)||i.push(o);return JP(i)}function Jke(e,t){return r=>r.options&&r.options[e]===t}function vf(e){return t=>t.options&&Rs(t.options,e)&&!!t.options[e]}function xfe(e){return t=>t.options&&Rs(t.options,e)&&!t.options[e]}function c_(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]}function Rfe(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Kke(e){return t=>!t.options||!Rs(t.options,e)||!!t.options[e]}function Dfe(e){return e.contextNode.kind===249}function wot(e){return!Dfe(e)}function Vb(e){switch(e.contextNode.kind){case 227:return e.contextNode.operatorToken.kind!==28;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:case 169:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 251:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function gz(e){return!Vb(e)}function Xke(e){return!Cfe(e)}function Cfe(e){const t=e.contextNode.kind;return t===173||t===172||t===170||t===261||rI(t)}function Oot(e){return Po(e.contextNode)&&e.contextNode.questionToken}function Wot(e){return!Oot(e)}function Fot(e){return e.contextNode.kind===228||e.contextNode.kind===195}function Nfe(e){return e.TokensAreOnSameLine()||ZK(e)}function Yke(e){return e.contextNode.kind===207||e.contextNode.kind===201||zot(e)}function Mfe(e){return ZK(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function $ke(e){return Qke(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function zot(e){return Qke(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Qke(e){return Zke(e.contextNode)}function ZK(e){return Zke(e.nextTokenParent)}function Zke(e){if(nwe(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function j1(e){switch(e.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function Bot(e){return!j1(e)}function ewe(e){return e.contextNode.kind===263||e.contextNode.kind===219}function twe(e){return nwe(e.contextNode)}function nwe(e){switch(e.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function Got(e){switch(e.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{const t=e.currentTokenParent.parent;if(!t||t.kind!==220&&t.kind!==219)return!0}}return!1}function yz(e){switch(e.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function rwe(e){return e.contextNode.kind===211}function Vot(e){return e.contextNode.kind===214}function jot(e){return e.contextNode.kind===215}function Uot(e){return Vot(e)||jot(e)}function Hot(e){return e.currentTokenSpan.kind!==28}function qot(e){return e.nextTokenSpan.kind!==24}function Jot(e){return e.nextTokenSpan.kind!==22}function Kot(e){return e.contextNode.kind===220}function Xot(e){return e.contextNode.kind===206}function no(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function iwe(e){return e.contextNode.kind!==12}function Pfe(e){return e.contextNode.kind!==285&&e.contextNode.kind!==289}function eX(e){return e.contextNode.kind===295||e.contextNode.kind===294}function Yot(e){return e.nextTokenParent.kind===292||e.nextTokenParent.kind===296&&e.nextTokenParent.parent.kind===292}function owe(e){return e.contextNode.kind===292}function $ot(e){return e.nextTokenParent.kind!==296}function awe(e){return e.nextTokenParent.kind===296}function swe(e){return e.contextNode.kind===286}function Qot(e){return!j1(e)&&!ZK(e)}function Zot(e){return e.TokensAreOnSameLine()&&pf(e.contextNode)&&lwe(e.currentTokenParent)&&!lwe(e.nextTokenParent)}function lwe(e){for(;e&&St(e);)e=e.parent;return e&&e.kind===171}function eat(e){return e.currentTokenParent.kind===262&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Lfe(e){return e.formattingRequestKind!==2}function tat(e){return e.contextNode.kind===268}function nat(e){return e.contextNode.kind===188}function rat(e){return e.contextNode.kind===181}function cwe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function vz(e){return cwe(e.currentTokenSpan,e.currentTokenParent)||cwe(e.nextTokenSpan,e.nextTokenParent)}function kfe(e){return e.contextNode.kind===217}function iat(e){return!kfe(e)}function oat(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===223}function dwe(e){return e.contextNode.kind===230&&e.contextNode.expression!==void 0}function aat(e){return e.contextNode.kind===236}function uwe(e){return!sat(e)}function sat(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}function lat(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(nD(t)){const s=e.nextTokenParent===e.currentTokenParent?ZS(e.currentTokenParent,Dn(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===27&&e.currentTokenSpan.kind===27?!0:t===241||t===27?!1:e.contextNode.kind===265||e.contextNode.kind===266?!Tu(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Po(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==249&&e.currentTokenParent.kind!==243&&e.currentTokenParent.kind!==241&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==229&&t!==16&&t!==15&&t!==25}function cat(e){return v7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function dat(e){return!qr(e.contextNode)||!np(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function uat(e,t){return{options:e,getRules:pat(),host:t}}var wfe;function pat(){return wfe===void 0&&(wfe=mat(Uke())),wfe}function fat(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function mat(e){const t=hat(e);return r=>{const i=t[pwe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const l of i){const u=~fat(s);l.action&u&&Vn(l.context,d=>d(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function hat(e){const t=new Array(Ofe*Ofe),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=pwe(s,l);let d=t[u];d===void 0&&(d=t[u]=[]),_at(d,i.rule,o,r,u)}}return t}function pwe(e,t){return C.assert(e<=166&&t<=166,"Must compute formatting context from tokens"),e*Ofe+t}var KP=5,tX=31,Ofe=167,eW=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=KP*1]="StopRulesAny",e[e.ContextRulesSpecific=KP*2]="ContextRulesSpecific",e[e.ContextRulesAny=KP*3]="ContextRulesAny",e[e.NoContextRulesSpecific=KP*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=KP*5]="NoContextRulesAny",e))(eW||{});function _at(e,t,r,i,o){const s=t.action&3?r?0:eW.StopRulesAny:t.context!==QK?r?eW.ContextRulesSpecific:eW.ContextRulesAny:r?eW.NoContextRulesSpecific:eW.NoContextRulesAny,l=i[o]||0;e.splice(gat(l,s),0,t),i[o]=yat(l,s)}function gat(e,t){let r=0;for(let i=0;i<=t;i+=KP)r+=e&tX,e>>=KP;return r}function yat(e,t){const r=(e>>t&tX)+1;return C.assert((r&tX)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(tX<C.formatSyntaxKind(r)}),i}function vat(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=B2(i,t);for(;Bh(t.text.charCodeAt(o));)o--;Zd(t.text.charCodeAt(o))&&o--;const s={pos:mb(i-1,t),end:o+1};return bz(s,t,r,2)}function bat(e,t,r){const i=Wfe(e,27,t);return fwe(Ffe(i),t,r,3)}function Tat(e,t,r){const i=Wfe(e,19,t);if(!i)return[];const o=i.parent,s=Ffe(o),l={pos:Em(s.getStart(t),t),end:e};return bz(l,t,r,4)}function Sat(e,t,r){const i=Wfe(e,20,t);return fwe(Ffe(i),t,r,5)}function Eat(e,t){const r={pos:0,end:e.text.length};return bz(r,e,t,0)}function Aat(e,t,r,i){const o={pos:Em(e,r),end:t};return bz(o,r,i,1)}function Wfe(e,t,r){const i=Gc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Ffe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Iat(t.parent,t);)t=t.parent;return t}function Iat(e,t){switch(e.kind){case 264:case 265:return tp(e.members,t);case 268:const r=e.body;return!!r&&r.kind===269&&tp(r.statements,t);case 308:case 242:case 269:return tp(e.statements,t);case 300:return tp(e.block.statements,t)}return!1}function xat(e,t){return r(t);function r(i){const o=Jo(i,s=>aV(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function Rat(e,t){if(!e.length)return o;const r=e.filter(s=>EP(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(Z3(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function Dat(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=Gc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Cat(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(d_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Nat(e,t,r,i,o,s){const l={pos:e.pos,end:e.end};return Ife(t.text,r,l.pos,l.end,u=>mwe(l,e,i,o,u,s,1,d=>!1,t))}function fwe(e,t,r,i){if(!e)return[];const o={pos:Em(e.getStart(t),t),end:e.end};return bz(o,t,r,i)}function bz(e,t,r,i){const o=xat(e,t);return Ife(t.text,t.languageVariant,Dat(o,e,t),e.end,s=>mwe(e,o,d_.getIndentationForNode(o,e,t,r.options),Cat(o,r.options,t),s,r,i,Rat(t.parseDiagnostics,e),t))}function mwe(e,t,r,i,o,{options:s,getRules:l,host:u},d,g,h){var y;const E=new Gke(h,d,s);let A,R,N,P,k,W=-1;const O=[];if(o.advance(),o.isOnToken()){const ce=h.getLineAndCharacterOfPosition(t.getStart(h)).line;let Re=ce;pf(t)&&(Re=h.getLineAndCharacterOfPosition(Z9(t,h)).line),ye(t,t,ce,Re,r,i)}const G=o.getCurrentLeadingTrivia();if(G){const ce=d_.nodeWillIndentChild(s,t,void 0,h,!1)?r+s.indentSize:r;ie(G,ce,!0,Re=>{pe(Re,h.getLineAndCharacterOfPosition(Re.pos),t,t,void 0),fe(Re.pos,ce,!1)}),s.trimTrailingWhitespace!==!1&&Se(G)}if(R&&o.getTokenFullStart()>=e.end){const ce=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(ce&&ce.pos===A){const Re=((y=Gc(ce.end,h,t))==null?void 0:y.parent)||N;de(ce,h.getLineAndCharacterOfPosition(ce.pos).line,Re,R,P,N,Re,void 0)}}return O;function j(ce,Re,_e,je,Ge){if(EP(je,ce,Re)||cO(je,ce,Re)){if(Ge!==-1)return Ge}else{const We=h.getLineAndCharacterOfPosition(ce).line,at=Em(ce,h),Wt=d_.findFirstNonWhitespaceColumn(at,ce,h,s);if(We!==_e||ce===Wt){const cn=d_.getBaseIndentation(s);return cn>Wt?cn:Wt}}return-1}function J(ce,Re,_e,je,Ge,We){const at=d_.shouldIndentChildNode(s,ce)?s.indentSize:0;return We===Re?{indentation:Re===k?W:Ge.getIndentation(),delta:Math.min(s.indentSize,Ge.getDelta(ce)+at)}:_e===-1?ce.kind===21&&Re===k?{indentation:W,delta:Ge.getDelta(ce)}:d_.childStartsOnTheSameLineWithElseInIfStatement(je,ce,Re,h)||d_.childIsUnindentedBranchOfConditionalExpression(je,ce,Re,h)||d_.argumentStartsOnSameLineAsPreviousArgument(je,ce,Re,h)?{indentation:Ge.getIndentation(),delta:at}:{indentation:Ge.getIndentation()+Ge.getDelta(ce),delta:at}:{indentation:_e,delta:at}}function Z(ce){if(Tm(ce)){const Re=hn(ce.modifiers,Aa,ho(ce.modifiers,Fc));if(Re)return Re.kind}switch(ce.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(ce.asteriskToken)return 42;case 173:case 170:const Re=Oo(ce);if(Re)return Re.kind}}function q(ce,Re,_e,je){return{getIndentationForComment:(at,Wt,cn)=>{switch(at){case 20:case 24:case 22:return _e+We(cn)}return Wt!==-1?Wt:_e},getIndentationForToken:(at,Wt,cn,gn)=>!gn&&Ge(at,Wt,cn)?_e+We(cn):_e,getIndentation:()=>_e,getDelta:We,recomputeIndentation:(at,Wt)=>{d_.shouldIndentChildNode(s,Wt,ce,h)&&(_e+=at?s.indentSize:-s.indentSize,je=d_.shouldIndentChildNode(s,ce)?s.indentSize:0)}};function Ge(at,Wt,cn){switch(Wt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(cn.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(cn.kind!==201)return!1;break}return Re!==at&&!(pf(ce)&&Wt===Z(ce))}function We(at){return d_.nodeWillIndentChild(s,ce,at,h,!0)?je:0}}function ye(ce,Re,_e,je,Ge,We){if(!EP(e,ce.getStart(h),ce.getEnd()))return;const at=q(ce,_e,Ge,We);let Wt=Re;for(Jo(ce,_t=>{cn(_t,-1,ce,at,_e,je,!1)},_t=>{gn(_t,ce,_e,at)});o.isOnToken()&&o.getTokenFullStart()Math.min(ce.end,e.end))break;Kn(_t,ce,at,ce)}function cn(_t,en,ir,Di,lo,zt,Zr,Ai){if(C.assert(!Os(_t)),Wl(_t)||ute(ir,_t))return en;const Ni=_t.getStart(h),Pr=h.getLineAndCharacterOfPosition(Ni).line;let Ci=Pr;pf(_t)&&(Ci=h.getLineAndCharacterOfPosition(Z9(_t,h)).line);let $e=-1;if(Zr&&tp(e,ir)&&($e=j(Ni,_t.end,lo,e,en),$e!==-1&&(en=$e)),!EP(e,_t.pos,_t.end))return _t.ende.end)return en;if(dr.token.end>Ni){dr.token.pos>Ni&&o.skipToStartOf(_t);break}Kn(dr,ce,Di,ce)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return en;if(nI(_t)){const dr=o.readTokenInfo(_t);if(_t.kind!==12)return C.assert(dr.token.end===_t.end,"Token end is child end"),Kn(dr,ce,Di,_t),en}const At=_t.kind===171?Pr:zt,mn=J(_t,Pr,$e,ce,Di,At);return ye(_t,Wt,Pr,Ci,mn.indentation,mn.delta),Wt=ce,Ai&&ir.kind===210&&en===-1&&(en=mn.indentation),en}function gn(_t,en,ir,Di){C.assert(mS(_t)),C.assert(!Os(_t));const lo=Mat(en,_t);let zt=Di,Zr=ir;if(!EP(e,_t.pos,_t.end)){_t.end_t.pos)break;if(Pr.token.kind===lo){Zr=h.getLineAndCharacterOfPosition(Pr.token.pos).line,Kn(Pr,en,Di,en);let Ci;if(W!==-1)Ci=W;else{const $e=Em(Pr.token.pos,h);Ci=d_.findFirstNonWhitespaceColumn($e,Pr.token.pos,h,s)}zt=q(en,ir,Ci,s.indentSize)}else Kn(Pr,en,Di,en)}let Ai=-1;for(let Pr=0;Pr<_t.length;Pr++){const Ci=_t[Pr];Ai=cn(Ci,Ai,ce,zt,Zr,Zr,!0,Pr===0)}const Ni=Pat(lo);if(Ni!==0&&o.isOnToken()&&o.getTokenFullStart()fe(mn.pos,At,!1))}Ci!==-1&&$e&&(fe(_t.token.pos,Ci,Ai===1),k=Pr.line,W=Ci)}o.advance(),Wt=en}}function ie(ce,Re,_e,je){for(const Ge of ce){const We=tp(e,Ge);switch(Ge.kind){case 3:We&&X(Ge,Re,!_e),_e=!1;break;case 2:_e&&We&&je(Ge),_e=!1;break;case 4:_e=!0;break}}return _e}function K(ce,Re,_e,je){for(const Ge of ce)if(a7(Ge.kind)&&tp(e,Ge)){const We=h.getLineAndCharacterOfPosition(Ge.pos);pe(Ge,We,Re,_e,je)}}function pe(ce,Re,_e,je,Ge){const We=g(ce);let at=0;if(!We)if(R)at=de(ce,Re.line,_e,R,P,N,je,Ge);else{const Wt=h.getLineAndCharacterOfPosition(e.pos);Ce(Wt.line,Re.line)}return R=ce,A=ce.end,N=_e,P=Re.line,at}function de(ce,Re,_e,je,Ge,We,at,Wt){E.updateContext(je,We,ce,_e,at);const cn=l(E);let gn=E.options.trimTrailingWhitespace!==!1,Kn=0;return cn?Pn(cn,_t=>{if(Kn=lt(_t,je,Ge,ce,Re),Wt)switch(Kn){case 2:_e.getStart(h)===ce.pos&&Wt.recomputeIndentation(!1,at);break;case 1:_e.getStart(h)===ce.pos&&Wt.recomputeIndentation(!0,at);break;default:C.assert(Kn===0)}gn=gn&&!(_t.action&16)&&_t.flags!==1}):gn=gn&&ce.kind!==1,Re!==Ge&&gn&&Ce(Ge,Re,je),Kn}function fe(ce,Re,_e){const je=zfe(Re,s);if(_e)Ne(ce,0,je);else{const Ge=h.getLineAndCharacterOfPosition(ce),We=mb(Ge.line,h);(Re!==ve(We,Ge.character)||xe(je,We))&&Ne(We,Ge.character,je)}}function ve(ce,Re){let _e=0;for(let je=0;je0){const zt=zfe(lo,s);Ne(ir,Di.character,zt)}else be(ir,Di.character)}}function Ce(ce,Re,_e){for(let je=ce;jeWe)continue;const at=Je(Ge,We);at!==-1&&(C.assert(at===Ge||!Bh(h.text.charCodeAt(at-1))),be(at,We+1-at))}}function Je(ce,Re){let _e=Re;for(;_e>=ce&&Bh(h.text.charCodeAt(_e));)_e--;return _e!==Re?_e+1:-1}function Se(ce){let Re=R?R.end:e.pos;for(const _e of ce)a7(_e.kind)&&(Re<_e.pos&&re(Re,_e.pos-1,R),Re=_e.end+1);RelO(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function Mat(e,t){switch(e.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 214:case 215:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 264:case 232:case 265:case 266:if(e.typeParameters===t)return 30;break;case 184:case 216:case 187:case 234:case 206:if(e.typeArguments===t)return 30;break;case 188:return 19}return 0}function Pat(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var rX,tW,nW;function zfe(e,t){if((!rX||rX.tabSize!==t.tabSize||rX.indentSize!==t.indentSize)&&(rX={tabSize:t.tabSize,indentSize:t.indentSize},tW=nW=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return nW||(nW=[]),nW[o]===void 0?(i=fO(" ",t.indentSize*o),nW[o]=i):i=nW[o],s?i+fO(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return tW||(tW=[]),tW[i]===void 0?tW[i]=s=fO(" ",i):s=tW[i],o?s+fO(" ",o):s}}var d_;(e=>{let t;(X=>{X[X.Unknown=-1]="Unknown"})(t||(t={}));function r(X,Ce,Je,Se=!1){if(X>Ce.text.length)return u(Je);if(Je.indentStyle===0)return 0;const re=Gc(X,Ce,void 0,!0),be=hwe(Ce,X,re||null);if(be&&be.kind===3)return i(Ce,X,Je,be);if(!re)return u(Je);if(Iq(re.kind)&&re.getStart(Ce)<=X&&X=0),re<=be)return pe(mb(be,X),Ce,X,Je);const Ne=mb(re,X),{column:Be,character:lt}=K(Ne,Ce,X,Je);return Be===0?Be:X.text.charCodeAt(Ne+lt)===42?Be-1:Be}function o(X,Ce,Je){let Se=Ce;for(;Se>0;){const be=X.text.charCodeAt(Se);if(!sg(be))break;Se--}const re=Em(Se,X);return pe(re,Se,X,Je)}function s(X,Ce,Je,Se,re,be){let Ne,Be=Je;for(;Be;){if(yq(Be,Ce,X)&&ve(be,Be,Ne,X,!0)){const ce=R(Be,X),Re=A(Je,Be,Se,X),_e=Re!==0?re&&Re===2?be.indentSize:0:Se!==ce.line?be.indentSize:0;return d(Be,ce,void 0,_e,X,!0,be)}const lt=q(Be,X,be,!0);if(lt!==-1)return lt;Ne=Be,Be=Be.parent}return u(be)}function l(X,Ce,Je,Se){const re=Je.getLineAndCharacterOfPosition(X.getStart(Je));return d(X,re,Ce,0,Je,!1,Se)}e.getIndentationForNode=l;function u(X){return X.baseIndentSize||0}e.getBaseIndentation=u;function d(X,Ce,Je,Se,re,be,Ne){var Be;let lt=X.parent;for(;lt;){let ce=!0;if(Je){const Ge=X.getStart(re);ce=GeJe.end}const Re=g(lt,X,re),_e=Re.line===Ce.line||P(lt,X,Ce.line,re);if(ce){const Ge=(Be=O(X,re))==null?void 0:Be[0],We=!!Ge&&R(Ge,re).line>Re.line;let at=q(X,re,Ne,We);if(at!==-1||(at=y(X,lt,Ce,_e,re,Ne),at!==-1))return at+Se}ve(Ne,lt,X,re,be)&&!_e&&(Se+=Ne.indentSize);const je=N(lt,X,Ce.line,re);X=lt,lt=X.parent,Ce=je?re.getLineAndCharacterOfPosition(X.getStart(re)):Re}return Se+u(Ne)}function g(X,Ce,Je){const Se=O(Ce,Je),re=Se?Se.pos:X.getStart(Je);return Je.getLineAndCharacterOfPosition(re)}function h(X,Ce,Je){const Se=vle(X);return Se&&Se.listItemIndex>0?ye(Se.list.getChildren(),Se.listItemIndex-1,Ce,Je):-1}function y(X,Ce,Je,Se,re,be){return(rd(X)||O2(X))&&(Ce.kind===308||!Se)?ie(Je,re,be):-1}let E;(X=>{X[X.Unknown=0]="Unknown",X[X.OpenBrace=1]="OpenBrace",X[X.CloseBrace=2]="CloseBrace"})(E||(E={}));function A(X,Ce,Je,Se){const re=ZS(X,Ce,Se);if(!re)return 0;if(re.kind===19)return 1;if(re.kind===20){const be=R(re,Se).line;return Je===be?2:0}return 0}function R(X,Ce){return Ce.getLineAndCharacterOfPosition(X.getStart(Ce))}function N(X,Ce,Je,Se){if(!(Zo(X)&&jn(X.arguments,Ce)))return!1;const re=X.expression.getEnd();return ca(Se,re).line===Je}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function P(X,Ce,Je,Se){if(X.kind===246&&X.elseStatement===Ce){const re=Es(X,93,Se);return C.assert(re!==void 0),R(re,Se).line===Je}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=P;function k(X,Ce,Je,Se){if(v1(X)&&(Ce===X.whenTrue||Ce===X.whenFalse)){const re=ca(Se,X.condition.end).line;if(Ce===X.whenTrue)return Je===re;{const be=R(X.whenTrue,Se).line,Ne=ca(Se,X.whenTrue.end).line;return re===be&&Ne===Je}}return!1}e.childIsUnindentedBranchOfConditionalExpression=k;function W(X,Ce,Je,Se){if(Gh(X)){if(!X.arguments)return!1;const re=hn(X.arguments,lt=>lt.pos===Ce.pos);if(!re)return!1;const be=X.arguments.indexOf(re);if(be===0)return!1;const Ne=X.arguments[be-1],Be=ca(Se,Ne.getEnd()).line;if(Je===Be)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=W;function O(X,Ce){return X.parent&&j(X.getStart(Ce),X.getEnd(),X.parent,Ce)}e.getContainingList=O;function G(X,Ce,Je){return Ce&&j(X,X,Ce,Je)}function j(X,Ce,Je,Se){switch(Je.kind){case 184:return re(Je.typeArguments);case 211:return re(Je.properties);case 210:return re(Je.elements);case 188:return re(Je.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return re(Je.typeParameters)||re(Je.parameters);case 178:return re(Je.parameters);case 264:case 232:case 265:case 266:case 346:return re(Je.typeParameters);case 215:case 214:return re(Je.typeArguments)||re(Je.arguments);case 262:return re(Je.declarations);case 276:case 280:return re(Je.elements);case 207:case 208:return re(Je.elements)}function re(be){return be&&cO(J(Je,be,Se),X,Ce)?be:void 0}}function J(X,Ce,Je){const Se=X.getChildren(Je);for(let re=1;re=0&&Ce=0;Ne--){if(X[Ne].kind===28)continue;if(Je.getLineAndCharacterOfPosition(X[Ne].end).line!==be.line)return ie(be,Je,Se);be=R(X[Ne],Je)}return-1}function ie(X,Ce,Je){const Se=Ce.getPositionOfLineAndCharacter(X.line,0);return pe(Se,Se+X.character,Ce,Je)}function K(X,Ce,Je,Se){let re=0,be=0;for(let Ne=X;NeLat});function Lat(e,t,r){let i=!1;return t.forEach(o=>{const s=Dn(Fi(e,o.pos),l=>tp(l,o));s&&Jo(s,function l(u){var d;if(!i){if(He(u)&&QD(o,u.getStart(e))){const g=r.resolveName(u.text,u,-1,!1);if(g&&g.declarations){for(const h of g.declarations)if(wJ(h)||u.text&&e.symbol&&((d=e.symbol.exports)!=null&&d.has(u.escapedText))){i=!0;return}}}u.forEachChild(l)}})}),i}var oX={};x(oX,{pasteEditsProvider:()=>wat});var kat="providePostPasteEdits";function wat(e,t,r,i,o,s,l,u){return{edits:Rr.ChangeTracker.with({host:o,formatContext:l,preferences:s},g=>Oat(e,t,r,i,o,s,l,u,g)),fixId:kat}}function Oat(e,t,r,i,o,s,l,u,d){let g;t.length!==r.length&&(g=t.length===1?t[0]:t.join(_y(l.host,l.options)));const h=[];let y=e.text;for(let A=r.length-1;A>=0;A--){const{pos:R,end:N}=r[A];y=g?y.slice(0,R)+g+y.slice(N):y.slice(0,R)+t[A]+y.slice(N)}let E;C.checkDefined(o.runWithTemporaryFileUpdate).call(o,e.fileName,y,(A,R,N)=>{if(E=lu.createImportAdder(N,A,s,o),i?.range){C.assert(i.range.length===t.length),i.range.forEach(G=>{const j=i.file.statements,J=ho(j,q=>q.end>G.pos);if(J===-1)return;let Z=ho(j,q=>q.end>=G.end,J);Z!==-1&&G.end<=j[Z].getStart()&&Z--,h.push(...j.slice(J,Z===-1?j.length:Z+1))}),C.assertIsDefined(R,"no original program found");const P=R.getTypeChecker(),k=Wat(i),W=W7(i.file,h,P,nde(N,h,P),k),O=!sJ(e.fileName,R,o,!!i.file.commonJsModuleIndicator);Kce(i.file,W.targetFileImportsFromOldFile,d,O),ide(i.file,W.oldImportsNeededByTargetFile,W.targetFileImportsFromOldFile,P,A,E)}else{const P={sourceFile:N,program:R,cancellationToken:u,host:o,preferences:s,formatContext:l};let k=0;r.forEach((W,O)=>{const G=W.end-W.pos,j=g??t[O],J=W.pos+k,Z=J+j.length,q={pos:J,end:Z};k+=j.length-G;const ye=Dn(Fi(P.sourceFile,q.pos),ie=>tp(ie,q));ye&&Jo(ye,function ie(K){if(He(K)&&QD(q,K.getStart(N))&&!A?.getTypeChecker().resolveName(K.text,K,-1,!1))return E.addImportForUnresolvedIdentifier(P,K,!0);K.forEachChild(ie)})})}E.writeFixes(d,Gp(i?i.file:e,s))}),E.hasFixes()&&r.forEach((A,R)=>{d.replaceRangeWithText(e,{pos:A.pos,end:A.end},g??t[R])})}function Wat({file:e,range:t}){const r=t[0].pos,i=t[t.length-1].end,o=Fi(e,r),s=AP(e,r)??Fi(e,i);return{pos:He(o)&&r<=o.getStart(e)?o.getFullStart():r,end:He(s)&&i===s.getEnd()?Rr.getAdjustedEndPosition(e,s,{}):i}}var _we={};x(_we,{ANONYMOUS:()=>$q,AccessFlags:()=>yZ,AssertionLevel:()=>DQ,AssignmentDeclarationKind:()=>RZ,AssignmentKind:()=>$te,Associativity:()=>one,BreakpointResolver:()=>XJ,BuilderFileEmit:()=>tse,BuilderProgramKind:()=>cse,BuilderState:()=>_h,CallHierarchy:()=>hx,CharacterCodes:()=>FZ,CheckFlags:()=>mZ,CheckMode:()=>bU,ClassificationType:()=>lq,ClassificationTypeNames:()=>ule,CommentDirectiveType:()=>ZQ,Comparison:()=>Ke,CompletionInfoFlags:()=>ile,CompletionTriggerKind:()=>aq,Completions:()=>bx,ContainerFlags:()=>woe,ContextFlags:()=>aZ,Debug:()=>C,DiagnosticCategory:()=>O8,Diagnostics:()=>f,DocumentHighlights:()=>P7,ElementFlags:()=>gZ,EmitFlags:()=>o9,EmitHint:()=>VZ,EmitOnly:()=>tZ,EndOfLineState:()=>sle,ExitStatus:()=>nZ,ExportKind:()=>tce,Extension:()=>zZ,ExternalEmitHelpers:()=>GZ,FileIncludeKind:()=>XB,FilePreprocessingDiagnosticsKind:()=>eZ,FileSystemEntryKind:()=>$Z,FileWatcherEventKind:()=>KZ,FindAllReferences:()=>Ys,FlattenLevel:()=>rae,FlowFlags:()=>w8,ForegroundColorEscapeSequences:()=>Hae,FunctionFlags:()=>rne,GeneratedIdentifierFlags:()=>KB,GetLiteralTextFlags:()=>mte,GoToDefinition:()=>pC,HighlightSpanKind:()=>nle,IdentifierNameMap:()=>VD,ImportKind:()=>ece,ImportsNotUsedAsValues:()=>LZ,IndentStyle:()=>rle,IndexFlags:()=>vZ,IndexKind:()=>SZ,InferenceFlags:()=>IZ,InferencePriority:()=>AZ,InlayHintKind:()=>tle,InlayHints:()=>BK,InternalEmitFlags:()=>BZ,InternalNodeBuilderFlags:()=>lZ,InternalSymbolName:()=>hZ,IntersectionFlags:()=>oZ,InvalidatedProjectKind:()=>Pse,JSDocParsingMode:()=>JZ,JsDoc:()=>g0,JsTyping:()=>zb,JsxEmit:()=>PZ,JsxFlags:()=>XQ,JsxReferenceKind:()=>bZ,LanguageFeatureMinimumTarget:()=>ed,LanguageServiceMode:()=>Zse,LanguageVariant:()=>OZ,LexicalEnvironmentFlags:()=>UZ,ListFormat:()=>HZ,LogLevel:()=>FQ,MapCode:()=>GK,MemberOverrideStatus:()=>rZ,ModifierFlags:()=>qB,ModuleDetectionKind:()=>DZ,ModuleInstanceState:()=>Loe,ModuleKind:()=>DR,ModuleResolutionKind:()=>RR,ModuleSpecifierEnding:()=>nre,NavigateTo:()=>Ice,NavigationBar:()=>Rce,NewLineKind:()=>kZ,NodeBuilderFlags:()=>sZ,NodeCheckFlags:()=>QB,NodeFactoryFlags:()=>kre,NodeFlags:()=>HB,NodeResolutionFeatures:()=>Eoe,ObjectFlags:()=>e9,OperationCanceledException:()=>yN,OperatorPrecedence:()=>ane,OrganizeImports:()=>y0,OrganizeImportsMode:()=>oq,OuterExpressionKinds:()=>jZ,OutliningElementsCollector:()=>jK,OutliningSpanKind:()=>ole,OutputFileType:()=>ale,PackageJsonAutoImportPreference:()=>Qse,PackageJsonDependencyGroup:()=>$se,PatternMatchKind:()=>_J,PollingInterval:()=>a9,PollingWatchKind:()=>MZ,PragmaKindFlags:()=>qZ,PredicateSemantics:()=>YQ,PreparePasteEdits:()=>iX,PrivateIdentifierKind:()=>Ure,ProcessLevel:()=>sae,ProgramUpdateLevel:()=>Bae,QuotePreference:()=>Lle,RegularExpressionFlags:()=>$Q,RelationComparisonResult:()=>JB,Rename:()=>hz,ScriptElementKind:()=>cle,ScriptElementKindModifier:()=>dle,ScriptKind:()=>n9,ScriptSnapshot:()=>U3,ScriptTarget:()=>wZ,SemanticClassificationFormat:()=>ele,SemanticMeaning:()=>ple,SemicolonPreference:()=>sq,SignatureCheckMode:()=>TU,SignatureFlags:()=>t9,SignatureHelp:()=>KO,SignatureInfo:()=>ese,SignatureKind:()=>TZ,SmartSelectionRange:()=>qK,SnippetKind:()=>i9,StatisticType:()=>Gse,StructureIsReused:()=>YB,SymbolAccessibility:()=>uZ,SymbolDisplay:()=>yv,SymbolDisplayPartKind:()=>q3,SymbolFlags:()=>$B,SymbolFormatFlags:()=>dZ,SyntaxKind:()=>UB,Ternary:()=>xZ,ThrottledCancellationToken:()=>wde,TokenClass:()=>lle,TokenFlags:()=>QQ,TransformFlags:()=>r9,TypeFacts:()=>vU,TypeFlags:()=>ZB,TypeFormatFlags:()=>cZ,TypeMapKind:()=>EZ,TypePredicateKind:()=>pZ,TypeReferenceSerializationKind:()=>fZ,UnionReduction:()=>iZ,UpToDateStatusType:()=>Ise,VarianceFlags:()=>_Z,Version:()=>ih,VersionRange:()=>k8,WatchDirectoryFlags:()=>WZ,WatchDirectoryKind:()=>NZ,WatchFileKind:()=>CZ,WatchLogLevel:()=>Vae,WatchType:()=>sd,accessPrivateIdentifier:()=>nae,addEmitFlags:()=>Qh,addEmitHelper:()=>OI,addEmitHelpers:()=>Ag,addInternalEmitFlags:()=>f1,addNodeFactoryPatcher:()=>P0e,addObjectAllocatorPatcher:()=>_0e,addRange:()=>Xr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>Rb,addSyntheticTrailingComment:()=>LM,addToSeen:()=>gm,advancedAsyncSuperHelper:()=>e4,affectsDeclarationPathOptionDeclarations:()=>Xie,affectsEmitOptionDeclarations:()=>Kie,allKeysStartWithDot:()=>K4,altDirectorySeparator:()=>G8,and:()=>M8,append:()=>Bn,appendIfUnique:()=>$g,arrayFrom:()=>Co,arrayIsEqualTo:()=>Qp,arrayIsHomogeneous:()=>ure,arrayOf:()=>AQ,arrayReverseIterator:()=>EB,arrayToMap:()=>ER,arrayToMultiMap:()=>a2,arrayToNumericMap:()=>xQ,assertType:()=>Ube,assign:()=>zE,asyncSuperHelper:()=>Z6,attachFileToDiagnostics:()=>RI,base64decode:()=>Rne,base64encode:()=>xne,binarySearch:()=>$v,binarySearchKey:()=>JA,bindSourceFile:()=>Ooe,breakIntoCharacterSpans:()=>gce,breakIntoWordSpans:()=>yce,buildLinkParts:()=>Gle,buildOpts:()=>Sw,buildOverload:()=>vwe,bundlerModuleNameResolver:()=>Aoe,canBeConvertedToAsync:()=>SJ,canHaveDecorators:()=>HS,canHaveExportModifier:()=>qk,canHaveFlowNode:()=>ZR,canHaveIllegalDecorators:()=>Cj,canHaveIllegalModifiers:()=>Cie,canHaveIllegalType:()=>iSe,canHaveIllegalTypeParameters:()=>Die,canHaveJSDoc:()=>fk,canHaveLocals:()=>D_,canHaveModifiers:()=>Tm,canHaveModuleSpecifier:()=>Kte,canHaveSymbol:()=>ah,canIncludeBindAndCheckDiagnostics:()=>EM,canJsonReportNoInputFiles:()=>Dw,canProduceDiagnostics:()=>Ww,canUsePropertyAccess:()=>LV,canWatchAffectingLocation:()=>gse,canWatchAtTypes:()=>_se,canWatchDirectoryOrFile:()=>SH,canWatchDirectoryOrFilePath:()=>Qw,cartesianProduct:()=>OQ,cast:()=>ma,chainBundle:()=>hh,chainDiagnosticMessages:()=>qo,changeAnyExtension:()=>f2,changeCompilerHostLikeToUseCache:()=>hP,changeExtension:()=>ov,changeFullExtension:()=>U8,changesAffectModuleResolution:()=>gF,changesAffectingProgramStructure:()=>ate,characterCodeToRegularExpressionFlag:()=>g9,childIsDecorated:()=>HN,classElementOrClassElementParameterIsDecorated:()=>_G,classHasClassThisAssignment:()=>OU,classHasDeclaredOrExplicitlyAssignedName:()=>WU,classHasExplicitlyAssignedName:()=>l3,classOrConstructorParameterIsDecorated:()=>ev,classicNameResolver:()=>Moe,classifier:()=>zde,cleanExtendedConfigCache:()=>m3,clear:()=>hi,clearMap:()=>hp,clearSharedExtendedConfigFileWatcher:()=>$U,climbPastPropertyAccess:()=>X3,clone:()=>RQ,cloneCompilerOptions:()=>Rq,closeFileWatcher:()=>Bm,closeFileWatcherOf:()=>Kf,codefix:()=>lu,collapseTextChangeRangesAcrossMultipleVersions:()=>yee,collectExternalModuleInfo:()=>PU,combine:()=>qA,combinePaths:()=>Qr,commandLineOptionOfCustomType:()=>Qie,commentPragmas:()=>W8,commonOptionsWithBuild:()=>R4,compact:()=>i2,compareBooleans:()=>CT,compareDataObjects:()=>cV,compareDiagnostics:()=>_M,compareEmitHelpers:()=>qre,compareNumberOfDirectorySeparators:()=>Vk,comparePaths:()=>Zg,comparePathsCaseInsensitive:()=>_Te,comparePathsCaseSensitive:()=>hTe,comparePatternKeys:()=>pU,compareProperties:()=>PQ,compareStringsCaseInsensitive:()=>l2,compareStringsCaseInsensitiveEslintCompatible:()=>CQ,compareStringsCaseSensitive:()=>Wd,compareStringsCaseSensitiveUI:()=>c2,compareTextSpans:()=>C8,compareValues:()=>js,compilerOptionsAffectDeclarationPath:()=>Xne,compilerOptionsAffectEmit:()=>Kne,compilerOptionsAffectSemanticDiagnostics:()=>Jne,compilerOptionsDidYouMeanDiagnostics:()=>M4,compilerOptionsIndicateEsModules:()=>Lq,computeCommonSourceDirectoryOfFilenames:()=>jae,computeLineAndCharacterOfPosition:()=>PR,computeLineOfPosition:()=>SN,computeLineStarts:()=>tI,computePositionOfLineAndCharacter:()=>K8,computeSignatureWithDiagnostics:()=>_H,computeSuggestionDiagnostics:()=>vJ,computedOptions:()=>gM,concatenate:()=>so,concatenateDiagnosticMessageChains:()=>Bne,consumesNodeCoreModules:()=>E7,contains:()=>jn,containsIgnoredPath:()=>xM,containsObjectRestOrSpread:()=>yw,containsParseError:()=>dI,containsPath:()=>um,convertCompilerOptionsForTelemetry:()=>foe,convertCompilerOptionsFromJson:()=>fEe,convertJsonOption:()=>D1,convertToBase64:()=>Ine,convertToJson:()=>Iw,convertToObject:()=>soe,convertToOptionsWithAbsolutePaths:()=>w4,convertToRelativePath:()=>bN,convertToTSConfig:()=>Xj,convertTypeAcquisitionFromJson:()=>mEe,copyComments:()=>W1,copyEntries:()=>yF,copyLeadingComments:()=>iC,copyProperties:()=>NB,copyTrailingAsLeadingComments:()=>vO,copyTrailingComments:()=>MP,couldStartTrivia:()=>iee,countWhere:()=>Io,createAbstractBuilder:()=>TAe,createAccessorPropertyBackingField:()=>Pj,createAccessorPropertyGetRedirector:()=>Wie,createAccessorPropertySetRedirector:()=>Fie,createBaseNodeFactory:()=>Cre,createBinaryExpressionTrampoline:()=>S4,createBuilderProgram:()=>gH,createBuilderProgramUsingIncrementalBuildInfo:()=>fse,createBuilderStatusReporter:()=>O3,createCacheableExportInfoMap:()=>lJ,createCachedDirectoryStructureHost:()=>p3,createClassifier:()=>$Ie,createCommentDirectivesMap:()=>pte,createCompilerDiagnostic:()=>Il,createCompilerDiagnosticForInvalidCustomType:()=>Zie,createCompilerDiagnosticFromMessageChain:()=>T6,createCompilerHost:()=>Uae,createCompilerHostFromProgramHost:()=>WH,createCompilerHostWorker:()=>h3,createDetachedDiagnostic:()=>xI,createDiagnosticCollection:()=>aM,createDiagnosticForFileFromMessageChain:()=>uG,createDiagnosticForNode:()=>Ar,createDiagnosticForNodeArray:()=>HR,createDiagnosticForNodeArrayFromMessageChain:()=>H2,createDiagnosticForNodeFromMessageChain:()=>hg,createDiagnosticForNodeInSourceFile:()=>Wf,createDiagnosticForRange:()=>xte,createDiagnosticMessageChainFromDiagnostic:()=>Ite,createDiagnosticReporter:()=>sx,createDocumentPositionMapper:()=>$oe,createDocumentRegistry:()=>ace,createDocumentRegistryInternal:()=>fJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>TH,createEmitHelperFactory:()=>Hre,createEmptyExports:()=>dw,createEvaluator:()=>Tre,createExpressionForJsxElement:()=>Sie,createExpressionForJsxFragment:()=>Eie,createExpressionForObjectLiteralElementLike:()=>Aie,createExpressionForPropertyName:()=>Ej,createExpressionFromEntityName:()=>uw,createExternalHelpersImportDeclarationIfNeeded:()=>xj,createFileDiagnostic:()=>Wc,createFileDiagnosticFromMessageChain:()=>DF,createFlowNode:()=>F_,createForOfBindingStatement:()=>Sj,createFutureSourceFile:()=>C7,createGetCanonicalFileName:()=>Fd,createGetIsolatedDeclarationErrors:()=>Nae,createGetSourceFile:()=>nH,createGetSymbolAccessibilityDiagnosticForNode:()=>s0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Cae,createGetSymbolWalker:()=>Woe,createIncrementalCompilerHost:()=>w3,createIncrementalProgram:()=>Ase,createJsxFactoryExpression:()=>Tj,createLanguageService:()=>Ode,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>x1,createModeAwareCache:()=>WD,createModeAwareCacheKey:()=>eP,createModeMismatchDetails:()=>X9,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>FD,createModuleResolutionLoader:()=>lH,createModuleResolutionLoaderUsingGlobalCache:()=>Tse,createModuleSpecifierResolutionHost:()=>u0,createMultiMap:()=>cm,createNameResolver:()=>FV,createNodeConverters:()=>Pre,createNodeFactory:()=>$k,createOptionNameMap:()=>C4,createOverload:()=>aX,createPackageJsonImportFilter:()=>oC,createPackageJsonInfo:()=>eJ,createParenthesizerRules:()=>Nre,createPatternMatcher:()=>uce,createPrinter:()=>Wb,createPrinterWithDefaults:()=>Fae,createPrinterWithRemoveComments:()=>XS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>zae,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>YU,createProgram:()=>Xw,createProgramDiagnostics:()=>Qae,createProgramHost:()=>FH,createPropertyNameNodeForIdentifierOrLiteral:()=>Hk,createQueue:()=>s2,createRange:()=>Bf,createRedirectedBuilderProgram:()=>bH,createResolutionCache:()=>AH,createRuntimeTypeSerializer:()=>pae,createScanner:()=>cg,createSemanticDiagnosticsBuilderProgram:()=>bAe,createSet:()=>MB,createSolutionBuilder:()=>Cse,createSolutionBuilderHost:()=>Rse,createSolutionBuilderWithWatch:()=>Nse,createSolutionBuilderWithWatchHost:()=>Dse,createSortedArray:()=>SB,createSourceFile:()=>QI,createSourceMapGenerator:()=>qoe,createSourceMapSource:()=>O0e,createSuperAccessVariableStatement:()=>d3,createSymbolTable:()=>da,createSymlinkCache:()=>vV,createSyntacticTypeNodeBuilder:()=>Kse,createSystemWatchFunctions:()=>lTe,createTextChange:()=>pO,createTextChangeFromStartLength:()=>l7,createTextChangeRange:()=>E2,createTextRangeFromNode:()=>Nq,createTextRangeFromSpan:()=>s7,createTextSpan:()=>Id,createTextSpanFromBounds:()=>oc,createTextSpanFromNode:()=>Fu,createTextSpanFromRange:()=>hv,createTextSpanFromStringLiteralLikeContent:()=>Cq,createTextWriter:()=>Ak,createTokenRange:()=>iV,createTypeChecker:()=>Uoe,createTypeReferenceDirectiveResolutionCache:()=>H4,createTypeReferenceResolutionLoader:()=>y3,createWatchCompilerHost:()=>MAe,createWatchCompilerHostOfConfigFile:()=>zH,createWatchCompilerHostOfFilesAndCompilerOptions:()=>BH,createWatchFactory:()=>OH,createWatchHost:()=>wH,createWatchProgram:()=>GH,createWatchStatusReporter:()=>IH,createWriteFileMeasuringIO:()=>rH,declarationNameToString:()=>ws,decodeMappings:()=>CU,decodedTextSpanIntersectsWith:()=>S2,deduplicate:()=>lS,defaultHoverMaximumTruncationLength:()=>ite,defaultInitCompilerOptions:()=>LSe,defaultMaximumTruncationLength:()=>FN,diagnosticCategoryName:()=>GE,diagnosticToString:()=>eE,diagnosticsEqualityComparer:()=>S6,directoryProbablyExists:()=>ch,directorySeparator:()=>Js,displayPart:()=>yp,displayPartsToString:()=>PO,disposeEmitNodes:()=>XV,documentSpansEqual:()=>Bq,dumpTracingLegend:()=>KQ,elementAt:()=>Yv,elideNodes:()=>Oie,emitDetachedComments:()=>hne,emitFiles:()=>KU,emitFilesAndReportErrors:()=>M3,emitFilesAndReportErrorsAndGetExitStatus:()=>kH,emitModuleKindIsNonNodeESM:()=>Fk,emitNewLineBeforeLeadingCommentOfPosition:()=>mne,emitResolverSkipsTypeChecking:()=>JU,emitSkippedWithNoDiagnostics:()=>uH,emptyArray:()=>ae,emptyFileSystemEntries:()=>are,emptyMap:()=>bt,emptyOptions:()=>Sm,endsWith:()=>el,ensurePathIsNonModuleName:()=>VE,ensureScriptKind:()=>P6,ensureTrailingDirectorySeparator:()=>Uc,entityNameToString:()=>Mp,enumerateInsertsAndDeletes:()=>L8,equalOwnProperties:()=>IQ,equateStringsCaseInsensitive:()=>tb,equateStringsCaseSensitive:()=>uS,equateValues:()=>eb,escapeJsxAttributeString:()=>BG,escapeLeadingUnderscores:()=>Nl,escapeNonAsciiString:()=>t6,escapeSnippetText:()=>wS,escapeString:()=>k_,escapeTemplateSubstitution:()=>FG,evaluatorResult:()=>qc,every:()=>Vn,exclusivelyPrefixedNodeCoreModules:()=>J6,executeCommandLine:()=>dIe,expandPreOrPostfixIncrementOrDecrementExpression:()=>g4,explainFiles:()=>CH,explainIfFileIsRedirectAndImpliedFormat:()=>NH,exportAssignmentIsAlias:()=>gk,expressionResultIsUnused:()=>fre,extend:()=>CB,extensionFromPath:()=>TM,extensionIsTS:()=>W6,extensionsNotSupportingExtensionlessResolution:()=>O6,externalHelpersModuleNameText:()=>fb,factory:()=>L,fileExtensionIs:()=>El,fileExtensionIsOneOf:()=>Ql,fileIncludeReasonToDiagnostics:()=>LH,fileShouldUseJavaScriptRequire:()=>sJ,filter:()=>Un,filterMutate:()=>ul,filterSemanticDiagnostics:()=>S3,find:()=>hn,findAncestor:()=>Dn,findBestPatternMatch:()=>WB,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>E4,findConfigFile:()=>eH,findConstructorDeclaration:()=>Xk,findContainingList:()=>e7,findDiagnosticForNode:()=>$le,findFirstNonJsxWhitespaceToken:()=>ble,findIndex:()=>ho,findLast:()=>ga,findLastIndex:()=>gl,findListItemInfo:()=>vle,findModifier:()=>tC,findNextToken:()=>ZS,findPackageJson:()=>Yle,findPackageJsons:()=>Zq,findPrecedingMatchingToken:()=>o7,findPrecedingToken:()=>Gc,findSuperStatementIndexPath:()=>i3,findTokenOnLeftOfPosition:()=>AP,findUseStrictPrologue:()=>Ij,first:()=>$a,firstDefined:()=>Hn,firstDefinedIterator:()=>cr,firstIterator:()=>IB,firstOrOnly:()=>rJ,firstOrUndefined:()=>Ic,firstOrUndefinedIterator:()=>D8,fixupCompilerOptions:()=>EJ,flatMap:()=>Ki,flatMapIterator:()=>lf,flatMapToMutable:()=>vc,flatten:()=>la,flattenCommaList:()=>zie,flattenDestructuringAssignment:()=>P1,flattenDestructuringBinding:()=>KS,flattenDiagnosticMessageText:()=>a_,forEach:()=>Ye,forEachAncestor:()=>ste,forEachAncestorDirectory:()=>TN,forEachAncestorDirectoryStoppingAtGlobalCache:()=>W_,forEachChild:()=>Jo,forEachChildRecursively:()=>$I,forEachDynamicImportOrRequireCall:()=>K6,forEachEmittedFile:()=>jU,forEachEnclosingBlockScopeContainer:()=>Ste,forEachEntry:()=>Hc,forEachExternalModuleToImportFrom:()=>dJ,forEachImportClauseDeclaration:()=>Xte,forEachKey:()=>fg,forEachLeadingCommentRange:()=>_2,forEachNameInAccessChainWalkingLeft:()=>wne,forEachNameOfDefaultExport:()=>M7,forEachOptionsSyntaxByName:()=>UV,forEachProjectReference:()=>MM,forEachPropertyAssignment:()=>KR,forEachResolvedProjectReference:()=>VV,forEachReturnStatement:()=>gb,forEachRight:()=>Pn,forEachTrailingCommentRange:()=>g2,forEachTsConfigPropArray:()=>Y2,forEachUnique:()=>Vq,forEachYieldExpression:()=>Nte,formatColorAndReset:()=>YS,formatDiagnostic:()=>iH,formatDiagnostics:()=>K1e,formatDiagnosticsWithColorAndContext:()=>Kae,formatGeneratedName:()=>n0,formatGeneratedNamePart:()=>LD,formatLocation:()=>oH,formatMessage:()=>DI,formatStringFromArgs:()=>bg,formatting:()=>Mc,generateDjb2Hash:()=>p2,generateTSConfig:()=>loe,getAdjustedReferenceLocation:()=>Tq,getAdjustedRenameLocation:()=>n7,getAliasDeclarationFromName:()=>DG,getAllAccessorDeclarations:()=>NS,getAllDecoratorsOfClass:()=>kU,getAllDecoratorsOfClassElement:()=>a3,getAllJSDocTags:()=>tF,getAllJSDocTagsOfKind:()=>zTe,getAllKeys:()=>Bbe,getAllProjectOutputs:()=>u3,getAllSuperTypeNodes:()=>eM,getAllowImportingTsExtensions:()=>Vne,getAllowJSCompilerOption:()=>Ab,getAllowSyntheticDefaultImports:()=>CI,getAncestor:()=>GT,getAnyExtensionFromPath:()=>ZA,getAreDeclarationMapsEnabled:()=>E6,getAssignedExpandoInitializer:()=>fI,getAssignedName:()=>Q8,getAssignmentDeclarationKind:()=>ac,getAssignmentDeclarationPropertyAccessKind:()=>lk,getAssignmentTargetKind:()=>yb,getAutomaticTypeDirectiveNames:()=>j4,getBaseFileName:()=>xc,getBinaryOperatorPrecedence:()=>Tk,getBuildInfo:()=>XU,getBuildInfoFileVersionMap:()=>vH,getBuildInfoText:()=>Oae,getBuildOrderFromAnyBuildOrder:()=>eO,getBuilderCreationParameters:()=>x3,getBuilderFileEmit:()=>Fb,getCanonicalDiagnostic:()=>Rte,getCheckFlags:()=>Fl,getClassExtendsHeritageElement:()=>xS,getClassLikeDeclarationOfSymbol:()=>cy,getCombinedLocalAndExportSymbolFlags:()=>lD,getCombinedModifierFlags:()=>MT,getCombinedNodeFlags:()=>ty,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>E9,getCommentRange:()=>Zh,getCommonSourceDirectory:()=>mP,getCommonSourceDirectoryOfConfig:()=>L1,getCompilerOptionValue:()=>x6,getConditions:()=>kb,getConfigFileParsingDiagnostics:()=>$S,getConstantValue:()=>Wre,getContainerFlags:()=>mU,getContainerNode:()=>O1,getContainingClass:()=>hd,getContainingClassExcludingClassDecorators:()=>OF,getContainingClassStaticBlock:()=>Fte,getContainingFunction:()=>df,getContainingFunctionDeclaration:()=>Wte,getContainingFunctionOrClassStaticBlock:()=>wF,getContainingNodeArray:()=>mre,getContainingObjectLiteralElement:()=>LO,getContextualTypeFromParent:()=>g7,getContextualTypeFromParentOrAncestorTypeNode:()=>t7,getDeclarationDiagnostics:()=>Mae,getDeclarationEmitExtensionForPath:()=>i6,getDeclarationEmitOutputFilePath:()=>dne,getDeclarationEmitOutputFilePathWorker:()=>r6,getDeclarationFileExtension:()=>I4,getDeclarationFromName:()=>ZN,getDeclarationModifierFlagsFromSymbol:()=>Vf,getDeclarationOfKind:()=>al,getDeclarationsOfKind:()=>ote,getDeclaredExpandoInitializer:()=>XN,getDecorators:()=>ab,getDefaultCompilerOptions:()=>J7,getDefaultFormatCodeSettings:()=>H3,getDefaultLibFileName:()=>v2,getDefaultLibFilePath:()=>Wde,getDefaultLikeExportInfo:()=>N7,getDefaultLikeExportNameFromDeclaration:()=>iJ,getDefaultResolutionModeForFileWorker:()=>T3,getDiagnosticText:()=>rp,getDiagnosticsWithinSpan:()=>Qle,getDirectoryPath:()=>ci,getDirectoryToWatchFailedLookupLocation:()=>EH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>vse,getDocumentPositionMapper:()=>yJ,getDocumentSpansEqualityComparer:()=>Gq,getESModuleInterop:()=>$h,getEditsForFileRename:()=>lce,getEffectiveBaseTypeNode:()=>lh,getEffectiveConstraintOfTypeParameter:()=>OR,getEffectiveContainerForJSDocTemplateTag:()=>KF,getEffectiveImplementsTypeNodes:()=>tD,getEffectiveInitializer:()=>ok,getEffectiveJSDocHost:()=>BT,getEffectiveModifierFlags:()=>Gd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>vne,getEffectiveModifierFlagsNoCache:()=>bne,getEffectiveReturnTypeNode:()=>kp,getEffectiveSetAccessorTypeAnnotationNode:()=>KG,getEffectiveTypeAnnotationNode:()=>Rc,getEffectiveTypeParameterDeclarations:()=>sb,getEffectiveTypeRoots:()=>ZM,getElementOrPropertyAccessArgumentExpressionOrName:()=>JF,getElementOrPropertyAccessName:()=>iy,getElementsOfBindingOrAssignmentPattern:()=>PD,getEmitDeclarations:()=>_p,getEmitFlags:()=>Qa,getEmitHelpers:()=>YV,getEmitModuleDetectionKind:()=>jne,getEmitModuleFormatOfFileWorker:()=>yP,getEmitModuleKind:()=>vu,getEmitModuleResolutionKind:()=>ru,getEmitScriptTarget:()=>Ga,getEmitStandardClassFields:()=>gV,getEnclosingBlockScopeContainer:()=>sh,getEnclosingContainer:()=>RF,getEncodedSemanticClassifications:()=>uJ,getEncodedSyntacticClassifications:()=>pJ,getEndLinePosition:()=>B2,getEntityNameFromTypeNode:()=>Z2,getEntrypointsFromPackageJsonInfo:()=>cU,getErrorCountForSummary:()=>C3,getErrorSpanForNode:()=>ZE,getErrorSummaryText:()=>RH,getEscapedTextOfIdentifierOrLiteral:()=>rM,getEscapedTextOfJsxAttributeName:()=>CM,getEscapedTextOfJsxNamespacedName:()=>LI,getExpandoInitializer:()=>FT,getExportAssignmentExpression:()=>CG,getExportInfoMap:()=>IO,getExportNeedsImportStarHelper:()=>Qoe,getExpressionAssociativity:()=>OG,getExpressionPrecedence:()=>oM,getExternalHelpersModuleName:()=>fw,getExternalModuleImportEqualsDeclarationExpression:()=>qN,getExternalModuleName:()=>hI,getExternalModuleNameFromDeclaration:()=>lne,getExternalModuleNameFromPath:()=>jG,getExternalModuleNameLiteral:()=>YI,getExternalModuleRequireArgument:()=>yG,getFallbackOptions:()=>qw,getFileEmitOutput:()=>Zae,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>$M,getFileWatcherEventKind:()=>c9,getFilesInErrorForSummary:()=>N3,getFirstConstructorWithBody:()=>yg,getFirstIdentifier:()=>Pu,getFirstNonSpaceCharacterPosition:()=>Ule,getFirstProjectOutput:()=>qU,getFixableErrorSpanExpression:()=>tJ,getFormatCodeSettingsForWriting:()=>R7,getFullWidth:()=>F2,getFunctionFlags:()=>dc,getHeritageClause:()=>yk,getHostSignatureFromJSDoc:()=>zT,getIdentifierAutoGenerate:()=>z0e,getIdentifierGeneratedImportReference:()=>jre,getIdentifierTypeArguments:()=>m1,getImmediatelyInvokedFunctionExpression:()=>OT,getImpliedNodeFormatForEmitWorker:()=>k1,getImpliedNodeFormatForFile:()=>Kw,getImpliedNodeFormatForFileWorker:()=>b3,getImportNeedsImportDefaultHelper:()=>MU,getImportNeedsImportStarHelper:()=>n3,getIndentString:()=>n6,getInferredLibraryNameResolveFrom:()=>v3,getInitializedVariables:()=>fM,getInitializerOfBinaryExpression:()=>SG,getInitializerOfBindingOrAssignmentElement:()=>hw,getInterfaceBaseTypeNodes:()=>tM,getInternalEmitFlags:()=>Fm,getInvokedExpression:()=>zF,getIsFileExcluded:()=>rce,getIsolatedModules:()=>ym,getJSDocAugmentsTag:()=>Dee,getJSDocClassTag:()=>x9,getJSDocCommentRanges:()=>fG,getJSDocCommentsAndTags:()=>EG,getJSDocDeprecatedTag:()=>R9,getJSDocDeprecatedTagNoCache:()=>wee,getJSDocEnumTag:()=>D9,getJSDocHost:()=>AS,getJSDocImplementsTags:()=>Cee,getJSDocOverloadTags:()=>IG,getJSDocOverrideTagNoCache:()=>kee,getJSDocParameterTags:()=>wR,getJSDocParameterTagsNoCache:()=>Aee,getJSDocPrivateTag:()=>wTe,getJSDocPrivateTagNoCache:()=>Mee,getJSDocProtectedTag:()=>OTe,getJSDocProtectedTagNoCache:()=>Pee,getJSDocPublicTag:()=>kTe,getJSDocPublicTagNoCache:()=>Nee,getJSDocReadonlyTag:()=>WTe,getJSDocReadonlyTagNoCache:()=>Lee,getJSDocReturnTag:()=>Oee,getJSDocReturnType:()=>I2,getJSDocRoot:()=>eD,getJSDocSatisfiesExpressionType:()=>wV,getJSDocSatisfiesTag:()=>C9,getJSDocTags:()=>LT,getJSDocTemplateTag:()=>FTe,getJSDocThisTag:()=>Z8,getJSDocType:()=>Yy,getJSDocTypeAliasName:()=>Dj,getJSDocTypeAssertionType:()=>ND,getJSDocTypeParameterDeclarations:()=>c6,getJSDocTypeParameterTags:()=>Iee,getJSDocTypeParameterTagsNoCache:()=>xee,getJSDocTypeTag:()=>PT,getJSXImplicitImportBase:()=>zk,getJSXRuntimeImport:()=>D6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>iU,getLanguageVariant:()=>Lk,getLastChild:()=>dV,getLeadingCommentRanges:()=>lg,getLeadingCommentRangesOfNode:()=>pG,getLeftmostAccessExpression:()=>cD,getLeftmostExpression:()=>dD,getLibFileNameFromLibReference:()=>GV,getLibNameFromLibReference:()=>BV,getLibraryNameFromLibFileName:()=>cH,getLineAndCharacterOfPosition:()=>ca,getLineInfo:()=>DU,getLineOfLocalPosition:()=>sM,getLineStartPositionForPosition:()=>Em,getLineStarts:()=>ag,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Pne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Mne,getLinesBetweenPositions:()=>EN,getLinesBetweenRangeEndAndRangeStart:()=>oV,getLinesBetweenRangeEndPositions:()=>m0e,getLiteralText:()=>hte,getLocalNameForExternalImport:()=>MD,getLocalSymbolForExportDefault:()=>uM,getLocaleSpecificMessage:()=>Ho,getLocaleTimeString:()=>Zw,getMappedContextSpan:()=>jq,getMappedDocumentSpan:()=>m7,getMappedLocation:()=>DP,getMatchedFileSpec:()=>MH,getMatchedIncludeSpec:()=>PH,getMeaningFromDeclaration:()=>J3,getMeaningFromLocation:()=>w1,getMembersOfDeclaration:()=>Mte,getModeForFileReference:()=>Xae,getModeForResolutionAtIndex:()=>eAe,getModeForUsageLocation:()=>sH,getModifiedTime:()=>QA,getModifiers:()=>fS,getModuleInstanceState:()=>my,getModuleNameStringLiteralAt:()=>Yw,getModuleSpecifierEndingPreference:()=>rre,getModuleSpecifierResolverHost:()=>kq,getNameForExportedSymbol:()=>A7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Ete,getNameFromPropertyName:()=>mO,getNameOfAccessExpression:()=>pV,getNameOfCompilerOptionValue:()=>k4,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>vG,getNameOfJSDocTypedef:()=>Eee,getNameOfScriptTarget:()=>I6,getNameOrArgument:()=>sk,getNameTable:()=>KJ,getNamespaceDeclarationNode:()=>QR,getNewLineCharacter:()=>rv,getNewLineKind:()=>AO,getNewLineOrDefaultFromHost:()=>_y,getNewTargetContainer:()=>Bte,getNextJSDocCommentLocation:()=>AG,getNodeChildren:()=>vj,getNodeForGeneratedName:()=>gw,getNodeId:()=>ls,getNodeKind:()=>QS,getNodeModifiers:()=>IP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>$8,getNonAssignmentOperatorForCompoundAssignment:()=>sP,getNonAugmentationDeclaration:()=>oG,getNonDecoratorTokenPosOfNode:()=>Z9,getNonIncrementalBuildInfoRoots:()=>mse,getNonModifierTokenPosOfNode:()=>fte,getNormalizedAbsolutePath:()=>To,getNormalizedAbsolutePathWithoutRoot:()=>f9,getNormalizedPathComponents:()=>j8,getObjectFlags:()=>Hr,getOperatorAssociativity:()=>WG,getOperatorPrecedence:()=>bk,getOptionFromName:()=>Uj,getOptionsForLibraryResolution:()=>oU,getOptionsNameMap:()=>wD,getOptionsSyntaxByArrayElementValue:()=>jV,getOptionsSyntaxByValue:()=>xre,getOrCreateEmitNode:()=>jd,getOrUpdate:()=>HA,getOriginalNode:()=>yl,getOriginalNodeId:()=>Wu,getOutputDeclarationFileName:()=>fP,getOutputDeclarationFileNameWorker:()=>UU,getOutputExtension:()=>jw,getOutputFileNames:()=>q1e,getOutputJSFileNameWorker:()=>HU,getOutputPathsFor:()=>pP,getOwnEmitOutputFilePath:()=>cne,getOwnKeys:()=>Wh,getOwnValues:()=>KA,getPackageJsonTypesVersionsPaths:()=>V4,getPackageNameFromTypesPackageName:()=>rP,getPackageScopeForPath:()=>nP,getParameterSymbolFromJSDoc:()=>mk,getParentNodeInSpan:()=>_O,getParseTreeNode:()=>jo,getParsedCommandLineOfConfigFile:()=>Ew,getPathComponents:()=>zd,getPathFromPathComponents:()=>NT,getPathUpdater:()=>hJ,getPathsBasePath:()=>o6,getPatternFromSpec:()=>SV,getPendingEmitKindWithSeen:()=>I3,getPositionOfLineAndCharacter:()=>m2,getPossibleGenericSignatures:()=>Eq,getPossibleOriginalInputExtensionForExtension:()=>UG,getPossibleOriginalInputPathWithoutChangingExt:()=>HG,getPossibleTypeArgumentsInfo:()=>Aq,getPreEmitDiagnostics:()=>J1e,getPrecedingNonSpaceCharacterPosition:()=>h7,getPrivateIdentifier:()=>wU,getProperties:()=>LU,getProperty:()=>o2,getPropertyAssignmentAliasLikeExpression:()=>nne,getPropertyNameForPropertyNameNode:()=>s1,getPropertyNameFromType:()=>Uf,getPropertyNameOfBindingOrAssignmentElement:()=>Rj,getPropertySymbolFromBindingElement:()=>f7,getPropertySymbolsFromContextualType:()=>X7,getQuoteFromPreference:()=>Oq,getQuotePreference:()=>Gp,getRangesWhere:()=>TB,getRefactorContextSpan:()=>ux,getReferencedFileLocation:()=>gP,getRegexFromPattern:()=>iv,getRegularExpressionForWildcard:()=>yM,getRegularExpressionsForWildcards:()=>C6,getRelativePathFromDirectory:()=>cf,getRelativePathFromFile:()=>NR,getRelativePathToDirectoryOrUrl:()=>MR,getRenameLocation:()=>yO,getReplacementSpanForContextToken:()=>Dq,getResolutionDiagnostic:()=>fH,getResolutionModeOverride:()=>UD,getResolveJsonModule:()=>PS,getResolvePackageJsonExports:()=>wk,getResolvePackageJsonImports:()=>Ok,getResolvedExternalModuleName:()=>VG,getResolvedModuleFromResolution:()=>cI,getResolvedTypeReferenceDirectiveFromResolution:()=>vF,getRestIndicatorOfBindingOrAssignmentElement:()=>b4,getRestParameterElementType:()=>mG,getRightMostAssignedExpression:()=>ak,getRootDeclaration:()=>Jh,getRootDirectoryOfResolutionCache:()=>bse,getRootLength:()=>zh,getScriptKind:()=>Jq,getScriptKindFromFileName:()=>L6,getScriptTargetFeatures:()=>eG,getSelectedEffectiveModifierFlags:()=>TI,getSelectedSyntacticModifierFlags:()=>gne,getSemanticClassifications:()=>ice,getSemanticJsxChildren:()=>rD,getSetAccessorTypeAnnotationNode:()=>pne,getSetAccessorValueParameter:()=>lM,getSetExternalModuleIndicator:()=>kk,getShebang:()=>X8,getSingleVariableOfVariableStatement:()=>yI,getSnapshotText:()=>dx,getSnippetElement:()=>$V,getSourceFileOfModule:()=>z2,getSourceFileOfNode:()=>Wn,getSourceFilePathInNewDir:()=>s6,getSourceFileVersionAsHashFromText:()=>P3,getSourceFilesToEmit:()=>a6,getSourceMapRange:()=>sv,getSourceMapper:()=>bce,getSourceTextOfNodeFromSourceFile:()=>yS,getSpanOfTokenAtPosition:()=>jh,getSpellingSuggestion:()=>pS,getStartPositionOfLine:()=>mb,getStartPositionOfRange:()=>pM,getStartsOnNewLine:()=>PM,getStaticPropertiesAndClassStaticBlock:()=>o3,getStrictOptionValue:()=>Vd,getStringComparer:()=>IR,getSubPatternFromSpec:()=>N6,getSuperCallFromStatement:()=>r3,getSuperContainer:()=>$2,getSupportedCodeFixes:()=>qJ,getSupportedExtensions:()=>vM,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Gk,getSwitchedType:()=>Yq,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>vk,getSymbolTarget:()=>Kq,getSyntacticClassifications:()=>oce,getSyntacticModifierFlags:()=>tv,getSyntacticModifierFlagsNoCache:()=>$G,getSynthesizedDeepClone:()=>_s,getSynthesizedDeepCloneWithReplacements:()=>Yk,getSynthesizedDeepClones:()=>OS,getSynthesizedDeepClonesWithReplacements:()=>HV,getSyntheticLeadingComments:()=>_D,getSyntheticTrailingComments:()=>tw,getTargetLabel:()=>Y3,getTargetOfBindingOrAssignmentElement:()=>Pb,getTemporaryModuleResolutionState:()=>tP,getTextOfConstantValue:()=>_te,getTextOfIdentifierOrLiteral:()=>zf,getTextOfJSDocComment:()=>x2,getTextOfJsxAttributeName:()=>Kk,getTextOfJsxNamespacedName:()=>NM,getTextOfNode:()=>Al,getTextOfNodeFromSourceText:()=>BN,getTextOfPropertyName:()=>pI,getThisContainer:()=>yu,getThisParameter:()=>DS,getTokenAtPosition:()=>Fi,getTokenPosOfNode:()=>hb,getTokenSourceMapRange:()=>W0e,getTouchingPropertyName:()=>ip,getTouchingToken:()=>ZD,getTrailingCommentRanges:()=>ob,getTrailingSemicolonDeferringWriter:()=>GG,getTransformers:()=>Lae,getTsBuildInfoEmitOutputFilePath:()=>l0,getTsConfigObjectLiteralExpression:()=>UN,getTsConfigPropArrayElementValue:()=>kF,getTypeAnnotationNode:()=>fne,getTypeArgumentOrTypeParameterList:()=>Rle,getTypeKeywordOfTypeOnlyImport:()=>zq,getTypeNode:()=>Gre,getTypeNodeIfAccessible:()=>LP,getTypeParameterFromJsDoc:()=>Yte,getTypeParameterOwner:()=>NTe,getTypesPackageName:()=>X4,getUILocale:()=>NQ,getUniqueName:()=>F1,getUniqueSymbolId:()=>jle,getUseDefineForClassFields:()=>Wk,getWatchErrorSummaryDiagnosticMessage:()=>xH,getWatchFactory:()=>ZU,group:()=>AR,groupBy:()=>DB,guessIndentation:()=>nte,handleNoEmitOptions:()=>pH,handleWatchOptionsConfigDirTemplateSubstitution:()=>O4,hasAbstractModifier:()=>MS,hasAccessorModifier:()=>Kh,hasAmbientModifier:()=>YG,hasChangesInResolutions:()=>Y9,hasContextSensitiveParameters:()=>B6,hasDecorators:()=>pf,hasDocComment:()=>Ile,hasDynamicName:()=>oy,hasEffectiveModifier:()=>wp,hasEffectiveModifiers:()=>XG,hasEffectiveReadonlyModifier:()=>c1,hasExtension:()=>CR,hasImplementationTSFileExtension:()=>tre,hasIndexSignature:()=>Xq,hasInferredType:()=>q6,hasInitializer:()=>Qy,hasInvalidEscape:()=>zG,hasJSDocNodes:()=>ef,hasJSDocParameterTags:()=>Ree,hasJSFileExtension:()=>Tg,hasJsonModuleEmitEnabled:()=>A6,hasOnlyExpressionInitializer:()=>$E,hasOverrideModifier:()=>d6,hasPossibleExternalModuleReference:()=>Tte,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>aO,hasQuestionToken:()=>_I,hasRecordedExternalHelpers:()=>Rie,hasResolutionModeOverride:()=>vre,hasRestParameter:()=>H9,hasScopeMarker:()=>Jee,hasStaticModifier:()=>Oc,hasSyntacticModifier:()=>di,hasSyntacticModifiers:()=>_ne,hasTSFileExtension:()=>u1,hasTabstop:()=>_re,hasTrailingDirectorySeparator:()=>rb,hasType:()=>mF,hasTypeArguments:()=>i0e,hasZeroOrOneAsteriskCharacter:()=>yV,hostGetCanonicalFileName:()=>ay,hostUsesCaseSensitiveFileNames:()=>l1,idText:()=>Kr,identifierIsThisKeyword:()=>JG,identifierToKeywordKind:()=>HE,identity:()=>Vs,identitySourceMapConsumer:()=>NU,ignoreSourceNewlines:()=>ZV,ignoredPaths:()=>z8,importFromModuleSpecifier:()=>$N,importSyntaxAffectsModuleResolution:()=>_V,indexOfAnyCharCode:()=>Bi,indexOfNode:()=>jR,indicesOf:()=>R8,inferredTypesContainingFile:()=>_P,injectClassNamedEvaluationHelperBlockIfMissing:()=>c3,injectClassThisAssignmentIfMissing:()=>aae,insertImports:()=>Fq,insertSorted:()=>Xv,insertStatementAfterCustomPrologue:()=>QE,insertStatementAfterStandardPrologue:()=>$Te,insertStatementsAfterCustomPrologue:()=>$9,insertStatementsAfterStandardPrologue:()=>mg,intersperse:()=>bo,intrinsicTagNameToString:()=>OV,introducesArgumentsExoticObject:()=>kte,inverseJsxOptionMap:()=>Tw,isAbstractConstructorSymbol:()=>Lne,isAbstractModifier:()=>Zre,isAccessExpression:()=>Ks,isAccessibilityModifier:()=>xq,isAccessor:()=>ub,isAccessorModifier:()=>oj,isAliasableExpression:()=>XF,isAmbientModule:()=>gu,isAmbientPropertyDeclaration:()=>sG,isAnyDirectorySeparator:()=>d9,isAnyImportOrBareOrAccessedRequire:()=>vte,isAnyImportOrReExport:()=>j2,isAnyImportOrRequireStatement:()=>bte,isAnyImportSyntax:()=>uI,isAnySupportedFileExtension:()=>D0e,isApplicableVersionedTypesKey:()=>Mw,isArgumentExpressionOfElementAccess:()=>hq,isArray:()=>Mo,isArrayBindingElement:()=>lF,isArrayBindingOrAssignmentElement:()=>P2,isArrayBindingOrAssignmentPattern:()=>z9,isArrayBindingPattern:()=>uv,isArrayLiteralExpression:()=>Cd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>mv,isArrayTypeNode:()=>ow,isArrowFunction:()=>Xs,isAsExpression:()=>TD,isAssertClause:()=>sie,isAssertEntry:()=>K0e,isAssertionExpression:()=>gS,isAssertsKeyword:()=>$re,isAssignmentDeclaration:()=>KN,isAssignmentExpression:()=>id,isAssignmentOperator:()=>sy,isAssignmentPattern:()=>ON,isAssignmentTarget:()=>vb,isAsteriskToken:()=>rw,isAsyncFunction:()=>nM,isAsyncModifier:()=>wM,isAutoAccessorPropertyDeclaration:()=>Yu,isAwaitExpression:()=>Nb,isAwaitKeyword:()=>ij,isBigIntLiteral:()=>gD,isBinaryExpression:()=>Nr,isBinaryLogicalOperator:()=>Ik,isBinaryOperatorToken:()=>wie,isBindableObjectDefinePropertyCall:()=>r1,isBindableStaticAccessExpression:()=>ES,isBindableStaticElementAccessExpression:()=>qF,isBindableStaticNameExpression:()=>i1,isBindingElement:()=>Ha,isBindingElementOfBareOrAccessedRequire:()=>jte,isBindingName:()=>XE,isBindingOrAssignmentElement:()=>jee,isBindingOrAssignmentPattern:()=>N2,isBindingPattern:()=>Qo,isBlock:()=>ea,isBlockLike:()=>px,isBlockOrCatchScoped:()=>tG,isBlockScope:()=>lG,isBlockScopedContainerTopLevel:()=>yte,isBooleanLiteral:()=>wN,isBreakOrContinueStatement:()=>MN,isBreakStatement:()=>H0e,isBuildCommand:()=>Vse,isBuildInfoFile:()=>kae,isBuilderProgram:()=>DH,isBundle:()=>uie,isCallChain:()=>qE,isCallExpression:()=>Zo,isCallExpressionTarget:()=>cq,isCallLikeExpression:()=>_S,isCallLikeOrFunctionLikeExpression:()=>B9,isCallOrNewExpression:()=>Gh,isCallOrNewExpressionTarget:()=>dq,isCallSignatureDeclaration:()=>GI,isCallToHelper:()=>kM,isCaseBlock:()=>VM,isCaseClause:()=>ID,isCaseKeyword:()=>tie,isCaseOrDefaultClause:()=>pF,isCatchClause:()=>jS,isCatchClauseVariableDeclaration:()=>hre,isCatchClauseVariableDeclarationOrBindingElement:()=>nG,isCheckJsEnabledForFile:()=>SM,isCircularBuildOrder:()=>lx,isClassDeclaration:()=>Cc,isClassElement:()=>Tc,isClassExpression:()=>uc,isClassInstanceProperty:()=>Gee,isClassLike:()=>ui,isClassMemberModifier:()=>O9,isClassNamedEvaluationHelperBlock:()=>ox,isClassOrTypeElement:()=>sF,isClassStaticBlockDeclaration:()=>Zl,isClassThisAssignmentBlock:()=>cP,isColonToken:()=>Xre,isCommaExpression:()=>pw,isCommaListExpression:()=>BM,isCommaSequence:()=>JM,isCommaToken:()=>Kre,isComment:()=>a7,isCommonJsExportPropertyAssignment:()=>PF,isCommonJsExportedExpression:()=>Pte,isCompoundAssignment:()=>aP,isComputedNonLiteralName:()=>U2,isComputedPropertyName:()=>va,isConciseBody:()=>dF,isConditionalExpression:()=>v1,isConditionalTypeNode:()=>FS,isConstAssertion:()=>WV,isConstTypeReference:()=>Om,isConstructSignatureDeclaration:()=>FM,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>yD,isContextualKeyword:()=>$F,isContinueStatement:()=>U0e,isCustomPrologue:()=>X2,isDebuggerStatement:()=>q0e,isDeclaration:()=>rd,isDeclarationBindingElement:()=>C2,isDeclarationFileName:()=>ad,isDeclarationName:()=>L_,isDeclarationNameOfEnumOrNamespace:()=>sV,isDeclarationReadonly:()=>q2,isDeclarationStatement:()=>$ee,isDeclarationWithTypeParameterChildren:()=>dG,isDeclarationWithTypeParameters:()=>cG,isDecorator:()=>Fc,isDecoratorTarget:()=>mle,isDefaultClause:()=>jM,isDefaultImport:()=>o1,isDefaultModifier:()=>i4,isDefaultedExpandoInitializer:()=>Ute,isDeleteExpression:()=>rie,isDeleteTarget:()=>RG,isDeprecatedDeclaration:()=>I7,isDestructuringAssignment:()=>nv,isDiskPathRoot:()=>u9,isDoStatement:()=>j0e,isDocumentRegistryEntry:()=>xO,isDotDotDotToken:()=>n4,isDottedName:()=>Rk,isDynamicName:()=>ZF,isEffectiveExternalModule:()=>UR,isEffectiveStrictModeSourceFile:()=>aG,isElementAccessChain:()=>N9,isElementAccessExpression:()=>Ws,isEmittedFileOfProgram:()=>Gae,isEmptyArrayLiteral:()=>Ane,isEmptyBindingElement:()=>bee,isEmptyBindingPattern:()=>vee,isEmptyObjectLiteral:()=>nV,isEmptyStatement:()=>lj,isEmptyStringLiteral:()=>gG,isEntityName:()=>Nu,isEntityNameExpression:()=>Ds,isEnumConst:()=>wT,isEnumDeclaration:()=>QT,isEnumMember:()=>py,isEqualityOperatorKind:()=>y7,isEqualsGreaterThanToken:()=>Yre,isExclamationToken:()=>iw,isExcludedFile:()=>doe,isExclusivelyTypeOnlyImportOrExport:()=>aH,isExpandoPropertyDeclaration:()=>kI,isExportAssignment:()=>ll,isExportDeclaration:()=>fc,isExportModifier:()=>zI,isExportName:()=>y4,isExportNamespaceAsDefaultDeclaration:()=>AF,isExportOrDefaultModifier:()=>_w,isExportSpecifier:()=>iu,isExportsIdentifier:()=>n1,isExportsOrModuleExportsOrAlias:()=>qS,isExpression:()=>St,isExpressionNode:()=>P_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>gle,isExpressionOfOptionalChainRoot:()=>rF,isExpressionStatement:()=>od,isExpressionWithTypeArguments:()=>dy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>p6,isExternalModule:()=>Bc,isExternalModuleAugmentation:()=>bS,isExternalModuleImportEqualsDeclaration:()=>WT,isExternalModuleIndicator:()=>k2,isExternalModuleNameRelative:()=>td,isExternalModuleReference:()=>uy,isExternalModuleSymbol:()=>sI,isExternalOrCommonJsModule:()=>Pp,isFileLevelReservedGeneratedIdentifier:()=>D2,isFileLevelUniqueName:()=>SF,isFileProbablyExternalModule:()=>vw,isFirstDeclarationOfSymbolParameter:()=>Uq,isFixablePromiseHandler:()=>TJ,isForInOrOfStatement:()=>YE,isForInStatement:()=>c4,isForInitializer:()=>Of,isForOfStatement:()=>sw,isForStatement:()=>$T,isFullSourceFile:()=>_g,isFunctionBlock:()=>TS,isFunctionBody:()=>V9,isFunctionDeclaration:()=>ec,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>Ib,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Ms,isFunctionLikeKind:()=>rI,isFunctionLikeOrClassStaticBlockDeclaration:()=>zR,isFunctionOrConstructorTypeNode:()=>Vee,isFunctionOrModuleBlock:()=>W9,isFunctionSymbol:()=>Jte,isFunctionTypeNode:()=>w_,isGeneratedIdentifier:()=>pl,isGeneratedPrivateIdentifier:()=>KE,isGetAccessor:()=>ug,isGetAccessorDeclaration:()=>Hf,isGetOrSetAccessorDeclaration:()=>R2,isGlobalScopeAugmentation:()=>M_,isGlobalSourceFile:()=>Zy,isGrammarError:()=>ute,isHeritageClause:()=>Fp,isHoistedFunction:()=>NF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>He,isIdentifierANonContextualKeyword:()=>PG,isIdentifierName:()=>tne,isIdentifierOrThisTypeNode:()=>Mie,isIdentifierPart:()=>ey,isIdentifierStart:()=>R_,isIdentifierText:()=>fp,isIdentifierTypePredicate:()=>wte,isIdentifierTypeReference:()=>dre,isIfStatement:()=>YT,isIgnoredFileFromWildCardWatching:()=>Hw,isImplicitGlob:()=>TV,isImportAttribute:()=>lie,isImportAttributeName:()=>Bee,isImportAttributes:()=>S1,isImportCall:()=>Qu,isImportClause:()=>Vm,isImportDeclaration:()=>vl,isImportEqualsDeclaration:()=>zc,isImportKeyword:()=>WM,isImportMeta:()=>JR,isImportOrExportSpecifier:()=>cb,isImportOrExportSpecifierName:()=>Vle,isImportSpecifier:()=>Su,isImportTypeAssertionContainer:()=>J0e,isImportTypeNode:()=>e_,isImportable:()=>cJ,isInComment:()=>fv,isInCompoundLikeAssignment:()=>xG,isInExpressionContext:()=>BF,isInJSDoc:()=>JN,isInJSFile:()=>Ir,isInJSXText:()=>Ale,isInJsonFile:()=>VF,isInNonReferenceComment:()=>Nle,isInReferenceComment:()=>Cle,isInRightSideOfInternalImportEqualsDeclaration:()=>K3,isInString:()=>cx,isInTemplateString:()=>Sq,isInTopLevelContext:()=>WF,isInTypeQuery:()=>bI,isIncrementalBuildInfo:()=>$w,isIncrementalBundleEmitBuildInfo:()=>lse,isIncrementalCompilation:()=>LS,isIndexSignatureDeclaration:()=>Cb,isIndexedAccessTypeNode:()=>zS,isInferTypeNode:()=>_1,isInfinityOrNaNString:()=>RM,isInitializedProperty:()=>ww,isInitializedVariable:()=>Pk,isInsideJsxElement:()=>i7,isInsideJsxElementOrAttribute:()=>Ele,isInsideNodeModules:()=>TO,isInsideTemplateLiteral:()=>uO,isInstanceOfExpression:()=>f6,isInstantiatedModule:()=>EU,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>rte,isInternalModuleImportEqualsDeclaration:()=>t1,isInternalName:()=>Aj,isIntersectionTypeNode:()=>UI,isIntrinsicJsxName:()=>iD,isIterationStatement:()=>pb,isJSDoc:()=>mh,isJSDocAllType:()=>mie,isJSDocAugmentsTag:()=>XI,isJSDocAuthorTag:()=>Q0e,isJSDocCallbackTag:()=>pj,isJSDocClassTag:()=>_ie,isJSDocCommentContainingNode:()=>fF,isJSDocConstructSignature:()=>gI,isJSDocDeprecatedTag:()=>gj,isJSDocEnumTag:()=>cw,isJSDocFunctionType:()=>RD,isJSDocImplementsTag:()=>h4,isJSDocImportTag:()=>o_,isJSDocIndexSignature:()=>UF,isJSDocLikeText:()=>Lj,isJSDocLink:()=>pie,isJSDocLinkCode:()=>fie,isJSDocLinkLike:()=>aI,isJSDocLinkPlain:()=>Y0e,isJSDocMemberName:()=>t0,isJSDocNameReference:()=>UM,isJSDocNamepathType:()=>$0e,isJSDocNamespaceBody:()=>UTe,isJSDocNode:()=>BR,isJSDocNonNullableType:()=>u4,isJSDocNullableType:()=>xD,isJSDocOptionalParameter:()=>V6,isJSDocOptionalType:()=>uj,isJSDocOverloadTag:()=>DD,isJSDocOverrideTag:()=>f4,isJSDocParameterTag:()=>mf,isJSDocPrivateTag:()=>mj,isJSDocPropertyLikeTag:()=>PN,isJSDocPropertyTag:()=>gie,isJSDocProtectedTag:()=>hj,isJSDocPublicTag:()=>fj,isJSDocReadonlyTag:()=>_j,isJSDocReturnTag:()=>m4,isJSDocSatisfiesExpression:()=>kV,isJSDocSatisfiesTag:()=>_4,isJSDocSeeTag:()=>Z0e,isJSDocSignature:()=>pv,isJSDocTag:()=>GR,isJSDocTemplateTag:()=>bm,isJSDocThisTag:()=>yj,isJSDocThrowsTag:()=>tSe,isJSDocTypeAlias:()=>hm,isJSDocTypeAssertion:()=>US,isJSDocTypeExpression:()=>e0,isJSDocTypeLiteral:()=>A1,isJSDocTypeTag:()=>HM,isJSDocTypedefTag:()=>I1,isJSDocUnknownTag:()=>eSe,isJSDocUnknownType:()=>hie,isJSDocVariadicType:()=>p4,isJSXTagName:()=>YR,isJsonEqual:()=>F6,isJsonSourceFile:()=>Ff,isJsxAttribute:()=>i_,isJsxAttributeLike:()=>uF,isJsxAttributeName:()=>yre,isJsxAttributes:()=>VS,isJsxCallLike:()=>tte,isJsxChild:()=>W2,isJsxClosingElement:()=>GS,isJsxClosingFragment:()=>die,isJsxElement:()=>r_,isJsxExpression:()=>AD,isJsxFragment:()=>ZT,isJsxNamespacedName:()=>fh,isJsxOpeningElement:()=>ph,isJsxOpeningFragment:()=>jm,isJsxOpeningLikeElement:()=>nu,isJsxOpeningLikeElementTagName:()=>hle,isJsxSelfClosingElement:()=>E1,isJsxSpreadAttribute:()=>KI,isJsxTagNameExpression:()=>WN,isJsxText:()=>WI,isJumpStatementTarget:()=>sO,isKeyword:()=>ep,isKeywordOrPunctuation:()=>YF,isKnownSymbol:()=>iM,isLabelName:()=>fq,isLabelOfLabeledStatement:()=>pq,isLabeledStatement:()=>Mb,isLateVisibilityPaintedStatement:()=>xF,isLeftHandSideExpression:()=>$u,isLet:()=>CF,isLineBreak:()=>Zd,isLiteralComputedPropertyDeclarationName:()=>_k,isLiteralExpression:()=>JE,isLiteralExpressionOfObject:()=>k9,isLiteralImportTypeNode:()=>ry,isLiteralKind:()=>LN,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>$3,isLiteralTypeLiteral:()=>qee,isLiteralTypeNode:()=>dv,isLocalName:()=>fy,isLogicalOperator:()=>Tne,isLogicalOrCoalescingAssignmentExpression:()=>QG,isLogicalOrCoalescingAssignmentOperator:()=>cM,isLogicalOrCoalescingBinaryExpression:()=>xk,isLogicalOrCoalescingBinaryOperator:()=>u6,isMappedTypeNode:()=>y1,isMemberName:()=>dg,isMetaProperty:()=>b1,isMethodDeclaration:()=>Ml,isMethodOrAccessor:()=>iI,isMethodSignature:()=>Gm,isMinusToken:()=>rj,isMissingDeclaration:()=>X0e,isMissingPackageJsonInfo:()=>Toe,isModifier:()=>Aa,isModifierKind:()=>db,isModifierLike:()=>fl,isModuleAugmentationExternal:()=>iG,isModuleBlock:()=>t_,isModuleBody:()=>Kee,isModuleDeclaration:()=>pc,isModuleExportName:()=>d4,isModuleExportsAccessExpression:()=>gg,isModuleIdentifier:()=>bG,isModuleName:()=>kie,isModuleOrEnumDeclaration:()=>w2,isModuleReference:()=>Zee,isModuleSpecifierLike:()=>p7,isModuleWithStringLiteralName:()=>IF,isNameOfFunctionDeclaration:()=>gq,isNameOfModuleDeclaration:()=>_q,isNamedDeclaration:()=>nd,isNamedEvaluation:()=>Lp,isNamedEvaluationSource:()=>LG,isNamedExportBindings:()=>P9,isNamedExports:()=>Jf,isNamedImportBindings:()=>j9,isNamedImports:()=>n_,isNamedImportsOrExports:()=>v6,isNamedTupleMember:()=>vD,isNamespaceBody:()=>jTe,isNamespaceExport:()=>O_,isNamespaceExportDeclaration:()=>lw,isNamespaceImport:()=>Ig,isNamespaceReexportDeclaration:()=>Vte,isNewExpression:()=>BS,isNewExpressionTarget:()=>SP,isNewScopeNode:()=>Ire,isNoSubstitutionTemplateLiteral:()=>h1,isNodeArray:()=>mS,isNodeArrayMultiLine:()=>Nne,isNodeDescendantOf:()=>IS,isNodeKind:()=>oF,isNodeLikeSystem:()=>BB,isNodeModulesDirectory:()=>H8,isNodeWithPossibleHoistedDeclaration:()=>Zte,isNonContextualKeyword:()=>MG,isNonGlobalAmbientModule:()=>rG,isNonNullAccess:()=>gre,isNonNullChain:()=>iF,isNonNullExpression:()=>qI,isNonStaticMethodOrAccessorWithPrivateName:()=>Zoe,isNotEmittedStatement:()=>cie,isNullishCoalesce:()=>M9,isNumber:()=>Qv,isNumericLiteral:()=>np,isNumericLiteralName:()=>Eg,isObjectBindingElementWithoutPropertyName:()=>hO,isObjectBindingOrAssignmentElement:()=>M2,isObjectBindingOrAssignmentPattern:()=>F9,isObjectBindingPattern:()=>ff,isObjectLiteralElement:()=>U9,isObjectLiteralElementLike:()=>ny,isObjectLiteralExpression:()=>Wa,isObjectLiteralMethod:()=>mm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>LF,isObjectTypeDeclaration:()=>II,isOmittedExpression:()=>Jc,isOptionalChain:()=>eu,isOptionalChainRoot:()=>CN,isOptionalDeclaration:()=>PI,isOptionalJSDocPropertyLikeTag:()=>Jk,isOptionalTypeNode:()=>o4,isOuterExpression:()=>v4,isOutermostOptionalChain:()=>NN,isOverrideModifier:()=>eie,isPackageJsonInfo:()=>U4,isPackedArrayLiteral:()=>PV,isParameter:()=>to,isParameterPropertyDeclaration:()=>Np,isParameterPropertyModifier:()=>kN,isParenthesizedExpression:()=>wu,isParenthesizedTypeNode:()=>g1,isParseTreeNode:()=>DN,isPartOfParameterDeclaration:()=>VT,isPartOfTypeNode:()=>Hh,isPartOfTypeOnlyImportOrExportDeclaration:()=>zee,isPartOfTypeQuery:()=>GF,isPartiallyEmittedExpression:()=>iie,isPatternMatch:()=>N8,isPinnedComment:()=>EF,isPlainJsFile:()=>zN,isPlusToken:()=>nj,isPossiblyTypeArgumentPosition:()=>dO,isPostfixUnaryExpression:()=>sj,isPrefixUnaryExpression:()=>XT,isPrimitiveLiteralValue:()=>H6,isPrivateIdentifier:()=>eo,isPrivateIdentifierClassElementDeclaration:()=>tu,isPrivateIdentifierPropertyAccessExpression:()=>FR,isPrivateIdentifierSymbol:()=>ine,isProgramUptoDate:()=>dH,isPrologueDirective:()=>Uh,isPropertyAccessChain:()=>nF,isPropertyAccessEntityNameExpression:()=>Dk,isPropertyAccessExpression:()=>qr,isPropertyAccessOrQualifiedName:()=>L2,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Uee,isPropertyAssignment:()=>Nc,isPropertyDeclaration:()=>Po,isPropertyName:()=>bc,isPropertyNameLiteral:()=>qh,isPropertySignature:()=>Tu,isPrototypeAccess:()=>Sb,isPrototypePropertyAssignment:()=>ck,isPunctuation:()=>NG,isPushOrUnshiftIdentifier:()=>kG,isQualifiedName:()=>Lu,isQuestionDotToken:()=>r4,isQuestionOrExclamationToken:()=>Nie,isQuestionOrPlusOrMinusToken:()=>Lie,isQuestionToken:()=>Db,isReadonlyKeyword:()=>Qre,isReadonlyKeywordOrPlusOrMinusToken:()=>Pie,isRecognizedTripleSlashComment:()=>Q9,isReferenceFileLocation:()=>HD,isReferencedFile:()=>c0,isRegularExpressionLiteral:()=>ej,isRequireCall:()=>Zu,isRequireVariableStatement:()=>rk,isRestParameter:()=>C_,isRestTypeNode:()=>a4,isReturnStatement:()=>tf,isReturnStatementWithFixablePromiseHandler:()=>L7,isRightSideOfAccessExpression:()=>tV,isRightSideOfInstanceofExpression:()=>Ene,isRightSideOfPropertyAccess:()=>YD,isRightSideOfQualifiedName:()=>_le,isRightSideOfQualifiedNameOrPropertyAccess:()=>dM,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Sne,isRootedDiskPath:()=>Cp,isSameEntityName:()=>$R,isSatisfiesExpression:()=>SD,isSemicolonClassElement:()=>oie,isSetAccessor:()=>Vh,isSetAccessorDeclaration:()=>gp,isShiftOperatorOrHigher:()=>Nj,isShorthandAmbientModuleSymbol:()=>V2,isShorthandPropertyAssignment:()=>Ud,isSideEffectImport:()=>zV,isSignedNumericLiteral:()=>QF,isSimpleCopiableExpression:()=>JS,isSimpleInlineableExpression:()=>z_,isSimpleParameterList:()=>Ow,isSingleOrDoubleQuote:()=>ik,isSolutionConfig:()=>Zj,isSourceElement:()=>bre,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>aC,isSourceFileJS:()=>Mu,isSourceFileNotJson:()=>jF,isSourceMapping:()=>Yoe,isSpecialPropertyDeclaration:()=>qte,isSpreadAssignment:()=>xg,isSpreadElement:()=>qf,isStatement:()=>Vi,isStatementButNotDeclaration:()=>O2,isStatementOrBlock:()=>Qee,isStatementWithLocals:()=>dte,isStatic:()=>ua,isStaticModifier:()=>BI,isString:()=>Bo,isStringANonContextualKeyword:()=>vI,isStringAndEmptyAnonymousObjectIntersection:()=>Dle,isStringDoubleQuoted:()=>HF,isStringLiteral:()=>ka,isStringLiteralLike:()=>ds,isStringLiteralOrJsxExpression:()=>ete,isStringLiteralOrTemplate:()=>qle,isStringOrNumericLiteralLike:()=>uf,isStringOrRegularExpressionOrTemplateLiteral:()=>Iq,isStringTextContainingNode:()=>w9,isSuperCall:()=>e1,isSuperKeyword:()=>OM,isSuperProperty:()=>mp,isSupportedSourceFileName:()=>IV,isSwitchStatement:()=>GM,isSyntaxList:()=>CD,isSyntheticExpression:()=>V0e,isSyntheticReference:()=>JI,isTagName:()=>mq,isTaggedTemplateExpression:()=>KT,isTaggedTemplateTag:()=>fle,isTemplateExpression:()=>l4,isTemplateHead:()=>FI,isTemplateLiteral:()=>oI,isTemplateLiteralKind:()=>lb,isTemplateLiteralToken:()=>Wee,isTemplateLiteralTypeNode:()=>nie,isTemplateLiteralTypeSpan:()=>aj,isTemplateMiddle:()=>tj,isTemplateMiddleOrTemplateTail:()=>aF,isTemplateSpan:()=>ED,isTemplateTail:()=>t4,isTextWhiteSpaceLike:()=>kle,isThis:()=>$D,isThisContainerOrFunctionBlock:()=>zte,isThisIdentifier:()=>Tb,isThisInTypeQuery:()=>CS,isThisInitializedDeclaration:()=>FF,isThisInitializedObjectBindingExpression:()=>Gte,isThisProperty:()=>Q2,isThisTypeNode:()=>zM,isThisTypeParameter:()=>DM,isThisTypePredicate:()=>Ote,isThrowStatement:()=>dj,isToken:()=>nI,isTokenKind:()=>L9,isTraceEnabled:()=>Lb,isTransientSymbol:()=>pg,isTrivia:()=>nD,isTryStatement:()=>T1,isTupleTypeNode:()=>jI,isTypeAlias:()=>pk,isTypeAliasDeclaration:()=>vm,isTypeAssertionExpression:()=>s4,isTypeDeclaration:()=>MI,isTypeElement:()=>hS,isTypeKeyword:()=>xP,isTypeKeywordTokenOrIdentifier:()=>c7,isTypeLiteralNode:()=>ku,isTypeNode:()=>Ri,isTypeNodeKind:()=>uV,isTypeOfExpression:()=>bD,isTypeOnlyExportDeclaration:()=>Fee,isTypeOnlyImportDeclaration:()=>WR,isTypeOnlyImportOrExportDeclaration:()=>$y,isTypeOperatorNode:()=>JT,isTypeParameterDeclaration:()=>sl,isTypePredicateNode:()=>VI,isTypeQueryNode:()=>WS,isTypeReferenceNode:()=>Wp,isTypeReferenceType:()=>hF,isTypeUsableAsPropertyName:()=>jf,isUMDExportSymbol:()=>y6,isUnaryExpression:()=>G9,isUnaryExpressionWithWrite:()=>Hee,isUnicodeIdentifierStart:()=>J8,isUnionTypeNode:()=>cv,isUrl:()=>QZ,isValidBigIntString:()=>z6,isValidESSymbolDeclaration:()=>Lte,isValidTypeOnlyAliasUseSite:()=>UT,isValueSignatureDeclaration:()=>a1,isVarAwaitUsing:()=>J2,isVarConst:()=>qR,isVarConstLike:()=>Cte,isVarUsing:()=>K2,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>jN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>SS,isVariableDeclarationInitializedToRequire:()=>nk,isVariableDeclarationList:()=>_d,isVariableLike:()=>VN,isVariableStatement:()=>sc,isVoidExpression:()=>HI,isWatchSet:()=>lV,isWhileStatement:()=>cj,isWhiteSpaceLike:()=>sg,isWhiteSpaceSingleLine:()=>Bh,isWithStatement:()=>aie,isWriteAccess:()=>AI,isWriteOnlyAccess:()=>g6,isYieldExpression:()=>aw,jsxModeNeedsExplicitImport:()=>aJ,keywordPart:()=>Vp,last:()=>Ba,lastOrUndefined:()=>Zs,length:()=>et,libMap:()=>Fj,libs:()=>x4,lineBreakPart:()=>rC,loadModuleFromGlobalCache:()=>Poe,loadWithModeAwareCache:()=>Jw,makeIdentifierFromModuleName:()=>gte,makeImport:()=>Bb,makeStringLiteral:()=>RP,mangleScopedPackageName:()=>BD,map:()=>Vt,mapAllOrFail:()=>RT,mapDefined:()=>Ui,mapDefinedIterator:()=>nh,mapEntries:()=>TQ,mapIterator:()=>za,mapOneOrMany:()=>nJ,mapToDisplayParts:()=>Gb,matchFiles:()=>ere,matchPatternOrExact:()=>xV,matchedText:()=>wQ,matchesExclude:()=>z4,matchesExcludeWorker:()=>B4,maxBy:()=>PB,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>zne,memoize:()=>Cu,memoizeOne:()=>Fh,min:()=>LB,minAndMax:()=>sre,missingFileModifiedTime:()=>Dp,modifierToFlag:()=>SI,modifiersToFlags:()=>Xh,moduleExportNameIsDefault:()=>N_,moduleExportNameTextEscaped:()=>vS,moduleExportNameTextUnescaped:()=>_b,moduleOptionDeclaration:()=>qie,moduleResolutionIsEqualTo:()=>lte,moduleResolutionNameAndModeGetter:()=>g3,moduleResolutionOptionDeclarations:()=>Bj,moduleResolutionSupportsPackageJsonExportsAndImports:()=>uD,moduleResolutionUsesNodeModules:()=>d7,moduleSpecifierToValidIdentifier:()=>EO,moduleSpecifiers:()=>hy,moduleSupportsImportAttributes:()=>qne,moduleSymbolToValidIdentifier:()=>SO,moveEmitHelpers:()=>zre,moveRangeEnd:()=>h6,moveRangePastDecorators:()=>ly,moveRangePastModifiers:()=>Yh,moveRangePos:()=>jT,moveSyntheticComments:()=>Ore,mutateMap:()=>hM,mutateMapSkippingNewValues:()=>vg,needsParentheses:()=>_7,needsScopeMarker:()=>cF,newCaseClauseTracker:()=>D7,newPrivateEnvironment:()=>tae,noEmitNotification:()=>Bw,noEmitSubstitution:()=>uP,noTransformers:()=>Pae,noTruncationMaximumTruncationLength:()=>J9,nodeCanBeDecorated:()=>ek,nodeCoreModules:()=>hD,nodeHasName:()=>A2,nodeIsDecorated:()=>XR,nodeIsMissing:()=>Wl,nodeIsPresent:()=>fm,nodeIsSynthesized:()=>Os,nodeModuleNameResolver:()=>Ioe,nodeModulesPathPart:()=>Rg,nodeNextJsonConfigResolver:()=>xoe,nodeOrChildIsDecorated:()=>tk,nodeOverlapsWithStartEnd:()=>Q3,nodePosToString:()=>JTe,nodeSeenTracker:()=>eC,nodeStartsNewLexicalEnvironment:()=>wG,noop:()=>gs,noopFileWatcher:()=>KD,normalizePath:()=>ya,normalizeSlashes:()=>Bd,normalizeSpans:()=>S9,not:()=>P8,notImplemented:()=>ha,notImplementedResolver:()=>Wae,nullNodeConverters:()=>Lre,nullParenthesizerRules:()=>Mre,nullTransformationContext:()=>Vw,objectAllocator:()=>Rd,operatorPart:()=>CP,optionDeclarations:()=>Um,optionMapToObject:()=>L4,optionsAffectingProgramStructure:()=>Yie,optionsForBuild:()=>Vj,optionsForWatch:()=>ex,optionsHaveChanges:()=>lI,or:()=>Rp,orderedRemoveItem:()=>uN,orderedRemoveItemAt:()=>nb,packageIdToPackageName:()=>TF,packageIdToString:()=>kT,parameterIsThisKeyword:()=>bb,parameterNamePart:()=>Ole,parseBaseNodeFactory:()=>Bie,parseBigInt:()=>cre,parseBuildCommand:()=>ioe,parseCommandLine:()=>noe,parseCommandLineWorker:()=>jj,parseConfigFileTextToJson:()=>Hj,parseConfigFileWithSystem:()=>Sse,parseConfigHostFromCompilerHostLike:()=>E3,parseCustomTypeOption:()=>N4,parseIsolatedEntityName:()=>ZI,parseIsolatedJSDocComment:()=>Vie,parseJSDocTypeExpressionForTests:()=>ISe,parseJsonConfigFileContent:()=>tEe,parseJsonSourceFileConfigFileContent:()=>xw,parseJsonText:()=>bw,parseListTypeOption:()=>eoe,parseNodeFactory:()=>r0,parseNodeModuleFromPath:()=>Nw,parsePackageName:()=>J4,parsePseudoBigInt:()=>AM,parseValidBigInt:()=>NV,pasteEdits:()=>oX,patchWriteFileEnsuringDirectory:()=>cTe,pathContainsNodeModules:()=>wb,pathIsAbsolute:()=>vN,pathIsBareSpecifier:()=>p9,pathIsRelative:()=>Zp,patternText:()=>kQ,performIncrementalCompilation:()=>Ese,performance:()=>jQ,positionBelongsToNode:()=>yq,positionIsASICandidate:()=>v7,positionIsSynthesized:()=>dh,positionsAreOnSameLine:()=>Gf,preProcessFile:()=>uxe,probablyUsesSemicolons:()=>bO,processCommentPragmas:()=>Oj,processPragmasIntoFields:()=>Wj,processTaggedTemplateExpression:()=>FU,programContainsEsModules:()=>Ple,programContainsModules:()=>Mle,projectReferenceIsEqualTo:()=>K9,propertyNamePart:()=>Wle,pseudoBigIntToString:()=>kS,punctuationPart:()=>su,pushIfUnique:()=>kf,quote:()=>PP,quotePreferenceFromString:()=>wq,rangeContainsPosition:()=>QD,rangeContainsPositionExclusive:()=>lO,rangeContainsRange:()=>tp,rangeContainsRangeExclusive:()=>yle,rangeContainsStartEnd:()=>cO,rangeEndIsOnSameLineAsRangeStart:()=>Mk,rangeEndPositionsAreOnSameLine:()=>Dne,rangeEquals:()=>AB,rangeIsOnSingleLine:()=>d1,rangeOfNode:()=>DV,rangeOfTypeParameters:()=>CV,rangeOverlapsWithStartEnd:()=>EP,rangeStartIsOnSameLineAsRangeEnd:()=>Cne,rangeStartPositionsAreOnSameLine:()=>_6,readBuilderProgram:()=>k3,readConfigFile:()=>Aw,readJson:()=>sD,readJsonConfigFile:()=>ooe,readJsonOrUndefined:()=>rV,reduceEachLeadingCommentRange:()=>aee,reduceEachTrailingCommentRange:()=>see,reduceLeft:()=>_u,reduceLeftIterator:()=>Gn,reducePathComponents:()=>eI,refactor:()=>mx,regExpEscape:()=>S0e,regularExpressionFlagToCharacterCode:()=>TTe,relativeComplement:()=>SQ,removeAllComments:()=>Zk,removeEmitHelper:()=>F0e,removeExtension:()=>jk,removeFileExtension:()=>bu,removeIgnoredPath:()=>R3,removeMinAndVersionNumbers:()=>OB,removePrefix:()=>pN,removeSuffix:()=>xR,removeTrailingDirectorySeparator:()=>Xy,repeatString:()=>fO,replaceElement:()=>RB,replaceFirstStar:()=>p1,resolutionExtensionIsTSOrJson:()=>bM,resolveConfigFileProjectName:()=>VH,resolveJSModule:()=>LEe,resolveLibrary:()=>q4,resolveModuleName:()=>C1,resolveModuleNameFromCache:()=>MEe,resolvePackageNameToPackageJson:()=>rU,resolvePath:()=>ib,resolveProjectReferencePath:()=>ax,resolveTripleslashReference:()=>tH,resolveTypeReferenceDirective:()=>voe,resolvingEmptyArray:()=>q9,returnFalse:()=>Qg,returnNoopFileWatcher:()=>vP,returnTrue:()=>cS,returnUndefined:()=>dS,returnsPromise:()=>bJ,rewriteModuleSpecifier:()=>rx,sameFlatMap:()=>wm,sameMap:()=>Zi,sameMapping:()=>S1e,scanTokenAtPosition:()=>Dte,scanner:()=>yd,semanticDiagnosticsOptionDeclarations:()=>Jie,serializeCompilerOptions:()=>Yj,server:()=>bwe,servicesVersion:()=>eDe,setCommentRange:()=>Dc,setConfigFileInOptions:()=>$j,setConstantValue:()=>Fre,setEmitFlags:()=>Cr,setGetSourceFileAsHashVersioned:()=>L3,setIdentifierAutoGenerate:()=>nw,setIdentifierGeneratedImportReference:()=>Vre,setIdentifierTypeArguments:()=>lv,setInternalEmitFlags:()=>ew,setLocalizedDiagnosticMessages:()=>Fne,setNodeChildren:()=>yie,setNodeFlags:()=>pre,setObjectAllocator:()=>Wne,setOriginalNode:()=>jr,setParent:()=>ps,setParentRecursive:()=>HT,setPrivateIdentifier:()=>M1,setSnippetElement:()=>QV,setSourceMapRange:()=>Ua,setStackTraceLimit:()=>nTe,setStartsOnNewLine:()=>$6,setSyntheticLeadingComments:()=>qT,setSyntheticTrailingComments:()=>wI,setSys:()=>dTe,setSysLog:()=>YZ,setTextRange:()=>vt,setTextRangeEnd:()=>mD,setTextRangePos:()=>IM,setTextRangePosEnd:()=>uh,setTextRangePosWidth:()=>MV,setTokenSourceMapRange:()=>wre,setTypeNode:()=>Bre,setUILocale:()=>MQ,setValueDeclaration:()=>YN,shouldAllowImportingTsExtension:()=>GD,shouldPreserveConstEnums:()=>Eb,shouldRewriteModuleSpecifier:()=>uk,shouldUseUriStyleNodeCoreModules:()=>x7,showModuleSpecifier:()=>kne,signatureHasRestParameter:()=>au,signatureToDisplayParts:()=>qq,single:()=>xB,singleElementArray:()=>$A,singleIterator:()=>x8,singleOrMany:()=>I_,singleOrUndefined:()=>og,skipAlias:()=>xd,skipConstraint:()=>Pq,skipOuterExpressions:()=>Hl,skipParentheses:()=>us,skipPartiallyEmittedExpressions:()=>Wm,skipTrivia:()=>La,skipTypeChecking:()=>fD,skipTypeCheckingIgnoringNoCheck:()=>lre,skipTypeParentheses:()=>QN,skipWhile:()=>WQ,sliceAfter:()=>RV,some:()=>yt,sortAndDeduplicate:()=>dN,sortAndDeduplicateDiagnostics:()=>kR,sourceFileAffectingCompilerOptions:()=>Gj,sourceFileMayBeEmitted:()=>RS,sourceMapCommentRegExp:()=>xU,sourceMapCommentRegExpDontCareLineStart:()=>Joe,spacePart:()=>Bl,spanMap:()=>r2,startEndContainsRange:()=>aV,startEndOverlapsWithStartEnd:()=>Z3,startOnNewLine:()=>ou,startTracing:()=>JQ,startsWith:()=>po,startsWithDirectory:()=>h9,startsWithUnderscore:()=>oJ,startsWithUseStrict:()=>Iie,stringContainsAt:()=>Zle,stringToToken:()=>jE,stripQuotes:()=>_m,supportedDeclarationExtensions:()=>w6,supportedJSExtensionsFlat:()=>pD,supportedLocaleDirectories:()=>See,supportedTSExtensionsFlat:()=>EV,supportedTSImplementationExtensions:()=>Bk,suppressLeadingAndTrailingTrivia:()=>Op,suppressLeadingTrivia:()=>qV,suppressTrailingTrivia:()=>Rre,symbolEscapedNameNoDefault:()=>u7,symbolName:()=>Ol,symbolNameNoDefault:()=>Wq,symbolToDisplayParts:()=>NP,sys:()=>jc,sysLog:()=>B8,tagNamesAreEquivalent:()=>o0,takeWhile:()=>zB,targetOptionDeclaration:()=>zj,targetToLibMap:()=>lee,testFormatSettings:()=>LIe,textChangeRangeIsUnchanged:()=>gee,textChangeRangeNewSpan:()=>RN,textChanges:()=>Rr,textOrKeywordPart:()=>Hq,textPart:()=>yf,textRangeContainsPositionInclusive:()=>b2,textRangeContainsTextSpan:()=>uee,textRangeIntersectsWithTextSpan:()=>hee,textSpanContainsPosition:()=>b9,textSpanContainsTextRange:()=>T9,textSpanContainsTextSpan:()=>dee,textSpanEnd:()=>Cl,textSpanIntersection:()=>_ee,textSpanIntersectsWith:()=>T2,textSpanIntersectsWithPosition:()=>mee,textSpanIntersectsWithTextSpan:()=>fee,textSpanIsEmpty:()=>cee,textSpanOverlap:()=>pee,textSpanOverlapsWith:()=>CTe,textSpansEqual:()=>nC,textToKeywordObj:()=>q8,timestamp:()=>Ls,toArray:()=>XA,toBuilderFileEmit:()=>use,toBuilderStateFileInfoForMultiEmit:()=>dse,toEditorSettings:()=>MO,toFileNameLowerCase:()=>Zv,toPath:()=>ks,toProgramEmitPending:()=>pse,toSorted:()=>xp,tokenIsIdentifierOrKeyword:()=>Xu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>eee,tokenToString:()=>_a,trace:()=>xo,tracing:()=>xr,tracingEnabled:()=>u2,transferSourceFileChildren:()=>vie,transform:()=>dDe,transformClassFields:()=>uae,transformDeclarations:()=>VU,transformECMAScriptModule:()=>GU,transformES2015:()=>Iae,transformES2016:()=>Aae,transformES2017:()=>hae,transformES2018:()=>_ae,transformES2019:()=>gae,transformES2020:()=>yae,transformES2021:()=>vae,transformESDecorators:()=>mae,transformESNext:()=>bae,transformGenerators:()=>xae,transformImpliedNodeFormatDependentModule:()=>Dae,transformJsx:()=>Eae,transformLegacyDecorators:()=>fae,transformModule:()=>BU,transformNamedEvaluation:()=>zp,transformNodes:()=>Gw,transformSystemModule:()=>Rae,transformTypeScript:()=>dae,transpile:()=>bxe,transpileDeclaration:()=>yxe,transpileModule:()=>Sce,transpileOptionValueCompilerOptions:()=>$ie,tryAddToSet:()=>rh,tryAndIgnoreErrors:()=>S7,tryCast:()=>ni,tryDirectoryExists:()=>T7,tryExtractTSExtension:()=>m6,tryFileExists:()=>kP,tryGetClassExtendingExpressionWithTypeArguments:()=>ZG,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>eV,tryGetDirectories:()=>b7,tryGetExtensionFromPath:()=>Sg,tryGetImportFromModuleSpecifier:()=>dk,tryGetJSDocSatisfiesTypeNode:()=>j6,tryGetModuleNameFromFile:()=>mw,tryGetModuleSpecifierFromDeclaration:()=>mI,tryGetNativePerformanceHooks:()=>VQ,tryGetPropertyAccessOrIdentifierToString:()=>Ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>T4,tryGetSourceMappingURL:()=>Koe,tryGetTextOfPropertyName:()=>GN,tryParseJson:()=>Nk,tryParsePattern:()=>NI,tryParsePatterns:()=>Uk,tryParseRawSourceMap:()=>Xoe,tryReadDirectory:()=>Qq,tryReadFile:()=>YM,tryRemoveDirectoryPrefix:()=>bV,tryRemoveExtension:()=>ore,tryRemovePrefix:()=>FB,tryRemoveSuffix:()=>LQ,tscBuildOption:()=>R1,typeAcquisitionDeclarations:()=>D4,typeAliasNamePart:()=>Fle,typeDirectiveIsEqualTo:()=>cte,typeKeywords:()=>Mq,typeParameterNamePart:()=>zle,typeToDisplayParts:()=>gO,unchangedPollThresholds:()=>F8,unchangedTextChangeRange:()=>Y8,unescapeLeadingUnderscores:()=>Gi,unmangleScopedPackageName:()=>Pw,unorderedRemoveItem:()=>YA,unprefixedNodeCoreModules:()=>Are,unreachableCodeIsError:()=>Une,unsetNodeChildren:()=>bj,unusedLabelIsError:()=>Hne,unwrapInnermostStatementOfLabel:()=>hG,unwrapParenthesizedExpression:()=>Sre,updateErrorForNoInputFiles:()=>F4,updateLanguageServiceSourceFile:()=>JJ,updateMissingFilePathsWatch:()=>QU,updateResolutionField:()=>OD,updateSharedExtendedConfigFileWatcher:()=>f3,updateSourceFile:()=>kj,updateWatchingWildcardDirectories:()=>Uw,usingSingleLineStringWriter:()=>VR,utf16EncodeAsString:()=>xN,validateLocaleAndSetLanguage:()=>A9,version:()=>Le,versionMajorMinor:()=>ge,visitArray:()=>iP,visitCommaListElements:()=>t3,visitEachChild:()=>kn,visitFunctionBody:()=>gf,visitIterationBody:()=>Ou,visitLexicalEnvironment:()=>IU,visitNode:()=>st,visitNodes:()=>Xn,visitParameterList:()=>zl,walkUpBindingElementsAndPatterns:()=>UE,walkUpOuterExpressions:()=>xie,walkUpParenthesizedExpressions:()=>zm,walkUpParenthesizedTypes:()=>hk,walkUpParenthesizedTypesAndGetParentAndChild:()=>ene,whitespaceOrMapCommentRegExp:()=>RU,writeCommentRange:()=>aD,writeFile:()=>l6,writeFileEnsuringDirectories:()=>qG,zipWith:()=>ki});var gwe;function Fat(){return gwe??(gwe=new ih(Le))}function ywe(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?` ${bg(o,[e])}`:"",s}function zat(e,t,r,i){const o=ywe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Bat(e,t,r,i){let o=!1;return()=>{o||(C.log.warn(ywe(e,!1,t,r,i)),o=!0)}}function Gat(e,t={}){const r=typeof t.typeScriptVersion=="string"?new ih(t.typeScriptVersion):t.typeScriptVersion??Fat(),i=typeof t.errorAfter=="string"?new ih(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new ih(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new ih(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?zat(e,i,s,t.message):u?Bat(e,i,s,t.message):gs}function Vat(e,t){return function(){return e(),t.apply(this,arguments)}}function jat(e,t){const r=Gat(t?.name??C.getFunctionName(e),t);return Vat(r,e)}function aX(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)&&Rs(t,`${u}`)&&(t[u]=jat(t[u],{...i[u],name:e}))}const o=Uat(t,r);return s;function s(...l){const u=o(l),d=u!==void 0?t[u]:void 0;if(typeof d=="function")return d(...l);throw new TypeError("Invalid arguments")}}function Uat(e,t){return r=>{for(let i=0;Rs(e,`${i}`)&&Rs(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function vwe(e){return{overload:t=>({bind:r=>({finish:()=>aX(e,t,r),deprecate:i=>({finish:()=>aX(e,t,r,i)})})})}}var bwe={};x(bwe,{ActionInvalidate:()=>V3,ActionPackageInstalled:()=>j3,ActionSet:()=>G3,ActionWatchTypingLocations:()=>iO,Arguments:()=>iq,AutoImportProviderProject:()=>dme,AuxiliaryProject:()=>lme,CharRangeSection:()=>Ome,CloseFileWatcherEvent:()=>vX,CommandNames:()=>Qwe,ConfigFileDiagEvent:()=>mX,ConfiguredProject:()=>ume,ConfiguredProjectLoadKind:()=>gme,CreateDirectoryWatcherEvent:()=>yX,CreateFileWatcherEvent:()=>gX,Errors:()=>by,EventBeginInstallTypes:()=>nq,EventEndInstallTypes:()=>rq,EventInitializationFailed:()=>Xse,EventTypesRegistry:()=>tq,ExternalProject:()=>lX,GcTimer:()=>Yfe,InferredProject:()=>sme,LargeFileReferencedEvent:()=>fX,LineIndex:()=>cW,LineLeaf:()=>Az,LineNode:()=>vC,LogLevel:()=>Gfe,Msg:()=>Vfe,OpenFileInfoTelemetryEvent:()=>pme,Project:()=>Ax,ProjectInfoTelemetryEvent:()=>_X,ProjectKind:()=>YP,ProjectLanguageServiceStateEvent:()=>hX,ProjectLoadingFinishEvent:()=>pX,ProjectLoadingStartEvent:()=>uX,ProjectService:()=>xme,ProjectsUpdatedInBackgroundEvent:()=>Tz,ScriptInfo:()=>eme,ScriptVersionCache:()=>MX,Session:()=>aOe,TextStorage:()=>Zfe,ThrottledOperations:()=>Xfe,TypingsInstallerAdapter:()=>pOe,allFilesAreJsOrDts:()=>ime,allRootFilesAreJsOrDts:()=>rme,asNormalizedPath:()=>Awe,convertCompilerOptions:()=>Sz,convertFormatOptions:()=>_C,convertScriptKindName:()=>TX,convertTypeAcquisition:()=>mme,convertUserPreferences:()=>hme,convertWatchOptions:()=>sW,countEachFileTypes:()=>rW,createInstallTypingsRequest:()=>jfe,createModuleSpecifierCache:()=>Cme,createNormalizedPathMap:()=>Iwe,createPackageJsonCache:()=>Nme,createSortedArray:()=>Kfe,emptyArray:()=>Kc,findArgument:()=>IIe,formatDiagnosticToProtocol:()=>lW,formatMessage:()=>Mme,getBaseConfigFileName:()=>sX,getDetailWatchInfo:()=>IX,getLocationInNewDocument:()=>wme,hasArgument:()=>AIe,hasNoTypeScriptSource:()=>ome,indent:()=>TP,isBackgroundProject:()=>oW,isConfigFile:()=>Rme,isConfiguredProject:()=>vv,isDynamicFileName:()=>XP,isExternalProject:()=>iW,isInferredProject:()=>hC,isInferredProjectName:()=>Ufe,isProjectDeferredClose:()=>aW,makeAutoImportProviderProjectName:()=>qfe,makeAuxiliaryProjectName:()=>Jfe,makeInferredProjectName:()=>Hfe,maxFileSize:()=>dX,maxProgramSizeForNonTsFiles:()=>cX,normalizedPathToPath:()=>mC,nowString:()=>xIe,nullCancellationToken:()=>Xwe,nullTypingsInstaller:()=>Ez,protocol:()=>$fe,scriptInfoIsContainedByBackgroundProject:()=>tme,scriptInfoIsContainedByDeferredClosedProject:()=>nme,stringifyIndented:()=>d0,toEvent:()=>Pme,toNormalizedPath:()=>Cs,tryConvertScriptKindName:()=>bX,typingsInstaller:()=>Bfe,updateProjectIfDirty:()=>Am});var Bfe={};x(Bfe,{TypingsInstaller:()=>Jat,getNpmCommandForInstallation:()=>Swe,installNpmPackages:()=>qat,typingsName:()=>Ewe});var Hat={isEnabled:()=>!1,writeLine:gs};function Twe(e,t,r,i){try{const o=C1(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 qat(e,t,r,i){let o=!1;for(let s=r.length;s>0;){const l=Swe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function Swe(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}}var Jat=class{constructor(e,t,r,i,o,s=Hat){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:tq,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:C.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:iO,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${d0(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=zb.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=TN(ci(t),u=>{if(this.installTypingHost.fileExists(Qr(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{const d=u?`Package ${r} installed.`:`There was an error installing ${r}.`,g={kind:j3,projectName:i,id:s,success:u,message:d};this.sendResponse(g)});else{const u={kind:j3,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=zb.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=zb.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}':${d0(i)}`),this.log.writeLine(`Loaded content of '${r}':${d0(o)}`)),i.devDependencies&&(o.packages||o.dependencies))for(const s in i.devDependencies){if(o.packages&&!Rs(o.packages,`node_modules/${s}`)||o.dependencies&&!Rs(o.dependencies,s))continue;const l=xc(s);if(!l)continue;const u=Twe(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}const d=this.packageNameToTypingLocation.get(l);if(d){if(d.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${u}' conflicts with existing typing file '${d}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${u}'`);const g=o.packages&&o2(o.packages,`node_modules/${s}`)||o2(o.dependencies,s),h=g&&g.version;if(!h)continue;const y={typingLocation:u,version:new ih(h)};this.packageNameToTypingLocation.set(l,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Ui(e,t=>{const r=BD(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}const i=zb.validatePackageName(t);if(i!==zb.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(zb.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)&&zb.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:nq,eventId:s,typingsInstallerVersion:Le,projectName:e.projectName});const l=o.map(Ewe);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 g of o)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const d=[];for(const g of o){const h=Twe(t,g,this.installTypingHost,this.log);if(!h){this.missingTypingsSet.add(g);continue}const y=this.typesRegistry.get(g),E=new ih(y[`ts${ge}`]||y[this.latestDistTag]),A={typingLocation:h,version:E};this.packageNameToTypingLocation.set(g,A),d.push(h)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(d)}`),this.sendResponse(this.createSetTypings(e,r.concat(d)))}finally{const d={kind:rq,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Le};this.sendResponse(d)}})}ensureDirectoryExists(e,t){const r=ci(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||fg(i,o=>!r.has(o))||fg(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:iO,projectName:e,files:t})):this.sendResponse({kind:iO,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:G3}}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()})}}};function Ewe(e){return`@types/${e}@ts${ge}`}var Gfe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Gfe||{}),Kc=Kfe(),Vfe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Vfe||{});function jfe(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"}}var by;(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})(by||(by={}));function Cs(e){return ya(e)}function mC(e,t,r){const i=Cp(e)?e:To(e,t);return r(i)}function Awe(e){return e}function Iwe(){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 Ufe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Hfe(e){return`/dev/null/inferredProject${e}*`}function qfe(e){return`/dev/null/autoImportProviderProject${e}*`}function Jfe(e){return`/dev/null/auxiliaryProject${e}*`}function Kfe(){return[]}var Xfe=class s7e{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(s7e.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){r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i()}},Yfe=class l7e{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(l7e.run,this.delay,this))}static run(t){t.timerId=void 0;const r=t.logger.hasLevel(2),i=r&&t.host.getMemoryUsage();if(t.host.gc(),r){const o=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${i}, after ${o}`)}}};function sX(e){const t=xc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}var $fe={};x($fe,{ClassificationType:()=>lq,CommandTypes:()=>Qfe,CompletionTriggerKind:()=>aq,IndentStyle:()=>Cwe,JsxEmit:()=>Nwe,ModuleKind:()=>Mwe,ModuleResolutionKind:()=>Pwe,NewLineKind:()=>Lwe,OrganizeImportsMode:()=>oq,PollingWatchKind:()=>Dwe,ScriptTarget:()=>kwe,SemicolonPreference:()=>sq,WatchDirectoryKind:()=>Rwe,WatchFileKind:()=>xwe});var Qfe=(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.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",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.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(Qfe||{}),xwe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(xwe||{}),Rwe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Rwe||{}),Dwe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Dwe||{}),Cwe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Cwe||{}),Nwe=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(Nwe||{}),Mwe=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.Node18="node18",e.Node20="node20",e.NodeNext="nodenext",e.Preserve="preserve",e))(Mwe||{}),Pwe=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(Pwe||{}),Lwe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Lwe||{}),kwe=(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.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(kwe||{}),Zfe=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 C.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=dx(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,this.ownFileText&&this.info.mTime===Dp.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Dp).getTime()),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=U3.fromString(C.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(!u1(this.info.fileName)){const o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>dX)return C.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=MX.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=MX.fromString(C.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(C.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return C.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=tI(C.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 DU(this.text,t)}};function XP(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&xc(e)[0]==="^"||e.includes(":^")&&!e.includes(Js)}var eme=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=XP(t),this.textStorage=new Zfe(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||L6(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)){C.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 jn(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:uN(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){vv(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&&!hC(e)&&e.addMissingFileRoot(t.fileName)}hi(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return by.ThrowNoProject();case 1:return aW(this.containingProjects[0])||oW(this.containingProjects[0])?by.ThrowNoProject():this.containingProjects[0];default:let e,t,r,i;for(let o=0;o!e.isOrphan())}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Kat(e);const t=this.textStorage.positionToLineOffset(e);return Xat(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Bo(this.sourceMapFilePath)&&(Kf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function Kat(e){C.assert(typeof e=="number",`Expected position ${e} to be a number.`),C.assert(e>=0,"Expected position to be non-negative.")}function Xat(e){C.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),C.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),C.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),C.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}function tme(e){return yt(e.containingProjects,oW)}function nme(e){return yt(e.containingProjects,aW)}var YP=(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))(YP||{});function rW(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:ad(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 Yat(e){const t=rW(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function rme(e){const t=rW(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function ime(e){const t=rW(e.getScriptInfos());return t.ts===0&&t.tsx===0}function ome(e){return!e.some(t=>El(t,".ts")&&!ad(t)||El(t,".tsx"))}function ame(e){return e.generatedFilePath!==void 0}function wwe(e,t){if(e===t||(e||Kc).length===0&&(t||Kc).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 $at(e,t){return e.enable!==t.enable||!wwe(e.include,t.include)||!wwe(e.exclude,t.exclude)}function Qat(e,t){return Ab(e)!==Ab(t)}function Zat(e,t){return e===t?!1:!Qp(e,t)}var Ax=class c7e{constructor(t,r,i,o,s,l,u,d,g,h){switch(this.projectKind=r,this.projectService=i,this.compilerOptions=l,this.compileOnSaveEnabled=u,this.watchOptions=d,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.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Kc,this.moduleSpecifierCache=Cme(this),this.createHash=ia(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=zb.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,i.logger.info(`Creating ${YP[r]}Project: ${t}, currentDirectory: ${h}`),this.projectName=t,this.directoryStructureHost=g,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(h),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new wde(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(o||Ab(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=J7(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:C.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const y=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=E=>this.writeLog(E):y.trace&&(this.trace=E=>y.trace(E)),this.realpath=ia(y,y.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||y.preferNonRecursiveWatch,this.resolutionCache=AH(this,this.currentDirectory,!0),this.languageService=Ode(this,this.projectService.documentRegistry,this.projectService.serverMode),s&&this.disableLanguageService(s),this.markAsDirty(),oW(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(t){}isNonTsProject(){return Am(this),ime(this)}isJsOnlyProject(){return Am(this),Yat(this)}static resolveModule(t,r,i,o){return c7e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){C.assertIsDefined(i.require);let s,l;for(const u of r){const d=Bd(i.resolvePath(Qr(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${d})`);const g=i.require(d,t.name);if(!g.error){l=g.module;break}const h=g.error.stack||g.error.message||JSON.stringify(g.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${d}: ${h}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){C.assertIsDefined(i.importPlugin);let s,l;for(const u of r){const d=Qr(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${d})`);let g;try{g=await i.importPlugin(d,t.name)}catch(y){g={module:void 0,error:y}}if(!g.error){l=g.module;break}const h=g.error.stack||g.error.message||JSON.stringify(g.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${d}: ${h}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.projectService.typingsInstaller.isKnownTypesPackageName(t)}installPackage(t){return this.projectService.typingsInstaller.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=vV(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.rootFilesMap.size)return ae;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Xr(t,this.typingFiles)||ae}getOrCreateScriptInfoAndAttachToProject(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);if(r){const i=this.rootFilesMap.get(r.path);i&&i.info!==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,!1);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=ci(ya(this.projectService.getExecutingFilePath()));return Qr(t,v2(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.projectService.getScriptInfoForPath(r)||!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 ks(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),sd.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),sd.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),sd.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}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 Un(this.projectErrors,t=>!t.file)||Kc}getAllProjectErrors(){return this.projectErrors||Kc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Am(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?(Am(this),this.builderState=_h.create(this.program,this.builderState,!0),Ui(_h.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:Kc};const{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const l of s){const u=To(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&_p(this.compilerOptions)){const l=s.filter(u=>ad(u.name));if(l.length===1){const u=this.program.getSourceFile(t.fileName),d=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):p2(l[0].text);_h.updateSignatureOfFile(this.builderState,d,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&&(C.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.enable||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return xp(Ki(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.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),Ye(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r)),this.rootFilesMap.forEach(r=>{var i;return(i=r.info)==null?void 0:i.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!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&&(hp(this.missingFilesMap,Bm),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.rootFilesMap===void 0}hasRoots(){var t;return!!((t=this.rootFilesMap)!=null&&t.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Co(nh(this.rootFilesMap.values(),t=>{var r;return(r=t.info)==null?void 0:r.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Co(nh(this.rootFilesMap.values(),t=>t.info))}getScriptInfos(){return this.languageServiceEnabled?Vt(this.program.getSourceFiles(),t=>{const r=this.projectService.getScriptInfoForPath(t.resolvedPath);return C.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.getRootScriptInfos()}getExcludedFiles(){return Kc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){const s=Wde(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,i;return((i=(r=this.rootFilesMap)==null?void 0:r.get(t.path))==null?void 0:i.info)===t}addRoot(t,r){C.assert(!this.isRoot(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)}markAutoImportProviderAsDirty(){var t;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(t=this.autoImportProviderHost)==null||t.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(t,r,i,o){(!o||t.resolvedPath===t.path&&o.resolvedPath!==t.path)&&this.detachScriptInfoFromProject(t.fileName,i)}updateFromProject(){Am(this)}updateGraph(){var t,r;(t=xr)==null||t.push(xr.Phase.Session,"updateGraph",{name:this.projectName,kind:YP[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const i=this.updateGraphWorker(),o=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const s=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Kc;for(const u of s)this.cachedUnresolvedImportsPerFile.delete(u);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((i||s.length)&&(this.lastCachedUnresolvedImportsList=est(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(o)):this.lastCachedUnresolvedImportsList=void 0;const l=this.projectProgramVersion===0&&i;return i&&this.projectProgramVersion++,o&&this.markAutoImportProviderAsDirty(),l&&this.getPackageJsonAutoImportProvider(),(r=xr)==null||r.pop(),!i}enqueueInstallTypingsForProject(t){const r=this.getTypeAcquisition();if(!r||!r.enable||this.projectService.typingsInstaller===Ez)return;const i=this.typingsCache;(t||!i||$at(r,i.typeAcquisition)||Qat(this.getCompilationSettings(),i.compilerOptions)||Zat(this.lastCachedUnresolvedImportsList,i.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:r,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,r,this.lastCachedUnresolvedImportsList))}updateTypingFiles(t,r,i,o){this.typingsCache={compilerOptions:t,typeAcquisition:r,unresolvedImports:i};const s=!r||!r.enable?Kc:xp(o);L8(s,this.typingFiles,IR(!this.useCaseSensitiveFileNames()),gs,l=>this.detachScriptInfoFromProject(l))&&(this.typingFiles=s,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&hp(this.typingWatchers,Bm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:V3})}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);if(r.delete(l),!this.typingWatchers.has(l)){const u=s==="FileWatcher"?sd.TypingInstallerLocationFile:sd.TypingInstallerLocationDirectory;this.typingWatchers.set(l,Qw(l)?s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),u,this):this.projectService.watchFactory.watchDirectory(o,d=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!El(d,".json"))return this.writeLog("Ignoring files that are not *.json");if(Zg(d,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),u,this):(this.writeLog(`Skipping watcher creation at ${o}:: ${IX(u,this)}`),KD))}};for(const o of t){const s=xc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(um(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){const l=o.indexOf(Js,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(um(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){if(!t.length)return t;const r=j4(this.getCompilerOptions(),this);return Un(t,i=>!r.includes(i))}updateGraphWorker(){var t,r;const i=this.languageService.getCurrentProgram();C.assert(i===this.program),C.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const o=Ls(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Qg,Qg);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=xr)==null||t.push(xr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=xr)==null||r.pop(),C.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,this.rootFilesMap.forEach((h,y)=>{var E;const A=this.program.getSourceFileByPath(y),R=h.info;!A||((E=h.info)==null?void 0:E.path)===A.resolvedPath||(h.info=this.projectService.getScriptInfo(A.fileName),C.assert(h.info.isAttached(this)),R?.detachFromProject(this))}),QU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(h,y)=>this.addMissingFileWatcher(h,y)),this.generatedFilesMap){const h=this.compilerOptions.outFile;ame(this.generatedFilesMap)?(!h||!this.isValidGeneratedFileWatcher(bu(h)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():h?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,E)=>{const A=this.program.getSourceFileByPath(E);(!A||A.resolvedPath!==E||!this.isValidGeneratedFileWatcher(r6(A.fileName,this.compilerOptions,this.program),y))&&(Kf(y),this.generatedFilesMap.delete(E))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&fg(this.changedFilesForExportMapCache,h=>{const y=i.getSourceFileByPath(h),E=this.program.getSourceFileByPath(h);return!y||!E?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,E,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const d=this.externalFiles||Kc;this.externalFiles=this.getExternalFiles(),L8(this.externalFiles,d,IR(!this.useCaseSensitiveFileNames()),h=>{const y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(h,this.currentDirectory,this.directoryStructureHost,!1);y?.attachToProject(this)},h=>this.detachScriptInfoFromProject(h));const g=Ls()-o;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${YB[this.program.structureIsReused]}`:""} Elapsed: ${g}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){const i=this.projectService.getScriptInfo(t);i&&(i.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(i.path))}addMissingFileWatcher(t,r){var i;if(vv(this)){const s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return KD}const o=this.projectService.watchFactory.watchFile(To(r,this.currentDirectory),(s,l)=>{vv(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),sd.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(r);if(this.generatedFilesMap){if(ame(this.generatedFilesMap)){C.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),sd.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(ame(this.generatedFilesMap)?Kf(this.generatedFilesMap):hp(this.generatedFilesMap,Kf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?by.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.initialLoadPending)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+=` `,CH(this.program,l=>s+=` ${l} `))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${YP[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()),gF(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?d=>Co(d.entries(),([g,h])=>({fileName:g,isSourceOfProjectReferenceRedirect:h})):d=>Co(d.keys());this.initialLoadPending||Am(this);const l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:hC(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 d=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(N=>({fileName:Cs(N),isSourceOfProjectReferenceRedirect:!1})))||Kc,h=ER(this.getFileNamesWithRedirectInfo(!!r).concat(g),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),y=new Map,E=new Map,A=u?Co(u.keys()):[],R=[];return Hc(h,(N,P)=>{d.has(P)?r&&N!==d.get(P)&&R.push({fileName:P,isSourceOfProjectReferenceRedirect:N}):y.set(P,N)}),Hc(d,(N,P)=>{h.has(P)||E.set(P,N)}),this.lastReportedFileNames=h,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(y),removed:s(E),updated:r?A.map(N=>({fileName:N,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(N)})):A,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const d=this.getFileNamesWithRedirectInfo(!!r),g=((o=this.externalFiles)==null?void 0:o.map(y=>({fileName:Cs(y),isSourceOfProjectReferenceRedirect:!1})))||Kc,h=d.concat(g);return this.lastReportedFileNames=ER(h,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?h:h.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(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:_we}),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?Kc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t,this)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Qr(this.currentDirectory,_P),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=lJ(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||TO(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(Am(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const o=this.includePackageJsonAutoImports();if(o){(t=xr)==null||t.push(xr.Phase.Session,"getPackageJsonAutoImportProvider");const s=Ls();if(this.autoImportProviderHost=dme.create(o,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return Am(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Ls()-s),(r=xr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=xr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Hc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return C.assert(this.projectService.serverMode===0),this.noDtsResolutionProject??(this.noDtsResolutionProject=new lme(this)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}runWithTemporaryFileUpdate(t,r,i){var o,s,l,u;const d=this.program,g=C.checkDefined((o=this.program)==null?void 0:o.getSourceFile(t),"Expected file to be part of program"),h=C.checkDefined(g.getFullText());(s=this.getScriptInfo(t))==null||s.editContent(0,h.length,r),this.updateGraph();try{i(this.program,d,(l=this.program)==null?void 0:l.getSourceFile(t))}finally{(u=this.getScriptInfo(t))==null||u.editContent(0,r.length,h)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ae,lib:ae,noLib:!0}}};function est(e,t){var r,i;const o=e.getSourceFiles();(r=xr)==null||r.push(xr.Phase.Session,"getUnresolvedImports",{count:o.length});const s=e.getTypeChecker().getAmbientModules().map(u=>_m(u.getName())),l=dN(Ki(o,u=>tst(e,u,s,t)));return(i=xr)==null||i.pop(),l}function tst(e,t,r,i){return HA(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!bM(s.extension))&&!td(l)&&!r.some(u=>u===l)&&(o=Bn(o,J4(l).packageName))},t),o||Kc})}var sme=class extends Ax{constructor(e,t,r,i,o,s){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,r,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=s,this.projectRootPath=i&&e.toCanonicalFileName(i),!i&&!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=Rq(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){C.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.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Vn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Ye(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:rme(this),include:ae,exclude:ae}}},lme=class extends Ax{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},cme=class Iye extends Ax{constructor(t,r,i){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,!1,void 0,i,!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 ae;const u=r.getCurrentProgram();if(!u)return ae;const d=Ls();let g,h;const y=Qr(r.currentDirectory,_P),E=r.getPackageJsonsForAutoImport(Qr(r.currentDirectory,y));for(const G of E)(s=G.dependencies)==null||s.forEach((j,J)=>k(J)),(l=G.peerDependencies)==null||l.forEach((j,J)=>k(J));let A=0;if(g){const G=r.getSymlinkCache();for(const j of Co(g.keys())){if(t===2&&A>=this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),ae;const J=rU(j,r.currentDirectory,o,i,u.getModuleResolutionCache());if(J){const q=W(J,u,G);if(q){A+=P(q);continue}}if(!Ye([r.currentDirectory,r.getGlobalTypingsCacheLocation()],q=>{if(q){const ye=rU(`@types/${j}`,q,o,i,u.getModuleResolutionCache());if(ye){const ie=W(ye,u,G);return A+=P(ie),!0}}})&&J&&o.allowJs&&o.maxNodeModuleJsDepth){const q=W(J,u,G,!0);A+=P(q)}}}const R=u.getResolvedProjectReferences();let N=0;return R?.length&&r.projectService.getHostPreferences().includeCompletionsForModuleExports&&R.forEach(G=>{if(G?.commandLine.options.outFile)N+=P(O([ov(G.commandLine.options.outFile,".d.ts")]));else if(G){const j=Cu(()=>L1(G.commandLine,!r.useCaseSensitiveFileNames()));N+=P(O(Ui(G.commandLine.fileNames,J=>!ad(J)&&!El(J,".json")&&!u.getSourceFile(J)?fP(J,G.commandLine,!r.useCaseSensitiveFileNames(),j):void 0)))}}),h?.size&&r.log(`AutoImportProviderProject: found ${h.size} root files in ${A} dependencies ${N} referenced projects in ${Ls()-d} ms`),h?Co(h.values()):ae;function P(G){return G?.length?(h??(h=new Set),G.forEach(j=>h.add(j)),1):0}function k(G){po(G,"@types/")||(g||(g=new Set)).add(G)}function W(G,j,J,Z){var q;const ye=cU(G,o,i,j.getModuleResolutionCache(),Z);if(ye){const ie=(q=i.realpath)==null?void 0:q.call(i,G.packageDirectory),K=ie?r.toPath(ie):void 0,pe=K&&K!==r.toPath(G.packageDirectory);return pe&&J.setSymlinkedDirectory(G.packageDirectory,{real:Uc(ie),realPath:Uc(K)}),O(ye,pe?de=>de.replace(G.packageDirectory,ie):void 0)}}function O(G,j){return Ui(G,J=>{const Z=j?j(J):J;if(!u.getSourceFile(Z)&&!(j&&u.getSourceFile(J)))return Z})}}static create(t,r,i){if(t===0)return;const o={...r.getCompilerOptions(),...this.compilerOptionsOverrides},s=this.getRootFileNames(t,r,i,o);if(s.length)return new Iye(r,s,o)}isEmpty(){return!yt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Iye.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(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||ae}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()}};cme.maxDependencies=10,cme.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ae,lib:ae,noLib:!0};var dme=cme,ume=class extends Ax{constructor(e,t,r,i,o){super(e,1,r,!1,void 0,{},!1,void 0,i,ci(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=o}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=Cs(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(Cs(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.initialLoadPending=!1;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=C.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,i),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),t===2||r&&(!e||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){C.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getRedirectFromSourceFile(e){const t=this.getCurrentProgram();return t&&t.getRedirectFromSourceFile(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=ci(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 Un(this.projectErrors,e=>!e.file)||Kc}getAllProjectErrors(){return this.projectErrors||Kc}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()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return ZM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,F4(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,Dw(e.raw))}},lX=class extends Ax{constructor(e,t,r,i,o,s,l){super(e,2,t,!0,i,r,o,l,t.host,ci(s||Bd(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function hC(e){return e.projectKind===0}function vv(e){return e.projectKind===1}function iW(e){return e.projectKind===2}function oW(e){return e.projectKind===3||e.projectKind===4}function aW(e){return vv(e)&&!!e.deferredClose}var cX=20*1024*1024,dX=4*1024*1024,Tz="projectsUpdatedInBackground",uX="projectLoadingStart",pX="projectLoadingFinish",fX="largeFileReferenced",mX="configFileDiag",hX="projectLanguageServiceState",_X="projectInfo",pme="openFileInfo",gX="createFileWatcher",yX="createDirectoryWatcher",vX="closeFileWatcher",Owe="*ensureProjectForOpenFiles*";function Wwe(e){const t=new Map;for(const r of e)if(typeof r.type=="object"){const i=r.type;i.forEach(o=>{C.assert(typeof o=="number")}),t.set(r.name,i)}return t}var nst=Wwe(Um),rst=Wwe(ex),ist=new Map(Object.entries({none:0,block:1,smart:2})),fme={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,"$"]]}};function _C(e){return Bo(e.indentStyle)&&(e.indentStyle=ist.get(e.indentStyle.toLowerCase()),C.assert(e.indentStyle!==void 0)),e}function Sz(e){return nst.forEach((t,r)=>{const i=e[r];Bo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function sW(e,t){let r,i;return ex.forEach(o=>{const s=e[o.name];if(s===void 0)return;const l=rst.get(o.name);(r||(r={}))[o.name]=l?Bo(s)?l.get(s.toLowerCase()):s:D1(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function mme(e){let t;return D4.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function bX(e){return Bo(e)?TX(e):e}function TX(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function hme(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}var SX={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=ZA(e);i&&yt(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>yt(t,r=>r.isMixedContent&&El(e,r.extension))},EX={getFileName:e=>e.fileName,getScriptKind:e=>bX(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function Fwe(e,t){for(const r of t)if(r.getProjectName()===e)return r}var Ez={isKnownTypesPackageName:Qg,installPackage:ha,enqueueInstallTypingsRequest:gs,attach:gs,onProjectClosed:gs,globalTypingsCacheLocation:void 0},_me={close:gs};function zwe(e,t){if(!t)return;const r=t.get(e.path);if(r!==void 0)return AX(e)?r&&!Bo(r)?r.get(e.fileName):void 0:Bo(r)||!r?r:r.get(!1)}function Bwe(e){return!!e.containingProjects}function AX(e){return!!e.configFileInfo}var gme=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(gme||{});function Gwe(e){return e-1}function Vwe(e,t,r,i,o,s,l,u,d){for(var g;;){if(t.parsedCommandLine&&(u&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;const h=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!u},i<=3);if(!h)return;const y=t.projectService.findCreateOrReloadConfiguredProject(h,i,o,s,u?void 0:e.fileName,l,u,d);if(!y)return;!y.project.parsedCommandLine&&((g=t.parsedCommandLine)!=null&&g.options.composite)&&y.project.setPotentialProjectReference(t.canonicalConfigFilePath);const E=r(y);if(E)return E;t=y.project}}function jwe(e,t,r,i,o,s,l,u){const d=t.options.disableReferencedProjectLoad?0:i;let g;return Ye(t.projectReferences,h=>{var y;const E=Cs(ax(h)),A=e.projectService.toCanonicalFileName(E),R=u?.get(A);if(R!==void 0&&R>=d)return;const N=e.projectService.configFileExistenceInfoCache.get(A);let P=d===0?N?.exists||(y=e.resolvedChildConfigs)!=null&&y.has(A)?N.config.parsedCommandLine:void 0:e.getParsedCommandLine(E);if(P&&d!==i&&d>2&&(P=e.getParsedCommandLine(E)),!P)return;const k=e.projectService.findConfiguredProjectByProjectName(E,s);if(!(d===2&&!N&&!k)){switch(d){case 6:k&&k.projectService.reloadConfiguredProjectOptimized(k,o,l);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(A);case 2:case 0:if(k||d!==0){const W=r(N??e.projectService.configFileExistenceInfoCache.get(A),k,E,o,e,A);if(W)return W}break;default:C.assertNever(d)}(u??(u=new Map)).set(A,d),(g??(g=[])).push(P)}})||Ye(g,h=>h.projectReferences&&jwe(e,h,r,d,o,s,l,u))}function yme(e,t,r,i,o){let s=!1,l;switch(t){case 2:case 3:Sme(e)&&(l=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(l=Tme(e),l)break;case 5:s=ast(e,r);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,i,o),l=Tme(e),l)break;case 7:s=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,i,o);break;case 0:case 1:break;default:C.assertNever(t)}return{project:e,sentConfigFileDiag:s,configFileExistenceInfo:l,reason:i}}function Uwe(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&fg(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&fg(e.resolvedChildConfigs,t)):void 0}function ost(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?Uwe(e,i):Ye(e.getProjectReferences(),r)}function vme(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function Hwe(e,t){return ost(e,r=>vme(e,t,r.sourceFile.path),r=>vme(e,t,e.toPath(ax(r))),r=>vme(e,t,r))}function IX(e,t){return`${Bo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function bme(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Am(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function qwe(e,t,r){if(!r&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;const i=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!r)return i===2;const o=e.projectService.sendConfigFileDiagEvent(e,t,r);return e.triggerFileForConfigFileDiag=void 0,o}function ast(e,t){if(t){if(qwe(e,t,!1))return!0}else Am(e);return!1}function Tme(e){const t=Cs(e.getConfigFilePath()),r=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),i=r.config.parsedCommandLine;if(e.parsedCommandLine=i,e.resolvedChildConfigs=void 0,e.updateReferences(i.projectReferences),Sme(e))return r}function Sme(e){return!!e.parsedCommandLine&&(!!e.parsedCommandLine.options.composite||!!Zj(e.parsedCommandLine))}function sst(e){return Sme(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}function lst(e){return`Creating possible configured project for ${e.fileName} to open`}function xX(e){return`User requested reload projects: ${e}`}function Eme(e){vv(e)&&(e.projectOptions=!0)}function Ame(e){let t=1;return()=>e(t++)}function Ime(){return{idToCallbacks:new Map,pathToId:new Map}}function Jwe(e,t){return!!t&&!!e.eventHandler&&!!e.session}function cst(e,t){if(!Jwe(e,t))return;const r=Ime(),i=Ime(),o=Ime();let s=1;return e.session.addProtocolHandler("watchChange",A=>(g(A.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(A,R){return d(r,A,R,N=>({eventName:gX,data:{id:N,path:A}}))}function u(A,R,N){return d(N?o:i,A,R,P=>({eventName:yX,data:{id:P,path:A,recursive:!!N,ignoreUpdate:A.endsWith("/node_modules")?void 0:!0}}))}function d({pathToId:A,idToCallbacks:R},N,P,k){const W=e.toPath(N);let O=A.get(W);O||A.set(W,O=s++);let G=R.get(O);return G||(R.set(O,G=new Set),e.eventHandler(k(O))),G.add(P),{close(){const j=R.get(O);j?.delete(P)&&(j.size||(R.delete(O),A.delete(W),e.eventHandler({eventName:vX,data:{id:O}})))}}}function g(A){Mo(A)?A.forEach(h):h(A)}function h({id:A,created:R,deleted:N,updated:P}){y(A,R,0),y(A,N,2),y(A,P,1)}function y(A,R,N){R?.length&&(E(r,A,R,(P,k)=>P(k,N)),E(i,A,R,(P,k)=>P(k)),E(o,A,R,(P,k)=>P(k)))}function E(A,R,N,P){var k;(k=A.idToCallbacks.get(R))==null||k.forEach(W=>{N.forEach(O=>P(W,Bd(O)))})}}var Kwe=class xye{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Ame(Hfe),this.newAutoImportProviderProjectName=Ame(qfe),this.newAuxiliaryProjectName=Ame(Jfe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,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=fme,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=gs,this.verifyDocumentRegistry=gs,this.verifyProgram=gs,this.onProjectCreation=gs;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||Ez,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Kc,this.pluginProbeLocations=t.pluginProbeLocations||Kc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Qr(ci(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=cm()),this.currentDirectory=Cs(this.host.getCurrentDirectory()),this.toCanonicalFileName=Fd(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Uc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Xfe(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${ci(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:H3(this.host.newLine),preferences:Sm,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=fJ(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):gs;this.packageJsonCache=Nme(this),this.watchFactory=this.serverMode!==0?{watchFile:vP,watchDirectory:vP}:ZU(cst(this,t.canUseWatchEvents)||this.host,i,o,IX),this.canUseWatchEvents=Jwe(this,t.canUseWatchEvents),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return ks(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return To(t,this.host.getCurrentDirectory())}setDocument(t,r,i){const o=C.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:hX,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)Rs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=fme,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(r)switch(t.kind){case G3:r.updateTypingFiles(t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings);return;case V3:r.enqueueInstallTypingsForProject(!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(Owe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(aW(t)||(t.markAsDirty(),oW(t)))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Am(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:Tz,data:{openFiles:Co(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:fX,data:{file:t,fileSize:r,maxFileSize:dX}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:uX,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:pX,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){C.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=Sz(t),o=sW(t,r),s=mme(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 Ufe(t)?Fwe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(Cs(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=Bo(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t){var r;const i=Bo(t)?this.getScriptInfoForNormalizedPath(t):t;if(i)return(r=this.pendingOpenFileProjectUpdates)!=null&&r.delete(i.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,5),i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,this.openFiles.get(i.path))),this.tryGetDefaultProjectForFile(i)}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();const r=Bo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Bo(t)?t:t.fileName),by.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=Am(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){C.assert(!t.isScriptOpen()),r===2?this.handleDeletedFile(t,!0):(t.deferredDelete&&(t.deferredDelete=void 0),t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(Bo(t.sourceMapFilePath)){const r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(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,r){C.assert(!t.isScriptOpen()),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t),t.detachAllProjects(),r?(t.delayReloadNonMixedContentFile(),t.deferredDelete=!0):this.deleteScriptInfo(t)}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>this.onWildCardDirectoryWatcherInvoke(t,i,o,l,u),r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions,ci(i)),sd.WildcardDirectory,i);const l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(d=>{d.projects.delete(l),d.close()}),l.packageJsonWatches=void 0)}};return l}onWildCardDirectoryWatcherInvoke(t,r,i,o,s){const l=this.toPath(s),u=i.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(s,l);if(xc(l)==="package.json"&&!TO(l)&&(u&&u.fileExists||!u&&this.host.fileExists(s))){const g=this.getNormalizedAbsolutePath(s);this.logger.info(`Config: ${r} Detected new package.json: ${g}`),this.packageJsonCache.addOrUpdate(g,l),this.watchPackageJsonFile(g,l,o)}u?.fileExists||this.sendSourceFileChange(l);const d=this.findConfiguredProjectByProjectName(r);Hw({watchedDirPath:this.toPath(t),fileOrDirectory:s,fileOrDirectoryPath:l,configFileName:r,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:i.parsedCommandLine.options,program:d?.getCurrentProgram()||i.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:g=>this.logger.info(g),toPath:g=>this.toPath(g),getScriptKind:d?g=>d.getScriptKind(g):void 0})||(i.updateLevel!==2&&(i.updateLevel=1),i.projects.forEach((g,h)=>{var y;if(!g)return;const E=this.getConfiguredProjectByCanonicalConfigFilePath(h);if(!E)return;if(d!==E&&this.getHostPreferences().includeCompletionsForModuleExports){const R=this.toPath(r);hn((y=E.getCurrentProgram())==null?void 0:y.getResolvedProjectReferences(),N=>N?.sourceFile.path===R)&&E.markAutoImportProviderAsDirty()}const A=d===E?1:0;if(!(E.pendingUpdateLevel>A))if(this.openFiles.has(l))if(C.checkDefined(this.getScriptInfoForPath(l)).isAttached(E)){const N=Math.max(A,E.openFileWatchTriggered.get(l)||0);E.openFileWatchTriggered.set(l,N)}else E.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(E);else E.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(E)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){const i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache(),i.config.projects.forEach((s,l)=>{var u,d,g;const h=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(h)if(o=!0,l===t){if(h.initialLoadPending)return;h.pendingUpdateLevel=2,h.pendingUpdateReason=r,this.delayUpdateProjectGraph(h),h.markAutoImportProviderAsDirty()}else{if(h.initialLoadPending){(d=(u=this.configFileExistenceInfoCache.get(l))==null?void 0:u.openFilesImpactedByConfigFile)==null||d.forEach(E=>{var A;(A=this.pendingOpenFileProjectUpdates)!=null&&A.has(E)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(E,this.configFileForOpenFiles.get(E))});return}const y=this.toPath(t);h.resolutionCache.removeResolutionsFromProjectReferenceRedirects(y),this.delayUpdateProjectGraph(h),this.getHostPreferences().includeCompletionsForModuleExports&&hn((g=h.getCurrentProgram())==null?void 0:g.getResolvedProjectReferences(),E=>E?.sourceFile.path===y)&&h.markAutoImportProviderAsDirty()}}),o}onConfigFileChanged(t,r,i){const o=this.configFileExistenceInfoCache.get(r),s=this.getConfiguredProjectByCanonicalConfigFilePath(r),l=s?.deferredClose;i===2?(o.exists=!1,s&&(s.deferredClose=!0)):(o.exists=!0,l&&(s.deferredClose=void 0,s.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(r,"Change in config file detected"),this.openFiles.forEach((u,d)=>{var g,h;const y=this.configFileForOpenFiles.get(d);if(!((g=o.openFilesImpactedByConfigFile)!=null&&g.has(d)))return;this.configFileForOpenFiles.delete(d);const E=this.getScriptInfoForPath(d);this.getConfigFileNameForFile(E,!1)&&((h=this.pendingOpenFileProjectUpdates)!=null&&h.has(d)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(d,y))}),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),C.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>C.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Co(nh(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:YA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:YA(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){C.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:ci(Cp(t.fileName)?t.fileName:To(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(uN(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();C.assert(s.length===1||!!o.projectRootPath),s.length===1&&Ye(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){var i;const o=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(o),this.stopWatchingConfigFilesForScriptInfo(t);const s=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(s)===t&&this.openFilesWithNonRootedDiskPath.delete(s);let l=!1;for(const u of t.containingProjects){if(vv(u)){t.hasMixedContent&&t.registerFileUpdate();const d=u.openFileWatchTriggered.get(t.path);d!==void 0&&(u.openFileWatchTriggered.delete(t.path),u.pendingUpdateLevelthis.onConfigFileChanged(t,r,d),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions,ci(t)),sd.ConfigFile,i)),this.ensureConfigFileWatcherForProject(l,i)}ensureConfigFileWatcherForProject(t,r){const i=t.config.projects;i.set(r.canonicalConfigFilePath,i.get(r.canonicalConfigFilePath)||!1)}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,$U(t,this.sharedExtendedConfigFileWatchers),C.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?l.inferredProjectRoots?Qw(ci(t))||(l.watcher.close(),l.watcher=_me):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}stopWatchingConfigFilesForScriptInfo(t){if(this.serverMode!==0)return;const r=this.rootOfInferredProjects.delete(t),i=t.isScriptOpen();i&&!r||this.forEachConfigFileLocation(t,o=>{var s,l,u;const d=this.configFileExistenceInfoCache.get(o);if(d){if(i){if(!((s=d?.openFilesImpactedByConfigFile)!=null&&s.has(t.path)))return}else if(!((l=d.openFilesImpactedByConfigFile)!=null&&l.delete(t.path)))return;r&&(d.inferredProjectRoots--,d.watcher&&!d.config&&!d.inferredProjectRoots&&(d.watcher.close(),d.watcher=void 0)),!((u=d.openFilesImpactedByConfigFile)!=null&&u.size)&&!d.config&&(C.assert(!d.watcher),this.configFileExistenceInfoCache.delete(o))}})}startWatchingConfigFilesForInferredProjectRoot(t){this.serverMode===0&&(C.assert(t.isScriptOpen()),this.rootOfInferredProjects.add(t),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o?o.inferredProjectRoots=(o.inferredProjectRoots??0)+1:(o={exists:this.host.fileExists(i),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile??(o.openFilesImpactedByConfigFile=new Set)).add(t.path),o.watcher||(o.watcher=Qw(ci(r))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(i,r,l),2e3,this.hostConfiguration.watchOptions,sd.ConfigFileForInferredRoot):_me)}))}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;C.assert(!Bwe(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(C.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=ci(t.fileName);const l=()=>um(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l();let d=!0,g=!0;AX(t)&&(el(t.fileName,"tsconfig.json")?d=!1:d=g=!1);do{const h=mC(s,this.currentDirectory,this.toCanonicalFileName);if(d){const E=Qr(s,"tsconfig.json");if(r(Qr(h,"tsconfig.json"),E))return E}if(g){const E=Qr(s,"jsconfig.json");if(r(Qr(h,"jsconfig.json"),E))return E}if(H8(h))break;const y=ci(s);if(y===s)break;s=y,d=g=!0}while(u||l())}findDefaultConfiguredProject(t){var r;return(r=this.findDefaultConfiguredProjectWorker(t,1))==null?void 0:r.defaultProject}findDefaultConfiguredProjectWorker(t,r){return t.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r):void 0}getConfigFileNameForFileFromCache(t,r){if(r){const i=zwe(t,this.pendingOpenFileProjectUpdates);if(i!==void 0)return i}return zwe(t,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(t,r){if(!this.openFiles.has(t.path))return;const i=r||!1;if(!AX(t))this.configFileForOpenFiles.set(t.path,i);else{let o=this.configFileForOpenFiles.get(t.path);(!o||Bo(o))&&this.configFileForOpenFiles.set(t.path,o=new Map().set(!1,o)),o.set(t.fileName,i)}}getConfigFileNameForFile(t,r){const i=this.getConfigFileNameForFileFromCache(t,r);if(i!==void 0)return i||void 0;if(r)return;const o=this.forEachConfigFileLocation(t,(s,l)=>this.configFileExists(l,s,t));return this.logger.info(`getConfigFileNameForFile:: File: ${t.fileName} ProjectRootPath: ${this.openFiles.get(t.path)}:: Result: ${o}`),this.setConfigFileNameForFileInCache(t,o),o}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Dme),this.configuredProjects.forEach(Dme),this.inferredProjects.forEach(Dme),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,r){const i=this.toCanonicalFileName(t),o=this.getConfiguredProjectByCanonicalConfigFilePath(i);return r?o:o?.deferredClose?void 0:o}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return Fwe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=cX;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(const u of i){const d=o.getFileName(u);if(!u1(d)&&(l+=this.host.getFileSize(d),l>cX||l>s)){const g=i.map(h=>o.getFileName(h)).filter(h=>!u1(h)).map(h=>({name:h,size:this.host.getFileSize(h)})).sort((h,y)=>y.size-h.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${g.map(h=>`${h.name}:${h.size}`).join(", ")}`),d}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){const l=Sz(i),u=sW(i,ci(Bd(t))),d=new lX(t,this,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,EX),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u?.watchOptions);return d.setProjectErrors(u?.errors),d.excludedFiles=s,this.addFilesToNonInferredProject(d,r,EX,o),this.externalProjects.push(d),d}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){Eme(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Eme(t);return}const r=vv(t)?t.projectOptions:void 0;Eme(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:rW(t.getScriptInfos(),!0),compilerOptions:foe(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 lX?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Le};this.eventHandler({eventName:_X,data:i});function o(){return vv(t)&&sX(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:d}){return{enable:l,include:u!==void 0&&u.length!==0,exclude:d!==void 0&&d.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t,r){var i;(i=xr)==null||i.instant(xr.Phase.Session,"createConfiguredProject",{configFilePath:t});const o=this.toCanonicalFileName(t);let s=this.configFileExistenceInfoCache.get(o);s?s.exists=!0:this.configFileExistenceInfoCache.set(o,s={exists:!0}),s.config||(s.config={cachedDirectoryStructureHost:p3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const l=new ume(t,o,this,s.config.cachedDirectoryStructureHost,r);return C.assert(!this.configuredProjects.has(o)),this.configuredProjects.set(o,l),this.createConfigFileWatcherForParsedConfig(t,o,l),l}loadConfiguredProject(t,r){var i,o;(i=xr)==null||i.push(xr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);const s=Cs(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;C.assert(!!u.fileNames);const d=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.parsedCommandLine=u,t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,d,u.fileNames,SX);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((y,E)=>this.stopWatchingWildCards(E,t))):(t.setCompilerOptions(d),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(d);const h=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,h,SX,d,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=xr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config&&(i.config.updateLevel===1&&this.reloadFileNamesOfParsedConfig(t,i.config),!i.config.updateLevel))return this.ensureConfigFileWatcherForProject(i,o),i;if(!i.exists&&i.config)return i.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(i,o),i;const d=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||p3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=YM(t,N=>this.host.readFile(N)),h=bw(t,Bo(g)?g:""),y=h.parseDiagnostics;Bo(g)||y.push(g);const E=ci(t),A=xw(h,d,E,void 0,t,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);A.errors.length&&y.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 R=(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:d,projects:new Map},!R&&!F6(this.getWatchOptionsFromProjectWatchOptions(void 0,E),this.getWatchOptionsFromProjectWatchOptions(A.watchOptions,E))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),f3(r,A.options,this.sharedExtendedConfigFileWatchers,(N,P)=>this.watchFactory.watchFile(N,()=>{var k;m3(this.extendedConfigCache,P,O=>this.toPath(O));let W=!1;(k=this.sharedExtendedConfigFileWatchers.get(P))==null||k.projects.forEach(O=>{W=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(O,`Change in extended config file ${N} detected`)||W}),W&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,sd.ExtendedConfigFile,t),N=>this.toPath(N)),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,Uw(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;hp(i.watchedDirectories,Kf),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),!Hc(i.config.projects,Vs)&&(i.config.watchedDirectories&&(hp(i.config.watchedDirectories,Kf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){var o;const s=t.getRootFilesMap(),l=new Map;for(const u of r){const d=i.getFileName(u),g=Cs(d),h=XP(g);let y;if(!h&&!t.fileExists(d)){y=mC(g,this.currentDirectory,this.toCanonicalFileName);const E=s.get(y);E?(((o=E.info)==null?void 0:o.path)===y&&(t.removeFile(E.info,!1,!0),E.info=void 0),E.fileName=g):s.set(y,{fileName:g})}else{const E=i.getScriptKind(u,this.hostConfiguration.extraFileExtensions),A=i.hasMixedContent(u,this.hostConfiguration.extraFileExtensions),R=C.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(g,t.currentDirectory,E,A,t.directoryStructureHost,!1));y=R.path;const N=s.get(y);!N||N.info!==R?(t.addRoot(R,g),R.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(R)):N.fileName=g}l.set(y,!0)}s.size>l.size&&s.forEach((u,d)=>{l.has(d)||(u.info?t.removeFile(u.info,t.fileExists(u.info.fileName),!0):s.delete(d))})}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.fileNames.concat(t.getExternalFiles(1)),SX),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine;C.assert(r.updateLevel===1);const i=r.parsedCommandLine.options.configFile.configFileSpecs,o=$M(i,ci(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},r.updateLevel=void 0,r.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,SX)}reloadConfiguredProjectOptimized(t,r,i){i.has(t)||(i.set(t,6),t.initialLoadPending||this.setProjectForReload(t,2,r))}reloadConfiguredProjectClearingSemanticCache(t,r,i){return i.get(t)===7?!1:(i.set(t,7),this.clearSemanticCache(t),this.reloadConfiguredProject(t,xX(r)),!0)}setProjectForReload(t,r,i){r===2&&this.clearSemanticCache(t),t.pendingUpdateReason=i&&xX(i),t.pendingUpdateLevel=r}reloadConfiguredProject(t,r){t.initialLoadPending=!1,this.setProjectForReload(t,0),this.loadConfiguredProject(t,r),qwe(t,t.triggerFileForConfigFileDiag??t.getConfigFilePath(),!0)}clearSemanticCache(t){t.originalConfiguredProjects=void 0,t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r,i){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const o=t.getLanguageService().getCompilerOptionsDiagnostics();return o.push(...t.getAllProjectErrors()),!i&&o.length===(t.configDiagDiagnosticsReported??0)?!1:(t.configDiagDiagnosticsReported=o.length,this.eventHandler({eventName:mX,data:{configFileName:t.getConfigFilePath(),diagnostics:o,triggerFile:r??t.getConfigFilePath()}}),!0)}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&&um(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(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(t){C.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,!1,void 0)}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 sme(this,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,o){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Cs(t),r,void 0,void 0,i,o)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(Cs(t))}getScriptInfoOrConfig(t){const r=Cs(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=Co(nh(this.filenameToScriptInfo.entries(),i=>i[1].deferredDelete?void 0:i),([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&&Ye(this.realpathToScriptInfos.get(o),i),Ye(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?Hc(r,(l,u)=>u===o.path?!1:jn(l,s))||r.add(o.path,s):(r=cm(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(C.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!po(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,sd.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=R3(this.toPath(s));if(!u)return;const d=xc(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(d==="package.json"||d==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(g=>{var h;(h=g.getModuleSpecifierCache())==null||h.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{const g=this.filenameToScriptInfo.get(u);g?bme(g)&&this.refreshScriptInfo(g):CR(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,sd.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 C.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)||Dp).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=c9(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Js,this.filenameToScriptInfo.forEach(r=>{bme(r)&&po(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s,l){if(Cp(t)||XP(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,!!o,s,l);const u=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(u)return u}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,!!s,l,!1)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,u,d){C.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const g=mC(t,r,this.toCanonicalFileName);let h=this.filenameToScriptInfo.get(g);if(h){if(h.deferredDelete){if(C.assert(!h.isDynamic),!i&&!(u||this.host).fileExists(t))return d?h:void 0;h.deferredDelete=void 0}}else{const y=XP(t);if(C.assert(Cp(t)||y||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Co(this.openFilesWithNonRootedDiskPath.keys())})} Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),C.assert(!Cp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Co(this.openFilesWithNonRootedDiskPath.keys())})} Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),C.assert(!y||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Co(this.openFilesWithNonRootedDiskPath.keys())})} Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!y&&!(u||this.host).fileExists(t))return;h=new eme(this.host,t,s,l,g,this.filenameToScriptInfoVersion.get(g)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!Cp(t)&&(!y||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!Cp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(mC(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){const r=this.filenameToScriptInfo.get(t);return!r||!r.deferredDelete?r:void 0}getDocumentPositionMapper(t,r,i){const o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host,!1);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),Bo(o.sourceMapFilePath)){const g=this.getScriptInfoForPath(o.sourceMapFilePath);if(g&&(g.getSnapshot(),g.documentPositionMapper!==void 0))return g.sourceInfos=this.addSourceInfoToSourceMap(i,t,g.sourceInfos),g.documentPositionMapper?g.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=(g,h)=>{const y=this.getOrCreateScriptInfoNotOpenedByClient(g,t.currentDirectory,this.host,!0);if(s=y||h,!y||y.deferredDelete)return;const E=y.getSnapshot();return y.documentPositionMapper!==void 0?y.documentPositionMapper:dx(E)};const u=t.projectName,d=yJ({getCanonicalFileName:this.toCanonicalFileName,log:g=>this.logger.info(g),getSourceFileLike:g=>this.getSourceFileLike(g,u,o)},o.fileName,o.textStorage.getLineInfo(),l);return l=void 0,s?Bo(s)?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?s:To(s,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.deferredDelete||(s.documentPositionMapper=d||!1),s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):o.sourceMapFilePath=!1,d}addSourceInfoToSourceMap(t,r,i){if(t){const o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost,!1);(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&&!Bo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,sd.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,!1);if(s){if(i&&Bo(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 C.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{const u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,d)=>s.lineOffsetToPosition(l+1,u+1,d)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){const i=this.getScriptInfoForNormalizedPath(Cs(t.file));i&&(i.setOptions(_C(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,..._C(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o,includeCompletionsForModuleExports:s}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(l=>l.forEach(u=>{!u.deferredClose&&!u.isClosed()&&u.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(u)&&u.updateGraph()})),(o!==t.preferences.includePackageJsonAutoImports||!!s!=!!t.preferences.includeCompletionsForModuleExports)&&this.forEachProject(l=>{l.onAutoImportProviderSettingsChanged()})}if(t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions){const i=(r=sW(t.watchOptions))==null?void 0:r.watchOptions,o=O4(i,this.currentDirectory);this.hostConfiguration.watchOptions=o,this.hostConfiguration.beforeSubstitution=o===i?void 0:i,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(),t.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(t,r){const i=this.hostConfiguration.beforeSubstitution?O4(this.hostConfiguration.beforeSubstitution,r):this.hostConfiguration.watchOptions;return t&&i?{...i,...t}:t||i}closeLog(){this.logger.close()}sendSourceFileChange(t){this.filenameToScriptInfo.forEach(r=>{if(this.openFiles.has(r.path)||!r.fileWatcher)return;const i=Cu(()=>this.host.fileExists(r.fileName)?r.deferredDelete?0:1:2);if(t){if(bme(r)||!r.path.startsWith(t)||i()===2&&r.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${r.fileName}:: ${i()}`)}this.onSourceFileChanged(r,i())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((i,o)=>{this.throttledOperations.cancel(o),this.pendingProjectUpdates.delete(o)}),this.throttledOperations.cancel(Owe),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(i=>{i.config&&(i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(i=>{this.clearSemanticCache(i),i.updateGraph()});const t=new Map,r=new Set;this.externalProjectToConfiguredProjectMap.forEach((i,o)=>{const s=`Reloading configured project in external project: ${o}`;i.forEach(l=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(l,s,t):this.reloadConfiguredProjectClearingSemanticCache(l,s,t)})}),this.openFiles.forEach((i,o)=>{const s=this.getScriptInfoForPath(o);hn(s.containingProjects,iW)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(s,7,t,r)}),r.forEach(i=>t.set(i,7)),this.inferredProjects.forEach(i=>this.clearSemanticCache(i)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(t,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(t){C.assert(t.containingProjects.length>0);const r=t.containingProjects[0];!r.isOrphan()&&hC(r)&&r.isRoot(t)&&Ye(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const t=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,t?.forEach((r,i)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(i),5)),this.openFiles.forEach((r,i)=>{const o=this.getScriptInfoForPath(i);o.isOrphan()?this.assignOrphanScriptInfoToInferredProject(o,r):this.removeRootOfInferredProjectIfNowPartOfOtherProject(o)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Am),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(Cs(t),r,i,!1,o?Cs(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:Cs(s),path:this.toPath(s)},d=this.getConfigFileNameForFile(u,!1);if(!d)return;let g=this.findConfiguredProjectByProjectName(d);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;g=this.createConfiguredProject(d,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}const h=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(u,5,yme(g,4),A=>`Creating project referenced in solution ${A.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`);if(!h.defaultProject)return;if(h.defaultProject===t)return o;E(h.defaultProject);const y=this.getScriptInfo(s);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(A=>{vv(A)&&E(A)}),o;function E(A){(t.originalConfiguredProjects??(t.originalConfiguredProjects=new Set)).add(A.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return hn(this.externalProjects,r=>(Am(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){const l=this.getOrCreateScriptInfoWorker(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,!0,r,i,!!o,void 0,!0);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i;const o=this.findExternalProjectContainingOpenScriptInfo(t);let s,l;if(!o&&this.serverMode===0){const u=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,5);u&&(s=u.seenProjects,l=u.sentConfigDiag,u.defaultProject&&(r=u.defaultProject.getConfigFilePath(),i=u.defaultProject.getAllProjectErrors()))}return t.containingProjects.forEach(Am),t.isOrphan()&&(s?.forEach((u,d)=>{u!==4&&!l.has(d)&&this.sendConfigFileDiagEvent(d,t.fileName,!0)}),C.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),C.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}findCreateOrReloadConfiguredProject(t,r,i,o,s,l,u,d,g){let h=g??this.findConfiguredProjectByProjectName(t,o),y=!1,E;switch(r){case 0:case 1:case 3:if(!h)return;break;case 2:if(!h)return;E=sst(h);break;case 4:case 5:h??(h=this.createConfiguredProject(t,i)),u||({sentConfigFileDiag:y,configFileExistenceInfo:E}=yme(h,r,s));break;case 6:if(h??(h=this.createConfiguredProject(t,xX(i))),h.projectService.reloadConfiguredProjectOptimized(h,i,l),E=Tme(h),E)break;case 7:h??(h=this.createConfiguredProject(t,xX(i))),y=!d&&this.reloadConfiguredProjectClearingSemanticCache(h,i,l),d&&!d.has(h)&&!l.has(h)&&(this.setProjectForReload(h,2,i),d.add(h));break;default:C.assertNever(r)}return{project:h,sentConfigFileDiag:y,configFileExistenceInfo:E,reason:i}}tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r,i,o){const s=this.getConfigFileNameForFile(t,r<=3);if(!s)return;const l=Gwe(r),u=this.findCreateOrReloadConfiguredProject(s,l,lst(t),i,t.fileName,o);return u&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,r,u,d=>`Creating project referenced in solution ${d.projectName} to find possible configured project for ${t.fileName} to open`,i,o)}isMatchedByConfig(t,r,i){if(r.fileNames.some(d=>this.toPath(d)===i.path))return!0;if(IV(i.fileName,r.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:o,validatedIncludeSpecs:s,validatedExcludeSpecs:l}=r.options.configFile.configFileSpecs,u=Cs(To(ci(t),this.currentDirectory));return o?.some(d=>this.toPath(To(d,u))===i.path)?!0:!s?.length||B4(i.fileName,l,this.host.useCaseSensitiveFileNames,this.currentDirectory,u)?!1:s?.some(d=>{const g=SV(d,u,"files");return!!g&&iv(`(${g})$`,this.host.useCaseSensitiveFileNames).test(i.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,r,i,o,s,l){const u=Bwe(t),d=Gwe(r),g=new Map;let h;const y=new Set;let E,A,R,N;return P(i),{defaultProject:E??A,tsconfigProject:R??N,sentConfigDiag:y,seenProjects:g,seenConfigs:h};function P(J){return O(J,J.project)??G(J.project)??j(J.project)}function k(J,Z,q,ye,ie,K){if(Z){if(g.has(Z))return;g.set(Z,d)}else{if(h?.has(K))return;(h??(h=new Set)).add(K)}if(!ie.projectService.isMatchedByConfig(q,J.config.parsedCommandLine,t)){ie.languageServiceEnabled&&ie.projectService.watchWildcards(q,J,ie);return}const pe=Z?yme(Z,r,t.fileName,ye,l):ie.projectService.findCreateOrReloadConfiguredProject(q,r,ye,s,t.fileName,l);if(!pe){C.assert(r===3);return}return g.set(pe.project,d),pe.sentConfigFileDiag&&y.add(pe.project),W(pe.project,ie)}function W(J,Z){if(g.get(J)===r)return;g.set(J,r);const q=u?t:J.projectService.getScriptInfo(t.fileName),ye=q&&J.containsScriptInfo(q);if(ye&&!J.isSourceOfProjectReferenceRedirect(q.path))return R=Z,E=J;!A&&u&&ye&&(N=Z,A=J)}function O(J,Z){return J.sentConfigFileDiag&&y.add(J.project),J.configFileExistenceInfo?k(J.configFileExistenceInfo,J.project,Cs(J.project.getConfigFilePath()),J.reason,J.project,J.project.canonicalConfigFilePath):W(J.project,Z)}function G(J){return J.parsedCommandLine&&jwe(J,J.parsedCommandLine,k,d,o(J),s,l)}function j(J){return u?Vwe(t,J,P,d,`Creating possible configured project for ${t.fileName} to open`,s,l,!1):void 0}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,r,i,o){const s=r===1,l=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r,s,i);if(!l)return;const{defaultProject:u,tsconfigProject:d,seenProjects:g}=l;return u&&Vwe(t,d,h=>{g.set(h.project,r)},r,`Creating project possibly referencing default composite project ${u.getProjectName()} of open file ${t.fileName}`,s,i,!0,o),l}loadAncestorProjectTree(t){t??(t=new Set(nh(this.configuredProjects.entries(),([o,s])=>s.initialLoadPending?void 0:o)));const r=new Set,i=Co(this.configuredProjects.values());for(const o of i)Uwe(o,s=>t.has(s))&&Am(o),this.ensureProjectChildren(o,t,r)}ensureProjectChildren(t,r,i){var o;if(!rh(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=VV(l.references,h=>r.has(h.sourceFile.path)?h:void 0);if(!u)continue;const d=Cs(l.sourceFile.fileName),g=this.findConfiguredProjectByProjectName(d)??this.createConfiguredProject(d,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Am(g),this.ensureProjectChildren(g,r,i)}}cleanupConfiguredProjects(t,r,i){this.getOrphanConfiguredProjects(t,i,r).forEach(o=>this.removeProject(o))}cleanupProjectsAndScriptInfos(t,r,i){this.cleanupConfiguredProjects(t,i,r);for(const o of this.inferredProjects.slice())o.isOrphan()&&this.removeProject(o);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(t){this.configFileExistenceInfoCache.forEach((r,i)=>{var o,s;!((o=r.config)!=null&&o.parsedCommandLine)||jn(r.config.parsedCommandLine.fileNames,t.fileName,this.host.useCaseSensitiveFileNames?uS:tb)||(s=r.config.watchedDirectories)==null||s.forEach((l,u)=>{um(u,t.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${i}:: wildcard for open scriptInfo:: ${t.fileName}`),this.onWildCardDirectoryWatcherInvoke(u,i,r.config,l.watcher,t.fileName))})})}openClientFileWithNormalizedPath(t,r,i,o,s){const l=this.getScriptInfoForPath(mC(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,this.toCanonicalFileName)),u=this.getOrCreateOpenScriptInfo(t,r,i,o,s);!l&&u&&!u.isDynamic&&this.tryInvokeWildCardDirectories(u);const{retainProjects:d,...g}=this.assignProjectToOpenedScriptInfo(u);return this.cleanupProjectsAndScriptInfos(d,new Set([u.path]),void 0),this.telemetryOnOpenFile(u),this.printProjects(),g}getOrphanConfiguredProjects(t,r,i){const o=new Set(this.configuredProjects.values()),s=g=>{g.originalConfiguredProjects&&(vv(g)||!g.isOrphan())&&g.originalConfiguredProjects.forEach((h,y)=>{const E=this.getConfiguredProjectByCanonicalConfigFilePath(y);return E&&d(E)})};if(t?.forEach((g,h)=>d(h)),!o.size||(this.inferredProjects.forEach(s),this.externalProjects.forEach(s),this.externalProjectToConfiguredProjectMap.forEach((g,h)=>{i?.has(h)||g.forEach(d)}),!o.size)||(Hc(this.openFiles,(g,h)=>{if(r?.has(h))return;const y=this.getScriptInfoForPath(h);if(hn(y.containingProjects,iW))return;const E=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(y,1);if(E?.defaultProject&&(E?.seenProjects.forEach((A,R)=>d(R)),!o.size))return o}),!o.size))return o;return Hc(this.configuredProjects,g=>{if(o.has(g)&&(u(g)||Hwe(g,l))&&(d(g),!o.size))return o}),o;function l(g){return!o.has(g)||u(g)}function u(g){var h,y;return(g.deferredClose||g.projectService.hasPendingProjectUpdate(g))&&!!((y=(h=g.projectService.configFileExistenceInfoCache.get(g.canonicalConfigFilePath))==null?void 0:h.openFilesImpactedByConfigFile)!=null&&y.size)}function d(g){o.delete(g)&&(s(g),Hwe(g,d))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.deferredDelete){if(!r.isScriptOpen()&&r.isOrphan()&&!nme(r)&&!tme(r)){if(!r.sourceMapFilePath)return;let i;if(Bo(r.sourceMapFilePath)){const o=this.filenameToScriptInfo.get(r.sourceMapFilePath);i=o?.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!fg(i,o=>{const s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Bo(r.sourceMapFilePath)){const o=this.filenameToScriptInfo.get(r.sourceMapFilePath);o?.deferredDelete?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(o.fileName,r.path),sourceInfos:o.sourceInfos}:t.delete(r.sourceMapFilePath),i=o?.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}}),t.forEach(r=>this.deleteScriptInfo(r))}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!gm(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:pme,data:{info:{checkJs:o}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(Cs(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=hn(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,nh(this.configuredProjects.values(),o=>o.deferredClose?void 0:o),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s,l=!1;if(t)for(const d of t){(o??(o=[])).push(this.getScriptInfoForPath(mC(Cs(d.fileName),d.projectRootPath?this.getNormalizedAbsolutePath(d.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const g=this.getOrCreateOpenScriptInfo(Cs(d.fileName),d.content,bX(d.scriptKind),d.hasMixedContent,d.projectRootPath?Cs(d.projectRootPath):void 0);(s||(s=[])).push(g)}if(r)for(const d of r){const g=this.getScriptInfo(d.fileName);C.assert(!!g),this.applyChangesToFile(g,d.changes)}if(i)for(const d of i)l=this.closeClientFile(d,!0)||l;let u;Ye(o,(d,g)=>!d&&s[g]&&!s[g].isDynamic?this.tryInvokeWildCardDirectories(s[g]):void 0),s?.forEach(d=>{var g;return(g=this.assignProjectToOpenedScriptInfo(d).retainProjects)==null?void 0:g.forEach((h,y)=>(u??(u=new Map)).set(y,h))}),l&&this.assignOrphanScriptInfosToInferredProject(),s?(this.cleanupProjectsAndScriptInfos(u,new Set(s.map(d=>d.path)),void 0),s.forEach(d=>this.telemetryOnOpenFile(d)),this.printProjects()):et(i)&&this.printProjects()}applyChangesToFile(t,r){for(const i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeExternalProject(t,r){const i=Cs(t);if(this.externalProjectToConfiguredProjectMap.get(i))this.externalProjectToConfiguredProjectMap.delete(i);else{const s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(t){const r=new Set(this.externalProjects.map(i=>i.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((i,o)=>r.add(o));for(const i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);r.forEach(i=>this.closeExternalProject(i,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=fme}applySafeList(t){const r=t.typeAcquisition;C.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(y=>Bd(y.fileName));for(const y of Object.keys(this.safelist)){const E=this.safelist[y];for(const A of l)if(E.match.test(A)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${A}'`),E.types)for(const R of E.types)o.includes(R)||o.push(R);if(E.exclude)for(const R of E.exclude){const N=A.replace(E.match,(...P)=>R.map(k=>typeof k=="number"?Bo(P[k])?xye.escapeFilenameForRegex(P[k]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):k).join(""));s.includes(N)||s.push(N)}else{const R=xye.escapeFilenameForRegex(A);s.includes(R)||s.push(R)}}}const u=s.map(y=>new RegExp(y,"i"));let d,g;for(let y=0;yE.test(l[y])))h(y);else{if(i.enable){const E=xc(Zv(l[y]));if(El(E,"js")){const A=bu(E),R=OB(A),N=this.legacySafelist.get(R);if(N!==void 0){this.logger.info(`Excluded '${l[y]}' because it matched ${R} from the legacy safelist`),h(y),o.includes(N)||o.push(N);continue}}}/^.+[.-]min\.js$/.test(l[y])?h(y):d?.push(r[y])}return g?{rootFiles:d,excludedFiles:g}:void 0;function h(y){g||(C.assert(!d),d=r.slice(0,y),g=[]),g.push(l[y])}}openExternalProject(t,r){const i=this.findExternalProjectByProjectName(t.projectFileName);let o,s=[];for(const l of t.rootFiles){const u=Cs(l.fileName);if(sX(u)){if(this.serverMode===0&&this.host.fileExists(u)){let d=this.findConfiguredProjectByProjectName(u);d||(d=this.createConfiguredProject(u,`Creating configured project in external project: ${t.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||d.updateGraph()),(o??(o=new Set)).add(d),C.assert(!d.isClosed())}}else s.push(l)}if(o)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,o),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const l=t.typeAcquisition||{};l.include=l.include||[],l.exclude=l.exclude||[],l.enable===void 0&&(l.enable=ome(s.map(g=>g.fileName)));const u=this.applySafeListWorker(t,s,l),d=u?.excludedFiles??[];if(s=u?.rootFiles??s,i){i.excludedFiles=d;const g=Sz(t.options),h=sW(t.options,i.getCurrentDirectory()),y=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,g,s,EX);y?i.disableLanguageService(y):i.enableLanguageService(),i.setProjectErrors(h?.errors),this.updateRootAndOptionsOfNonInferredProject(i,s,EX,g,l,t.options.compileOnSave,h?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,s,t.options,l,d).updateGraph()}r&&(this.cleanupConfiguredProjects(o,new Set([t.projectFileName])),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||td(r.name)||/[\\/]\.\.?(?:$|[\\/])/.test(r.name)){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=Ax.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,Ax.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 Ye(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=Co(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){C.assert(this.currentPluginEnablementPromise===void 0);let r=!1;await Promise.all(Vt(t,async([i,o])=>{const s=await Promise.all(o);if(i.isClosed()||aW(i)){this.logger.info(`Cancelling plugin enabling for ${i.getProjectName()} as it is ${i.isClosed()?"closed":"deferred close"}`);return}r=!0;for(const l of s)this.endEnablePlugin(i,l);this.delayUpdateProjectGraph(i)})),this.currentPluginEnablementPromise=void 0,r&&this.sendProjectsUpdatedInBackgroundEvent()}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=d=>{switch(o.directoryHasPackageJson(d)){case 3:return o.searchDirectoryAndAncestors(d,r),u(d);case-1:const g=Qr(d,"package.json");this.watchPackageJsonFile(g,this.toPath(g),r);const h=o.getInDirectory(d);h&&l.push(h)}if(s&&s===d)return!0};return W_(r,ci(t),u),l}getNearestAncestorDirectoryWithPackageJson(t,r){return W_(r,t,i=>{switch(this.packageJsonCache.directoryHasPackageJson(i)){case-1:return i;case 0:return;case 3:return this.host.fileExists(Qr(i,"package.json"))?i:void 0}})}watchPackageJsonFile(t,r,i){C.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: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,sd.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=dst())}};Kwe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var xme=Kwe;function dst(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Rme(e){return e.kind!==void 0}function Dme(e){e.print(!1,!1,!1)}function Cme(e){let t,r,i;const o={get(d,g,h,y){if(!(!r||i!==l(d,h,y)))return r.get(g)},set(d,g,h,y,E,A,R){if(s(d,h,y).set(g,u(E,A,R,void 0,!1)),R){for(const N of A)if(N.isInNodeModules){const P=N.path.substring(0,N.path.indexOf(Rg)+Rg.length-1),k=e.toPath(P);t?.has(k)||(t||(t=new Map)).set(k,e.watchNodeModulesForPackageJsonChanges(P))}}},setModulePaths(d,g,h,y,E){const A=s(d,h,y),R=A.get(g);R?R.modulePaths=E:A.set(g,u(void 0,E,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(d,g,h,y,E,A){const R=s(d,h,y),N=R.get(g);N?(N.isBlockedByPackageJsonDependencies=A,N.packageName=E):R.set(g,u(void 0,void 0,void 0,E,A))},clear(){t?.forEach(Bm),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return C.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(d,g,h){const y=l(d,g,h);return r&&i!==y&&o.clear(),i=y,r||(r=new Map)}function l(d,g,h){return`${d},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${h.overrideImportMode}`}function u(d,g,h,y,E){return{kind:d,modulePaths:g,moduleSpecifiers:h,packageName:y,isBlockedByPackageJsonDependencies:E}}}function Nme(e){const t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(ci(l),!0)},getInDirectory:l=>t.get(e.toPath(Qr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:(l,u)=>{W_(u,l,d=>{const g=e.toPath(d);if(s(g)!==3)return!0;const h=Qr(d,"package.json");kP(e,h)?i(h,Qr(g,"package.json")):r.set(g,!0)})}};function i(l,u){const d=C.checkDefined(eJ(l,e.host));t.set(u,d),r.delete(ci(u))}function o(l){t.delete(l),r.delete(ci(l))}function s(l){return t.has(Qr(l,"package.json"))?-1:r.has(l)?0:3}}var Xwe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function ust(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function Ywe(e,t){if((hC(e)||iW(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function pst(e){return _p(e)||!!e.emitDecoratorMetadata}function $we(e,t,r){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:a_(r.messageText,` `),code:r.code,category:GE(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Vt(r.relatedInformation,RX)}}function RX(e){return e.file?{span:{start:gC(ca(e.file,e.start)),end:gC(ca(e.file,e.start+e.length)),file:e.file.fileName},message:a_(e.messageText,` `),category:GE(e),code:e.code}:{message:a_(e.messageText,` `),category:GE(e),code:e.code}}function gC(e){return{line:e.line+1,offset:e.character+1}}function lW(e,t){const r=e.file&&gC(ca(e.file,e.start)),i=e.file&&gC(ca(e.file,e.start+e.length)),o=a_(e.messageText,` `),{code:s,source:l}=e,u=GE(e),d={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Vt(e.relatedInformation,RX)};return t?{...d,fileName:e.file&&e.file.fileName}:d}function fst(e,t){return e.every(r=>Cl(r.span){this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t),this.performanceData)},e))}delay(e,t,r){const i=this.requestId;C.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),this.performanceData)},t,e))}executeAction(e){var t,r,i,o,s,l;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=xr)==null||t.instant(xr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=xr)==null||r.push(xr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=xr)==null||i.pop())}catch(d){(o=xr)==null||o.popAll(),u=!0,d instanceof yN?(s=xr)==null||s.instant(xr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=xr)==null||l.instant(xr.Phase.Session,"stepError",{seq:this.requestId,message:d.message}),this.operationHost.logError(d,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(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}};function Pme(e,t){return{seq:0,type:"event",event:e,body:t}}function hst(e,t,r,i){const o=vc(Mo(r)?r:r.projects,s=>i(s,e));return!Mo(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{const u=t(l);o.push(...Ki(s,d=>i(d,u)))}),lS(o,eb)}function DX(e){return MB(({textSpan:t})=>t.start+100003*t.length,Gq(e))}function _st(e,t,r,i,o,s,l){const u=Lme(e,t,r,Zwe(t,r,!0),nOe,(h,y)=>h.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(h,y)=>y($P(h)));if(Mo(u))return u;const d=[],g=DX(l);return u.forEach((h,y)=>{for(const E of h)!g.has(E)&&!CX($P(E),y)&&(d.push(E),g.add(E))}),d}function Zwe(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Ic(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=Lme(e,t,r,Zwe(t,r,!1),nOe,(y,E)=>(o.info(`Finding references to ${E.fileName} position ${E.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(E.fileName,E.pos)),(y,E)=>{E($P(y.definition));for(const A of y.references)E($P(A))});if(Mo(u))return u;const d=u.get(t);if(((l=(s=d?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(y=>{for(const E of y)for(const A of E.references)delete A.isDefinition});else{const y=DX(i);for(const A of d)for(const R of A.references)if(R.isDefinition){y.add(R);break}const E=new Set;for(;;){let A=!1;if(u.forEach((R,N)=>{if(E.has(N))return;N.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,y)&&(E.add(N),A=!0)}),!A)break}u.forEach((A,R)=>{if(!E.has(R))for(const N of A)for(const P of N.references)P.isDefinition=!1})}const g=[],h=DX(i);return u.forEach((y,E)=>{for(const A of y){const R=CX($P(A.definition),E),N=R===void 0?A.definition:{...A.definition,textSpan:Id(R.pos,A.definition.textSpan.length),fileName:R.fileName,contextSpan:vst(A.definition,E)};let P=hn(g,k=>Bq(k.definition,N,i));P||(P={definition:N,references:[]},g.push(P));for(const k of A.references)!h.has(k)&&!CX($P(k),E)&&(h.add(k),P.references.push(k))}}),g.filter(y=>y.references.length!==0)}function eOe(e,t,r){for(const i of Mo(e)?e:e.projects)r(i,t);!Mo(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(const s of i)r(s,o)})}function Lme(e,t,r,i,o,s,l){const u=new Map,d=s2();d.enqueue({project:t,location:r}),eOe(e,r.fileName,(N,P)=>{const k={fileName:P,pos:r.pos};d.enqueue({project:N,location:k})});const g=t.projectService,h=t.getCancellationToken(),y=Cu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(i)),E=Cu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetSourcePosition(i)),A=new Set;e:for(;!d.isEmpty();){for(;!d.isEmpty();){if(h.isCancellationRequested())break e;const{project:N,location:P}=d.dequeue();if(u.has(N)||rOe(N,P)||(Am(N),!N.containsFile(Cs(P.fileName))))continue;const k=R(N,P);u.set(N,k??Kc),A.add(yst(N))}i&&(g.loadAncestorProjectTree(A),g.forEachEnabledProject(N=>{if(h.isCancellationRequested()||u.has(N))return;const P=o(i,N,y,E);P&&d.enqueue({project:N,location:P})}))}if(u.size===1)return IB(u.values());return u;function R(N,P){const k=s(N,P);if(!k||!l)return k;for(const W of k)l(W,O=>{const G=g.getOriginalLocationEnsuringConfiguredProject(N,O);if(!G)return;const j=g.getScriptInfo(G.fileName);for(const Z of j.containingProjects)!Z.isOrphan()&&!u.has(Z)&&d.enqueue({project:Z,location:G});const J=g.getSymlinkedProjects(j);J&&J.forEach((Z,q)=>{for(const ye of Z)!ye.isOrphan()&&!u.has(ye)&&d.enqueue({project:ye,location:{fileName:q,pos:G.pos}})})});return k}}function tOe(e,t){if(t.containsFile(Cs(e.fileName))&&!rOe(t,e))return e}function nOe(e,t,r,i){const o=tOe(e,t);if(o)return o;const s=r();if(s&&t.containsFile(Cs(s.fileName)))return s;const l=i();return l&&t.containsFile(Cs(l.fileName))?l:void 0}function rOe(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 yst(e){return vv(e)?e.canonicalConfigFilePath:e.getProjectName()}function $P({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function CX(e,t){return DP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function iOe(e,t){return m7(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function vst(e,t){return jq(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}var oOe=["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","getPasteEdits","copilotRelated"],bst=[...oOe,"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","preparePasteEdits"],aOe=class z${constructor(t){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const s={version:Le};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(d=>d.projectErrors&&d.projectErrors.length!==0))return this.requiredResponse(l);const u=Vt(l,d=>!d.projectErrors||d.projectErrors.length===0?d:{info:d.info,changes:d.changes,files:d.files,projectErrors:this.convertToDiagnosticsWithLinePosition(d.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&za(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&za(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:nh(EB(l.textChanges),u=>{const d=C.checkDefined(this.projectService.getScriptInfo(l.fileName)),g=d.lineOffsetToPosition(u.start.line,u.start.offset),h=d.lineOffsetToPosition(u.end.line,u.end.offset);return g>=0?{span:{start:g,length:h-g},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&za(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:EB(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),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(Cs(s.arguments.file),s.arguments.fileContent,TX(s.arguments.scriptKindName),s.arguments.projectRootPath?Cs(s.arguments.projectRootPath):void 0),this.notRequired(s)),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(void 0)),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired(void 0)),change:s=>(this.change(s.arguments),this.notRequired(s)),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.notRequired(s)),reload:s=>(this.reload(s.arguments),this.requiredResponse({reloadFinished:!0})),saveto:s=>{const l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired(s)},close:s=>{const l=s.arguments;return this.closeClientFile(l.file),this.notRequired(s)},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:s=>(this.projectService.reloadProjects(),this.notRequired(s)),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)),preparePasteEdits:s=>this.requiredResponse(this.preparePasteEdits(s.arguments)),getPasteEdits:s=>this.requiredResponse(this.getPasteEdits(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.notRequired(s)),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)),mapCode:s=>this.requiredResponse(this.mapCode(s.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||Ez,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,u)=>this.executeWithRequestId(s,l,u),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:(s,l)=>this.sendRequestCompletedEvent(s,l),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new mst(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 xme(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Yfe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:oOe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:bst.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:C.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t,r){this.event({request_seq:t,performanceData:r&&sOe(r)},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}addDiagnosticsPerformanceData(t,r,i){var o,s;this.performanceData||(this.performanceData={});let l=(o=this.performanceData.diagnosticsDuration)==null?void 0:o.get(t);l||((s=this.performanceData).diagnosticsDuration??(s.diagnosticsDuration=new Map)).set(t,l={}),l[r]=i}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 Tz:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case uX:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case pX:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case fX:case gX:case yX:case vX:this.event(t.data,t.eventName);break;case mX:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Vt(t.data.diagnostics,r=>lW(r,!0))},t.eventName);break;case hX:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case _X:{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},Tz))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: `+TP(t.message),t.stack&&(o+=` `+TP(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){const d=dx(u.getSnapshot());o+=` File text of ${i.file}:${TP(d)} `}}catch{}if(t.ProgramFiles){o+=` Program files: ${JSON.stringify(t.ProgramFiles)} `,o+=` Projects:: `;let s=0;const l=u=>{o+=` Project '${u.projectName}' (${YP[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: ${d0(t)}`);return}this.writeMessage(t)}writeMessage(t){const r=Mme(t,this.logger,this.byteLength,this.host.newLine);this.host.write(r)}event(t,r){this.send(Pme(r,t))}doOutput(t,r,i,o,s,l){const u={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:s&&sOe(s)};if(o){let d;if(Mo(t))u.body=t,d=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:g,...h}=t;u.body=h,d=g}else u.body=t;else u.body=t;d&&(u.metadata=d)}else C.assert(t===void 0);l&&(u.message=l),this.send(u)}semanticCheck(t,r){var i,o;const s=Ls();(i=xr)==null||i.push(xr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const l=Ywe(r,t)?Kc:r.getLanguageService().getSemanticDiagnostics(t).filter(u=>!!u.file);this.sendDiagnosticsEvent(t,r,l,"semanticDiag",s),(o=xr)==null||o.pop()}syntacticCheck(t,r){var i,o;const s=Ls();(i=xr)==null||i.push(xr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag",s),(o=xr)==null||o.pop()}suggestionCheck(t,r){var i,o;const s=Ls();(i=xr)==null||i.push(xr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag",s),(o=xr)==null||o.pop()}regionSemanticCheck(t,r,i){var o,s,l;const u=Ls();(o=xr)==null||o.push(xr.Phase.Session,"regionSemanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let d;if(!this.shouldDoRegionCheck(t)||!(d=r.getLanguageService().getRegionSemanticDiagnostics(t,i))){(s=xr)==null||s.pop();return}this.sendDiagnosticsEvent(t,r,d.diagnostics,"regionSemanticDiag",u,d.spans),(l=xr)==null||l.pop()}shouldDoRegionCheck(t){var r;const i=(r=this.projectService.getScriptInfoForNormalizedPath(t))==null?void 0:r.textStorage.getLineInfo().getLineCount();return!!(i&&i>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(t,r,i,o,s,l){try{const u=C.checkDefined(r.getScriptInfo(t)),d=Ls()-s,g={file:t,diagnostics:i.map(h=>$we(t,r,h)),spans:l?.map(h=>u_(h,u))};this.event(g,o),this.addDiagnosticsPerformanceData(t,o,d)}catch(u){this.logError(u,o)}}updateErrorCheck(t,r,i,o=!0){if(r.length===0)return;C.assert(!this.suppressDiagnosticEvents);const s=this.changeSeq,l=Math.min(i,200);let u=0;const d=()=>{if(u++,r.length>u)return t.delay("checkOne",l,h)},g=(y,E)=>{if(this.semanticCheck(y,E),this.changeSeq===s){if(this.getPreferences(y).disableSuggestions)return d();t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,E),d()})}},h=()=>{if(this.changeSeq!==s)return;let y,E=r[u];if(Bo(E)?E=this.toPendingErrorCheck(E):"ranges"in E&&(y=E.ranges,E=this.toPendingErrorCheck(E.file)),!E)return d();const{fileName:A,project:R}=E;if(Am(R),!!R.containsFile(A,o)&&(this.syntacticCheck(A,R),this.changeSeq===s)){if(R.projectService.serverMode!==0)return d();if(y)return t.immediate("regionSemanticCheck",()=>{const N=this.projectService.getScriptInfoForNormalizedPath(A);N&&this.regionSemanticCheck(A,R,y.map(P=>this.getRange({file:A,...P},N))),this.changeSeq===s&&t.immediate("semanticCheck",()=>g(A,R))});t.immediate("semanticCheck",()=>g(A,R))}};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",Co(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=Cs(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=Un(so(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Vt(l,u=>lW(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:a_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:GE(r),code:r.code,source:r.source,startLocation:r.file&&gC(ca(r.file,r.start)),endLocation:r.file&&gC(ca(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Vt(r.relatedInformation,RX)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Un(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:a_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:GE(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:Vt(i.relatedInformation,RX)}))}getDiagnosticsWorker(t,r,i,o){const{project:s,file:l}=this.getFileAndProject(t);if(r&&Ywe(s,l))return Kc;const u=s.getScriptInfoForNormalizedPath(l),d=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(d,u):d.map(g=>$we(l,s,g))}getDefinition(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||Kc,o);return r?this.mapDefinitionInfo(l,o):l.map(z$.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const o=iOe(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=C.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:Kc,textSpan:void 0};const d=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:g}=u;return r?{definitions:this.mapDefinitionInfo(d,o),textSpan:u_(g,l)}:{definitions:d.map(z$.mapToOriginalLocation),textSpan:g}}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||Kc,o).slice();if(this.projectService.serverMode===0&&(!yt(u,A=>Cs(A.fileName)!==i&&!A.isAmbient)||yt(u,A=>!!A.failedAliasResolution))){const A=MB(k=>k.textSpan.start,Gq(this.host.useCaseSensitiveFileNames));u?.forEach(k=>A.add(k));const R=o.getNoDtsResolutionProject(i),N=R.getLanguageService(),P=(r=N.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(k=>Cs(k.fileName)!==i);if(yt(P))for(const k of P){if(k.unverified){const W=y(k,o.getLanguageService().getProgram(),N.getProgram());if(yt(W)){for(const O of W)A.add(O);continue}}A.add(k)}else{const k=u.filter(W=>Cs(W.fileName)!==i&&W.isAmbient);for(const W of yt(k)?k:h()){const O=g(W.fileName,i,R);if(!O)continue;const G=this.projectService.getOrCreateScriptInfoNotOpenedByClient(O,R.currentDirectory,R.directoryStructureHost,!1);if(!G)continue;R.containsScriptInfo(G)||(R.addRoot(G),R.updateGraph());const j=N.getProgram(),J=C.checkDefined(j.getSourceFile(O));for(const Z of E(W.name,J,j))A.add(Z)}}u=Co(A.values())}return u=u.filter(A=>!A.isAmbient&&!A.failedAliasResolution),this.mapDefinitionInfo(u,o);function g(A,R,N){var P,k,W;const O=G6(A);if(O&&A.lastIndexOf(Rg)===O.topLevelNodeModulesIndex){const G=A.substring(0,O.packageRootIndex),j=(P=o.getModuleResolutionCache())==null?void 0:P.getPackageJsonInfoCache(),J=o.getCompilationSettings(),Z=nP(To(G,o.getCurrentDirectory()),tP(j,o,J));if(!Z)return;const q=cU(Z,{moduleResolution:2},o,o.getModuleResolutionCache()),ye=A.substring(O.topLevelPackageNameIndex+1,O.packageRootIndex),ie=rP(Pw(ye)),K=o.toPath(A);if(q&&yt(q,pe=>o.toPath(pe)===K))return(k=N.resolutionCache.resolveSingleModuleNameWithoutWatching(ie,R).resolvedModule)==null?void 0:k.resolvedFileName;{const pe=A.substring(O.packageRootIndex+1),de=`${ie}/${bu(pe)}`;return(W=N.resolutionCache.resolveSingleModuleNameWithoutWatching(de,R).resolvedModule)==null?void 0:W.resolvedFileName}}}function h(){const A=o.getLanguageService(),R=A.getProgram(),N=ip(R.getSourceFile(i),s);return(ds(N)||He(N))&&Ks(N.parent)&&wne(N,P=>{var k;if(P===N)return;const W=(k=A.getDefinitionAtPosition(i,P.getStart(),!0,!1))==null?void 0:k.filter(O=>Cs(O.fileName)!==i&&O.isAmbient).map(O=>({fileName:O.fileName,name:zf(N)}));if(yt(W))return W})||Kc}function y(A,R,N){var P;const k=N.getSourceFile(A.fileName);if(!k)return;const W=ip(R.getSourceFile(i),s),O=R.getTypeChecker().getSymbolAtLocation(W),G=O&&al(O,277);if(!G)return;const j=((P=G.propertyName)==null?void 0:P.text)||G.name.text;return E(j,k,N)}function E(A,R,N){const P=Ys.Core.getTopMostDeclarationNamesInFile(A,R);return Ui(P,k=>{const W=N.getTypeChecker().getSymbolAtLocation(k),O=ZN(k);if(W&&O)return pC.createDefinitionInfo(O,N.getTypeChecker(),W,O,!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=>lW(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?(C.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,Cl(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)||Kc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{const o=iOe(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)||Kc,o);return r?l.map(({fileName:u,textSpan:d,contextSpan:g})=>this.toFileSpanWithContext(u,d,g,o)):l.map(z$.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Kc: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?Kc: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 Sst(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:d})=>{const g=o.getScriptInfo(u);return{file:u,highlightSpans:d.map(({textSpan:h,kind:y,contextSpan:E})=>({...kme(h,E,g),kind:y}))}}):l:Kc}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:d}=l;return{...l,position:o.positionToLineOffset(u),displayParts:d?.map(({text:g,span:h,file:y})=>{if(h){C.assertIsDefined(y,"Target file should be defined together with its span.");const E=this.projectService.getScriptInfo(y);return{text:g,span:{start:E.positionToLineOffset(h.start),end:E.positionToLineOffset(h.start+h.length),file:y}}}else return{text:g}})}})}mapCode(t){var r;const i=this.getHostFormatOptions(),o=this.getHostPreferences(),{file:s,languageService:l}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.projectService.getScriptInfoForNormalizedPath(s),d=(r=t.mapping.focusLocations)==null?void 0:r.map(h=>h.map(y=>{const E=u.lineOffsetToPosition(y.start.line,y.start.offset),A=u.lineOffsetToPosition(y.end.line,y.end.offset);return{start:E,length:A-E}})),g=l.mapCode(s,t.mapping.contents,d,i,o);return this.mapTextChangesToCodeEdits(g)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,t.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(t,r,i,o,s){const{project:l}=this.getFileAndProjectWorker(t,r);return Am(l),{configFileName:l.getProjectName(),languageServiceDisabled:!l.languageServiceEnabled,fileNames:i?l.getFileNames(!1,s):void 0,configuredProjectInfo:o?this.getDefaultConfiguredProjectInfo(t):void 0}}getDefaultConfiguredProjectInfo(t){var r;const i=this.projectService.getScriptInfo(t);if(!i)return;const o=this.projectService.findDefaultConfiguredProjectWorker(i,3);if(!o)return;let s,l;return o.seenProjects.forEach((u,d)=>{d!==o.defaultProject&&(u!==3?(s??(s=[])).push(Cs(d.getConfigFilePath())):(l??(l=[])).push(Cs(d.getConfigFilePath())))}),(r=o.seenConfigs)==null||r.forEach(u=>(s??(s=[])).push(u)),{notMatchedByConfig:s,notInProject:l,defaultProject:o.defaultProject&&Cs(o.defaultProject.getConfigFilePath())}}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?Kc:(this.projectService.logErrorForScriptInfoNotFound(t.file),by.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=Un(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),by.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 by.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=Cs(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),d=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),C.checkDefined(this.projectService.getScriptInfo(i)));if(!d.canRename)return r?{info:d,locs:[]}:[];const g=_st(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:d,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:d,triggerSpan:g}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:d,triggerSpan:u_(g,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:d,...g}of t){let h=r.get(i);h||r.set(i,h={file:i,locs:[]});const y=C.checkDefined(this.projectService.getScriptInfo(i));h.locs.push({...kme(o,s,y),...g})}return Co(r.values())}getReferences(t,r){const i=Cs(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),d=this.getDefaultProject(t),g=d.getScriptInfoForNormalizedPath(i),h=d.getLanguageService().getQuickInfoAtPosition(i,s),y=h?PO(h.displayParts):"",E=h&&h.textSpan,A=E?g.positionToLineOffset(E.start).offset:0,R=E?g.getSnapshot().getText(E.start,Cl(E)):"";return{refs:Ki(l,P=>P.references.map(k=>cOe(this.projectService,k,u))),symbolName:R,symbolStartOffset:A,symbolDisplayString:y}}getFileReferences(t,r){const i=this.getProjects(t),o=Cs(t.file),s=this.getPreferences(o),l={fileName:o,pos:0},u=Lme(i,this.getDefaultProject(t),l,l,tOe,h=>(this.logger.info(`Finding references to file ${o} in project ${h.getProjectName()}`),h.getLanguageService().getFileReferences(o)));let d;if(Mo(u))d=u;else{d=[];const h=DX(this.host.useCaseSensitiveFileNames);u.forEach(y=>{for(const E of y)h.has(E)||(d.push(E),h.add(E))})}return r?{refs:d.map(h=>cOe(this.projectService,h,s)),symbolName:`"${t.file}"`}:d}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=Cs(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:u_(u.textSpan,l),hintSpan:u_(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?_C(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=this.getPreferences(i),u=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s),l.maximumHoverLength,t.verbosityLevel);if(!u)return;const d=!!l.displayPartsForJSDoc;if(r){const g=PO(u.displayParts);return{kind:u.kind,kindModifiers:u.kindModifiers,start:s.positionToLineOffset(u.textSpan.start),end:s.positionToLineOffset(Cl(u.textSpan)),displayString:g,documentation:d?this.mapDisplayParts(u.documentation,o):PO(u.documentation),tags:this.mapJSDocTagInfo(u.tags,o,d),canIncreaseVerbosityLevel:u.canIncreaseVerbosityLevel}}else return d?u:{...u,tags:this.mapJSDocTagInfo(u.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(d=>this.convertTextChangeToCodeEdit(d,o))}getFormattingEditsForRangeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?_C(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?_C(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?_C(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||fst(u,s))){const{lineText:d,absolutePosition:g}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(d&&d.search("\\S")<0){const h=i.getIndentationAtPosition(r,s,l);let y=0,E,A;for(E=0,A=d.length;E({start:o.positionToLineOffset(d.span.start),end:o.positionToLineOffset(Cl(d.span)),newText:d.newText?d.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,{...hme(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 d=t.prefix||"",g=Ui(u.entries,y=>{if(u.isMemberCompletion||po(y.name.toLowerCase(),d.toLowerCase())){const E=y.replacementSpan?u_(y.replacementSpan,s):void 0;return{...y,replacementSpan:E,hasAction:y.hasAction||void 0,symbol:void 0}}});return r==="completions"?(u.metadata&&(g.metadata=u.metadata),g):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&u_(u.optionalReplacementSpan,s),entries:g}}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),d=!!this.getPreferences(i).displayPartsForJSDoc,g=Ui(t.entryNames,h=>{const{name:y,source:E,data:A}=typeof h=="string"?{name:h,source:void 0,data:void 0}:h;return o.getLanguageService().getCompletionEntryDetails(i,l,y,u,E,this.getPreferences(i),A?ma(A,Rst):void 0)});return r?d?g:g.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)})):g.map(h=>({...h,codeActions:Vt(h.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(h.documentation,o),tags:this.mapJSDocTagInfo(h.tags,o,d)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?hst(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const l=o.getCompilationSettings();if(!(l.noEmit||ad(s.fileName)&&!pst(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!l.outFile}}):Kc}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||by.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,d,g)=>this.host.writeFile(u,d,g));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>lW(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),d=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){const g=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(g.start),end:s.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(u.items,o,d)}}else return d||!u?u:{...u,items:u.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,o,!1)}))}}toPendingErrorCheck(t){const r=Cs(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);C.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,x8({span:{start:i,length:o-i},newText:t.insertString})))}reload(t){const r=Cs(t.file),i=t.tmpfile===void 0?void 0:Cs(t.tmpfile),o=this.projectService.getScriptInfoForNormalizedPath(r);o&&(this.changeSeq++,o.reloadFromFile(i))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=ya(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Vt(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>u_(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=>u_(i,r)),nameSpan:t.nameSpan&&u_(t.nameSpan,r),childItems:Vt(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?Ki(i,({project:o,navigateToItems:s})=>s.map(l=>{const u=o.getScriptInfo(l.fileName),d={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(Cl(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(d.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(d.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(d.containerKind=l.containerKind),d})):Ki(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){C.assertIsDefined(t.file);const{file:E,project:A}=this.getFileAndProject(t);return[{project:A,navigateToItems:A.getLanguageService().getNavigateToItems(i,o,E)}]}const l=this.getHostPreferences(),u=[],d=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(E=>g(E));else{const E=this.getProjects(t);eOe(E,void 0,A=>g(A))}return u;function g(E){const A=E.getLanguageService().getNavigateToItems(i,o,void 0,E.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=Un(A,N=>h(N)&&!CX($P(N),E));R.length&&u.push({project:E,navigateToItems:R})}function h(E){const A=E.name;if(!d.has(A))return d.set(A,[E]),!0;const R=d.get(A);for(const N of R)if(y(N,E))return!1;return R.push(E),!0}function y(E,A){return E===A?!0:!E||!A?!1:E.containerKind===A.containerKind&&E.containerName===A.containerName&&E.fileName===A.fileName&&E.isCaseSensitive===A.isCaseSensitive&&E.kind===A.kind&&E.kindModifiers===A.kindModifiers&&E.matchKind===A.matchKind&&E.name===A.name&&E.textSpan.start===A.textSpan.start&&E.textSpan.length===A.textSpan.length}}getSupportedCodeFixes(t){if(!t)return qJ();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||by.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),C.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).map(l=>({...l,actions:l.actions.map(u=>({...u,range:u.range?{start:gC({line:u.range.start.line,character:u.range.start.offset}),end:gC({line:u.range.end.line,character:u.range.end.offset})}:void 0}))}))}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:d,edits:g}=l;let h;if(u!==void 0&&d!==void 0){const y=o.getScriptInfoForNormalizedPath(Cs(u));h=wme(dx(y.getSnapshot()),u,d,g)}return{renameLocation:h,renameFilename:u,edits:this.mapTextChangesToCodeEdits(g),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))}preparePasteEdits(t){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().preparePasteEditsForFile(r,t.copiedTextSpan.map(o=>this.getRange({file:r,startLine:o.start.line,startOffset:o.start.offset,endLine:o.end.line,endOffset:o.end.offset},this.projectService.getScriptInfoForNormalizedPath(r))))}getPasteEdits(t){const{file:r,project:i}=this.getFileAndProject(t);if(XP(r))return;const o=t.copiedFrom?{file:t.copiedFrom.file,range:t.copiedFrom.spans.map(l=>this.getRange({file:t.copiedFrom.file,startLine:l.start.line,startOffset:l.start.offset,endLine:l.end.line,endOffset:l.end.offset},i.getScriptInfoForNormalizedPath(Cs(t.copiedFrom.file))))}:void 0,s=i.getLanguageService().getPasteEdits({targetFile:r,pastedText:t.pastedText,pasteLocations:t.pasteLocations.map(l=>this.getRange({file:r,startLine:l.start.line,startOffset:l.start.offset,endLine:l.end.line,endOffset:l.end.offset},i.getScriptInfoForNormalizedPath(r))),copiedFrom:o,preferences:this.getPreferences(r)},this.getFormatOptions(r));return s&&this.mapPasteEditsAction(s)}organizeImports(t,r){C.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=Cs(t.oldFilePath),o=Cs(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,d=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{const h=g.getLanguageService().getEditsForFileRename(i,o,s,l),y=[];for(const E of h)u.has(E.fileName)||(d.push(E),y.push(E.fileName));for(const E of y)u.add(E)}),r?d.map(g=>this.mapTextChangeToCodeEdit(g)):d}getCodeFixes(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s);let d;try{d=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){const h=g instanceof Error?g:new Error(g),y=o.getLanguageService(),E=[...y.getSyntacticDiagnostics(i),...y.getSemanticDiagnostics(i),...y.getSuggestionDiagnostics(i)].filter(R=>S2(l,u-l,R.start,R.length)).map(R=>R.code),A=t.errorCodes.find(R=>!E.includes(R));throw A!==void 0&&(h.message+=` Additional information: BADCLIENT: Bad error code, ${A} not found in range ${l}..${u} (found: ${E.join(", ")})`),h}return r?d.map(g=>this.mapCodeFixAction(g)):d}getCombinedCodeFix({scope:t,fixId:r},i){C.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 XA(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}}mapPasteEditsAction({edits:t,fixId:r}){return{edits:this.mapTextChangesToCodeEdits(t),fixId:r}}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),C.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Tst(i,r))}:Ast(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(d=>u_(d,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,void 0,!0);if(s)return;const l=o.filter(N=>!N.includes("lib.d.ts"));if(l.length===0)return;const u=[],d=[],g=[],h=[],y=Cs(i),E=this.projectService.ensureDefaultProjectForFile(y);for(const N of l)this.getCanonicalFileName(N)===this.getCanonicalFileName(i)?u.push(N):this.projectService.getScriptInfo(N).isScriptOpen()?d.push(N):ad(N)?h.push(N):g.push(N);const R=[...u,...d,...g,...h].map(N=>({fileName:N,project:E}));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=C.checkDefined(this.projectService.getScriptInfo(o));return Vt(i,u=>{const d=this.getPosition(u,l),g=s.getSmartSelectionRange(o,d);return r?this.mapSelectionRange(g,l):g})}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 d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,d))}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 d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,d))}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 d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,d))}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 d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,d))}return u}mapSelectionRange(t,r){const i={textSpan:u_(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=Cs(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),by.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:u_(t.span,r),selectionSpan:u_(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>u_(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>u_(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&&nJ(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:Zv(t);return ya(r)}exit(){}notRequired(t){return t&&this.doOutput(void 0,t.command,t.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(t){return{response:t,responseRequired:!0,performanceData:this.performanceData}}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){C.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){C.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r,i){const o=this.performanceData;try{return this.performanceData=i,this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t),this.performanceData=o}}executeCommand(t){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t),void 0);return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${d0(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,void 0,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,u,d;this.gcTimer.scheduleCollect();let g;const h=this.performanceData;this.logger.hasLevel(2)&&(g=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${TP(this.toStringMessage(t))}`));let y,E;try{y=this.parseMessage(t),E=y.arguments&&y.arguments.file?y.arguments:void 0,(r=xr)==null||r.instant(xr.Phase.Session,"request",{seq:y.seq,command:y.command}),(i=xr)==null||i.push(xr.Phase.Session,"executeCommand",{seq:y.seq,command:y.command},!0);const{response:A,responseRequired:R,performanceData:N}=this.executeCommand(y);if((o=xr)==null||o.pop(),this.logger.hasLevel(2)){const P=ust(this.hrtime(g)).toFixed(4);R?this.logger.perftrc(`${y.seq}::${y.command}: elapsed time (in milliseconds) ${P}`):this.logger.perftrc(`${y.seq}::${y.command}: async elapsed time (in milliseconds) ${P}`)}(s=xr)==null||s.instant(xr.Phase.Session,"response",{seq:y.seq,command:y.command,success:!!A}),A?this.doOutput(A,y.command,y.seq,!0,N):R&&this.doOutput(void 0,y.command,y.seq,!1,N,"No content available.")}catch(A){if((l=xr)==null||l.popAll(),A instanceof yN){(u=xr)==null||u.instant(xr.Phase.Session,"commandCanceled",{seq:y?.seq,command:y?.command}),this.doOutput({canceled:!0},y.command,y.seq,!0,this.performanceData);return}this.logErrorWorker(A,this.toStringMessage(t),E),(d=xr)==null||d.instant(xr.Phase.Session,"commandError",{seq:y?.seq,command:y?.command,message:A.message}),this.doOutput(void 0,y?y.command:"unknown",y?y.seq:0,!1,this.performanceData,"Error processing request. "+A.message+` `+A.stack)}finally{this.performanceData=h}}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()}};function sOe(e){const t=e.diagnosticsDuration&&Co(e.diagnosticsDuration,([r,i])=>({...i,file:r}));return{...e,diagnosticsDuration:t}}function u_(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Cl(e))}}function kme(e,t,r){const i=u_(e,r),o=t&&u_(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Tst(e,t){return{start:lOe(t,e.span.start),end:lOe(t,Cl(e.span)),newText:e.newText}}function lOe(e,t){return Rme(e)?Est(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Sst(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 Est(e){return{line:e.line+1,offset:e.character+1}}function Ast(e){C.assert(e.textChanges.length===1);const t=$a(e.textChanges);return C.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 wme(e,t,r,i){const o=Ist(e,t,i),{line:s,character:l}=PR(tI(o),r);return{line:s+1,offset:l+1}}function Ist(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:d}}=o[s];e=e.slice(0,u)+l+e.slice(u+d)}return e}function cOe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){const u=C.checkDefined(e.getScriptInfo(t)),d=kme(r,i,u),g=l?void 0:xst(u,d);return{file:t,...d,lineText:g,isWriteAccess:o,isDefinition:s}}function xst(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Cl(r)).replace(/\r|\n/g,"")}function Rst(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 yC=4,Ome=(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))(Ome||{}),Dst=class{constructor(){this.goSubtree=!0,this.lineIndex=new cW,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new vC,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=cW.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),d=l;for(let y=1;y=0;){const y=this.startPath[g];u=y.insertAt(d,u),g--,d=y}let h=u.length;for(;h>0;){const y=new vC;y.add(this.lineIndex.root),u=y.insertAt(this.lineIndex.root,u),h=u.length,this.lineIndex.root=y}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 d=this.startPath.length-2;d>=0;d--)this.startPath[d].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(d){return d.isLeaf()?new Az(""):new vC}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)}},Cst=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return E2(Id(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},NX=class zA{constructor(){this.changes=[],this.versions=new Array(zA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%zA.maxVersions}currentVersionToIndex(){return this.currentVersion%zA.maxVersions}edit(t,r,i){this.changes.push(new Cst(t,r,i)),(this.changes.length>zA.changeNumberThreshold||r>zA.changeLengthThreshold||i&&i.length>zA.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 dOe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=zA.maxVersions&&(this.minVersion=this.currentVersion-zA.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 Id(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 yee(i)}else return;else return Y8}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new zA,i=new dOe(0,r,new cW);r.versions[r.currentVersion]=i;const o=cW.linesFromText(t);return i.index.load(o.lines),r}};NX.changeNumberThreshold=8,NX.changeLengthThreshold=256,NX.maxVersions=8;var MX=NX,dOe=class d7e{constructor(t,r,i,o=Kc){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 d7e&&this.cache===t.cache)return this.version<=t.version?Y8:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},cW=class Rye{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 C.assert(r===0),i!==void 0?(this.load(Rye.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 Dst;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:d,lineText:g}=this.positionToColumnAndLineText(u);d===0&&(r+=g.length,i=i?i+g:g)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){const u=s.lineIndex.getText(0,s.lineIndex.getLength());C.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},vC=class Dye{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){if(this.children.length===0)return;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=C.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;E--)d[E].children.length===0&&d.pop()}l&&d.push(l),this.updateCounts();for(let h=0;h{(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=jfe(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${d0(o)}`),this.activeRequestCount0?this.activeRequestCount--:C.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 iO: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:${d0(t)}`),this.installer.send(t)},u7e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};uOe.requestDelayMillis=100;var pOe=uOe,fOe={};x(fOe,{ActionInvalidate:()=>V3,ActionPackageInstalled:()=>j3,ActionSet:()=>G3,ActionWatchTypingLocations:()=>iO,Arguments:()=>iq,AutoImportProviderProject:()=>dme,AuxiliaryProject:()=>lme,CharRangeSection:()=>Ome,CloseFileWatcherEvent:()=>vX,CommandNames:()=>Qwe,ConfigFileDiagEvent:()=>mX,ConfiguredProject:()=>ume,ConfiguredProjectLoadKind:()=>gme,CreateDirectoryWatcherEvent:()=>yX,CreateFileWatcherEvent:()=>gX,Errors:()=>by,EventBeginInstallTypes:()=>nq,EventEndInstallTypes:()=>rq,EventInitializationFailed:()=>Xse,EventTypesRegistry:()=>tq,ExternalProject:()=>lX,GcTimer:()=>Yfe,InferredProject:()=>sme,LargeFileReferencedEvent:()=>fX,LineIndex:()=>cW,LineLeaf:()=>Az,LineNode:()=>vC,LogLevel:()=>Gfe,Msg:()=>Vfe,OpenFileInfoTelemetryEvent:()=>pme,Project:()=>Ax,ProjectInfoTelemetryEvent:()=>_X,ProjectKind:()=>YP,ProjectLanguageServiceStateEvent:()=>hX,ProjectLoadingFinishEvent:()=>pX,ProjectLoadingStartEvent:()=>uX,ProjectService:()=>xme,ProjectsUpdatedInBackgroundEvent:()=>Tz,ScriptInfo:()=>eme,ScriptVersionCache:()=>MX,Session:()=>aOe,TextStorage:()=>Zfe,ThrottledOperations:()=>Xfe,TypingsInstallerAdapter:()=>pOe,allFilesAreJsOrDts:()=>ime,allRootFilesAreJsOrDts:()=>rme,asNormalizedPath:()=>Awe,convertCompilerOptions:()=>Sz,convertFormatOptions:()=>_C,convertScriptKindName:()=>TX,convertTypeAcquisition:()=>mme,convertUserPreferences:()=>hme,convertWatchOptions:()=>sW,countEachFileTypes:()=>rW,createInstallTypingsRequest:()=>jfe,createModuleSpecifierCache:()=>Cme,createNormalizedPathMap:()=>Iwe,createPackageJsonCache:()=>Nme,createSortedArray:()=>Kfe,emptyArray:()=>Kc,findArgument:()=>IIe,formatDiagnosticToProtocol:()=>lW,formatMessage:()=>Mme,getBaseConfigFileName:()=>sX,getDetailWatchInfo:()=>IX,getLocationInNewDocument:()=>wme,hasArgument:()=>AIe,hasNoTypeScriptSource:()=>ome,indent:()=>TP,isBackgroundProject:()=>oW,isConfigFile:()=>Rme,isConfiguredProject:()=>vv,isDynamicFileName:()=>XP,isExternalProject:()=>iW,isInferredProject:()=>hC,isInferredProjectName:()=>Ufe,isProjectDeferredClose:()=>aW,makeAutoImportProviderProjectName:()=>qfe,makeAuxiliaryProjectName:()=>Jfe,makeInferredProjectName:()=>Hfe,maxFileSize:()=>dX,maxProgramSizeForNonTsFiles:()=>cX,normalizedPathToPath:()=>mC,nowString:()=>xIe,nullCancellationToken:()=>Xwe,nullTypingsInstaller:()=>Ez,protocol:()=>$fe,scriptInfoIsContainedByBackgroundProject:()=>tme,scriptInfoIsContainedByDeferredClosedProject:()=>nme,stringifyIndented:()=>d0,toEvent:()=>Pme,toNormalizedPath:()=>Cs,tryConvertScriptKindName:()=>bX,typingsInstaller:()=>Bfe,updateProjectIfDirty:()=>Am}),typeof console<"u"&&(C.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:return console.log(t);case 4:return console.log(t)}}})})({get exports(){return xT},set exports(_){xT=_}});var tBe=xT.createClassifier,Fbe=xT.createLanguageService,nBe=xT.displayPartsToString,rBe=xT.EndOfLineState,iBe=xT.flattenDiagnosticMessageText,oBe=xT.IndentStyle,cN=xT.ScriptKind,aBe=xT.ScriptTarget,sBe=xT.TokenClass,zbe=xT,lBe=Object.freeze({__proto__:null,EndOfLineState:rBe,IndentStyle:oBe,ScriptKind:cN,ScriptTarget:aBe,TokenClass:sBe,createClassifier:tBe,createLanguageService:Fbe,displayPartsToString:nBe,flattenDiagnosticMessageText:iBe,typescript:zbe});const ji={};ji["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. ***************************************************************************** */ /// /// /// /// /// `,ji["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 after static methods are defined but 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 after static methods are defined but 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 after static methods are defined but 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 immediately after the auto \`accessor\` being * decorated is initialized (regardless if the \`accessor\` is \`static\` or not). */ 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 immediately after the field being decorated * is initialized (regardless if the field is \`static\` or not). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } `,ji["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; `,ji["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 FileSystemDirectoryHandleAsyncIterator extends AsyncIteratorObject { [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator; } interface FileSystemDirectoryHandle { [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; keys(): FileSystemDirectoryHandleAsyncIterator; values(): FileSystemDirectoryHandleAsyncIterator; } interface ReadableStreamAsyncIterator extends AsyncIteratorObject { [Symbol.asyncIterator](): ReadableStreamAsyncIterator; } interface ReadableStream { [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; } `,ji["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 AddressErrors { addressLine?: string; city?: string; country?: string; dependentLocality?: string; organization?: string; phone?: string; postalCode?: string; recipient?: string; region?: string; sortingCode?: string; } 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 AudioDataCopyToOptions { format?: AudioSampleFormat; frameCount?: number; frameOffset?: number; planeIndex: number; } interface AudioDataInit { data: BufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; sampleRate: number; timestamp: number; transfer?: ArrayBuffer[]; } interface AudioDecoderConfig { codec: string; description?: AllowSharedBufferSource; numberOfChannels: number; sampleRate: number; } interface AudioDecoderInit { error: WebCodecsErrorCallback; output: AudioDataOutputCallback; } interface AudioDecoderSupport { config?: AudioDecoderConfig; supported?: boolean; } interface AudioEncoderConfig { bitrate?: number; bitrateMode?: BitrateMode; codec: string; numberOfChannels: number; opus?: OpusEncoderConfig; sampleRate: number; } interface AudioEncoderInit { error: WebCodecsErrorCallback; output: EncodedAudioChunkOutputCallback; } interface AudioEncoderSupport { config?: AudioEncoderConfig; supported?: boolean; } 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; credentialProtectionPolicy?: string; enforceCredentialProtectionPolicy?: boolean; hmacCreateSecret?: boolean; largeBlob?: AuthenticationExtensionsLargeBlobInputs; minPinLength?: boolean; prf?: AuthenticationExtensionsPRFInputs; } interface AuthenticationExtensionsClientInputsJSON { appid?: string; credProps?: boolean; largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON; prf?: AuthenticationExtensionsPRFInputsJSON; } interface AuthenticationExtensionsClientOutputs { appid?: boolean; credProps?: CredentialPropertiesOutput; hmacCreateSecret?: boolean; largeBlob?: AuthenticationExtensionsLargeBlobOutputs; prf?: AuthenticationExtensionsPRFOutputs; } interface AuthenticationExtensionsLargeBlobInputs { read?: boolean; support?: string; write?: BufferSource; } interface AuthenticationExtensionsLargeBlobInputsJSON { read?: boolean; support?: string; write?: Base64URLString; } interface AuthenticationExtensionsLargeBlobOutputs { blob?: ArrayBuffer; supported?: boolean; written?: boolean; } interface AuthenticationExtensionsPRFInputs { eval?: AuthenticationExtensionsPRFValues; evalByCredential?: Record; } interface AuthenticationExtensionsPRFInputsJSON { eval?: AuthenticationExtensionsPRFValuesJSON; evalByCredential?: Record; } interface AuthenticationExtensionsPRFOutputs { enabled?: boolean; results?: AuthenticationExtensionsPRFValues; } interface AuthenticationExtensionsPRFValues { first: BufferSource; second?: BufferSource; } interface AuthenticationExtensionsPRFValuesJSON { first: Base64URLString; second?: Base64URLString; } 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 extends EventInit { 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 CaretPositionFromPointOptions { shadowRoots?: ShadowRoot[]; } interface ChannelMergerOptions extends AudioNodeOptions { numberOfInputs?: number; } interface ChannelSplitterOptions extends AudioNodeOptions { numberOfOutputs?: number; } interface CheckVisibilityOptions { checkOpacity?: boolean; checkVisibilityCSS?: boolean; contentVisibilityAuto?: boolean; opacityProperty?: boolean; visibilityProperty?: 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 ContentVisibilityAutoStateChangeEventInit extends EventInit { skipped?: boolean; } interface ConvolverOptions extends AudioNodeOptions { buffer?: AudioBuffer | null; disableNormalization?: boolean; } interface CookieChangeEventInit extends EventInit { changed?: CookieList; deleted?: CookieList; } interface CookieInit { domain?: string | null; expires?: DOMHighResTimeStamp | null; name: string; partitioned?: boolean; path?: string; sameSite?: CookieSameSite; value: string; } interface CookieListItem { name?: string; value?: string; } interface CookieStoreDeleteOptions { domain?: string | null; name: string; partitioned?: boolean; path?: string; } interface CookieStoreGetOptions { name?: string; url?: string; } 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 { customElementRegistry?: CustomElementRegistry; is?: string; } interface ElementDefinitionOptions { extends?: string; } interface EncodedAudioChunkInit { data: AllowSharedBufferSource; duration?: number; timestamp: number; transfer?: ArrayBuffer[]; type: EncodedAudioChunkType; } interface EncodedAudioChunkMetadata { decoderConfig?: AudioDecoderConfig; } 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; leftTrigger?: number; rightTrigger?: number; startDelay?: number; strongMagnitude?: number; weakMagnitude?: number; } interface GamepadEventInit extends EventInit { gamepad: Gamepad; } interface GetAnimationsOptions { subtree?: boolean; } interface GetComposedRangesOptions { shadowRoots?: ShadowRoot[]; } interface GetHTMLOptions { serializableShadowRoots?: boolean; shadowRoots?: ShadowRoot[]; } 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 ImageDecodeOptions { completeFramesOnly?: boolean; frameIndex?: number; } interface ImageDecodeResult { complete: boolean; image: VideoFrame; } interface ImageDecoderInit { colorSpaceConversion?: ColorSpaceConversion; data: ImageBufferSource; desiredHeight?: number; desiredWidth?: number; preferAnimation?: boolean; transfer?: ArrayBuffer[]; type: string; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportNodeOptions { customElementRegistry?: CustomElementRegistry; selfOnly?: boolean; } interface InputEventInit extends UIEventInit { data?: string | null; dataTransfer?: DataTransfer | null; inputType?: string; isComposing?: boolean; targetRanges?: StaticRange[]; } 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 KeySystemTrackConfiguration { robustness?: 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 { keySystemAccess: MediaKeySystemAccess | null; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { } interface MediaCapabilitiesInfo { powerEfficient: boolean; smooth: boolean; supported: boolean; } interface MediaCapabilitiesKeySystemConfiguration { audio?: KeySystemTrackConfiguration; distinctiveIdentifier?: MediaKeysRequirement; initDataType?: string; keySystem: string; persistentState?: MediaKeysRequirement; sessionTypes?: string[]; video?: KeySystemTrackConfiguration; } interface MediaConfiguration { audio?: AudioConfiguration; video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration; 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 MediaKeysPolicy { minHdcpVersion?: 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 MediaSettingsRange { max?: number; min?: number; step?: 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[]; backgroundBlur?: 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; backgroundBlur?: 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; backgroundBlur?: boolean; channelCount?: number; deviceId?: string; displaySurface?: string; echoCancellation?: boolean; facingMode?: string; frameRate?: number; groupId?: string; height?: number; noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; torch?: boolean; whiteBalanceMode?: string; width?: number; zoom?: number; } interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; backgroundBlur?: 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 OpusEncoderConfig { complexity?: number; format?: OpusBitstreamFormat; frameDuration?: number; packetlossperc?: number; usedtx?: boolean; useinbandfec?: boolean; } interface OscillatorOptions extends AudioNodeOptions { detune?: number; frequency?: number; periodicWave?: PeriodicWave; type?: OscillatorType; } interface PageRevealEventInit extends EventInit { viewTransition?: ViewTransition | null; } interface PageSwapEventInit extends EventInit { activation?: NavigationActivation | null; viewTransition?: ViewTransition | null; } 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 PayerErrors { email?: string; name?: string; phone?: string; } interface PaymentCurrencyAmount { currency: string; value: string; } interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; shippingOptions?: PaymentShippingOption[]; } interface PaymentDetailsInit extends PaymentDetailsBase { id?: string; total: PaymentItem; } interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { error?: string; paymentMethodErrors?: any; shippingAddressErrors?: AddressErrors; 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 PaymentOptions { requestPayerEmail?: boolean; requestPayerName?: boolean; requestPayerPhone?: boolean; requestShipping?: boolean; shippingType?: PaymentShippingType; } interface PaymentRequestUpdateEventInit extends EventInit { } interface PaymentShippingOption { amount: PaymentCurrencyAmount; id: string; label: string; selected?: boolean; } interface PaymentValidationErrors { error?: string; payer?: PayerErrors; shippingAddress?: AddressErrors; } 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 PhotoCapabilities { fillLightMode?: FillLightMode[]; imageHeight?: MediaSettingsRange; imageWidth?: MediaSettingsRange; redEyeReduction?: RedEyeReduction; } interface PhotoSettings { fillLightMode?: FillLightMode; imageHeight?: number; imageWidth?: number; redEyeReduction?: boolean; } interface PictureInPictureEventInit extends EventInit { pictureInPictureWindow: PictureInPictureWindow; } interface PlaneLayout { offset: number; stride: number; } interface PointerEventInit extends MouseEventInit { altitudeAngle?: number; azimuthAngle?: number; 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 PointerLockOptions { unadjustedMovement?: boolean; } 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 PublicKeyCredentialCreationOptionsJSON { attestation?: string; authenticatorSelection?: AuthenticatorSelectionCriteria; challenge: Base64URLString; excludeCredentials?: PublicKeyCredentialDescriptorJSON[]; extensions?: AuthenticationExtensionsClientInputsJSON; hints?: string[]; pubKeyCredParams: PublicKeyCredentialParameters[]; rp: PublicKeyCredentialRpEntity; timeout?: number; user: PublicKeyCredentialUserEntityJSON; } interface PublicKeyCredentialDescriptor { id: BufferSource; transports?: AuthenticatorTransport[]; type: PublicKeyCredentialType; } interface PublicKeyCredentialDescriptorJSON { id: Base64URLString; transports?: string[]; type: string; } 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 PublicKeyCredentialRequestOptionsJSON { allowCredentials?: PublicKeyCredentialDescriptorJSON[]; challenge: Base64URLString; extensions?: AuthenticationExtensionsClientInputsJSON; hints?: string[]; rpId?: string; timeout?: number; userVerification?: string; } interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { id?: string; } interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { displayName: string; id: BufferSource; } interface PublicKeyCredentialUserEntityJSON { displayName: string; id: Base64URLString; name: string; } 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 extends RTCEncodedFrameMetadata { sequenceNumber?: number; } interface RTCEncodedFrameMetadata { contributingSources?: number[]; mimeType?: string; payloadType?: number; rtpTimestamp?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata { dependencies?: number[]; frameId?: number; height?: number; spatialIndex?: 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 RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; bytesDiscardedOnSend?: number; bytesReceived?: number; bytesSent?: number; consentRequestsSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; packetsDiscardedOnSend?: number; packetsReceived?: number; packetsSent?: number; 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; fecBytesReceived?: number; fecPacketsDiscarded?: number; fecPacketsReceived?: number; fecSsrc?: number; firCount?: number; frameHeight?: number; frameWidth?: number; framesAssembledFromMultiplePackets?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; framesRendered?: number; freezeCount?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; jitterBufferMinimumDelay?: number; jitterBufferTargetDelay?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; pauseCount?: number; playoutId?: string; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; retransmittedBytesReceived?: number; retransmittedPacketsReceived?: number; rtxSsrc?: number; silentConcealedSamples?: number; totalAssemblyTime?: number; totalAudioEnergy?: number; totalDecodeTime?: number; totalFreezesDuration?: number; totalInterFrameDelay?: number; totalPausesDuration?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; totalSquaredInterFrameDelay?: number; trackIdentifier: string; } interface RTCLocalIceCandidateInit extends RTCIceCandidateInit { } interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; } interface RTCOfferAnswerOptions { } interface RTCOfferOptions extends RTCOfferAnswerOptions { iceRestart?: boolean; offerToReceiveAudio?: boolean; offerToReceiveVideo?: boolean; } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { active?: boolean; firCount?: number; frameHeight?: number; frameWidth?: number; framesEncoded?: number; framesPerSecond?: number; framesSent?: number; headerBytesSent?: number; hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; mid?: string; nackCount?: number; pliCount?: number; qpSum?: number; qualityLimitationDurations?: Record; qualityLimitationReason?: RTCQualityLimitationReason; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; scalabilityMode?: string; 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; } interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { jitter?: number; packetsLost?: number; packetsReceived?: number; } interface RTCRtcpParameters { cname?: string; reducedSize?: boolean; } interface RTCRtpCapabilities { codecs: RTCRtpCodec[]; headerExtensions: RTCRtpHeaderExtensionCapability[]; } interface RTCRtpCodec { channels?: number; clockRate: number; mimeType: string; sdpFmtpLine?: string; } 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; dtlsRole?: RTCDtlsRole; dtlsState: RTCDtlsTransportState; iceLocalUsernameFragment?: string; iceRole?: RTCIceRole; iceState?: RTCIceTransportState; localCertificateId?: string; packetsReceived?: number; packetsSent?: number; remoteCertificateId?: string; selectedCandidatePairChanges?: number; 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 ReadableStreamIteratorOptions { /** * Asynchronously iterates over the chunks in the stream's internal queue. * * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop. * * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option. */ preventCancel?: boolean; } interface ReadableStreamReadDoneResult { done: true; value: T | undefined; } 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 { clonable?: boolean; customElementRegistry?: CustomElementRegistry; delegatesFocus?: boolean; mode: ShadowRootMode; serializable?: boolean; 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 StartViewTransitionOptions { types?: string[] | null; update?: ViewTransitionUpdateCallback | null; } 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; hasAlphaChannel?: boolean; 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; contentHint?: string; displayHeight?: number; displayWidth?: number; framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; } interface VideoEncoderEncodeOptions { avc?: VideoEncoderEncodeOptionsForAvc; keyFrame?: boolean; } interface VideoEncoderEncodeOptionsForAvc { quantizer?: number | null; } 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 { colorSpace?: PredefinedColorSpace; format?: VideoPixelFormat; 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 WebTransportSendOptions { sendOrder?: number; } interface WebTransportSendStreamOptions extends WebTransportSendOptions { } 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 { /** * The **\`ANGLE_instanced_arrays.drawArraysInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; /** * The **\`ANGLE_instanced_arrays.drawElementsInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method. * * [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; /** * The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE(). * * [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/ariaActiveDescendantElement) */ ariaActiveDescendantElement: Element | null; /** [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/ariaBrailleLabel) */ ariaBrailleLabel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */ ariaBrailleRoleDescription: 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/ariaColIndexText) */ ariaColIndexText: 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/ariaControlsElements) */ ariaControlsElements: ReadonlyArray | 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/ariaDescribedByElements) */ ariaDescribedByElements: ReadonlyArray | 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/ariaDetailsElements) */ ariaDetailsElements: ReadonlyArray | 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/ariaErrorMessageElements) */ ariaErrorMessageElements: ReadonlyArray | 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/ariaFlowToElements) */ ariaFlowToElements: ReadonlyArray | 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid) */ 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/ariaLabelledByElements) */ ariaLabelledByElements: ReadonlyArray | 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/ariaOwnsElements) */ ariaOwnsElements: ReadonlyArray | 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/ariaRelevant) */ ariaRelevant: 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/ariaRowIndexText) */ ariaRowIndexText: 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/role) */ role: string | null; } /** * The **\`AbortController\`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) */ interface AbortController { /** * The **\`signal\`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) */ readonly signal: AbortSignal; /** * The **\`abort()\`** method of the AbortController interface aborts an asynchronous operation before it has completed. * * [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; } /** * The **\`AbortSignal\`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) */ interface AbortSignal extends EventTarget { /** * The **\`aborted\`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (\`true\`) or not (\`false\`). * * [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; /** * The **\`reason\`** read-only property returns a JavaScript value that indicates the abort reason. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ readonly reason: any; /** * The **\`throwIfAborted()\`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing. * * [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; /** * The **\`AbortSignal.abort()\`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ abort(reason?: any): AbortSignal; /** * The **\`AbortSignal.any()\`** static method takes an iterable of abort signals and returns an AbortSignal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ any(signals: AbortSignal[]): AbortSignal; /** * The **\`AbortSignal.timeout()\`** static method returns an AbortSignal that will automatically abort after a specified time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; /** * The **\`AbstractRange\`** abstract interface is the base class upon which all DOM range types are defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ interface AbstractRange { /** * The read-only **\`collapsed\`** property of the AbstractRange interface returns \`true\` if the range's start position and end position are the same. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) */ readonly collapsed: boolean; /** * The read-only **\`endContainer\`** property of the AbstractRange interface returns the Node in which the end of the range is located. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) */ readonly endContainer: Node; /** * The **\`endOffset\`** property of the AbstractRange interface returns the offset into the end node of the range's end position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) */ readonly endOffset: number; /** * The read-only **\`startContainer\`** property of the AbstractRange interface returns the start Node for the range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) */ readonly startContainer: Node; /** * The read-only **\`startOffset\`** property of the AbstractRange interface returns the offset into the start node of the range's start position. * * [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; } /** * The **\`AnalyserNode\`** interface represents a node able to provide real-time frequency and time-domain analysis information. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) */ interface AnalyserNode extends AudioNode { /** * The **\`fftSize\`** property of the AnalyserNode interface is an unsigned long value and represents the window size in samples that is used when performing a Fast Fourier Transform (FFT) to get frequency domain data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ fftSize: number; /** * The **\`frequencyBinCount\`** read-only property of the AnalyserNode interface contains the total number of data points available to AudioContext BaseAudioContext.sampleRate. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ readonly frequencyBinCount: number; /** * The **\`maxDecibels\`** property of the AnalyserNode interface is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using \`getByteFrequencyData()\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ maxDecibels: number; /** * The **\`minDecibels\`** property of the AnalyserNode interface is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when using \`getByteFrequencyData()\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ minDecibels: number; /** * The **\`smoothingTimeConstant\`** property of the AnalyserNode interface is a double value representing the averaging constant with the last analysis frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ smoothingTimeConstant: number; /** * The **\`getByteFrequencyData()\`** method of the AnalyserNode interface copies the current frequency data into a Uint8Array (unsigned byte array) passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ getByteFrequencyData(array: Uint8Array): void; /** * The **\`getByteTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ getByteTimeDomainData(array: Uint8Array): void; /** * The **\`getFloatFrequencyData()\`** method of the AnalyserNode Interface copies the current frequency data into a Float32Array array passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ getFloatFrequencyData(array: Float32Array): void; /** * The **\`getFloatTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Float32Array array passed into it. * * [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": AnimationPlaybackEvent; } /** * The **\`Animation\`** interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ interface Animation extends EventTarget { /** * The **\`Animation.currentTime\`** property of the Web Animations API returns and sets the current time value of the animation in milliseconds, whether running or paused. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ currentTime: CSSNumberish | null; /** * The **\`Animation.effect\`** property of the Web Animations API gets and sets the target effect of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ effect: AnimationEffect | null; /** * The **\`Animation.finished\`** read-only property of the Web Animations API returns a Promise which resolves once the animation has finished playing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ readonly finished: Promise; /** * The **\`Animation.id\`** property of the Web Animations API returns or sets a string used to identify the animation. * * [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: AnimationPlaybackEvent) => any) | null; /** * The read-only **\`Animation.pending\`** property of the Web Animations API indicates whether the animation is currently waiting for an asynchronous operation such as initiating playback or pausing a running animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ readonly pending: boolean; /** * The read-only **\`Animation.playState\`** property of the Web Animations API returns an enumerated value describing the playback state of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ readonly playState: AnimationPlayState; /** * The **\`Animation.playbackRate\`** property of the Web Animations API returns or sets the playback rate of the animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ playbackRate: number; /** * The read-only **\`Animation.ready\`** property of the Web Animations API returns a Promise which resolves when the animation is ready to play. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ readonly ready: Promise; /** * The read-only **\`Animation.replaceState\`** property of the Web Animations API indicates whether the animation has been removed by the browser automatically after being replaced by another animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ readonly replaceState: AnimationReplaceState; /** * The **\`Animation.startTime\`** property of the Animation interface is a double-precision floating-point value which indicates the scheduled time when an animation's playback should begin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ startTime: CSSNumberish | null; /** * The **\`Animation.timeline\`** property of the Animation interface returns or sets the AnimationTimeline associated with this animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ timeline: AnimationTimeline | null; /** * The Web Animations API's **\`cancel()\`** method of the Animation interface clears all KeyframeEffects caused by this animation and aborts its playback. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ cancel(): void; /** * The \`commitStyles()\` method of the Web Animations API's Animation interface writes the computed values of the animation's current styles into its target element's \`style\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ commitStyles(): void; /** * The **\`finish()\`** method of the Web Animations API's Animation Interface sets the current playback time to the end of the animation corresponding to the current playback direction. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ finish(): void; /** * The **\`pause()\`** method of the Web Animations API's Animation interface suspends playback of the animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ pause(): void; /** * The \`persist()\` method of the Web Animations API's Animation interface explicitly persists an animation, preventing it from being automatically removed when it is replaced by another animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ persist(): void; /** * The **\`play()\`** method of the Web Animations API's Animation Interface starts or resumes playing of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ play(): void; /** * The **\`Animation.reverse()\`** method of the Animation Interface reverses the playback direction, meaning the animation ends at its beginning. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ reverse(): void; /** * The **\`updatePlaybackRate()\`** method of the Web Animations API's synchronizing its playback position. * * [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; }; /** * The \`AnimationEffect\` interface of the Web Animations API is an interface representing animation effects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ interface AnimationEffect { /** * The \`getComputedTiming()\` method of the AnimationEffect interface returns the calculated timing properties for this animation effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ getComputedTiming(): ComputedEffectTiming; /** * The \`AnimationEffect.getTiming()\` method of the AnimationEffect interface returns an object containing the timing properties for the Animation Effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ getTiming(): EffectTiming; /** * The \`updateTiming()\` method of the AnimationEffect interface updates the specified timing properties for an animation effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ updateTiming(timing?: OptionalEffectTiming): void; } declare var AnimationEffect: { prototype: AnimationEffect; new(): AnimationEffect; }; /** * The **\`AnimationEvent\`** interface represents events providing information related to animations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { /** * The **\`AnimationEvent.animationName\`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ readonly animationName: string; /** * The **\`AnimationEvent.elapsedTime\`** read-only property is a \`float\` giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ readonly elapsedTime: number; /** * The **\`AnimationEvent.pseudoElement\`** read-only property is a string, starting with \`'::'\`, containing the name of the pseudo-element the animation runs on. * * [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; } /** * The AnimationPlaybackEvent interface of the Web Animations API represents animation events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ interface AnimationPlaybackEvent extends Event { /** * The **\`currentTime\`** read-only property of the AnimationPlaybackEvent interface represents the current time of the animation that generated the event at the moment the event is queued. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ readonly currentTime: CSSNumberish | null; /** * The **\`timelineTime\`** read-only property of the AnimationPlaybackEvent interface represents the time value of the animation's AnimationTimeline at the moment the event is queued. * * [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; }; /** * The \`AnimationTimeline\` interface of the Web Animations API represents the timeline of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ interface AnimationTimeline { /** * The **\`currentTime\`** read-only property of the Web Animations API's AnimationTimeline interface returns the timeline's current time in milliseconds, or \`null\` if the timeline is inactive. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ readonly currentTime: CSSNumberish | null; } declare var AnimationTimeline: { prototype: AnimationTimeline; new(): AnimationTimeline; }; /** * The **\`Attr\`** interface represents one of an element's attributes as an object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) */ interface Attr extends Node { /** * The read-only **\`localName\`** property of the Attr interface returns the _local part_ of the _qualified name_ of an attribute, that is the name of the attribute, stripped from any namespace in front of it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ readonly localName: string; /** * The read-only **\`name\`** property of the Attr interface returns the _qualified name_ of an attribute, that is the name of the attribute, with the namespace prefix, if any, in front of it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ readonly name: string; /** * The read-only **\`namespaceURI\`** property of the Attr interface returns the namespace URI of the attribute, or \`null\` if the element is not in a namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ readonly namespaceURI: string | null; readonly ownerDocument: Document; /** * The read-only **\`ownerElement\`** property of the Attr interface returns the Element the attribute belongs to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ readonly ownerElement: Element | null; /** * The read-only **\`prefix\`** property of the Attr returns the namespace prefix of the attribute, or \`null\` if no prefix is specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ readonly prefix: string | null; /** * The read-only **\`specified\`** property of the Attr interface always returns \`true\`. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) */ readonly specified: boolean; /** * The **\`value\`** property of the Attr interface contains the value of the attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ value: string; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | null); } declare var Attr: { prototype: Attr; new(): Attr; }; /** * The **\`AudioBuffer\`** interface represents a short audio asset residing in memory, created from an audio file using the BaseAudioContext/decodeAudioData method, or from raw data using BaseAudioContext/createBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) */ interface AudioBuffer { /** * The **\`duration\`** property of the AudioBuffer interface returns a double representing the duration, in seconds, of the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ readonly duration: number; /** * The **\`length\`** property of the AudioBuffer interface returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ readonly length: number; /** * The \`numberOfChannels\` property of the AudioBuffer interface returns an integer representing the number of discrete audio channels described by the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ readonly numberOfChannels: number; /** * The **\`sampleRate\`** property of the AudioBuffer interface returns a float representing the sample rate, in samples per second, of the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ readonly sampleRate: number; /** * The **\`copyFromChannel()\`** method of the channel of the \`AudioBuffer\` to a specified \`\`\`js-nolint copyFromChannel(destination, channelNumber, startInChannel) \`\`\` - \`destination\` - : A Float32Array to copy the channel's samples to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; /** * The \`copyToChannel()\` method of the AudioBuffer interface copies the samples to the specified channel of the \`AudioBuffer\`, from the source array. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; /** * The **\`getChannelData()\`** method of the AudioBuffer Interface returns a Float32Array containing the PCM data associated with the channel, defined by the channel parameter (with 0 representing the first channel). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ getChannelData(channel: number): Float32Array; } declare var AudioBuffer: { prototype: AudioBuffer; new(options: AudioBufferOptions): AudioBuffer; }; /** * The **\`AudioBufferSourceNode\`** interface is an AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { /** * The **\`buffer\`** property of the AudioBufferSourceNode interface provides the ability to play back audio using an AudioBuffer as the source of the sound data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ buffer: AudioBuffer | null; /** * The **\`detune\`** property of the representing detuning of oscillation in cents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ readonly detune: AudioParam; /** * The \`loop\` property of the AudioBufferSourceNode interface is a Boolean indicating if the audio asset must be replayed when the end of the AudioBuffer is reached. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ loop: boolean; /** * The \`loopEnd\` property of the AudioBufferSourceNode interface specifies is a floating point number specifying, in seconds, at what offset into playing the AudioBuffer playback should loop back to the time indicated by the AudioBufferSourceNode.loopStart property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ loopEnd: number; /** * The **\`loopStart\`** property of the AudioBufferSourceNode interface is a floating-point value indicating, in seconds, where in the AudioBuffer the restart of the play must happen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ loopStart: number; /** * The **\`playbackRate\`** property of the AudioBufferSourceNode interface Is a k-rate AudioParam that defines the speed at which the audio asset will be played. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ readonly playbackRate: AudioParam; /** * The \`start()\` method of the AudioBufferSourceNode Interface is used to schedule playback of the audio data contained in the buffer, or to begin playback immediately. * * [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; }; /** * The \`AudioContext\` interface represents 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 { /** * The **\`baseLatency\`** read-only property of the seconds of processing latency incurred by the \`AudioContext\` passing an audio buffer from the AudioDestinationNode — i.e., the end of the audio graph — into the host system's audio subsystem ready for playing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ readonly baseLatency: number; /** * The **\`outputLatency\`** read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ readonly outputLatency: number; /** * The \`close()\` method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ close(): Promise; /** * The \`createMediaElementSource()\` method of the AudioContext Interface is used to create a new MediaElementAudioSourceNode object, given an existing HTML audio or video element, the audio from which can then be played and manipulated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; /** * The \`createMediaStreamDestination()\` method of the AudioContext Interface is used to create a new MediaStreamAudioDestinationNode object associated with a WebRTC MediaStream representing an audio stream, which may be stored in a local file or sent to another computer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ createMediaStreamDestination(): MediaStreamAudioDestinationNode; /** * The \`createMediaStreamSource()\` method of the AudioContext Interface is used to create a new MediaStreamAudioSourceNode object, given a media stream (say, from a MediaDevices.getUserMedia instance), the audio from which can then be played and manipulated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; /** * The **\`getOutputTimestamp()\`** method of the containing two audio timestamp values relating to the current audio context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ getOutputTimestamp(): AudioTimestamp; /** * The **\`resume()\`** method of the AudioContext interface resumes the progression of time in an audio context that has previously been suspended. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ resume(): Promise; /** * The \`suspend()\` method of the AudioContext Interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while. * * [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; }; /** * The **\`AudioData\`** interface of the WebCodecs API represents an audio sample. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData) */ interface AudioData { /** * The **\`duration\`** read-only property of the AudioData interface returns the duration in microseconds of this \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) */ readonly duration: number; /** * The **\`format\`** read-only property of the AudioData interface returns the sample format of the \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) */ readonly format: AudioSampleFormat | null; /** * The **\`numberOfChannels\`** read-only property of the AudioData interface returns the number of channels in the \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) */ readonly numberOfChannels: number; /** * The **\`numberOfFrames\`** read-only property of the AudioData interface returns the number of frames in the \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) */ readonly numberOfFrames: number; /** * The **\`sampleRate\`** read-only property of the AudioData interface returns the sample rate in Hz. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) */ readonly sampleRate: number; /** * The **\`timestamp\`** read-only property of the AudioData interface returns the timestamp of this \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) */ readonly timestamp: number; /** * The **\`allocationSize()\`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) */ allocationSize(options: AudioDataCopyToOptions): number; /** * The **\`clone()\`** method of the AudioData interface creates a new \`AudioData\` object with reference to the same media resource as the original. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) */ clone(): AudioData; /** * The **\`close()\`** method of the AudioData interface clears all states and releases the reference to the media resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) */ close(): void; /** * The **\`copyTo()\`** method of the AudioData interface copies a plane of an \`AudioData\` object to a destination buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) */ copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void; } declare var AudioData: { prototype: AudioData; new(init: AudioDataInit): AudioData; }; interface AudioDecoderEventMap { "dequeue": Event; } /** * The **\`AudioDecoder\`** interface of the WebCodecs API decodes chunks of audio. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder) */ interface AudioDecoder extends EventTarget { /** * The **\`decodeQueueSize\`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize) */ readonly decodeQueueSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */ ondequeue: ((this: AudioDecoder, ev: Event) => any) | null; /** * The **\`state\`** read-only property of the AudioDecoder interface returns the current state of the underlying codec. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) */ readonly state: CodecState; /** * The **\`close()\`** method of the AudioDecoder interface ends all pending work and releases system resources. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) */ close(): void; /** * The **\`configure()\`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) */ configure(config: AudioDecoderConfig): void; /** * The **\`decode()\`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) */ decode(chunk: EncodedAudioChunk): void; /** * The **\`flush()\`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) */ flush(): Promise; /** * The **\`reset()\`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) */ reset(): void; addEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioDecoder: { prototype: AudioDecoder; new(init: AudioDecoderInit): AudioDecoder; /** * The **\`isConfigSupported()\`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) */ isConfigSupported(config: AudioDecoderConfig): Promise; }; /** * The \`AudioDestinationNode\` interface represents the end destination of an audio graph in a given context — usually the speakers of your device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) */ interface AudioDestinationNode extends AudioNode { /** * The \`maxChannelCount\` property of the AudioDestinationNode interface is an \`unsigned long\` defining the maximum amount of channels that the physical device can handle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ readonly maxChannelCount: number; } declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; }; interface AudioEncoderEventMap { "dequeue": Event; } /** * The **\`AudioEncoder\`** interface of the WebCodecs API encodes AudioData objects. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder) */ interface AudioEncoder extends EventTarget { /** * The **\`encodeQueueSize\`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize) */ readonly encodeQueueSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */ ondequeue: ((this: AudioEncoder, ev: Event) => any) | null; /** * The **\`state\`** read-only property of the AudioEncoder interface returns the current state of the underlying codec. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) */ readonly state: CodecState; /** * The **\`close()\`** method of the AudioEncoder interface ends all pending work and releases system resources. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) */ close(): void; /** * The **\`configure()\`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) */ configure(config: AudioEncoderConfig): void; /** * The **\`encode()\`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) */ encode(data: AudioData): void; /** * The **\`flush()\`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) */ flush(): Promise; /** * The **\`reset()\`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) */ reset(): void; addEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioEncoder: { prototype: AudioEncoder; new(init: AudioEncoderInit): AudioEncoder; /** * The **\`isConfigSupported()\`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) */ isConfigSupported(config: AudioEncoderConfig): Promise; }; /** * The \`AudioListener\` interface represents the position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) */ interface AudioListener { /** * The \`forwardX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the forward direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ readonly forwardX: AudioParam; /** * The \`forwardY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the forward direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ readonly forwardY: AudioParam; /** * The \`forwardZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the forward direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ readonly forwardZ: AudioParam; /** * The \`positionX\` read-only property of the AudioListener interface is an AudioParam representing the x position of the listener in 3D cartesian space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ readonly positionX: AudioParam; /** * The \`positionY\` read-only property of the AudioListener interface is an AudioParam representing the y position of the listener in 3D cartesian space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ readonly positionY: AudioParam; /** * The \`positionZ\` read-only property of the AudioListener interface is an AudioParam representing the z position of the listener in 3D cartesian space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ readonly positionZ: AudioParam; /** * The \`upX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the up direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ readonly upX: AudioParam; /** * The \`upY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the up direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ readonly upY: AudioParam; /** * The \`upZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the up direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ readonly upZ: AudioParam; /** * The \`setOrientation()\` method of the AudioListener interface defines the orientation of the listener. * @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; /** * The \`setPosition()\` method of the AudioListener Interface defines the position of the listener. * @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; }; /** * The **\`AudioNode\`** interface is a generic interface for representing an audio processing module. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) */ interface AudioNode extends EventTarget { /** * The **\`channelCount\`** property of the AudioNode interface represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ channelCount: number; /** * The \`channelCountMode\` property of the AudioNode interface represents an enumerated value describing the way channels must be matched between the node's inputs and outputs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ channelCountMode: ChannelCountMode; /** * The **\`channelInterpretation\`** property of the AudioNode interface represents an enumerated value describing how input channels are mapped to output channels when the number of inputs/outputs is different. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ channelInterpretation: ChannelInterpretation; /** * The read-only \`context\` property of the the node is participating in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ readonly context: BaseAudioContext; /** * The \`numberOfInputs\` property of the AudioNode interface returns the number of inputs feeding the node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ readonly numberOfInputs: number; /** * The \`numberOfOutputs\` property of the AudioNode interface returns the number of outputs coming out of the node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ readonly numberOfOutputs: number; /** * The \`connect()\` method of the AudioNode interface lets you connect one of the node's outputs to a target, which may be either another \`AudioNode\` (thereby directing the sound data to the specified node) or an change the value of that parameter over time. * * [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; /** * The **\`disconnect()\`** method of the AudioNode interface lets you disconnect one or more nodes from the node on which the method is called. * * [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 { automationRate: AutomationRate; /** * The **\`defaultValue\`** read-only property of the AudioParam interface represents the initial value of the attributes as defined by the specific AudioNode creating the \`AudioParam\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ readonly defaultValue: number; /** * The **\`maxValue\`** read-only property of the AudioParam interface represents the maximum possible value for the parameter's nominal (effective) range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ readonly maxValue: number; /** * The **\`minValue\`** read-only property of the AudioParam interface represents the minimum possible value for the parameter's nominal (effective) range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ readonly minValue: number; /** * The **\`value\`** property of the AudioParam interface gets or sets the value of this \`AudioParam\` at the current time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ value: number; /** * The **\`cancelAndHoldAtTime()\`** method of the \`AudioParam\` but holds its value at a given time until further changes are made using other methods. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ cancelAndHoldAtTime(cancelTime: number): AudioParam; /** * The \`cancelScheduledValues()\` method of the AudioParam Interface cancels all scheduled future changes to the \`AudioParam\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ cancelScheduledValues(cancelTime: number): AudioParam; /** * The **\`exponentialRampToValueAtTime()\`** method of the AudioParam Interface schedules a gradual exponential change in the value of the AudioParam. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; /** * The \`linearRampToValueAtTime()\` method of the AudioParam Interface schedules a gradual linear change in the value of the \`AudioParam\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ linearRampToValueAtTime(value: number, endTime: number): AudioParam; /** * The \`setTargetAtTime()\` method of the \`AudioParam\` value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; /** * The \`setValueAtTime()\` method of the \`AudioParam\` value at a precise time, as measured against \`\`\`js-nolint setValueAtTime(value, startTime) \`\`\` - \`value\` - : A floating point number representing the value the AudioParam will change to at the given time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ setValueAtTime(value: number, startTime: number): AudioParam; /** * The **\`setValueCurveAtTime()\`** method of the following a curve defined by a list of values. * * [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; }; /** * The **\`AudioParamMap\`** interface of the Web Audio API represents an iterable and read-only set of multiple audio parameters. * * [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 \`AudioProcessingEvent\` interface of the Web Audio API represents 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 { /** * The **\`inputBuffer\`** read-only property of the AudioProcessingEvent interface represents the input buffer of an audio processing event. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) */ readonly inputBuffer: AudioBuffer; /** * The **\`outputBuffer\`** read-only property of the AudioProcessingEvent interface represents the output buffer of an audio processing event. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) */ readonly outputBuffer: AudioBuffer; /** * The **\`playbackTime\`** read-only property of the AudioProcessingEvent interface represents the time when the audio will be played. * @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; } /** * The \`AudioScheduledSourceNode\` interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times. * * [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; /** * The \`start()\` method on AudioScheduledSourceNode schedules a sound to begin playback at the specified time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ start(when?: number): void; /** * The \`stop()\` method on AudioScheduledSourceNode schedules a sound to cease playback at the specified time. * * [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; }; /** * The **\`AudioWorklet\`** interface of the Web Audio API is used to supply custom audio processing scripts that execute in a separate thread to provide very low latency audio processing. * 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": ErrorEvent; } /** * The **\`AudioWorkletNode\`** interface of the Web Audio API represents a base class for a user-defined AudioNode, which can be connected to an audio routing graph along with other nodes. * 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: ErrorEvent) => any) | null; /** * The read-only **\`parameters\`** property of the underlying AudioWorkletProcessor according to its getter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ readonly parameters: AudioParamMap; /** * The read-only **\`port\`** property of the associated AudioWorkletProcessor. * * [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; }; /** * The **\`AuthenticatorAssertionResponse\`** interface of the Web Authentication API contains a digital signature from the private key of a particular WebAuthn credential. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) */ interface AuthenticatorAssertionResponse extends AuthenticatorResponse { /** * The **\`authenticatorData\`** property of the AuthenticatorAssertionResponse interface returns an ArrayBuffer containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ readonly authenticatorData: ArrayBuffer; /** * The **\`signature\`** read-only property of the object which is the signature of the authenticator for both the client data (AuthenticatorResponse.clientDataJSON). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ readonly signature: ArrayBuffer; /** * The **\`userHandle\`** read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object providing an opaque identifier for the given user. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { prototype: AuthenticatorAssertionResponse; new(): AuthenticatorAssertionResponse; }; /** * The **\`AuthenticatorAttestationResponse\`** interface of the Web Authentication API is the result of a WebAuthn credential registration. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) */ interface AuthenticatorAttestationResponse extends AuthenticatorResponse { /** * The **\`attestationObject\`** property of the entire \`attestationObject\` with a private key that is stored in the authenticator when it is manufactured. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ readonly attestationObject: ArrayBuffer; /** * The **\`getAuthenticatorData()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the authenticator data contained within the AuthenticatorAttestationResponse.attestationObject property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ getAuthenticatorData(): ArrayBuffer; /** * The **\`getPublicKey()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the DER \`SubjectPublicKeyInfo\` of the new credential (see Subject Public Key Info), or \`null\` if this is not available. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ getPublicKey(): ArrayBuffer | null; /** * The **\`getPublicKeyAlgorithm()\`** method of the AuthenticatorAttestationResponse interface returns a number that is equal to a COSE Algorithm Identifier, representing the cryptographic algorithm used for the new credential. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; /** * The **\`getTransports()\`** method of the AuthenticatorAttestationResponse interface returns an array of strings describing the different transports which may be used by the authenticator. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ getTransports(): string[]; } declare var AuthenticatorAttestationResponse: { prototype: AuthenticatorAttestationResponse; new(): AuthenticatorAttestationResponse; }; /** * The **\`AuthenticatorResponse\`** interface of the Web Authentication API is the base interface for interfaces that provide a cryptographic root of trust for a key pair. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) */ interface AuthenticatorResponse { /** * The **\`clientDataJSON\`** property of the AuthenticatorResponse interface stores a JSON string in an An ArrayBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ readonly clientDataJSON: ArrayBuffer; } declare var AuthenticatorResponse: { prototype: AuthenticatorResponse; new(): AuthenticatorResponse; }; /** * The **\`BarProp\`** interface of the Document Object Model represents the web browser user interface elements that are exposed to scripts in web pages. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ interface BarProp { /** * The **\`visible\`** read-only property of the BarProp interface returns \`true\` if the user interface element it represents is visible. * * [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; } /** * The \`BaseAudioContext\` interface of the Web Audio API acts as a base definition for online and offline audio-processing graphs, as represented by AudioContext and OfflineAudioContext respectively. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ interface BaseAudioContext extends EventTarget { /** * The \`audioWorklet\` read-only property of the processing. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) */ readonly audioWorklet: AudioWorklet; /** * The \`currentTime\` read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ readonly currentTime: number; /** * The \`destination\` property of the BaseAudioContext interface returns an AudioDestinationNode representing the final destination of all audio in the context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ readonly destination: AudioDestinationNode; /** * The \`listener\` property of the BaseAudioContext interface returns an AudioListener object that can then be used for implementing 3D audio spatialization. * * [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; /** * The \`sampleRate\` property of the BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ readonly sampleRate: number; /** * The \`state\` read-only property of the BaseAudioContext interface returns the current state of the \`AudioContext\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ readonly state: AudioContextState; /** * The \`createAnalyser()\` method of the can be used to expose audio time and frequency data and create data visualizations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ createAnalyser(): AnalyserNode; /** * The \`createBiquadFilter()\` method of the BaseAudioContext interface creates a BiquadFilterNode, which represents a second order filter configurable as several different common filter types. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ createBiquadFilter(): BiquadFilterNode; /** * The \`createBuffer()\` method of the BaseAudioContext Interface is used to create a new, empty AudioBuffer object, which can then be populated by data, and played via an AudioBufferSourceNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; /** * The \`createBufferSource()\` method of the BaseAudioContext Interface is used to create a new AudioBufferSourceNode, which can be used to play audio data contained within an AudioBuffer object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ createBufferSource(): AudioBufferSourceNode; /** * The \`createChannelMerger()\` method of the BaseAudioContext interface creates a ChannelMergerNode, which combines channels from multiple audio streams into a single audio stream. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ createChannelMerger(numberOfInputs?: number): ChannelMergerNode; /** * The \`createChannelSplitter()\` method of the BaseAudioContext Interface is used to create a ChannelSplitterNode, which is used to access the individual channels of an audio stream and process them separately. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; /** * The **\`createConstantSource()\`** property of the BaseAudioContext interface creates a outputs a monaural (one-channel) sound signal whose samples all have the same value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ createConstantSource(): ConstantSourceNode; /** * The \`createConvolver()\` method of the BaseAudioContext interface creates a ConvolverNode, which is commonly used to apply reverb effects to your audio. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ createConvolver(): ConvolverNode; /** * The \`createDelay()\` method of the which is used to delay the incoming audio signal by a certain amount of time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ createDelay(maxDelayTime?: number): DelayNode; /** * The \`createDynamicsCompressor()\` method of the BaseAudioContext Interface is used to create a DynamicsCompressorNode, which can be used to apply compression to an audio signal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ createDynamicsCompressor(): DynamicsCompressorNode; /** * The \`createGain()\` method of the BaseAudioContext interface creates a GainNode, which can be used to control the overall gain (or volume) of the audio graph. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ createGain(): GainNode; /** * The **\`createIIRFilter()\`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; /** * The \`createOscillator()\` method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ createOscillator(): OscillatorNode; /** * The \`createPanner()\` method of the BaseAudioContext Interface is used to create a new PannerNode, which is used to spatialize an incoming audio stream in 3D space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ createPanner(): PannerNode; /** * The \`createPeriodicWave()\` method of the BaseAudioContext interface is used to create a PeriodicWave. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; /** * The \`createScriptProcessor()\` method of the BaseAudioContext interface creates a ScriptProcessorNode used for direct audio processing. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) */ createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; /** * The \`createStereoPanner()\` method of the BaseAudioContext interface creates a StereoPannerNode, which can be used to apply stereo panning to an audio source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ createStereoPanner(): StereoPannerNode; /** * The \`createWaveShaper()\` method of the BaseAudioContext interface creates a WaveShaperNode, which represents a non-linear distortion. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ createWaveShaper(): WaveShaperNode; /** * The \`decodeAudioData()\` method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an rate, then passed to a callback or promise. * * [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 **\`BeforeUnloadEvent\`** interface represents the event object for the Window/beforeunload_event event, which is fired when the current window, contained document, and associated resources are about to be unloaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ interface BeforeUnloadEvent extends Event { /** * The **\`returnValue\`** property of the \`returnValue\` is initialized to an empty string (\`''\`) value. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue) */ returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; }; /** * The \`BiquadFilterNode\` interface represents a simple low-order filter, and is created using the BaseAudioContext/createBiquadFilter method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) */ interface BiquadFilterNode extends AudioNode { /** * The \`Q\` property of the BiquadFilterNode interface is an a-rate AudioParam, a double representing a Q factor, or _quality factor_. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ readonly Q: AudioParam; /** * The \`detune\` property of the BiquadFilterNode interface is an a-rate AudioParam representing detuning of the frequency in cents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ readonly detune: AudioParam; /** * The \`frequency\` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing a frequency in the current filtering algorithm measured in hertz (Hz). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ readonly frequency: AudioParam; /** * The \`gain\` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing the gain used in the current filtering algorithm. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ readonly gain: AudioParam; /** * The \`type\` property of the BiquadFilterNode interface is a string (enum) value defining the kind of filtering algorithm the node is implementing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ type: BiquadFilterType; /** * The \`getFrequencyResponse()\` method of the BiquadFilterNode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies. * * [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; }; /** * The **\`Blob\`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) */ interface Blob { /** * The **\`size\`** read-only property of the Blob interface returns the size of the Blob or File in bytes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ readonly size: number; /** * The **\`type\`** read-only property of the Blob interface returns the MIME type of the file. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ readonly type: string; /** * The **\`arrayBuffer()\`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ arrayBuffer(): Promise; /** * The **\`bytes()\`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */ bytes(): Promise>; /** * The **\`slice()\`** method of the Blob interface creates and returns a new \`Blob\` object which contains data from a subset of the blob on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ slice(start?: number, end?: number, contentType?: string): Blob; /** * The **\`stream()\`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the \`Blob\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ stream(): ReadableStream>; /** * The **\`text()\`** method of the string containing the contents of the blob, interpreted as UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ text(): Promise; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; /** * The **\`BlobEvent\`** interface of the MediaStream Recording API represents events associated with a Blob. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ interface BlobEvent extends Event { /** * The **\`data\`** read-only property of the BlobEvent interface represents a Blob associated with the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ readonly data: Blob; /** * The **\`timecode\`** read-only property of the BlobEvent interface indicates the difference between the timestamp of the first chunk of data, and the timestamp of the first chunk in the first \`BlobEvent\` produced by this recorder. * * [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/bytes) */ bytes(): 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; } /** * The **\`BroadcastChannel\`** interface represents a named channel that any browsing context of a given origin can subscribe to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ interface BroadcastChannel extends EventTarget { /** * The **\`name\`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name. * * [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; /** * The **\`close()\`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) */ close(): void; /** * The **\`postMessage()\`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin. * * [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; }; /** * The **\`ByteLengthQueuingStrategy\`** interface of the Streams API 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 { /** * The read-only **\`ByteLengthQueuingStrategy.highWaterMark\`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied. * * [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; }; /** * The **\`CDATASection\`** interface represents a CDATA section that can be used within XML to include extended portions of unescaped text. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) */ interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; }; /** * The \`CSPViolationReportBody\` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody) */ interface CSPViolationReportBody extends ReportBody { /** * The **\`blockedURL\`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL) */ readonly blockedURL: string | null; /** * The **\`columnNumber\`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber) */ readonly columnNumber: number | null; /** * The **\`disposition\`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition) */ readonly disposition: SecurityPolicyViolationEventDisposition; /** * The **\`documentURL\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL) */ readonly documentURL: string; /** * The **\`effectiveDirective\`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective) */ readonly effectiveDirective: string; /** * The **\`lineNumber\`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber) */ readonly lineNumber: number | null; /** * The **\`originalPolicy\`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy) */ readonly originalPolicy: string; /** * The **\`referrer\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer) */ readonly referrer: string | null; /** * The **\`sample\`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample) */ readonly sample: string | null; /** * The **\`sourceFile\`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile) */ readonly sourceFile: string | null; /** * The **\`statusCode\`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode) */ readonly statusCode: number; /** * The **\`toJSON()\`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the \`CSPViolationReportBody\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON) */ toJSON(): any; } declare var CSPViolationReportBody: { prototype: CSPViolationReportBody; new(): CSPViolationReportBody; }; /** * The **\`CSSAnimation\`** interface of the Web Animations API represents an Animation object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ interface CSSAnimation extends Animation { /** * The **\`animationName\`** property of the specifies one or more keyframe at-rules which describe the animation applied to the element. * * [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; }; /** * An object implementing the **\`CSSConditionRule\`** interface represents a single condition CSS at-rule, which consists of a condition and a statement block. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) */ interface CSSConditionRule extends CSSGroupingRule { /** * The read-only **\`conditionText\`** property of the CSSConditionRule interface returns or sets the text of the CSS rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ readonly conditionText: string; } declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; }; /** * The **\`CSSContainerRule\`** interface represents a single CSS @container rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { /** * The read-only **\`containerName\`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ readonly containerName: string; /** * The read-only **\`containerQuery\`** property of the CSSContainerRule interface returns a string representing the container conditions that are evaluated when the container changes size in order to determine if the styles in the associated @container are applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ readonly containerQuery: string; } declare var CSSContainerRule: { prototype: CSSContainerRule; new(): CSSContainerRule; }; /** * The **\`CSSCounterStyleRule\`** interface represents an @counter-style at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ interface CSSCounterStyleRule extends CSSRule { /** * The **\`additiveSymbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/additive-symbols descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ additiveSymbols: string; /** * The **\`fallback\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/fallback descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ fallback: string; /** * The **\`name\`** property of the CSSCounterStyleRule interface gets and sets the <custom-ident> defined as the \`name\` for the associated rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ name: string; /** * The **\`negative\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/negative descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ negative: string; /** * The **\`pad\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/pad descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ pad: string; /** * The **\`prefix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/prefix descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ prefix: string; /** * The **\`range\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/range descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ range: string; /** * The **\`speakAs\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/speak-as descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ speakAs: string; /** * The **\`suffix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/suffix descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ suffix: string; /** * The **\`symbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/symbols descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ symbols: string; /** * The **\`system\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/system descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ system: string; } declare var CSSCounterStyleRule: { prototype: CSSCounterStyleRule; new(): CSSCounterStyleRule; }; /** * The **\`CSSFontFaceRule\`** interface represents an @font-face at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ interface CSSFontFaceRule extends CSSRule { /** * The read-only **\`style\`** property of the CSSFontFaceRule interface returns the style information from the @font-face at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; }; /** * The **\`CSSFontFeatureValuesRule\`** interface represents an @font-feature-values at-rule, letting developers assign for each font face a common name to specify features indices to be used in font-variant-alternates. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ interface CSSFontFeatureValuesRule extends CSSRule { /** * The **\`fontFamily\`** property of the CSSConditionRule interface represents the name of the font family it applies to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ fontFamily: string; } declare var CSSFontFeatureValuesRule: { prototype: CSSFontFeatureValuesRule; new(): CSSFontFeatureValuesRule; }; /** * The **\`CSSFontPaletteValuesRule\`** interface represents an @font-palette-values at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ interface CSSFontPaletteValuesRule extends CSSRule { /** * The read-only **\`basePalette\`** property of the CSSFontPaletteValuesRule interface indicates the base palette associated with the rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ readonly basePalette: string; /** * The read-only **\`fontFamily\`** property of the CSSFontPaletteValuesRule interface lists the font families the rule can be applied to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ readonly fontFamily: string; /** * The read-only **\`name\`** property of the CSSFontPaletteValuesRule interface represents the name identifying the associated @font-palette-values at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ readonly name: string; /** * The read-only **\`overrideColors\`** property of the CSSFontPaletteValuesRule interface is a string containing a list of color index and color pair that are to be used instead. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ readonly overrideColors: string; } declare var CSSFontPaletteValuesRule: { prototype: CSSFontPaletteValuesRule; new(): CSSFontPaletteValuesRule; }; /** * The **\`CSSGroupingRule\`** interface of the CSS Object Model represents 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 { /** * The **\`cssRules\`** property of the a collection of CSSRule objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ readonly cssRules: CSSRuleList; /** * The **\`deleteRule()\`** method of the rules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ deleteRule(index: number): void; /** * The **\`insertRule()\`** method of the \`\`\`js-nolint insertRule(rule) insertRule(rule, index) \`\`\` - \`rule\` - : A string - \`index\` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; }; /** * The **\`CSSImageValue\`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ interface CSSImageValue extends CSSStyleValue { } declare var CSSImageValue: { prototype: CSSImageValue; new(): CSSImageValue; }; /** * The **\`CSSImportRule\`** interface represents an @import at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ interface CSSImportRule extends CSSRule { /** * The read-only **\`href\`** property of the The resolved URL will be the \`href\` attribute of the associated stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ readonly href: string; /** * The read-only **\`layerName\`** property of the CSSImportRule interface returns the name of the cascade layer created by the @import at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ readonly layerName: string | null; /** * The read-only **\`media\`** property of the containing the value of the \`media\` attribute of the associated stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ get media(): MediaList; set media(mediaText: string); /** * The read-only **\`styleSheet\`** property of the in the form of a CSSStyleSheet object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ readonly styleSheet: CSSStyleSheet | null; /** * The read-only **\`supportsText\`** property of the CSSImportRule interface returns the supports condition specified by the @import at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ readonly supportsText: string | null; } declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; }; /** * The **\`CSSKeyframeRule\`** interface describes an object representing a set of styles for a given keyframe. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) */ interface CSSKeyframeRule extends CSSRule { /** * The **\`keyText\`** property of the CSSKeyframeRule interface represents the keyframe selector as a comma-separated list of percentage values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ keyText: string; /** * The read-only **\`CSSKeyframeRule.style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSKeyframeRule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; }; /** * The **\`CSSKeyframesRule\`** interface describes an object representing a complete set of keyframes for a CSS animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) */ interface CSSKeyframesRule extends CSSRule { /** * The read-only **\`cssRules\`** property of the CSSKeyframeRule interface returns a CSSRuleList containing the rules in the keyframes at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ readonly cssRules: CSSRuleList; /** * The read-only **\`length\`** property of the CSSKeyframeRule interface returns the number of CSSKeyframeRule objects in its list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */ readonly length: number; /** * The **\`name\`** property of the CSSKeyframeRule interface gets and sets the name of the animation as used by the animation-name property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ name: string; /** * The **\`appendRule()\`** method of the CSSKeyframeRule interface appends a CSSKeyFrameRule to the end of the rules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ appendRule(rule: string): void; /** * The **\`deleteRule()\`** method of the CSSKeyframeRule interface deletes the CSSKeyFrameRule that matches the specified keyframe selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ deleteRule(select: string): void; /** * The **\`findRule()\`** method of the CSSKeyframeRule interface finds the CSSKeyFrameRule that matches the specified keyframe selector. * * [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; }; /** * The **\`CSSKeywordValue\`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ interface CSSKeywordValue extends CSSStyleValue { /** * The **\`value\`** property of the \`CSSKeywordValue\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ value: string; } declare var CSSKeywordValue: { prototype: CSSKeywordValue; new(value: string): CSSKeywordValue; }; /** * The **\`CSSLayerBlockRule\`** represents a @layer block rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ interface CSSLayerBlockRule extends CSSGroupingRule { /** * The read-only **\`name\`** property of the CSSLayerBlockRule interface represents the name of the associated cascade layer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ readonly name: string; } declare var CSSLayerBlockRule: { prototype: CSSLayerBlockRule; new(): CSSLayerBlockRule; }; /** * The **\`CSSLayerStatementRule\`** represents a @layer statement rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ interface CSSLayerStatementRule extends CSSRule { /** * The read-only **\`nameList\`** property of the CSSLayerStatementRule interface return the list of associated cascade layer names. * * [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; }; /** * The **\`CSSMathInvert\`** interface of the CSS Typed Object Model API represents a CSS calc used as \`calc(1 / )\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ interface CSSMathInvert extends CSSMathValue { /** * The CSSMathInvert.value read-only property of the A CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ readonly value: CSSNumericValue; } declare var CSSMathInvert: { prototype: CSSMathInvert; new(arg: CSSNumberish): CSSMathInvert; }; /** * The **\`CSSMathMax\`** interface of the CSS Typed Object Model API represents the CSS max function. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ interface CSSMathMax extends CSSMathValue { /** * The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ readonly values: CSSNumericArray; } declare var CSSMathMax: { prototype: CSSMathMax; new(...args: CSSNumberish[]): CSSMathMax; }; /** * The **\`CSSMathMin\`** interface of the CSS Typed Object Model API represents the CSS min function. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ interface CSSMathMin extends CSSMathValue { /** * The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ readonly values: CSSNumericArray; } declare var CSSMathMin: { prototype: CSSMathMin; new(...args: CSSNumberish[]): CSSMathMin; }; /** * The **\`CSSMathNegate\`** interface of the CSS Typed Object Model API negates the value passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ interface CSSMathNegate extends CSSMathValue { /** * The CSSMathNegate.value read-only property of the A CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ readonly value: CSSNumericValue; } declare var CSSMathNegate: { prototype: CSSMathNegate; new(arg: CSSNumberish): CSSMathNegate; }; /** * The **\`CSSMathProduct\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ interface CSSMathProduct extends CSSMathValue { /** * The **\`CSSMathProduct.values\`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ readonly values: CSSNumericArray; } declare var CSSMathProduct: { prototype: CSSMathProduct; new(...args: CSSNumberish[]): CSSMathProduct; }; /** * The **\`CSSMathSum\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ interface CSSMathSum extends CSSMathValue { /** * The **\`CSSMathSum.values\`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ readonly values: CSSNumericArray; } declare var CSSMathSum: { prototype: CSSMathSum; new(...args: CSSNumberish[]): CSSMathSum; }; /** * The **\`CSSMathValue\`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ interface CSSMathValue extends CSSNumericValue { /** * The **\`CSSMathValue.operator\`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ readonly operator: CSSMathOperator; } declare var CSSMathValue: { prototype: CSSMathValue; new(): CSSMathValue; }; /** * The **\`CSSMatrixComponent\`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ interface CSSMatrixComponent extends CSSTransformComponent { /** * The **\`matrix\`** property of the See the matrix() and matrix3d() pages for examples. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ matrix: DOMMatrix; } declare var CSSMatrixComponent: { prototype: CSSMatrixComponent; new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; }; /** * The **\`CSSMediaRule\`** interface represents a single CSS @media rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) */ interface CSSMediaRule extends CSSConditionRule { /** * The read-only **\`media\`** property of the destination medium for style information. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ get media(): MediaList; set media(mediaText: string); } declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; }; /** * The **\`CSSNamespaceRule\`** interface describes an object representing a single CSS @namespace at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) */ interface CSSNamespaceRule extends CSSRule { /** * The read-only **\`namespaceURI\`** property of the CSSNamespaceRule returns a string containing the text of the URI of the given namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ readonly namespaceURI: string; /** * The read-only **\`prefix\`** property of the CSSNamespaceRule returns a string with the name of the prefix associated to this namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ readonly prefix: string; } declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; }; /** * The **\`CSSNestedDeclarations\`** interface of the CSS Rule API is used to group nested CSSRules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations) */ interface CSSNestedDeclarations extends CSSRule { /** * The read-only **\`style\`** property of the CSSNestedDeclarations interface represents the styles associated with the nested rules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSNestedDeclarations: { prototype: CSSNestedDeclarations; new(): CSSNestedDeclarations; }; /** * The **\`CSSNumericArray\`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ interface CSSNumericArray { /** * The read-only **\`length\`** property of the An integer representing the number of CSSNumericValue objects in the list. * * [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; }; /** * The **\`CSSNumericValue\`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ interface CSSNumericValue extends CSSStyleValue { /** * The **\`add()\`** method of the \`CSSNumericValue\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ add(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`div()\`** method of the supplied value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ div(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`equals()\`** method of the value are strictly equal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ equals(...value: CSSNumberish[]): boolean; /** * The **\`max()\`** method of the passed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ max(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`min()\`** method of the values passed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ min(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`mul()\`** method of the the supplied value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ mul(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`sub()\`** method of the \`CSSNumericValue\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ sub(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`to()\`** method of the another. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ to(unit: string): CSSUnitValue; /** * The **\`toSum()\`** method of the \`\`\`js-nolint toSum(units) \`\`\` - \`units\` - : The units to convert to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ toSum(...units: string[]): CSSMathSum; /** * The **\`type()\`** method of the \`CSSNumericValue\`, one of \`angle\`, \`flex\`, \`frequency\`, \`length\`, \`resolution\`, \`percent\`, \`percentHint\`, or \`time\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ type(): CSSNumericType; } declare var CSSNumericValue: { prototype: CSSNumericValue; new(): CSSNumericValue; /** * The **\`parse()\`** static method of the members are value and the units. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ parse(cssText: string): CSSNumericValue; }; /** * **\`CSSPageRule\`** represents a single CSS @page rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) */ interface CSSPageRule extends CSSGroupingRule { /** * The **\`selectorText\`** property of the CSSPageRule interface gets and sets the selectors associated with the \`CSSPageRule\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ selectorText: string; /** * The **\`style\`** read-only property of the CSSPageRule interface returns a CSSPageDescriptors object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; }; /** * The **\`CSSPerspective\`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ interface CSSPerspective extends CSSTransformComponent { /** * The **\`length\`** property of the It is used to apply a perspective transform to the element and its content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ length: CSSPerspectiveValue; } declare var CSSPerspective: { prototype: CSSPerspective; new(length: CSSPerspectiveValue): CSSPerspective; }; /** * The **\`CSSPropertyRule\`** interface of the CSS Properties and Values API represents a single CSS @property rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ interface CSSPropertyRule extends CSSRule { /** * The read-only **\`inherits\`** property of the CSSPropertyRule interface returns the inherit flag of the custom property registration represented by the @property rule, a boolean describing whether or not the property inherits by default. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ readonly inherits: boolean; /** * The read-only **\`initialValue\`** nullable property of the CSSPropertyRule interface returns the initial value of the custom property registration represented by the @property rule, controlling the property's initial value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ readonly initialValue: string | null; /** * The read-only **\`name\`** property of the CSSPropertyRule interface represents the property name, this being the serialization of the name given to the custom property in the @property rule's prelude. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ readonly name: string; /** * The read-only **\`syntax\`** property of the CSSPropertyRule interface returns the literal syntax of the custom property registration represented by the @property rule, controlling how the property's value is parsed at computed-value time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ readonly syntax: string; } declare var CSSPropertyRule: { prototype: CSSPropertyRule; new(): CSSPropertyRule; }; /** * The **\`CSSRotate\`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ interface CSSRotate extends CSSTransformComponent { /** * The **\`angle\`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ angle: CSSNumericValue; /** * The **\`x\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ x: CSSNumberish; /** * The **\`y\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ y: CSSNumberish; /** * The **\`z\`** property of the vector. * * [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; }; /** * The **\`CSSRule\`** interface represents a single CSS rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) */ interface CSSRule { /** * The **\`cssText\`** property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ cssText: string; /** * The **\`parentRule\`** property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ readonly parentRule: CSSRule | null; /** * The **\`parentStyleSheet\`** property of the the current rule is defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ readonly parentStyleSheet: CSSStyleSheet | null; /** * The read-only **\`type\`** property of the indicating which type of rule the CSSRule represents. * @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\` represents an ordered collection of read-only CSSRule objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) */ interface CSSRuleList { /** * The **\`length\`** property of the CSSRuleList interface returns the number of CSSRule objects in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ readonly length: number; /** * The **\`item()\`** method of the CSSRuleList interface returns the CSSRule object at the specified \`index\` or \`null\` if the specified \`index\` doesn't exist. * * [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; }; /** * The **\`CSSScale\`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ interface CSSScale extends CSSTransformComponent { /** * The **\`x\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ x: CSSNumberish; /** * The **\`y\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ y: CSSNumberish; /** * The **\`z\`** property of the vector. * * [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; }; /** * The **\`CSSScopeRule\`** interface of the CSS Object Model represents a CSS @scope at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule) */ interface CSSScopeRule extends CSSGroupingRule { /** * The **\`end\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope limit. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end) */ readonly end: string | null; /** * The **\`start\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start) */ readonly start: string | null; } declare var CSSScopeRule: { prototype: CSSScopeRule; new(): CSSScopeRule; }; /** * The **\`CSSSkew\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ interface CSSSkew extends CSSTransformComponent { /** * The **\`ax\`** property of the along the x-axis (or abscissa). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ ax: CSSNumericValue; /** * The **\`ay\`** property of the along the y-axis (or ordinate). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ ay: CSSNumericValue; } declare var CSSSkew: { prototype: CSSSkew; new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; }; /** * The **\`CSSSkewX\`** interface of the CSS Typed Object Model API represents the \`skewX()\` value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ interface CSSSkewX extends CSSTransformComponent { /** * The **\`ax\`** property of the along the x-axis (or abscissa). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ ax: CSSNumericValue; } declare var CSSSkewX: { prototype: CSSSkewX; new(ax: CSSNumericValue): CSSSkewX; }; /** * The **\`CSSSkewY\`** interface of the CSS Typed Object Model API represents the \`skewY()\` value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ interface CSSSkewY extends CSSTransformComponent { /** * The **\`ay\`** property of the along the y-axis (or ordinate). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ ay: CSSNumericValue; } declare var CSSSkewY: { prototype: CSSSkewY; new(ay: CSSNumericValue): CSSSkewY; }; /** * The **\`CSSStartingStyleRule\`** interface of the CSS Object Model represents a CSS @starting-style at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */ interface CSSStartingStyleRule extends CSSGroupingRule { } declare var CSSStartingStyleRule: { prototype: CSSStartingStyleRule; new(): CSSStartingStyleRule; }; /** * The **\`CSSStyleDeclaration\`** interface represents 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/alignment-baseline) */ 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; 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-decoration-break) */ boxDecorationBreak: 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */ clipRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ color: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */ colorInterpolation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */ 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-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-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/content-visibility) */ contentVisibility: 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; /** * The **\`cssText\`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only. * * [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */ cx: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cy) */ cy: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/d) */ 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) */ dominantBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ emptyCells: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */ fill: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */ fillOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */ 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-color) */ floodColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-opacity) */ 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; /** * @deprecated * * [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/hyphenate-limit-chars) */ hyphenateLimitChars: 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; /** * The read-only property returns an integer that represents the number of style declarations in this CSS declaration block. * * [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */ 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker) */ marker: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-end) */ markerEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-mid) */ markerMid: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-start) */ 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-block) */ overflowBlock: 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-inline) */ overflowInline: 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; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ pageBreakAfter: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ pageBreakBefore: string; /** * @deprecated * * [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; /** * The **CSSStyleDeclaration.parentRule** read-only property returns a CSSRule that is the parent of this style block, e.g., a CSSStyleRule representing the style for a CSS selector. * * [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/r) */ 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-align) */ rubyAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ rubyPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rx) */ rx: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ry) */ 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */ shapeRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */ stopColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */ stopOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */ stroke: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */ strokeDasharray: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */ strokeDashoffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */ strokeLinecap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */ strokeLinejoin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */ strokeMiterlimit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */ strokeOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */ 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */ textAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box) */ textBox: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-edge) */ textBoxEdge: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-trim) */ textBoxTrim: 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/text-wrap-mode) */ textWrapMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */ textWrapStyle: 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-behavior) */ transitionBehavior: 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vector-effect) */ vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */ viewTransitionClass: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ viewTransitionName: 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/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/white-space-collapse) */ whiteSpaceCollapse: 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 * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ wordWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ writingMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */ x: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */ y: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ zIndex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */ zoom: string; /** * The **CSSStyleDeclaration.getPropertyPriority()** method interface returns a string that provides all explicitly set priorities on the CSS property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ getPropertyPriority(property: string): string; /** * The **CSSStyleDeclaration.getPropertyValue()** method interface returns a string containing the value of a specified CSS property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ getPropertyValue(property: string): string; /** * The \`CSSStyleDeclaration.item()\` method interface returns a CSS property name from a CSSStyleDeclaration by index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ item(index: number): string; /** * The **\`CSSStyleDeclaration.removeProperty()\`** method interface removes a property from a CSS style declaration object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ removeProperty(property: string): string; /** * The **\`CSSStyleDeclaration.setProperty()\`** method interface sets a new value for a property on a CSS style declaration object. * * [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; }; /** * The **\`CSSStyleRule\`** interface represents a single CSS style rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) */ interface CSSStyleRule extends CSSGroupingRule { /** * The **\`selectorText\`** property of the CSSStyleRule interface gets and sets the selectors associated with the \`CSSStyleRule\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ selectorText: string; /** * The read-only **\`style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); /** * The **\`styleMap\`** read-only property of the which provides access to the rule's property-value pairs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; } declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; }; /** * The **\`CSSStyleSheet\`** interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) */ interface CSSStyleSheet extends StyleSheet { /** * The read-only CSSStyleSheet property **\`cssRules\`** returns a live CSSRuleList which provides a real-time, up-to-date list of every CSS rule which comprises the stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ readonly cssRules: CSSRuleList; /** * The read-only CSSStyleSheet property **\`ownerRule\`** returns the CSSImportRule corresponding to the @import at-rule which imported the stylesheet into the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ readonly ownerRule: CSSRule | null; /** * **\`rules\`** is a _deprecated_ _legacy property_ of the CSSStyleSheet interface. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) */ readonly rules: CSSRuleList; /** * The obsolete CSSStyleSheet interface's **\`addRule()\`** _legacy method_ adds a new rule to the stylesheet. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) */ addRule(selector?: string, style?: string, index?: number): number; /** * The CSSStyleSheet method **\`deleteRule()\`** removes a rule from the stylesheet object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ deleteRule(index: number): void; /** * The **\`CSSStyleSheet.insertRule()\`** method inserts a new CSS rule into the current style sheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ insertRule(rule: string, index?: number): number; /** * The obsolete CSSStyleSheet method **\`removeRule()\`** removes a rule from the stylesheet object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) */ removeRule(index?: number): void; /** * The **\`replace()\`** method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ replace(text: string): Promise; /** * The **\`replaceSync()\`** method of the CSSStyleSheet interface synchronously replaces the content of the stylesheet with the content passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ replaceSync(text: string): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(options?: CSSStyleSheetInit): CSSStyleSheet; }; /** * The **\`CSSStyleValue\`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ interface CSSStyleValue { toString(): string; } declare var CSSStyleValue: { prototype: CSSStyleValue; new(): CSSStyleValue; /** * The **\`parse()\`** static method of the CSSStyleValue interface sets a specific CSS property to the specified values and returns the first value as a CSSStyleValue object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ parse(property: string, cssText: string): CSSStyleValue; /** * The **\`parseAll()\`** static method of the CSSStyleValue interface sets all occurrences of a specific CSS property to the specified value and returns an array of CSSStyleValue objects, each containing one of the supplied values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ parseAll(property: string, cssText: string): CSSStyleValue[]; }; /** * The **\`CSSSupportsRule\`** interface represents a single CSS @supports at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) */ interface CSSSupportsRule extends CSSConditionRule { } declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; }; /** * The **\`CSSTransformComponent\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ interface CSSTransformComponent { /** * The **\`is2D\`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ is2D: boolean; /** * The **\`toMatrix()\`** method of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ toMatrix(): DOMMatrix; toString(): string; } declare var CSSTransformComponent: { prototype: CSSTransformComponent; new(): CSSTransformComponent; }; /** * The **\`CSSTransformValue\`** interface of the CSS Typed Object Model API represents \`transform-list\` values as used by the CSS transform property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ interface CSSTransformValue extends CSSStyleValue { /** * The read-only **\`is2D\`** property of the In the case of the \`CSSTransformValue\` this property returns true unless any of the individual functions return false for \`Is2D\`, in which case it returns false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ readonly is2D: boolean; /** * The read-only **\`length\`** property of the the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ readonly length: number; /** * The **\`toMatrix()\`** method of the \`\`\`js-nolint toMatrix() \`\`\` None. * * [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; }; /** * The **\`CSSTransition\`** interface of the Web Animations API represents an Animation object used for a CSS Transition. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ interface CSSTransition extends Animation { /** * The **\`transitionProperty\`** property of the name** of the transition. * * [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; }; /** * The **\`CSSTranslate\`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ interface CSSTranslate extends CSSTransformComponent { /** * The **\`x\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ x: CSSNumericValue; /** * The **\`y\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ y: CSSNumericValue; /** * The **\`z\`** property of the vector. * * [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; }; /** * The **\`CSSUnitValue\`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** * The **\`CSSUnitValue.unit\`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ readonly unit: string; /** * The **\`CSSUnitValue.value\`** property of the A double. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ value: number; } declare var CSSUnitValue: { prototype: CSSUnitValue; new(value: number, unit: string): CSSUnitValue; }; /** * The **\`CSSUnparsedValue\`** interface of the CSS Typed Object Model API represents property values that reference custom properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ interface CSSUnparsedValue extends CSSStyleValue { /** * The **\`length\`** read-only property of the An integer. * * [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; }; /** * The **\`CSSVariableReferenceValue\`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ interface CSSVariableReferenceValue { /** * The **\`fallback\`** read-only property of the A CSSUnparsedValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ readonly fallback: CSSUnparsedValue | null; /** * The **\`variable\`** property of the A string beginning with \`--\` (that is, a custom property name). * * [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; }; interface CSSViewTransitionRule extends CSSRule { readonly navigation: string; readonly types: ReadonlyArray; } declare var CSSViewTransitionRule: { prototype: CSSViewTransitionRule; new(): CSSViewTransitionRule; }; /** * The **\`Cache\`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) */ interface Cache { /** * The **\`add()\`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ add(request: RequestInfo | URL): Promise; /** * The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ addAll(requests: RequestInfo[]): Promise; /** * The **\`delete()\`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to \`true\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** * The **\`keys()\`** method of the Cache interface returns a representing the keys of the Cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** * The **\`match()\`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** * The **\`matchAll()\`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** * The **\`put()\`** method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache. * * [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 **\`CacheStorage\`** interface represents the storage for Cache objects. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) */ interface CacheStorage { /** * The **\`delete()\`** method of the CacheStorage interface finds the Cache object matching the \`cacheName\`, and if found, deletes the Cache object and returns a Promise that resolves to \`true\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ delete(cacheName: string): Promise; /** * The **\`has()\`** method of the CacheStorage interface returns a Promise that resolves to \`true\` if a You can access \`CacheStorage\` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ has(cacheName: string): Promise; /** * The **\`keys()\`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ keys(): Promise; /** * The **\`match()\`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; /** * The **\`open()\`** method of the the Cache object matching the \`cacheName\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ open(cacheName: string): Promise; } declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; }; /** * The **\`CanvasCaptureMediaStreamTrack\`** interface of the Media Capture and Streams API represents the video track contained in a MediaStream being generated from a canvas following a call to HTMLCanvasElement.captureStream(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { /** * The **\`canvas\`** read-only property of the CanvasCaptureMediaStreamTrack interface returns the HTMLCanvasElement from which frames are being captured. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ readonly canvas: HTMLCanvasElement; /** * The **\`requestFrame()\`** method of the CanvasCaptureMediaStreamTrack interface requests that a frame be captured from the canvas and sent to the stream. * * [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; } /** * The **\`CanvasGradient\`** interface represents an opaque object describing a gradient. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) */ interface CanvasGradient { /** * The **\`CanvasGradient.addColorStop()\`** method adds a new color stop, defined by an \`offset\` and a \`color\`, to a given canvas gradient. * * [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; } /** * The **\`CanvasPattern\`** interface represents 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 { /** * The **\`CanvasPattern.setTransform()\`** method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern. * * [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 canvas element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** * The **\`CanvasRenderingContext2D.canvas\`** property, part of the Canvas API, is a read-only reference to the might be \`null\` if there is no associated canvas element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: HTMLCanvasElement; } declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; }; interface CanvasSettings { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ getContextAttributes(): CanvasRenderingContext2DSettings; } 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/isContextLost) */ isContextLost(): boolean; /** [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 \`CaretPosition\` interface represents the caret position, an indicator for the text insertion point. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition) */ interface CaretPosition { readonly offset: number; readonly offsetNode: Node; getClientRect(): DOMRect | null; } declare var CaretPosition: { prototype: CaretPosition; new(): CaretPosition; }; /** * The \`ChannelMergerNode\` interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. * * [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. * * [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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) */ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { /** * The **\`data\`** property of the CharacterData interface represent the value of the current object's data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ data: string; /** * The read-only **\`CharacterData.length\`** property returns the number of characters in the contained data, as a positive integer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ readonly length: number; readonly ownerDocument: Document; /** * The **\`appendData()\`** method of the CharacterData interface adds the provided data to the end of the node's current data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ appendData(data: string): void; /** * The **\`deleteData()\`** method of the CharacterData interface removes all or part of the data from this \`CharacterData\` node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ deleteData(offset: number, count: number): void; /** * The **\`insertData()\`** method of the CharacterData interface inserts the provided data into this \`CharacterData\` node's current data, at the provided offset from the start of the existing data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ insertData(offset: number, data: string): void; /** * The **\`replaceData()\`** method of the CharacterData interface removes a certain number of characters of the existing text in a given \`CharacterData\` node and replaces those characters with the text provided. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ replaceData(offset: number, count: number, data: string): void; /** * The **\`substringData()\`** method of the CharacterData interface returns a portion of the existing data, starting at the specified index and extending for a given number of characters afterwards. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ substringData(offset: number, count: number): string; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | null); } 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 { } /** * The **\`Clipboard\`** interface of the Clipboard API provides read and write access to the contents of the system clipboard. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) */ interface Clipboard extends EventTarget { /** * The **\`read()\`** method of the Clipboard interface requests a copy of the clipboard's contents, fulfilling the returned Promise with the data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ read(): Promise; /** * The **\`readText()\`** method of the Clipboard interface returns a Promise which fulfills with a copy of the textual contents of the system clipboard. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ readText(): Promise; /** * The **\`write()\`** method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ write(data: ClipboardItems): Promise; /** * The **\`writeText()\`** method of the Clipboard interface writes the specified text to the system clipboard, returning a Promise that is resolved once the system clipboard has been updated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ writeText(data: string): Promise; } declare var Clipboard: { prototype: Clipboard; new(): Clipboard; }; /** * The **\`ClipboardEvent\`** interface of the Clipboard API represents events providing information related to modification of the clipboard, that is Element/cut_event, Element/copy_event, and Element/paste_event events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) */ interface ClipboardEvent extends Event { /** * The **\`clipboardData\`** property of the ClipboardEvent interface holds a DataTransfer object, which can be used to: - specify what data should be put into the clipboard from the Element/cut_event and Element/copy_event event handlers, typically with a DataTransfer.setData call; - obtain the data to be pasted from the Element/paste_event event handler, typically with a DataTransfer.getData call. * * [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; }; /** * The **\`ClipboardItem\`** interface of the Clipboard API represents a single item format, used when reading or writing clipboard data using Clipboard.read() and Clipboard.write() respectively. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ interface ClipboardItem { /** * The read-only **\`presentationStyle\`** property of the ClipboardItem interface returns a string indicating how an item should be presented. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */ readonly presentationStyle: PresentationStyle; /** * The read-only **\`types\`** property of the ClipboardItem interface returns an Array of MIME type available within the ClipboardItem. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ readonly types: ReadonlyArray; /** * The **\`getType()\`** method of the ClipboardItem interface returns a Promise that resolves with a Blob of the requested MIME type or an error if the MIME type is not found. * * [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; /** * The **\`supports()\`** static method of the ClipboardItem interface returns \`true\` if the given MIME type is supported by the clipboard, and \`false\` otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static) */ supports(type: string): boolean; }; /** * A \`CloseEvent\` is sent to clients using WebSockets when the connection is closed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) */ interface CloseEvent extends Event { /** * The **\`code\`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) */ readonly code: number; /** * The **\`reason\`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) */ readonly reason: string; /** * The **\`wasClean\`** read-only property of the CloseEvent interface returns \`true\` if the connection closed cleanly. * * [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; }; /** * The **\`Comment\`** interface represents 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 { /** * The **\`data\`** read-only property of the method that raised the event; its exact nature varies depending on the type of event that generated the \`CompositionEvent\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ readonly data: string; /** * The **\`initCompositionEvent()\`** method of the CompositionEvent interface initializes the attributes of a \`CompositionEvent\` object instance. * @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; }; /** * The **\`CompressionStream\`** interface of the Compression Streams API is an API for compressing a stream of data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ interface CompressionStream extends GenericTransformStream { readonly readable: ReadableStream>; readonly writable: WritableStream; } declare var CompressionStream: { prototype: CompressionStream; new(format: CompressionFormat): CompressionStream; }; /** * The \`ConstantSourceNode\` interface—part of the Web Audio API—represents an audio source (based upon AudioScheduledSourceNode) whose output is single unchanging value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ interface ConstantSourceNode extends AudioScheduledSourceNode { /** * The read-only \`offset\` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample. * * [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; }; /** * The **\`ContentVisibilityAutoStateChangeEvent\`** interface is the event object for the element/contentvisibilityautostatechange_event event, which fires on any element with content-visibility set on it when it starts or stops being relevant to the user and skipping its contents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */ interface ContentVisibilityAutoStateChangeEvent extends Event { /** * The \`skipped\` read-only property of the ContentVisibilityAutoStateChangeEvent interface returns \`true\` if the user agent skips the element's contents, or \`false\` otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */ readonly skipped: boolean; } declare var ContentVisibilityAutoStateChangeEvent: { prototype: ContentVisibilityAutoStateChangeEvent; new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent; }; /** * The \`ConvolverNode\` interface is an AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) */ interface ConvolverNode extends AudioNode { /** * The **\`buffer\`** property of the ConvolverNode interface represents a mono, stereo, or 4-channel AudioBuffer containing the (possibly multichannel) impulse response used by the \`ConvolverNode\` to create the reverb effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ buffer: AudioBuffer | null; /** * The \`normalize\` property of the ConvolverNode interface is a boolean that controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the \`buffer\` attribute is set, or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ normalize: boolean; } declare var ConvolverNode: { prototype: ConvolverNode; new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; /** * The **\`CookieChangeEvent\`** interface of the Cookie Store API is the event type of the CookieStore/change_event event fired at a CookieStore when any cookies are created or deleted. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent) */ interface CookieChangeEvent extends Event { /** * The **\`changed\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been changed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/changed) */ readonly changed: ReadonlyArray; /** * The **\`deleted\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been deleted by the given \`CookieChangeEvent\` instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/deleted) */ readonly deleted: ReadonlyArray; } declare var CookieChangeEvent: { prototype: CookieChangeEvent; new(type: string, eventInitDict?: CookieChangeEventInit): CookieChangeEvent; }; interface CookieStoreEventMap { "change": CookieChangeEvent; } /** * The **\`CookieStore\`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore) */ interface CookieStore extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/change_event) */ onchange: ((this: CookieStore, ev: CookieChangeEvent) => any) | null; /** * The **\`delete()\`** method of the CookieStore interface deletes a cookie that matches the given \`name\` or \`options\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete) */ delete(name: string): Promise; delete(options: CookieStoreDeleteOptions): Promise; /** * The **\`get()\`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given \`name\` or \`options\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get) */ get(name: string): Promise; get(options?: CookieStoreGetOptions): Promise; /** * The **\`getAll()\`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the \`name\` or \`options\` passed to it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll) */ getAll(name: string): Promise; getAll(options?: CookieStoreGetOptions): Promise; /** * The **\`set()\`** method of the CookieStore interface sets a cookie with the given \`name\` and \`value\` or \`options\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set) */ set(name: string, value: string): Promise; set(options: CookieInit): Promise; addEventListener(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CookieStore: { prototype: CookieStore; new(): CookieStore; }; /** * The **\`CookieStoreManager\`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) */ interface CookieStoreManager { /** * The **\`getSubscriptions()\`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) */ getSubscriptions(): Promise; /** * The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) */ subscribe(subscriptions: CookieStoreGetOptions[]): Promise; /** * The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) */ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; } declare var CookieStoreManager: { prototype: CookieStoreManager; new(): CookieStoreManager; }; /** * The **\`CountQueuingStrategy\`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) */ interface CountQueuingStrategy extends QueuingStrategy { /** * The read-only **\`CountQueuingStrategy.highWaterMark\`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied. * * [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; }; /** * The **\`Credential\`** interface of the Credential Management API provides information about an entity (usually a user) normally as a prerequisite to a trust decision. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) */ interface Credential { /** * The **\`id\`** read-only property of the Credential interface returns a string containing the credential's identifier. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ readonly id: string; /** * The **\`type\`** read-only property of the Credential interface returns a string containing the credential's type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ readonly type: string; } declare var Credential: { prototype: Credential; new(): Credential; }; /** * The **\`CredentialsContainer\`** interface of the Credential Management API exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) */ interface CredentialsContainer { /** * The **\`create()\`** method of the CredentialsContainer interface creates a new credential, which can then be stored and later retrieved using the CredentialsContainer.get method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ create(options?: CredentialCreationOptions): Promise; /** * The **\`get()\`** method of the CredentialsContainer interface returns a Promise that fulfills with a single credential, which can then be used to authenticate a user to a website. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ get(options?: CredentialRequestOptions): Promise; /** * The **\`preventSilentAccess()\`** method of the CredentialsContainer interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns a Promise that resolves to \`undefined\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ preventSilentAccess(): Promise; /** * The **\`store()\`** method of the \`\`\`js-nolint store(credentials) \`\`\` - \`credentials\` - : A valid Credential instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ store(credential: Credential): Promise; } declare var CredentialsContainer: { prototype: CredentialsContainer; new(): CredentialsContainer; }; /** * The **\`Crypto\`** interface represents basic cryptography features available in the current context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) */ interface Crypto { /** * The **\`Crypto.subtle\`** read-only property returns a cryptographic operations. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) */ readonly subtle: SubtleCrypto; /** * The **\`Crypto.getRandomValues()\`** method lets you get cryptographically strong random values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ getRandomValues(array: T): T; /** * The **\`randomUUID()\`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator. * 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\`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) */ interface CryptoKey { /** * The read-only **\`algorithm\`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ readonly algorithm: KeyAlgorithm; /** * The read-only **\`extractable\`** property of the CryptoKey interface indicates whether or not the key may be extracted using \`SubtleCrypto.exportKey()\` or \`SubtleCrypto.wrapKey()\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ readonly extractable: boolean; /** * The read-only **\`type\`** property of the CryptoKey interface indicates which kind of key is represented by the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ readonly type: KeyType; /** * The read-only **\`usages\`** property of the CryptoKey interface indicates what can be done with the key. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; /** * The **\`CustomElementRegistry\`** interface provides methods for registering custom elements and querying registered elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ interface CustomElementRegistry { /** * The **\`define()\`** method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; /** * The **\`get()\`** method of the previously-defined custom element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ get(name: string): CustomElementConstructor | undefined; /** * The **\`getName()\`** method of the previously-defined custom element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ getName(constructor: CustomElementConstructor): string | null; /** * The **\`upgrade()\`** method of the elements in a Node subtree, even before they are connected to the main document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ upgrade(root: Node): void; /** * The **\`whenDefined()\`** method of the resolves when the named element is defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ whenDefined(name: string): Promise; } declare var CustomElementRegistry: { prototype: CustomElementRegistry; new(): CustomElementRegistry; }; /** * The **\`CustomEvent\`** interface represents events initialized by an application for any purpose. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ interface CustomEvent extends Event { /** * The read-only **\`detail\`** property of the CustomEvent interface returns any data passed when initializing the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) */ readonly detail: T; /** * The **\`CustomEvent.initCustomEvent()\`** method initializes a CustomEvent object. * @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; }; /** * The **\`CustomStateSet\`** interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */ interface CustomStateSet { forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void; } declare var CustomStateSet: { prototype: CustomStateSet; new(): CustomStateSet; }; /** * The **\`DOMException\`** interface represents an abnormal event (called an **exception**) that 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 { /** * The **\`code\`** read-only property of the DOMException interface returns one of the legacy error code constants, or \`0\` if none match. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) */ readonly code: number; /** * The **\`message\`** read-only property of the a message or description associated with the given error name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ readonly message: string; /** * The **\`name\`** read-only property of the one of the strings associated with an error name. * * [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; }; /** * The **\`DOMImplementation\`** interface represents an object providing methods which are not dependent on any particular document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) */ interface DOMImplementation { /** * The **\`DOMImplementation.createDocument()\`** method creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; /** * The **\`DOMImplementation.createDocumentType()\`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or \`\`\`js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) \`\`\` - \`qualifiedNameStr\` - : A string containing the qualified name, like \`svg:svg\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ createDocumentType(name: string, publicId: string, systemId: string): DocumentType; /** * The **\`DOMImplementation.createHTMLDocument()\`** method creates a new HTML Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ createHTMLDocument(title?: string): Document; /** * The **\`DOMImplementation.hasFeature()\`** method returns a boolean flag indicating if a given feature is supported. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) */ hasFeature(...args: any[]): true; } declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; }; /** * The **\`DOMMatrix\`** interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ interface DOMMatrix extends DOMMatrixReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ a: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ b: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ c: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ d: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ f: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m11: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m12: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m13: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m14: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m21: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m22: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m23: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m24: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m31: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m32: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m33: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m34: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m41: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m42: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m44: number; /** * The **\`invertSelf()\`** method of the DOMMatrix interface inverts the original matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) */ invertSelf(): DOMMatrix; /** * The **\`multiplySelf()\`** method of the DOMMatrix interface multiplies a matrix by the \`otherMatrix\` parameter, computing the dot product of the original matrix and the specified matrix: \`A⋅B\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf) */ multiplySelf(other?: DOMMatrixInit): DOMMatrix; /** * The **\`preMultiplySelf()\`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified \`DOMMatrix\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf) */ preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; /** * The \`rotateAxisAngleSelf()\` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf) */ rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; /** * The \`rotateFromVectorSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and \`(1, 0)\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf) */ rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; /** * The \`rotateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) */ rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** * The **\`scale3dSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of \`(0, 0, 0)\`, returning the 3D-scaled matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * The **\`scaleSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of \`(0, 0)\`, returning the scaled matrix. * * [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; /** * The **\`setMatrixValue()\`** method of the DOMMatrix interface replaces the contents of the matrix with the matrix described by the specified transform or transforms, returning itself. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/setMatrixValue) */ setMatrixValue(transformList: string): DOMMatrix; /** * The \`skewXSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */ skewXSelf(sx?: number): DOMMatrix; /** * The \`skewYSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) */ skewYSelf(sy?: number): DOMMatrix; /** * The \`translateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) */ 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; /** * The **\`DOMMatrixReadOnly\`** interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ interface DOMMatrixReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly a: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly b: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly c: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly d: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly f: number; /** * The readonly **\`is2D\`** property of the DOMMatrixReadOnly interface is a Boolean flag that is \`true\` when the matrix is 2D. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; /** * The readonly **\`isIdentity\`** property of the DOMMatrixReadOnly interface is a Boolean whose value is \`true\` if the matrix is the identity matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m11: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m12: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m13: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m14: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m21: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m22: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m23: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m24: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m31: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m32: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m33: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m34: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m41: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m42: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m44: number; /** * The **\`flipX()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; /** * The **\`flipY()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ flipY(): DOMMatrix; /** * The **\`inverse()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ inverse(): DOMMatrix; /** * The **\`multiply()\`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the \`otherMatrix\` parameter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; /** * The \`rotate()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** * The \`rotateAxisAngle()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; /** * The \`rotateFromVector()\` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and \`(1, 0)\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ rotateFromVector(x?: number, y?: number): DOMMatrix; /** * The **\`scale()\`** method of the original matrix with a scale transform applied. * * [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; /** * The **\`scale3d()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** @deprecated */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; /** * The \`skewX()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ skewX(sx?: number): DOMMatrix; /** * The \`skewY()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ skewY(sy?: number): DOMMatrix; /** * The **\`toFloat32Array()\`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; /** * The **\`toFloat64Array()\`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; /** * The **\`toJSON()\`** method of the DOMMatrixReadOnly interface creates and returns a JSON object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ toJSON(): any; /** * The **\`transformPoint\`** method of the You can also create a new \`DOMPoint\` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; /** * The \`translate()\` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied. * * [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; }; /** * The **\`DOMParser\`** interface 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 { /** * The **\`parseFromString()\`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ parseFromString(string: string, type: DOMParserSupportedType): Document; } declare var DOMParser: { prototype: DOMParser; new(): DOMParser; }; /** * A **\`DOMPoint\`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ interface DOMPoint extends DOMPointReadOnly { /** * The **\`DOMPoint\`** interface's **\`w\`** property holds the point's perspective value, w, for a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ w: number; /** * The **\`DOMPoint\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ x: number; /** * The **\`DOMPoint\`** interface's **\`y\`** property holds the vertical coordinate, _y_, for a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ y: number; /** * The **\`DOMPoint\`** interface's **\`z\`** property specifies the depth coordinate of a point in space. * * [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; /** * The **\`fromPoint()\`** static method of the DOMPoint interface creates and returns a new mutable \`DOMPoint\` object given a source point. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPoint; }; type SVGPoint = DOMPoint; declare var SVGPoint: typeof DOMPoint; /** * The **\`DOMPointReadOnly\`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ interface DOMPointReadOnly { /** * The **\`DOMPointReadOnly\`** interface's **\`w\`** property holds the point's perspective value, \`w\`, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ readonly w: number; /** * The **\`DOMPointReadOnly\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ readonly x: number; /** * The **\`DOMPointReadOnly\`** interface's **\`y\`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ readonly y: number; /** * The **\`DOMPointReadOnly\`** interface's **\`z\`** property holds the depth coordinate, z, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ readonly z: number; /** * The **\`matrixTransform()\`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new \`DOMPointReadOnly\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ matrixTransform(matrix?: DOMMatrixInit): DOMPoint; /** * The DOMPointReadOnly method \`toJSON()\` returns an object giving the \`\`\`js-nolint toJSON() \`\`\` None. * * [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; /** * The static **DOMPointReadOnly** method \`fromPoint()\` creates and returns a new \`DOMPointReadOnly\` object given a source point. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; /** * A \`DOMQuad\` is a collection of four \`DOMPoint\`s defining the corners of an arbitrary quadrilateral. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ interface DOMQuad { /** * The **\`DOMQuad\`** interface's **\`p1\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ readonly p1: DOMPoint; /** * The **\`DOMQuad\`** interface's **\`p2\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ readonly p2: DOMPoint; /** * The **\`DOMQuad\`** interface's **\`p3\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ readonly p3: DOMPoint; /** * The **\`DOMQuad\`** interface's **\`p4\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ readonly p4: DOMPoint; /** * The DOMQuad method \`getBounds()\` returns a DOMRect object representing the smallest rectangle that fully contains the \`DOMQuad\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; /** * The DOMQuad method \`toJSON()\` returns a \`\`\`js-nolint toJSON() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ 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; }; /** * A **\`DOMRect\`** describes the size and position of a rectangle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { /** * The **\`height\`** property of the DOMRect interface represents the height of the rectangle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */ height: number; /** * The **\`width\`** property of the DOMRect interface represents the width of the rectangle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */ width: number; /** * The **\`x\`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport's left edge and the rectangle's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */ x: number; /** * The **\`y\`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport's top edge and the rectangle's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */ y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; /** * The **\`fromRect()\`** static method of the object with a given location and dimensions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; /** * The **\`DOMRectList\`** interface represents a collection of DOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such as Element.getClientRects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList) */ interface DOMRectList { /** * The read-only **\`length\`** property of the DOMRectList interface returns the number of DOMRect objects in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/length) */ readonly length: number; /** * The DOMRectList method \`item()\` returns the DOMRect at the specified index within the list, or \`null\` if the index is out of range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/item) */ item(index: number): DOMRect | null; [index: number]: DOMRect; } declare var DOMRectList: { prototype: DOMRectList; new(): DOMRectList; }; /** * The **\`DOMRectReadOnly\`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ interface DOMRectReadOnly { /** * The **\`bottom\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the bottom coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ readonly bottom: number; /** * The **\`height\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the height of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ readonly height: number; /** * The **\`left\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the left coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ readonly left: number; /** * The **\`right\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the right coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ readonly right: number; /** * The **\`top\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the top coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ readonly top: number; /** * The **\`width\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the width of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ readonly width: number; /** * The **\`x\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the x coordinate of the \`DOMRect\`'s origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ readonly x: number; /** * The **\`y\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the y coordinate of the \`DOMRect\`'s origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; /** * The DOMRectReadOnly method \`toJSON()\` returns a JSON representation of the \`DOMRectReadOnly\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ toJSON(): any; } declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; /** * The **\`fromRect()\`** static method of the object with a given location and dimensions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** * The **\`DOMStringList\`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (\`DOMString\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) */ interface DOMStringList { /** * The read-only **\`length\`** property indicates the number of strings in the DOMStringList. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) */ readonly length: number; /** * The **\`contains()\`** method returns a boolean indicating whether the given string is in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) */ contains(string: string): boolean; /** * The **\`item()\`** method returns a string from a \`DOMStringList\` by index. * * [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; }; /** * The **\`DOMStringMap\`** interface is used for the HTMLElement.dataset 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; }; /** * The **\`DOMTokenList\`** interface represents a set of space-separated tokens. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) */ interface DOMTokenList { /** * The read-only **\`length\`** property of the DOMTokenList interface is an \`integer\` representing the number of objects stored in the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) */ readonly length: number; /** * The **\`value\`** property of the DOMTokenList interface is a stringifier that returns the value of the list serialized as a string, or clears and sets the list to the given value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) */ value: string; toString(): string; /** * The **\`add()\`** method of the DOMTokenList interface adds the given tokens to the list, omitting any that are already present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) */ add(...tokens: string[]): void; /** * The **\`contains()\`** method of the DOMTokenList interface returns a boolean value — \`true\` if the underlying list contains the given token, otherwise \`false\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) */ contains(token: string): boolean; /** * The **\`item()\`** method of the DOMTokenList interface returns an item in the list, determined by its position in the list, its index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) */ item(index: number): string | null; /** * The **\`remove()\`** method of the DOMTokenList interface removes the specified _tokens_ from the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) */ remove(...tokens: string[]): void; /** * The **\`replace()\`** method of the DOMTokenList interface replaces an existing token with a new token. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) */ replace(token: string, newToken: string): boolean; /** * The **\`supports()\`** method of the DOMTokenList interface returns \`true\` if a given \`token\` is in the associated attribute's supported tokens. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) */ supports(token: string): boolean; /** * The **\`toggle()\`** method of the DOMTokenList interface removes an existing token from the list and returns \`false\`. * * [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; }; /** * The **\`DataTransfer\`** object is used to hold any data transferred between contexts, such as a drag and drop operation, or clipboard read/write. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) */ interface DataTransfer { /** * The **\`DataTransfer.dropEffect\`** property controls the feedback (typically visual) the user is given during a drag and drop operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) */ dropEffect: "none" | "copy" | "link" | "move"; /** * The **\`DataTransfer.effectAllowed\`** property specifies the effect that is allowed for a drag operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) */ effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; /** * The **\`files\`** read-only property of \`DataTransfer\` objects is a list of the files in the drag operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) */ readonly files: FileList; /** * The read-only \`items\` property of the DataTransfer interface is a A DataTransferItemList object containing DataTransferItem objects representing the items being dragged in a drag operation, one list item for each object being dragged. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) */ readonly items: DataTransferItemList; /** * The **\`DataTransfer.types\`** read-only property returns the available types that exist in the DataTransfer.items. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) */ readonly types: ReadonlyArray; /** * The **\`DataTransfer.clearData()\`** method removes the drag operation's drag data for the given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) */ clearData(format?: string): void; /** * The **\`DataTransfer.getData()\`** method retrieves drag data (as a string) for the specified type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) */ getData(format: string): string; /** * The **\`DataTransfer.setData()\`** method sets the drag operation's drag data to the specified data and type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) */ setData(format: string, data: string): void; /** * When a drag occurs, a translucent image is generated from the drag target (the element the HTMLElement/dragstart_event event is fired at), and follows the mouse pointer during the drag. * * [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; }; /** * The **\`DataTransferItem\`** object represents one drag data item. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) */ interface DataTransferItem { /** * The read-only **\`DataTransferItem.kind\`** property returns the kind–a string or a file–of the DataTransferItem object representing the _drag data item_. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) */ readonly kind: string; /** * The read-only **\`DataTransferItem.type\`** property returns the type (format) of the DataTransferItem object representing the drag data item. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) */ readonly type: string; /** * If the item is a file, the **\`DataTransferItem.getAsFile()\`** method returns the drag data item's File object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) */ getAsFile(): File | null; /** * The **\`DataTransferItem.getAsString()\`** method invokes the given callback with the drag data item's string data as the argument if the item's DataTransferItem.kind is a _Plain unicode string_ (i.e., \`kind\` is \`string\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) */ getAsString(callback: FunctionStringCallback | null): void; /** * If the item described by the DataTransferItem is a file, \`webkitGetAsEntry()\` returns a FileSystemFileEntry or FileSystemDirectoryEntry representing it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ webkitGetAsEntry(): FileSystemEntry | null; } declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; }; /** * The **\`DataTransferItemList\`** object is a list of DataTransferItem objects representing items being dragged. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) */ interface DataTransferItemList { /** * The read-only **\`length\`** property of the the drag item list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) */ readonly length: number; /** * The **\`DataTransferItemList.add()\`** method creates a new list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) */ add(data: string, type: string): DataTransferItem | null; add(data: File): DataTransferItem | null; /** * The DataTransferItemList method **\`clear()\`** removes all DataTransferItem objects from the drag data items list, leaving the list empty. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) */ clear(): void; /** * The **\`DataTransferItemList.remove()\`** method removes the less than zero or greater than one less than the length of the list, the list will not be changed. * * [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; }; /** * The **\`DecompressionStream\`** interface of the Compression Streams API is an API for decompressing a stream of data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ interface DecompressionStream extends GenericTransformStream { readonly readable: ReadableStream>; readonly writable: WritableStream; } declare var DecompressionStream: { prototype: DecompressionStream; new(format: CompressionFormat): DecompressionStream; }; /** * The **\`DelayNode\`** interface represents 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 { /** * The \`delayTime\` property of the DelayNode interface is an a-rate AudioParam representing the amount of delay to apply. * * [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\`** interface of the Device Orientation Events 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 { /** * The **\`acceleration\`** read-only property of the DeviceMotionEvent interface returns the acceleration recorded by the device, in meters per second squared (m/s²). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ readonly acceleration: DeviceMotionEventAcceleration | null; /** * The **\`accelerationIncludingGravity\`** read-only property of the DeviceMotionEvent interface returns the amount of acceleration recorded by the device, in meters per second squared (m/s²). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; /** * The **\`interval\`** read-only property of the DeviceMotionEvent interface returns the interval, in milliseconds, at which data is obtained from the underlying hardware. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ readonly interval: number; /** * The **\`rotationRate\`** read-only property of the DeviceMotionEvent interface returns the rate at which the device is rotating around each of its axes in degrees per second. * * [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; }; /** * The **\`DeviceMotionEventAcceleration\`** interface of the Device Orientation Events provides information about the amount of acceleration the device is experiencing along all three axes. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) */ interface DeviceMotionEventAcceleration { /** * The **\`x\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the X axis in a \`DeviceMotionEventAcceleration\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ readonly x: number | null; /** * The **\`y\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Y axis in a \`DeviceMotionEventAcceleration\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ readonly y: number | null; /** * The **\`z\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Z axis in a \`DeviceMotionEventAcceleration\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ readonly z: number | null; } /** * A **\`DeviceMotionEventRotationRate\`** interface of the Device Orientation Events provides information about the rate at which the device is rotating around all three axes. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) */ interface DeviceMotionEventRotationRate { /** * The **\`alpha\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Z axis, in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ readonly alpha: number | null; /** * The **\`beta\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the X axis, in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ readonly beta: number | null; /** * The **\`gamma\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Y axis, in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ readonly gamma: number | null; } /** * The **\`DeviceOrientationEvent\`** interface of the Device Orientation Events 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 { /** * The **\`absolute\`** read-only property of the DeviceOrientationEvent interface indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ readonly absolute: boolean; /** * The **\`alpha\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ readonly alpha: number | null; /** * The **\`beta\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the X axis; that is, the number of degrees, ranged between -180 and 180, by which the device is tipped forward or backward. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ readonly beta: number | null; /** * The **\`gamma\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Y axis; that is, the number of degrees, ranged between \`-90\` and \`90\`, by which the device is tilted left or right. * * [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; } /** * The **\`Document\`** interface represents 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 { /** * The **\`URL\`** read-only property of the Document interface returns the document location as a string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) */ readonly URL: string; /** * Returns or sets the color of an active link in the document body. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) */ alinkColor: string; /** * The Document interface's read-only **\`all\`** property returns an HTMLAllCollection rooted at the document node. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) */ readonly all: HTMLAllCollection; /** * The **\`anchors\`** read-only property of the An HTMLCollection. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) */ readonly anchors: HTMLCollectionOf; /** * The **\`applets\`** property of the Document returns an empty HTMLCollection. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) */ readonly applets: HTMLCollection; /** * The deprecated \`bgColor\` property gets or sets the background color of the current document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) */ bgColor: string; /** * The **\`Document.body\`** property represents the \`null\` if no such element exists. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) */ body: HTMLElement; /** * The **\`Document.characterSet\`** read-only property returns the character encoding of the document that it's currently rendered with. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly characterSet: string; /** * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly charset: string; /** * The **\`Document.compatMode\`** read-only property indicates whether the document is rendered in Quirks mode or Standards mode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) */ readonly compatMode: string; /** * The **\`Document.contentType\`** read-only property returns the MIME type that the document is being rendered as. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) */ readonly contentType: string; /** * The Document property \`cookie\` lets you read and write cookies associated with the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) */ cookie: string; /** * The **\`Document.currentScript\`** property returns the script element whose script is currently being processed and isn't a JavaScript module. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) */ readonly currentScript: HTMLOrSVGScriptElement | null; /** * In browsers, **\`document.defaultView\`** returns the This property is read-only. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) */ readonly defaultView: (WindowProxy & typeof globalThis) | null; /** * **\`document.designMode\`** controls whether the entire document is editable. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) */ designMode: string; /** * The **\`Document.dir\`** property is a string representing the directionality of the text of the document, whether left to right (default) or right to left. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) */ dir: string; /** * The **\`doctype\`** read-only property of the Document interface is a DocumentType object representing the Doctype associated with the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) */ readonly doctype: DocumentType | null; /** * The **\`documentElement\`** read-only property of the Document interface returns the example, the html element for HTML documents). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) */ readonly documentElement: HTMLElement; /** * The **\`documentURI\`** read-only property of the A string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) */ readonly documentURI: string; /** * The **\`domain\`** property of the Document interface gets/sets the domain portion of the origin of the current document, as used by the same-origin policy. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) */ domain: string; /** * The **\`embeds\`** read-only property of the An HTMLCollection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) */ readonly embeds: HTMLCollectionOf; /** * **\`fgColor\`** gets/sets the foreground color, or text color, of the current document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) */ fgColor: string; /** * The **\`forms\`** read-only property of the Document interface returns an HTMLCollection listing all the form elements contained in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) */ readonly forms: HTMLCollectionOf; /** * The **\`fragmentDirective\`** read-only property of the Document interface returns the FragmentDirective for the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective) */ readonly fragmentDirective: FragmentDirective; /** * The obsolete Document interface's **\`fullscreen\`** read-only property reports whether or not the document is currently displaying content in fullscreen mode. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) */ readonly fullscreen: boolean; /** * The read-only **\`fullscreenEnabled\`** property on the Document interface indicates whether or not fullscreen mode is available. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) */ readonly fullscreenEnabled: boolean; /** * The **\`head\`** read-only property of the Document interface returns the head element of the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) */ readonly head: HTMLHeadElement; /** * The **\`Document.hidden\`** read-only property returns a Boolean value indicating if the page is considered hidden or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ readonly hidden: boolean; /** * The **\`images\`** read-only property of the Document interface returns a collection of the images in the current HTML document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) */ readonly images: HTMLCollectionOf; /** * The **\`Document.implementation\`** property returns a A DOMImplementation object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) */ readonly implementation: DOMImplementation; /** * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly inputEncoding: string; /** * The **\`lastModified\`** property of the Document interface returns a string containing the date and local time on which the current document was last modified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) */ readonly lastModified: string; /** * The **\`Document.linkColor\`** property gets/sets the color of links within the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) */ linkColor: string; /** * The **\`links\`** read-only property of the Document interface returns a collection of all area elements and a elements in a document with a value for the href attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) */ readonly links: HTMLCollectionOf; /** * The **\`Document.location\`** read-only property returns a and provides methods for changing that URL and loading another URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) */ get location(): Location; set location(href: string); /** [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; /** [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; /** * The read-only **\`pictureInPictureEnabled\`** property of the available. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ readonly pictureInPictureEnabled: boolean; /** * The **\`plugins\`** read-only property of the containing one or more HTMLEmbedElements representing the An HTMLCollection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) */ readonly plugins: HTMLCollectionOf; /** * The **\`Document.readyState\`** property describes the loading state of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) */ readonly readyState: DocumentReadyState; /** * The **\`Document.referrer\`** property returns the URI of the page that linked to this page. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) */ readonly referrer: string; /** * **\`Document.rootElement\`** returns the Element that is the root element of the document if it is an documents. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) */ readonly rootElement: SVGSVGElement | null; /** * The **\`scripts\`** property of the Document interface returns a list of the script elements in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) */ readonly scripts: HTMLCollectionOf; /** * The **\`scrollingElement\`** read-only property of the scrolls the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ readonly scrollingElement: Element | null; /** * The \`timeline\` readonly property of the Document interface represents the default timeline of the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ readonly timeline: DocumentTimeline; /** * The **\`document.title\`** property gets or sets the current title of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) */ title: string; /** * The **\`Document.visibilityState\`** read-only property returns the visibility of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ readonly visibilityState: DocumentVisibilityState; /** * The **\`Document.vlinkColor\`** property gets/sets the color of links that the user has visited in the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) */ vlinkColor: string; /** * **\`Document.adoptNode()\`** transfers a node/dom from another Document into the method's document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) */ adoptNode(node: T): T; /** @deprecated */ captureEvents(): void; /** * The **\`caretPositionFromPoint()\`** method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret's character offset within that node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint) */ caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range | null; /** * The **\`Document.clear()\`** method does nothing, but doesn't raise any error. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) */ clear(): void; /** * The **\`Document.close()\`** method finishes writing to a document, opened with Document.open(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) */ close(): void; /** * The **\`Document.createAttribute()\`** method creates a new attribute node, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** * The **\`Document.createAttributeNS()\`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ createAttributeNS(namespace: string | null, qualifiedName: string): Attr; /** * **\`createCDATASection()\`** creates a new CDATA section node, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) */ createCDATASection(data: string): CDATASection; /** * **\`createComment()\`** creates a new comment node, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) */ createComment(data: string): Comment; /** * Creates a new empty DocumentFragment into which DOM nodes can be added to build an offscreen DOM tree. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) */ createDocumentFragment(): DocumentFragment; /** * In an HTML document, the **\`document.createElement()\`** method creates the HTML element specified by \`localName\`, or an HTMLUnknownElement if \`localName\` isn't recognized. * * [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; /** * Creates an element with the specified namespace URI and qualified name. * * [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; /** * Creates an event of the type specified. * @deprecated * * [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: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent; createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent; 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: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent; createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent; 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: "TextEvent"): TextEvent; 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; /** * The **\`Document.createNodeIterator()\`** method returns a new \`NodeIterator\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) */ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; /** * \`createProcessingInstruction()\` generates a new processing instruction node and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) */ createProcessingInstruction(target: string, data: string): ProcessingInstruction; /** * The **\`Document.createRange()\`** method returns a new \`\`\`js-nolint createRange() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) */ createRange(): Range; /** * Creates a new Text node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) */ createTextNode(data: string): Text; /** * The **\`Document.createTreeWalker()\`** creator method returns a newly created TreeWalker object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; /** * The **\`execCommand\`** method implements multiple different commands. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) */ execCommand(commandId: string, showUI?: boolean, value?: string): boolean; /** * The Document method **\`exitFullscreen()\`** requests that the element on this document which is currently being presented in fullscreen mode be taken out of fullscreen mode, restoring the previous state of the screen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) */ exitFullscreen(): Promise; /** * The **\`exitPictureInPicture()\`** method of the Document interface requests that a video contained in this document, which is currently floating, be taken out of picture-in-picture mode, restoring the previous state of the screen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ exitPictureInPicture(): Promise; /** * The **\`exitPointerLock()\`** method of the Document interface asynchronously releases a pointer lock previously requested through Element.requestPointerLock. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ exitPointerLock(): void; getElementById(elementId: string): HTMLElement | null; /** * The **\`getElementsByClassName\`** method of of all child elements which have all of the given class name(s). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * The **\`getElementsByName()\`** method of the Document object returns a NodeList Collection of elements with a given \`name\` attribute in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) */ getElementsByName(elementName: string): NodeListOf; /** * The **\`getElementsByTagName\`** method of The complete document is searched, including the root node. * * [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; /** * Returns a list of elements with the given tag name belonging to the given namespace. * * [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; /** * The **\`getSelection()\`** method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) */ getSelection(): Selection | null; /** * The **\`hasFocus()\`** method of the Document interface returns a boolean value indicating whether the document or any element inside the document has focus. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) */ hasFocus(): boolean; /** * The **\`hasStorageAccess()\`** method of the Document interface returns a Promise that resolves with a boolean value indicating whether the document has access to third-party, unpartitioned cookies. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ hasStorageAccess(): Promise; /** * The Document object's **\`importNode()\`** method creates a copy of a inserted into the current document later. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) */ importNode(node: T, options?: boolean | ImportNodeOptions): T; /** * The **\`Document.open()\`** method opens a document for This does come with some side effects. * * [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; /** * The **\`Document.queryCommandEnabled()\`** method reports whether or not the specified editor command is enabled by the browser. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) */ queryCommandEnabled(commandId: string): boolean; /** @deprecated */ queryCommandIndeterm(commandId: string): boolean; /** * The **\`queryCommandState()\`** method will tell you if the current selection has a certain Document.execCommand() command applied. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) */ queryCommandState(commandId: string): boolean; /** * The **\`Document.queryCommandSupported()\`** method reports whether or not the specified editor command is supported by the browser. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) */ queryCommandSupported(commandId: string): boolean; /** @deprecated */ queryCommandValue(commandId: string): string; /** @deprecated */ releaseEvents(): void; /** * The **\`requestStorageAccess()\`** method of the Document interface allows content loaded in a third-party context (i.e., embedded in an iframe) to request access to third-party cookies and unpartitioned state. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ requestStorageAccess(): Promise; /** * The **\`startViewTransition()\`** method of the Document interface starts a new same-document (SPA) view transition and returns a ViewTransition object to represent it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */ startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition; /** * The **\`write()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(). * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) */ write(...text: string[]): void; /** * The **\`writeln()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(), followed by a newline character. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) */ writeln(...text: string[]): void; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): null; 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; /** * The **\`parseHTMLUnsafe()\`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ parseHTMLUnsafe(html: string): Document; }; /** * The **\`DocumentFragment\`** interface represents a minimal document object that has no parent. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { readonly ownerDocument: Document; getElementById(elementId: string): HTMLElement | null; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) */ readonly styleSheets: StyleSheetList; 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[]; } /** * The **\`DocumentTimeline\`** interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ interface DocumentTimeline extends AnimationTimeline { } declare var DocumentTimeline: { prototype: DocumentTimeline; new(options?: DocumentTimelineOptions): DocumentTimeline; }; /** * The **\`DocumentType\`** interface represents a Node containing a doctype. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) */ interface DocumentType extends Node, ChildNode { /** * The read-only **\`name\`** property of the DocumentType returns the type of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ readonly name: string; readonly ownerDocument: Document; /** * The read-only **\`publicId\`** property of the DocumentType returns a formal identifier of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ readonly publicId: string; /** * The read-only **\`systemId\`** property of the DocumentType returns the URL of the associated DTD. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ readonly systemId: string; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): null; } declare var DocumentType: { prototype: DocumentType; new(): DocumentType; }; /** * The **\`DragEvent\`** interface is a DOM event that represents a drag and drop interaction. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) */ interface DragEvent extends MouseEvent { /** * The **\`DragEvent.dataTransfer\`** read-only property holds the drag operation's data (as a DataTransfer object). * * [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; }; /** * The \`DynamicsCompressorNode\` interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) */ interface DynamicsCompressorNode extends AudioNode { /** * The \`attack\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the amount of time, in seconds, required to reduce the gain by 10 dB. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ readonly attack: AudioParam; /** * The \`knee\` property of the DynamicsCompressorNode interface is a k-rate AudioParam containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ readonly knee: AudioParam; /** * The \`ratio\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of change, in dB, needed in the input for a 1 dB change in the output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ readonly ratio: AudioParam; /** * The **\`reduction\`** read-only property of the DynamicsCompressorNode interface is a float representing the amount of gain reduction currently applied by the compressor to the signal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ readonly reduction: number; /** * The \`release\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of time, in seconds, required to increase the gain by 10 dB. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ readonly release: AudioParam; /** * The \`threshold\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the decibel value above which the compression will start taking effect. * * [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; }; /** * The **\`EXT_blend_minmax\`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ interface EXT_blend_minmax { readonly MIN_EXT: 0x8007; readonly MAX_EXT: 0x8008; } /** * The **\`EXT_color_buffer_float\`** extension is part of WebGL and adds the ability to render a variety of floating point formats. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ interface EXT_color_buffer_float { } /** * The **\`EXT_color_buffer_half_float\`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers. * * [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; } /** * The WebGL API's \`EXT_float_blend\` extension allows blending and draw buffers with 32-bit floating-point components. * * [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 { } /** * The **\`EXT_sRGB\`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * * [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; } /** * The **\`EXT_shader_texture_lod\`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ interface EXT_shader_texture_lod { } /** * The \`EXT_texture_compression_bptc\` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats. * * [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; } /** * The \`EXT_texture_compression_rgtc\` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats. * * [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; } /** * The **\`EXT_texture_norm16\`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer). * * [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 element objects (i.e., objects that represent elements) in a Document inherit. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { /** * The **\`Element.attributes\`** property returns a live collection of all attribute nodes registered to the specified node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ readonly attributes: NamedNodeMap; /** * The **\`Element.classList\`** is a read-only property that returns a live DOMTokenList collection of the \`class\` attributes of the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) */ get classList(): DOMTokenList; set classList(value: string); /** * The **\`className\`** property of the of the specified element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) */ className: string; /** * The **\`clientHeight\`** read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ readonly clientHeight: number; /** * The **\`clientLeft\`** read-only property of the Element interface returns the width of the left border of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ readonly clientLeft: number; /** * The **\`clientTop\`** read-only property of the Element interface returns the width of the top border of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ readonly clientTop: number; /** * The **\`clientWidth\`** read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ readonly clientWidth: number; /** * The **\`currentCSSZoom\`** read-only property of the Element interface provides the 'effective' CSS \`zoom\` of an element, taking into account the zoom applied to the element and all its parent elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) */ readonly currentCSSZoom: number; /** * The **\`id\`** property of the Element interface represents the element's identifier, reflecting the **\`id\`** global attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) */ id: string; /** * The **\`innerHTML\`** property of the Element interface gets or sets the HTML or XML markup contained within the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ innerHTML: string; /** * The **\`Element.localName\`** read-only property returns the local part of the qualified name of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) */ readonly localName: string; /** * The **\`Element.namespaceURI\`** read-only property returns the namespace URI of the element, or \`null\` if the element is not in a 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; /** * The **\`outerHTML\`** attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ outerHTML: string; readonly ownerDocument: Document; /** * The **\`part\`** property of the Element interface represents the part identifier(s) of the element (i.e., set using the \`part\` attribute), returned as a DOMTokenList. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ get part(): DOMTokenList; set part(value: string); /** * The **\`Element.prefix\`** read-only property returns the namespace prefix of the specified element, or \`null\` if no prefix is specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) */ readonly prefix: string | null; /** * The **\`scrollHeight\`** read-only property of the Element interface is a measurement of the height of an element's content, including content not visible on the screen due to overflow. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ readonly scrollHeight: number; /** * The **\`scrollLeft\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its left edge. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ scrollLeft: number; /** * The **\`scrollTop\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its top edge. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ scrollTop: number; /** * The **\`scrollWidth\`** read-only property of the Element interface is a measurement of the width of an element's content, including content not visible on the screen due to overflow. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ readonly scrollWidth: number; /** * The \`Element.shadowRoot\` read-only property represents the shadow root hosted by the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * The **\`slot\`** property of the Element interface returns the name of the shadow DOM slot the element is inserted in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) */ slot: string; /** * The **\`tagName\`** read-only property of the Element interface returns the tag name of the element on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) */ readonly tagName: string; /** * The **\`Element.attachShadow()\`** method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) */ attachShadow(init: ShadowRootInit): ShadowRoot; /** * The **\`checkVisibility()\`** method of the Element interface checks whether the element is visible. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ checkVisibility(options?: CheckVisibilityOptions): boolean; /** * The **\`closest()\`** method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector. * * [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; /** * The **\`computedStyleMap()\`** method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ computedStyleMap(): StylePropertyMapReadOnly; /** * The **\`getAttribute()\`** method of the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) */ getAttribute(qualifiedName: string): string | null; /** * The **\`getAttributeNS()\`** method of the Element interface returns the string value of the attribute with the specified namespace and name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) */ getAttributeNS(namespace: string | null, localName: string): string | null; /** * The **\`getAttributeNames()\`** method of the array. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) */ getAttributeNames(): string[]; /** * Returns the specified attribute of the specified element, as an Attr node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ getAttributeNode(qualifiedName: string): Attr | null; /** * The **\`getAttributeNodeNS()\`** method of the Element interface returns the namespaced Attr node of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; /** * The **\`Element.getBoundingClientRect()\`** method returns a position relative to the viewport. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ getBoundingClientRect(): DOMRect; /** * The **\`getClientRects()\`** method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ getClientRects(): DOMRectList; /** * The Element method **\`getElementsByClassName()\`** returns a live specified class name or names. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * The **\`Element.getElementsByTagName()\`** method returns a live All descendants of the specified element are searched, but not the element itself. * * [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; /** * The **\`Element.getElementsByTagNameNS()\`** method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace. * * [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; /** * The **\`getHTML()\`** method of the Element interface is used to serialize an element's DOM to an HTML string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML) */ getHTML(options?: GetHTMLOptions): string; /** * The **\`Element.hasAttribute()\`** method returns a **Boolean** value indicating whether the specified element has the specified attribute or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) */ hasAttribute(qualifiedName: string): boolean; /** * The **\`hasAttributeNS()\`** method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) */ hasAttributeNS(namespace: string | null, localName: string): boolean; /** * The **\`hasAttributes()\`** method of the Element interface returns a boolean value indicating whether the current element has any attributes or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) */ hasAttributes(): boolean; /** * The **\`hasPointerCapture()\`** method of the pointer capture for the pointer identified by the given pointer ID. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ hasPointerCapture(pointerId: number): boolean; /** * The **\`insertAdjacentElement()\`** method of the relative to the element it is invoked upon. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ insertAdjacentElement(where: InsertPosition, element: Element): Element | null; /** * The **\`insertAdjacentHTML()\`** method of the the resulting nodes into the DOM tree at a specified position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ insertAdjacentHTML(position: InsertPosition, string: string): void; /** * The **\`insertAdjacentText()\`** method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ insertAdjacentText(where: InsertPosition, data: string): void; /** * The **\`matches()\`** method of the Element interface tests whether the element would be selected by the specified CSS selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ matches(selectors: string): boolean; /** * The **\`releasePointerCapture()\`** method of the previously set for a specific (PointerEvent) _pointer_. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ releasePointerCapture(pointerId: number): void; /** * The Element method **\`removeAttribute()\`** removes the attribute with the specified name from the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) */ removeAttribute(qualifiedName: string): void; /** * The **\`removeAttributeNS()\`** method of the If you are working with HTML and you don't need to specify the requested attribute as being part of a specific namespace, use the Element.removeAttribute() method instead. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) */ removeAttributeNS(namespace: string | null, localName: string): void; /** * The **\`removeAttributeNode()\`** method of the Element interface removes the specified Attr node from the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ removeAttributeNode(attr: Attr): Attr; /** * The **\`Element.requestFullscreen()\`** method issues an asynchronous request to make the element be displayed in fullscreen mode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) */ requestFullscreen(options?: FullscreenOptions): Promise; /** * The **\`requestPointerLock()\`** method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ requestPointerLock(options?: PointerLockOptions): Promise; /** * The **\`scroll()\`** method of the Element interface scrolls the element to a particular set of coordinates inside a given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; /** * The **\`scrollBy()\`** method of the Element interface scrolls an element by the given amount. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; /** * The Element interface's **\`scrollIntoView()\`** method scrolls the element's ancestor containers such that the element on which \`scrollIntoView()\` is called is visible to the user. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; /** * The **\`scrollTo()\`** method of the Element interface scrolls to a particular set of coordinates inside a given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; /** * The **\`setAttribute()\`** method of the Element interface sets the value of an attribute on the specified element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) */ setAttribute(qualifiedName: string, value: string): void; /** * \`setAttributeNS\` adds a new attribute or changes the value of an attribute with the given namespace and name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) */ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; /** * The **\`setAttributeNode()\`** method of the Element interface adds a new Attr node to the specified element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ setAttributeNode(attr: Attr): Attr | null; /** * The **\`setAttributeNodeNS()\`** method of the Element interface adds a new namespaced Attr node to an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ setAttributeNodeNS(attr: Attr): Attr | null; /** * The **\`setHTMLUnsafe()\`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ setHTMLUnsafe(html: string): void; /** * The **\`setPointerCapture()\`** method of the _capture target_ of future pointer events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ setPointerCapture(pointerId: number): void; /** * The **\`toggleAttribute()\`** method of the present and adding it if it is not present) on the given element. * * [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; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | null); 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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */ readonly attributeStyleMap: StylePropertyMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } 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; } /** * The **\`ElementInternals\`** interface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ interface ElementInternals extends ARIAMixin { /** * The **\`form\`** read-only property of the ElementInternals interface returns the HTMLFormElement associated with this element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) */ readonly form: HTMLFormElement | null; /** * The **\`labels\`** read-only property of the ElementInternals interface returns the labels associated with the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) */ readonly labels: NodeList; /** * The **\`shadowRoot\`** read-only property of the ElementInternals interface returns the ShadowRoot for this element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * The **\`states\`** read-only property of the ElementInternals interface returns a CustomStateSet representing the possible states of the custom element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */ readonly states: CustomStateSet; /** * The **\`validationMessage\`** read-only property of the ElementInternals interface returns the validation message for the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) */ readonly validationMessage: string; /** * The **\`validity\`** read-only property of the ElementInternals interface returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) */ readonly validity: ValidityState; /** * The **\`willValidate\`** read-only property of the ElementInternals interface returns \`true\` if the element is a submittable element that is a candidate for constraint validation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) */ readonly willValidate: boolean; /** * The **\`checkValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) */ checkValidity(): boolean; /** * The **\`reportValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) */ reportValidity(): boolean; /** * The **\`setFormValue()\`** method of the ElementInternals interface sets the element's submission value and state, communicating these to the user agent. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) */ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; /** * The **\`setValidity()\`** method of the ElementInternals interface sets the validity of the element. * * [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; }; /** * The **\`EncodedAudioChunk\`** interface of the WebCodecs API represents a chunk of encoded audio data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk) */ interface EncodedAudioChunk { /** * The **\`byteLength\`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) */ readonly byteLength: number; /** * The **\`duration\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) */ readonly duration: number | null; /** * The **\`timestamp\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) */ readonly timestamp: number; /** * The **\`type\`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) */ readonly type: EncodedAudioChunkType; /** * The **\`copyTo()\`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) */ copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedAudioChunk: { prototype: EncodedAudioChunk; new(init: EncodedAudioChunkInit): EncodedAudioChunk; }; /** * The **\`EncodedVideoChunk\`** interface of the WebCodecs API represents a chunk of encoded video data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ interface EncodedVideoChunk { /** * The **\`byteLength\`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ readonly byteLength: number; /** * The **\`duration\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ readonly duration: number | null; /** * The **\`timestamp\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ readonly timestamp: number; /** * The **\`type\`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ readonly type: EncodedVideoChunkType; /** * The **\`copyTo()\`** method of the EncodedVideoChunk interface copies the encoded chunk of video data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedVideoChunk: { prototype: EncodedVideoChunk; new(init: EncodedVideoChunkInit): EncodedVideoChunk; }; /** * The **\`ErrorEvent\`** interface represents 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 { /** * The **\`colno\`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ readonly colno: number; /** * The **\`error\`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ readonly error: any; /** * The **\`filename\`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ readonly filename: string; /** * The **\`lineno\`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ readonly lineno: number; /** * The **\`message\`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem. * * [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; }; /** * The **\`Event\`** interface represents an event which takes place on an \`EventTarget\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) */ interface Event { /** * The **\`bubbles\`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) */ readonly bubbles: boolean; /** * The **\`cancelBubble\`** property of the Event interface is deprecated. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) */ cancelBubble: boolean; /** * The **\`cancelable\`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) */ readonly cancelable: boolean; /** * The read-only **\`composed\`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) */ readonly composed: boolean; /** * The **\`currentTarget\`** read-only property of the Event interface identifies the element to which the event handler has been attached. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) */ readonly currentTarget: EventTarget | null; /** * The **\`defaultPrevented\`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) */ readonly defaultPrevented: boolean; /** * The **\`eventPhase\`** read-only property of the being evaluated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) */ readonly eventPhase: number; /** * The **\`isTrusted\`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and \`false\` when the event was dispatched via The only exception is the \`click\` event, which initializes the \`isTrusted\` property to \`false\` in user agents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ readonly isTrusted: boolean; /** * The Event property **\`returnValue\`** indicates whether the default action for this event has been prevented or not. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) */ returnValue: boolean; /** * The deprecated **\`Event.srcElement\`** is an alias for the Event.target property. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) */ readonly srcElement: EventTarget | null; /** * The read-only **\`target\`** property of the dispatched. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) */ readonly target: EventTarget | null; /** * The **\`timeStamp\`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) */ readonly timeStamp: DOMHighResTimeStamp; /** * The **\`type\`** read-only property of the Event interface returns a string containing the event's type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) */ readonly type: string; /** * The **\`composedPath()\`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) */ composedPath(): EventTarget[]; /** * The **\`Event.initEvent()\`** method is used to initialize the value of an event created using Document.createEvent(). * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) */ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; /** * The **\`preventDefault()\`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) */ preventDefault(): void; /** * The **\`stopImmediatePropagation()\`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) */ stopImmediatePropagation(): void; /** * The **\`stopPropagation()\`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases. * * [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; }; /** * The **\`EventCounts\`** interface of the Performance API provides the number of events that have been dispatched for each event type. * * [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; } /** * The **\`EventSource\`** interface is web content's interface to server-sent events. * * [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; /** * The **\`readyState\`** read-only property of the connection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) */ readonly readyState: number; /** * The **\`url\`** read-only property of the URL of the source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) */ readonly url: string; /** * The **\`withCredentials\`** read-only property of the the \`EventSource\` object was instantiated with CORS credentials set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) */ readonly withCredentials: boolean; /** * The **\`close()\`** method of the EventSource interface closes the connection, if one is made, and sets the \`\`\`js-nolint close() \`\`\` None. * * [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; }; /** * The **\`EventTarget\`** interface is 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 { /** * The **\`addEventListener()\`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) */ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; /** * The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) */ dispatchEvent(event: Event): boolean; /** * The **\`removeEventListener()\`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. * * [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 */ interface External { /** @deprecated */ AddSearchProvider(): void; /** @deprecated */ IsSearchProviderInstalled(): void; } /** @deprecated */ declare var External: { prototype: External; new(): External; }; /** * The **\`File\`** interface 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 { /** * The **\`lastModified\`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ readonly lastModified: number; /** * The **\`name\`** read-only property of the File interface returns the name of the file represented by a File object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ readonly name: string; /** * The **\`webkitRelativePath\`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an input element with its \`webkitdirectory\` attribute set. * * [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; }; /** * The **\`FileList\`** interface represents an object of this type returned by the \`files\` property of the HTML input element; this lets you access the list of files selected with the \`\` element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) */ interface FileList { /** * The **\`length\`** read-only property of the FileList interface returns the number of files in the \`FileList\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ readonly length: number; /** * The **\`item()\`** method of the FileList interface returns a File object representing the file at the specified index in the file list. * * [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; } /** * The **\`FileReader\`** interface 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 { /** * The **\`error\`** read-only property of the FileReader interface returns the error that occurred while reading the file. * * [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; /** * The **\`readyState\`** read-only property of the FileReader interface provides the current state of the reading operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; /** * The **\`result\`** read-only property of the FileReader interface returns the file's contents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ readonly result: string | ArrayBuffer | null; /** * The **\`abort()\`** method of the FileReader interface aborts the read operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ abort(): void; /** * The **\`readAsArrayBuffer()\`** method of the FileReader interface is used to start reading the contents of a specified Blob or File. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ readAsArrayBuffer(blob: Blob): void; /** * The **\`readAsBinaryString()\`** method of the FileReader interface is used to start reading the contents of the specified Blob or File. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) */ readAsBinaryString(blob: Blob): void; /** * The **\`readAsDataURL()\`** method of the FileReader interface is used to read the contents of the specified file's data as a base64 encoded string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ readAsDataURL(blob: Blob): void; /** * The **\`readAsText()\`** method of the FileReader interface is used to read the contents of the specified Blob or File. * * [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; }; /** * The File and Directory Entries API interface **\`FileSystem\`** is used to represent a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ interface FileSystem { /** * The read-only **\`name\`** property of the string is unique among all file systems currently exposed by the File and Directory Entries API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ readonly name: string; /** * The read-only **\`root\`** property of the object representing the root directory of the file system, for use with the File and Directory Entries API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ readonly root: FileSystemDirectoryEntry; } declare var FileSystem: { prototype: FileSystem; new(): FileSystem; }; /** * The **\`FileSystemDirectoryEntry\`** interface of the File and Directory Entries API represents a directory in a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ interface FileSystemDirectoryEntry extends FileSystemEntry { /** * The FileSystemDirectoryEntry interface's method **\`createReader()\`** returns a the directory. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ createReader(): FileSystemDirectoryReader; /** * The FileSystemDirectoryEntry interface's method **\`getDirectory()\`** returns a somewhere within the directory subtree rooted at the directory on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; /** * The FileSystemDirectoryEntry interface's method **\`getFile()\`** returns a within the directory subtree rooted at the directory on which it's called. * * [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; }; /** * The **\`FileSystemDirectoryHandle\`** interface of the File System API provides a handle to a file system directory. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) */ interface FileSystemDirectoryHandle extends FileSystemHandle { readonly kind: "directory"; /** * The **\`getDirectoryHandle()\`** method of the within the directory handle on which the method is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; /** * The **\`getFileHandle()\`** method of the directory the method is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; /** * The **\`removeEntry()\`** method of the directory handle contains a file or directory called the name specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; /** * The **\`resolve()\`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ resolve(possibleDescendant: FileSystemHandle): Promise; } declare var FileSystemDirectoryHandle: { prototype: FileSystemDirectoryHandle; new(): FileSystemDirectoryHandle; }; /** * The \`FileSystemDirectoryReader\` interface of the File and Directory Entries API lets you access the FileSystemFileEntry-based objects (generally FileSystemFileEntry or FileSystemDirectoryEntry) representing each entry in a directory. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ interface FileSystemDirectoryReader { /** * The FileSystemDirectoryReader interface's **\`readEntries()\`** method retrieves the directory entries within the directory being read and delivers them in an array to a provided callback function. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryReader: { prototype: FileSystemDirectoryReader; new(): FileSystemDirectoryReader; }; /** * The **\`FileSystemEntry\`** interface of the File and Directory Entries API represents a single entry in a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ interface FileSystemEntry { /** * The read-only **\`filesystem\`** property of the FileSystemEntry interface contains a resides. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ readonly filesystem: FileSystem; /** * The read-only **\`fullPath\`** property of the FileSystemEntry interface returns a string specifying the full, absolute path from the file system's root to the file represented by the entry. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ readonly fullPath: string; /** * The read-only **\`isDirectory\`** property of the FileSystemEntry interface is \`true\` if the entry represents a directory (meaning it's a FileSystemDirectoryEntry) and \`false\` if it's not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ readonly isDirectory: boolean; /** * The read-only **\`isFile\`** property of the FileSystemEntry interface is \`true\` if the entry represents a file (meaning it's a FileSystemFileEntry) and \`false\` if it's not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ readonly isFile: boolean; /** * The read-only **\`name\`** property of the FileSystemEntry interface returns a string specifying the entry's name; this is the entry within its parent directory (the last component of the path as indicated by the FileSystemEntry.fullPath property). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ readonly name: string; /** * The FileSystemEntry interface's method **\`getParent()\`** obtains a \`\`\`js-nolint getParent(successCallback, errorCallback) getParent(successCallback) \`\`\` - \`successCallback\` - : A function which is called when the parent directory entry has been retrieved. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemEntry: { prototype: FileSystemEntry; new(): FileSystemEntry; }; /** * The **\`FileSystemFileEntry\`** interface of the File and Directory Entries API represents a file in a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ interface FileSystemFileEntry extends FileSystemEntry { /** * The FileSystemFileEntry interface's method **\`file()\`** returns a the directory entry. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemFileEntry: { prototype: FileSystemFileEntry; new(): FileSystemFileEntry; }; /** * The **\`FileSystemFileHandle\`** interface of the File System API represents a handle to a file system entry. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) */ interface FileSystemFileHandle extends FileSystemHandle { readonly kind: "file"; /** * The **\`createWritable()\`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ createWritable(options?: FileSystemCreateWritableOptions): Promise; /** * The **\`getFile()\`** method of the If the file on disk changes or is removed after this method is called, the returned \`\`\`js-nolint getFile() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ getFile(): Promise; } declare var FileSystemFileHandle: { prototype: FileSystemFileHandle; new(): FileSystemFileHandle; }; /** * The **\`FileSystemHandle\`** interface of the File System API is an object which represents a file or directory entry. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) */ interface FileSystemHandle { /** * The **\`kind\`** read-only property of the \`'file'\` if the associated entry is a file or \`'directory'\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ readonly kind: FileSystemHandleKind; /** * The **\`name\`** read-only property of the handle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ readonly name: string; /** * The **\`isSameEntry()\`** method of the \`\`\`js-nolint isSameEntry(fileSystemHandle) \`\`\` - FileSystemHandle - : The \`FileSystemHandle\` to match against the handle on which the method is invoked. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ isSameEntry(other: FileSystemHandle): Promise; } declare var FileSystemHandle: { prototype: FileSystemHandle; new(): FileSystemHandle; }; /** * The **\`FileSystemWritableFileStream\`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) */ interface FileSystemWritableFileStream extends WritableStream { /** * The **\`seek()\`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ seek(position: number): Promise; /** * The **\`truncate()\`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ truncate(size: number): Promise; /** * The **\`write()\`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ write(data: FileSystemWriteChunkType): Promise; } declare var FileSystemWritableFileStream: { prototype: FileSystemWritableFileStream; new(): FileSystemWritableFileStream; }; /** * The **\`FocusEvent\`** interface represents focus-related events, including Element/focus_event, Element/blur_event, Element/focusin_event, and Element/focusout_event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) */ interface FocusEvent extends UIEvent { /** * The **\`relatedTarget\`** read-only property of the FocusEvent interface is the secondary target, depending on the type of event:
Event name target relatedTarget
Element/blur_event The EventTarget losing focus The EventTarget receiving focus (if any).
Element/focus_event The EventTarget receiving focus The EventTarget losing focus (if any)
Element/focusin_event The EventTarget receiving focus The EventTarget losing focus (if any)
Element/focusout_event The EventTarget losing focus The EventTarget receiving focus (if any)
Note that many elements can't have focus, which is a common reason for \`relatedTarget\` to be \`null\`. * * [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; }; /** * The **\`FontFace\`** interface of the CSS Font Loading API represents a single usable font face. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ interface FontFace { /** * The **\`ascentOverride\`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ ascentOverride: string; /** * The **\`descentOverride\`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ descentOverride: string; /** * The **\`display\`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ display: FontDisplay; /** * The **\`FontFace.family\`** property allows the author to get or set the font family of a FontFace object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ family: string; /** * The **\`featureSettings\`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font's variant properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ featureSettings: string; /** * The **\`lineGapOverride\`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ lineGapOverride: string; /** * The **\`loaded\`** read-only property of the FontFace interface returns a Promise that resolves with the current \`FontFace\` object when the font specified in the object's constructor is done loading or rejects with a \`SyntaxError\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ readonly loaded: Promise; /** * The **\`status\`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of \`'unloaded'\`, \`'loading'\`, \`'loaded'\`, or \`'error'\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ readonly status: FontFaceLoadStatus; /** * The **\`stretch\`** property of the FontFace interface retrieves or sets how the font stretches. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ stretch: string; /** * The **\`style\`** property of the FontFace interface retrieves or sets the font's style. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ style: string; /** * The **\`unicodeRange\`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; /** * The **\`weight\`** property of the FontFace interface retrieves or sets the weight of the font. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** * The **\`load()\`** method of the FontFace interface requests and loads a font whose \`source\` was specified as a URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ load(): Promise; } declare var FontFace: { prototype: FontFace; new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { "loading": FontFaceSetLoadEvent; "loadingdone": FontFaceSetLoadEvent; "loadingerror": FontFaceSetLoadEvent; } /** * The **\`FontFaceSet\`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status. * * [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: FontFaceSetLoadEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** * The \`ready\` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ readonly ready: Promise; /** * The **\`status\`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ readonly status: FontFaceSetLoadStatus; /** * The \`check()\` method of the FontFaceSet returns \`true\` if you can render some text using the given font specification without attempting to use any fonts in this \`FontFaceSet\` that are not yet fully loaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ check(font: string, text?: string): boolean; /** * The \`load()\` method of the FontFaceSet forces all the fonts given in parameters to be loaded. * * [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(): FontFaceSet; }; /** * The **\`FontFaceSetLoadEvent\`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ interface FontFaceSetLoadEvent extends Event { /** * The **\`fontfaces\`** read-only property of the An array of FontFace instance. * * [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; } /** * The **\`FormData\`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) */ interface FormData { /** * The **\`append()\`** method of the FormData interface appends a new value onto an existing key inside a \`FormData\` object, or adds the key if it does not already exist. * * [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; /** * The **\`delete()\`** method of the FormData interface deletes a key and its value(s) from a \`FormData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ delete(name: string): void; /** * The **\`get()\`** method of the FormData interface returns the first value associated with a given key from within a \`FormData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ get(name: string): FormDataEntryValue | null; /** * The **\`getAll()\`** method of the FormData interface returns all the values associated with a given key from within a \`FormData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ getAll(name: string): FormDataEntryValue[]; /** * The **\`has()\`** method of the FormData interface returns whether a \`FormData\` object contains a certain key. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ has(name: string): boolean; /** * The **\`set()\`** method of the FormData interface sets a new value for an existing key inside a \`FormData\` object, or adds the key/value if it does not already exist. * * [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; }; /** * The **\`FormDataEvent\`** interface represents a \`formdata\` event — such an event is fired on an HTMLFormElement object after the entry list representing the form's data is constructed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ interface FormDataEvent extends Event { /** * The \`formData\` read-only property of the FormDataEvent interface contains the FormData object representing the data contained in the form when the event was fired. * * [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; }; /** * The **\`FragmentDirective\`** interface is an object exposed to allow code to check whether or not a browser supports text fragments. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FragmentDirective) */ interface FragmentDirective { } declare var FragmentDirective: { prototype: FragmentDirective; new(): FragmentDirective; }; /** * The **\`GPUError\`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError) */ interface GPUError { /** * The **\`message\`** read-only property of the A string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message) */ readonly message: string; } /** * The \`GainNode\` interface represents a change in volume. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) */ interface GainNode extends AudioNode { /** * The \`gain\` property of the GainNode interface is an a-rate AudioParam representing the amount of gain to apply. * * [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; }; /** * The **\`Gamepad\`** interface of the Gamepad API defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) */ interface Gamepad { /** * The **\`Gamepad.axes\`** property of the Gamepad interface returns an array representing the controls with axes present on the device (e.g., analog thumb sticks). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ readonly axes: ReadonlyArray; /** * The **\`buttons\`** property of the Gamepad interface returns an array of GamepadButton objects representing the buttons present on the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ readonly buttons: ReadonlyArray; /** * The **\`Gamepad.connected\`** property of the still connected to the system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ readonly connected: boolean; /** * The **\`Gamepad.id\`** property of the Gamepad interface returns a string containing some information about the controller. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ readonly id: string; /** * The **\`Gamepad.index\`** property of the Gamepad interface returns an integer that is auto-incremented to be unique for each device currently connected to the system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ readonly index: number; /** * The **\`Gamepad.mapping\`** property of the remapped the controls on the device to a known layout. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ readonly mapping: GamepadMappingType; /** * The **\`Gamepad.timestamp\`** property of the representing the last time the data for this gamepad was updated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ readonly timestamp: DOMHighResTimeStamp; /** * The **\`vibrationActuator\`** read-only property of the Gamepad interface returns a GamepadHapticActuator object, which represents haptic feedback hardware available on the controller. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator) */ readonly vibrationActuator: GamepadHapticActuator; } declare var Gamepad: { prototype: Gamepad; new(): Gamepad; }; /** * The **\`GamepadButton\`** interface defines 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) */ interface GamepadButton { /** * The **\`GamepadButton.pressed\`** property of the the button is currently pressed (\`true\`) or unpressed (\`false\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ readonly pressed: boolean; /** * The **\`touched\`** property of the a button capable of detecting touch is currently touched (\`true\`) or not touched (\`false\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ readonly touched: boolean; /** * The **\`GamepadButton.value\`** property of the current state of analog buttons on many modern gamepads, such as the triggers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ readonly value: number; } declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; }; /** * The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected_event and Window.gamepaddisconnected_event are fired in response to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) */ interface GamepadEvent extends Event { /** * The **\`GamepadEvent.gamepad\`** property of the **GamepadEvent interface** returns a Gamepad object, providing access to the associated gamepad data for fired A Gamepad object. * * [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; }; /** * The **\`GamepadHapticActuator\`** interface of the Gamepad API 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 { /** * The **\`playEffect()\`** method of the GamepadHapticActuator interface causes the hardware to play a specific vibration effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect) */ playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; /** * The **\`reset()\`** method of the GamepadHapticActuator interface stops the hardware from playing an active vibration effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset) */ 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; } /** * The **\`Geolocation\`** interface represents an object able to obtain the position of the device programmatically. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) */ interface Geolocation { /** * The **\`clearWatch()\`** method of the Geolocation interface is used to unregister location/error monitoring handlers previously installed using Geolocation.watchPosition(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ clearWatch(watchId: number): void; /** * The **\`getCurrentPosition()\`** method of the Geolocation interface is used to get the current position of the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; /** * The **\`watchPosition()\`** method of the Geolocation interface is used to register a handler function that will be called automatically each time the position of the device changes. * * [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; }; /** * The **\`GeolocationCoordinates\`** interface represents the position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) */ interface GeolocationCoordinates { /** * The **\`accuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the GeolocationCoordinates.latitude and GeolocationCoordinates.longitude properties expressed in meters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ readonly accuracy: number; /** * The **\`altitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the altitude of the position in meters above the WGS84 ellipsoid (which defines the nominal sea level surface). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ readonly altitude: number | null; /** * The **\`altitudeAccuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the \`altitude\` expressed in meters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ readonly altitudeAccuracy: number | null; /** * The **\`heading\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the direction in which the device is traveling. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ readonly heading: number | null; /** * The **\`latitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the latitude of the position in decimal degrees. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ readonly latitude: number; /** * The **\`longitude\`** read-only property of the GeolocationCoordinates interface is a number which represents the longitude of a geographical position, specified in decimal degrees. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ readonly longitude: number; /** * The **\`speed\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the velocity of the device in meters per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ readonly speed: number | null; /** * The **\`toJSON()\`** method of the GeolocationCoordinates interface is a Serialization; it returns a JSON representation of the GeolocationCoordinates object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ toJSON(): any; } declare var GeolocationCoordinates: { prototype: GeolocationCoordinates; new(): GeolocationCoordinates; }; /** * The **\`GeolocationPosition\`** interface represents the position of the concerned device at a given time. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) */ interface GeolocationPosition { /** * The **\`coords\`** read-only property of the GeolocationPosition interface returns a GeolocationCoordinates object representing a geographic position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ readonly coords: GeolocationCoordinates; /** * The **\`timestamp\`** read-only property of the GeolocationPosition interface represents the date and time that the position was acquired by the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ readonly timestamp: EpochTimeStamp; /** * The **\`toJSON()\`** method of the GeolocationPosition interface is a Serialization; it returns a JSON representation of the GeolocationPosition object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ toJSON(): any; } declare var GeolocationPosition: { prototype: GeolocationPosition; new(): GeolocationPosition; }; /** * The **\`GeolocationPositionError\`** interface represents the reason of an error occurring when using the geolocating device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ interface GeolocationPositionError { /** * The **\`code\`** read-only property of the GeolocationPositionError interface is an \`unsigned short\` representing the error code. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ readonly code: number; /** * The **\`message\`** read-only property of the GeolocationPositionError interface returns a human-readable string describing the details of the error. * * [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": PointerEvent; "beforeinput": InputEvent; "beforematch": Event; "beforetoggle": ToggleEvent; "blur": FocusEvent; "cancel": Event; "canplay": Event; "canplaythrough": Event; "change": Event; "click": PointerEvent; "close": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; "contextlost": Event; "contextmenu": PointerEvent; "contextrestored": Event; "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; "pointerrawupdate": Event; "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": ToggleEvent; "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 { /** [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: PointerEvent) => 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/Element/beforematch_event) */ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [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; /** [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) */ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/load_event) */ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [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/Element/lostpointercapture_event) */ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [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; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event) */ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [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; /** [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [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; /** [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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [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/HTMLElement/toggle_event) */ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => 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; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [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; } /** * The **\`HTMLAllCollection\`** interface represents a collection of _all_ of the document's elements, accessible by index (like an array) and by the element's \`id\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **\`HTMLAllCollection.length\`** property returns the number of items in this HTMLAllCollection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **\`item()\`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its \`id\` or \`name\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **\`namedItem()\`** method of the HTMLAllCollection interface returns the first Element in the collection whose \`id\` or \`name\` attribute matches the specified name, or \`null\` if no element matches. * * [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; }; /** * The **\`HTMLAnchorElement\`** interface represents 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 { /** @deprecated */ charset: string; /** @deprecated */ coords: string; /** * The **\`HTMLAnchorElement.download\`** property is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ download: string; /** * The **\`hreflang\`** property of the HTMLAnchorElement interface is a string that is the language of the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) */ hreflang: string; /** @deprecated */ name: string; /** * The **\`ping\`** property of the HTMLAnchorElement interface is a space-separated list of URLs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */ ping: string; /** * The **\`HTMLAnchorElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the A string; one of the following: - \`no-referrer\` - : The Referer header will be omitted entirely. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ referrerPolicy: string; /** * The **\`HTMLAnchorElement.rel\`** property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) */ rel: string; /** * The **\`HTMLAnchorElement.relList\`** read-only property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ get relList(): DOMTokenList; set relList(value: string); /** @deprecated */ rev: string; /** @deprecated */ shape: string; /** * The **\`target\`** property of the HTMLAnchorElement interface is a string that indicates where to display the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) */ target: string; /** * The **\`text\`** property of the HTMLAnchorElement represents the text inside the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) */ text: string; /** * The **\`type\`** property of the HTMLAnchorElement interface is a string that indicates the MIME type of the linked resource. * * [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; }; /** * The **\`HTMLAreaElement\`** interface 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 area elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * The **\`alt\`** property of the HTMLAreaElement interface specifies the text of the hyperlink, defining the textual label for an image map's link. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) */ alt: string; /** * The **\`coords\`** property of the HTMLAreaElement interface specifies the coordinates of the element's shape as a list of floating-point numbers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) */ coords: string; /** * The **\`download\`** property of the HTMLAreaElement interface is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ download: string; /** @deprecated */ noHref: boolean; /** * The **\`ping\`** property of the HTMLAreaElement interface is a space-separated list of URLs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */ ping: string; /** * The **\`HTMLAreaElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ referrerPolicy: string; /** * The **\`HTMLAreaElement.rel\`** property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ rel: string; /** * The **\`HTMLAreaElement.relList\`** read-only property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ get relList(): DOMTokenList; set relList(value: string); /** * The **\`shape\`** property of the HTMLAreaElement interface specifies the shape of an image map area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) */ shape: string; /** * The **\`target\`** property of the HTMLAreaElement interface is a string that indicates where to display the linked resource. * * [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; }; /** * The **\`HTMLAudioElement\`** interface provides access to the properties of audio elements, as well as methods to manipulate them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement) */ interface HTMLAudioElement extends HTMLMediaElement { addEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAudioElement: { prototype: HTMLAudioElement; new(): HTMLAudioElement; }; /** * The **\`HTMLBRElement\`** interface represents an HTML line break element (br). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement) */ interface HTMLBRElement extends HTMLElement { /** @deprecated */ clear: string; addEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLBRElement: { prototype: HTMLBRElement; new(): HTMLBRElement; }; /** * The **\`HTMLBaseElement\`** interface contains the base URI for a document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement) */ interface HTMLBaseElement extends HTMLElement { /** * The **\`href\`** property of the HTMLBaseElement interface contains a string that is the URL to use as the base for relative URLs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href) */ href: string; /** * The \`target\` property of the HTMLBaseElement interface is a string that represents the default target tab to show the resulting output for hyperlinks and form elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target) */ target: string; addEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLBaseElement: { prototype: HTMLBaseElement; new(): HTMLBaseElement; }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { } /** * The **\`HTMLBodyElement\`** interface provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating body elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement) */ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ aLink: string; /** @deprecated */ background: string; /** @deprecated */ bgColor: string; /** @deprecated */ link: string; /** @deprecated */ text: string; /** @deprecated */ vLink: string; addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLBodyElement: { prototype: HTMLBodyElement; new(): HTMLBodyElement; }; /** * The **\`HTMLButtonElement\`** interface provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating button elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement) */ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement { /** * The **\`HTMLButtonElement.disabled\`** property indicates whether the control is disabled, meaning that it does not accept any clicks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */ disabled: boolean; /** * The **\`form\`** read-only property of the HTMLButtonElement interface returns an HTMLFormElement object that owns this button, or \`null\` if this button is not owned by any form. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form) */ readonly form: HTMLFormElement | null; /** * The **\`formAction\`** property of the HTMLButtonElement interface is the URL of the program that is executed on the server when the form that owns this control is submitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction) */ formAction: string; /** * The **\`formEnctype\`** property of the HTMLButtonElement interface is the MIME_type of the content sent to the server when the form is submitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype) */ formEnctype: string; /** * The **\`formMethod\`** property of the HTMLButtonElement interface is the HTTP method used to submit the form if the button element is the control that submits the form. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod) */ formMethod: string; /** * The **\`formNoValidate\`** property of the HTMLButtonElement interface is a boolean value indicating if the form will bypass constraint validation when submitted via the button. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate) */ formNoValidate: boolean; /** * The **\`formTarget\`** property of the HTMLButtonElement interface is the tab, window, or iframe where the response of the submitted form is to be displayed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget) */ formTarget: string; /** * The **\`HTMLButtonElement.labels\`** read-only property returns a A NodeList containing the \`